@nx/storybook 16.6.0-beta.0 → 16.6.0-beta.1

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.6.0-beta.0",
3
+ "version": "16.6.0-beta.1",
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.6.0-beta.0",
34
- "@nx/cypress": "16.6.0-beta.0",
35
- "@nx/devkit": "16.6.0-beta.0",
36
- "@nx/js": "16.6.0-beta.0",
37
- "@nx/linter": "16.6.0-beta.0",
38
- "@nx/workspace": "16.6.0-beta.0",
33
+ "@nrwl/storybook": "16.6.0-beta.1",
34
+ "@nx/cypress": "16.6.0-beta.1",
35
+ "@nx/devkit": "16.6.0-beta.1",
36
+ "@nx/js": "16.6.0-beta.1",
37
+ "@nx/linter": "16.6.0-beta.1",
38
+ "@nx/workspace": "16.6.0-beta.1",
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": "5a7ffb93c9e84bffbf52f6ae9c6c1e3b8edb9d35"
47
+ "gitHead": "cf9f5cbe6a7ce3b916ec6505dc8488f669cbc52b"
48
48
  }
@@ -450,7 +450,7 @@ function getViteConfigFilePath(tree, projectRoot, configFile) {
450
450
  }
451
451
  exports.getViteConfigFilePath = getViteConfigFilePath;
452
452
  function renameAndMoveOldTsConfig(projectRoot, pathToStorybookConfigFile, tree) {
453
- if (pathToStorybookConfigFile) {
453
+ if (pathToStorybookConfigFile && tree.exists(pathToStorybookConfigFile)) {
454
454
  (0, devkit_1.updateJson)(tree, pathToStorybookConfigFile, (json) => {
455
455
  var _a, _b, _c, _d;
456
456
  if ((_a = json.extends) === null || _a === void 0 ? void 0 : _a.startsWith('../')) {
@@ -484,6 +484,9 @@ function renameAndMoveOldTsConfig(projectRoot, pathToStorybookConfigFile, tree)
484
484
  tree.rename(pathToStorybookConfigFile, (0, devkit_1.joinPathFragments)(projectRoot, `tsconfig.storybook.json`));
485
485
  }
486
486
  const projectTsConfig = (0, devkit_1.joinPathFragments)(projectRoot, 'tsconfig.json');
487
+ if (!tree.exists(projectTsConfig)) {
488
+ return;
489
+ }
487
490
  (0, devkit_1.updateJson)(tree, projectTsConfig, (json) => {
488
491
  var _a;
489
492
  for (let i = 0; i < ((_a = json.references) === null || _a === void 0 ? void 0 : _a.length); i++) {