diff --git a/docs/generated/api-storybook/executors/storybook.md b/docs/generated/api-storybook/executors/storybook.md index b68700a469d6d..5eac57e141cfe 100644 --- a/docs/generated/api-storybook/executors/storybook.md +++ b/docs/generated/api-storybook/executors/storybook.md @@ -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` diff --git a/packages/storybook/src/executors/storybook/schema.json b/packages/storybook/src/executors/storybook/schema.json index 359ea6dc682f8..86c34a45809b5 100644 --- a/packages/storybook/src/executors/storybook/schema.json +++ b/packages/storybook/src/executors/storybook/schema.json @@ -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", @@ -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"] diff --git a/packages/storybook/src/executors/storybook/storybook.impl.ts b/packages/storybook/src/executors/storybook/storybook.impl.ts index 86af19b336272..a22edbb095822 100644 --- a/packages/storybook/src/executors/storybook/storybook.impl.ts +++ b/packages/storybook/src/executors/storybook/storybook.impl.ts @@ -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; }