Skip to content

Commit

Permalink
fix(storybook): fixing the static-dir issue (#9313)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini committed Mar 14, 2022
1 parent 0d6bdf5 commit dbbd7ef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 40 deletions.
8 changes: 1 addition & 7 deletions docs/generated/api-storybook/executors/storybook.md
Expand Up @@ -83,16 +83,10 @@ SSL key to use for serving HTTPS.

Type: `array`

**Deprecated:** This field has been renamed to staticDirs.
**Deprecated:** In Storybook 6.4 the `--static-dir` CLI flag has been replaced with the the `staticDirs` field in `.storybook/main.js`. It will be removed completely in Storybook 7.0.

Directory where to load static files from, array of strings

### staticDirs

Type: `array`

Directory where to load static files from, array of strings or object with from, to keys

### stylePreprocessorOptions.includePaths

Type: `array`
Expand Down
33 changes: 1 addition & 32 deletions packages/storybook/src/executors/storybook/schema.json
Expand Up @@ -50,19 +50,10 @@
"staticDir": {
"type": "array",
"description": "Directory where to load static files from, array of strings",
"default": [],
"items": {
"type": "string"
},
"x-deprecated": "This field has been renamed to staticDirs."
},
"staticDirs": {
"type": "array",
"description": "Directory where to load static files from, array of strings or object with from, to keys",
"default": [],
"items": {
"$ref": "#/definitions/staticDirPattern"
}
"x-deprecated": "In Storybook 6.4 the `--static-dir` CLI flag has been replaced with the the `staticDirs` field in `.storybook/main.js`. It will be removed completely in Storybook 7.0."
},
"projectBuildConfig": {
"type": "string",
Expand Down Expand Up @@ -144,28 +135,6 @@
"description": "The file to include."
}
]
},
"staticDirPattern": {
"oneOf": [
{
"type": "object",
"properties": {
"from": {
"type": "string",
"description": "From path"
},
"to": {
"type": "string",
"description": "To path"
}
},
"additionalProperties": false,
"required": ["from", "to"]
},
{
"type": "string"
}
]
}
},
"required": ["uiFramework", "config"]
Expand Down
Expand Up @@ -18,7 +18,6 @@ export interface StorybookExecutorOptions extends CommonNxStorybookConfig {
sslCert?: string;
sslKey?: string;
staticDir?: string[];
staticDirs?: string[] | { from: string; to: string }[];
watch?: boolean;
docsMode?: boolean;
}
Expand Down

1 comment on commit dbbd7ef

@vercel
Copy link

@vercel vercel bot commented on dbbd7ef Mar 14, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.