@nx/storybook 16.5.2 → 16.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/storybook",
3
- "version": "16.5.2",
3
+ "version": "16.5.4",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Storybook contains executors and generators for allowing your workspace to use the powerful Storybook integration testing & documenting capabilities.",
6
6
  "repository": {
@@ -30,12 +30,12 @@
30
30
  "migrations": "./migrations.json"
31
31
  },
32
32
  "dependencies": {
33
- "@nrwl/storybook": "16.5.2",
34
- "@nx/cypress": "16.5.2",
35
- "@nx/devkit": "16.5.2",
36
- "@nx/js": "16.5.2",
37
- "@nx/linter": "16.5.2",
38
- "@nx/workspace": "16.5.2",
33
+ "@nrwl/storybook": "16.5.4",
34
+ "@nx/cypress": "16.5.4",
35
+ "@nx/devkit": "16.5.4",
36
+ "@nx/js": "16.5.4",
37
+ "@nx/linter": "16.5.4",
38
+ "@nx/workspace": "16.5.4",
39
39
  "@phenomnomnominal/tsquery": "~5.0.1",
40
40
  "dotenv": "~10.0.0",
41
41
  "semver": "7.5.3"
@@ -44,5 +44,5 @@
44
44
  "access": "public"
45
45
  },
46
46
  "types": "./index.d.ts",
47
- "gitHead": "928273940d11aa7dea87cb625a92f2c3ec62e726"
47
+ "gitHead": "9b2b8f311f1dfcd3380f57bfa3f07c513424b173"
48
48
  }
@@ -49,6 +49,7 @@ function configurationGenerator(tree, rawSchema) {
49
49
  (0, util_functions_1.createStorybookTsconfigFile)(tree, root, schema.uiFramework, (0, util_functions_1.projectIsRootProjectInStandaloneWorkspace)(root), mainDir);
50
50
  }
51
51
  (0, util_functions_1.configureTsProjectConfig)(tree, schema);
52
+ (0, util_functions_1.editTsconfigBaseJson)(tree);
52
53
  (0, util_functions_1.configureTsSolutionConfig)(tree, schema);
53
54
  (0, util_functions_1.updateLintConfig)(tree, schema);
54
55
  (0, util_functions_1.addBuildStorybookToCacheableOperations)(tree);
@@ -5,6 +5,7 @@ export declare function addStorybookTask(tree: Tree, projectName: string, uiFram
5
5
  export declare function addAngularStorybookTask(tree: Tree, projectName: string, configureTestRunner: boolean): void;
6
6
  export declare function addStaticTarget(tree: Tree, opts: StorybookConfigureSchema): void;
7
7
  export declare function createStorybookTsconfigFile(tree: Tree, projectRoot: string, uiFramework: UiFramework7, isRootProject: boolean, mainDir: 'components' | 'src'): void;
8
+ export declare function editTsconfigBaseJson(tree: Tree): void;
8
9
  export declare function configureTsProjectConfig(tree: Tree, schema: StorybookConfigureSchema): void;
9
10
  export declare function configureTsSolutionConfig(tree: Tree, schema: StorybookConfigureSchema): void;
10
11
  /**
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.renameAndMoveOldTsConfig = exports.getViteConfigFilePath = exports.getE2EProjectName = exports.rootFileIsTs = exports.workspaceHasRootProject = exports.projectIsRootProjectInStandaloneWorkspace = exports.addBuildStorybookToCacheableOperations = exports.getTsConfigPath = exports.createProjectStorybookDir = exports.addStorybookToNamedInputs = exports.normalizeSchema = exports.updateLintConfig = exports.configureTsSolutionConfig = exports.configureTsProjectConfig = exports.createStorybookTsconfigFile = exports.addStaticTarget = exports.addAngularStorybookTask = exports.addStorybookTask = void 0;
3
+ exports.renameAndMoveOldTsConfig = exports.getViteConfigFilePath = exports.getE2EProjectName = exports.rootFileIsTs = exports.workspaceHasRootProject = exports.projectIsRootProjectInStandaloneWorkspace = exports.addBuildStorybookToCacheableOperations = exports.getTsConfigPath = exports.createProjectStorybookDir = exports.addStorybookToNamedInputs = exports.normalizeSchema = exports.updateLintConfig = exports.configureTsSolutionConfig = exports.configureTsProjectConfig = exports.editTsconfigBaseJson = exports.createStorybookTsconfigFile = exports.addStaticTarget = exports.addAngularStorybookTask = exports.addStorybookTask = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const executor_options_utils_1 = require("@nx/devkit/src/generators/executor-options-utils");
@@ -170,6 +170,20 @@ function createStorybookTsconfigFile(tree, projectRoot, uiFramework, isRootProje
170
170
  (0, devkit_1.writeJson)(tree, storybookTsConfigPath, storybookTsConfig);
171
171
  }
172
172
  exports.createStorybookTsconfigFile = createStorybookTsconfigFile;
173
+ function editTsconfigBaseJson(tree) {
174
+ let tsconfigBasePath = 'tsconfig.base.json';
175
+ // standalone workspace maybe
176
+ if (!tree.exists(tsconfigBasePath))
177
+ tsconfigBasePath = 'tsconfig.json';
178
+ if (!tree.exists(tsconfigBasePath))
179
+ return;
180
+ const tsconfigBaseContent = (0, devkit_1.readJson)(tree, tsconfigBasePath);
181
+ if (!tsconfigBaseContent.compilerOptions)
182
+ tsconfigBaseContent.compilerOptions = {};
183
+ tsconfigBaseContent.compilerOptions.skipLibCheck = true;
184
+ (0, devkit_1.writeJson)(tree, tsconfigBasePath, tsconfigBaseContent);
185
+ }
186
+ exports.editTsconfigBaseJson = editTsconfigBaseJson;
173
187
  function configureTsProjectConfig(tree, schema) {
174
188
  var _a, _b, _c;
175
189
  const { name: projectName } = schema;