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 and jaysoo committed Jan 19, 2023
1 parent d5b12db commit bd76586
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 73 deletions.
25 changes: 0 additions & 25 deletions docs/generated/manifests/menus.json
Original file line number Diff line number Diff line change
Expand Up @@ -5920,31 +5920,6 @@
"isExternal": false,
"disableCollapsible": false
},
{
"id": "executors",
"path": "/packages/storybook/executors",
"name": "executors",
"children": [
{
"id": "storybook",
"path": "/packages/storybook/executors/storybook",
"name": "storybook",
"children": [],
"isExternal": false,
"disableCollapsible": false
},
{
"id": "build",
"path": "/packages/storybook/executors/build",
"name": "build",
"children": [],
"isExternal": false,
"disableCollapsible": false
}
],
"isExternal": false,
"disableCollapsible": false
},
{
"id": "generators",
"path": "/packages/storybook/generators",
Expand Down
21 changes: 1 addition & 20 deletions docs/generated/manifests/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2536,26 +2536,7 @@
},
"root": "/packages/storybook",
"source": "/packages/storybook/src",
"executors": {
"/packages/storybook/executors/storybook": {
"description": "Serve Storybook.",
"file": "generated/packages/storybook/executors/storybook.json",
"hidden": false,
"name": "storybook",
"originalFilePath": "/packages/storybook/src/executors/storybook/schema.json",
"path": "/packages/storybook/executors/storybook",
"type": "executor"
},
"/packages/storybook/executors/build": {
"description": "Build Storybook.",
"file": "generated/packages/storybook/executors/build.json",
"hidden": false,
"name": "build",
"originalFilePath": "/packages/storybook/src/executors/build-storybook/schema.json",
"path": "/packages/storybook/executors/build",
"type": "executor"
}
},
"executors": {},
"generators": {
"/packages/storybook/generators/init": {
"description": "Add Storybook configuration to the workspace.",
Expand Down
21 changes: 1 addition & 20 deletions docs/generated/packages-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2507,26 +2507,7 @@
"originalFilePath": "shared/packages/storybook/custom-builder-configs"
}
],
"executors": [
{
"description": "Serve Storybook.",
"file": "generated/packages/storybook/executors/storybook.json",
"hidden": false,
"name": "storybook",
"originalFilePath": "/packages/storybook/src/executors/storybook/schema.json",
"path": "storybook/executors/storybook",
"type": "executor"
},
{
"description": "Build Storybook.",
"file": "generated/packages/storybook/executors/build.json",
"hidden": false,
"name": "build",
"originalFilePath": "/packages/storybook/src/executors/build-storybook/schema.json",
"path": "storybook/executors/build",
"type": "executor"
}
],
"executors": [],
"generators": [
{
"description": "Add Storybook configuration to the workspace.",
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
2 changes: 0 additions & 2 deletions packages/storybook/src/executors/storybook/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,10 @@
"quiet": {
"type": "boolean",
"description": "Suppress verbose build output.",
"default": false
},
"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
},
"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

0 comments on commit bd76586

Please sign in to comment.