Skip to content

Commit

Permalink
fix(storybook): revert to previous defaults for Storybook CLI options (
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini authored Jan 19, 2023
1 parent 6c926d8 commit 9f0a7f0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 18 deletions.
6 changes: 2 additions & 4 deletions docs/generated/packages/storybook/executors/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,11 @@
},
"quiet": {
"type": "boolean",
"description": "Suppress verbose build output.",
"default": false
"description": "Suppress verbose build output."
},
"docs": {
"type": "boolean",
"description": "Starts Storybook in documentation mode. Learn more about it : https://storybook.js.org/docs/react/writing-docs/build-documentation#preview-storybooks-documentation.",
"default": false
"description": "Starts Storybook in documentation mode. Learn more about it : https://storybook.js.org/docs/react/writing-docs/build-documentation#preview-storybooks-documentation."
}
},
"definitions": {
Expand Down
6 changes: 2 additions & 4 deletions docs/generated/packages/storybook/executors/storybook.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,11 @@
},
"quiet": {
"type": "boolean",
"description": "Suppress verbose build output.",
"default": false
"description": "Suppress verbose build output."
},
"docs": {
"type": "boolean",
"description": "Starts Storybook in documentation mode. Learn more about it : https://storybook.js.org/docs/react/writing-docs/build-documentation#preview-storybooks-documentation.",
"default": false
"description": "Starts Storybook in documentation mode. Learn more about it : https://storybook.js.org/docs/react/writing-docs/build-documentation#preview-storybooks-documentation."
},
"docsMode": {
"type": "boolean",
Expand Down
6 changes: 2 additions & 4 deletions packages/storybook/src/executors/build-storybook/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,11 @@
},
"quiet": {
"type": "boolean",
"description": "Suppress verbose build output.",
"default": false
"description": "Suppress verbose build output."
},
"docs": {
"type": "boolean",
"description": "Starts Storybook in documentation mode. Learn more about it : https://storybook.js.org/docs/react/writing-docs/build-documentation#preview-storybooks-documentation.",
"default": false
"description": "Starts Storybook in documentation mode. Learn more about it : https://storybook.js.org/docs/react/writing-docs/build-documentation#preview-storybooks-documentation."
}
},
"definitions": {
Expand Down
6 changes: 2 additions & 4 deletions packages/storybook/src/executors/storybook/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,11 @@
},
"quiet": {
"type": "boolean",
"description": "Suppress verbose build output.",
"default": false
"description": "Suppress verbose build output."
},
"docs": {
"type": "boolean",
"description": "Starts Storybook in documentation mode. Learn more about it : https://storybook.js.org/docs/react/writing-docs/build-documentation#preview-storybooks-documentation.",
"default": false
"description": "Starts Storybook in documentation mode. Learn more about it : https://storybook.js.org/docs/react/writing-docs/build-documentation#preview-storybooks-documentation."
},
"docsMode": {
"type": "boolean",
Expand Down
6 changes: 4 additions & 2 deletions packages/webpack/src/utils/with-nx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export function withNx(opts?: { skipTypeChecking?: boolean }) {
profile: options.statsJson,
resolve: {
...config.resolve,
extensions,
extensions: [...extensions, ...(config?.resolve?.extensions ?? [])],
alias: options.fileReplacements.reduce(
(aliases, replacement) => ({
...aliases,
Expand All @@ -173,9 +173,10 @@ export function withNx(opts?: { skipTypeChecking?: boolean }) {
{}
),
plugins: [
...(config.resolve?.plugins ?? []),
new TsconfigPathsPlugin({
configFile: options.tsConfig,
extensions,
extensions: [...extensions, ...(config?.resolve?.extensions ?? [])],
mainFields,
}),
],
Expand Down Expand Up @@ -231,6 +232,7 @@ export function withNx(opts?: { skipTypeChecking?: boolean }) {
// Enabled for performance
unsafeCache: true,
rules: [
...(config?.module?.rules ?? []),
options.sourceMap && {
test: /\.js$/,
enforce: 'pre' as const,
Expand Down

1 comment on commit 9f0a7f0

@vercel
Copy link

@vercel vercel bot commented on 9f0a7f0 Jan 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx.dev
nx-dev-nrwl.vercel.app

Please sign in to comment.