@nx/storybook 16.5.1 → 16.5.2
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.
|
|
3
|
+
"version": "16.5.2",
|
|
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.
|
|
34
|
-
"@nx/cypress": "16.5.
|
|
35
|
-
"@nx/devkit": "16.5.
|
|
36
|
-
"@nx/js": "16.5.
|
|
37
|
-
"@nx/linter": "16.5.
|
|
38
|
-
"@nx/workspace": "16.5.
|
|
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",
|
|
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": "
|
|
47
|
+
"gitHead": "928273940d11aa7dea87cb625a92f2c3ec62e726"
|
|
48
48
|
}
|
|
@@ -484,18 +484,26 @@ 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 (
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
break;
|
|
487
|
+
if (tree.exists(projectTsConfig)) {
|
|
488
|
+
(0, devkit_1.updateJson)(tree, projectTsConfig, (json) => {
|
|
489
|
+
var _a;
|
|
490
|
+
for (let i = 0; i < ((_a = json.references) === null || _a === void 0 ? void 0 : _a.length); i++) {
|
|
491
|
+
if (json.references[i].path === './.storybook/tsconfig.json') {
|
|
492
|
+
json.references[i].path = './tsconfig.storybook.json';
|
|
493
|
+
break;
|
|
494
|
+
}
|
|
496
495
|
}
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
}
|
|
496
|
+
return json;
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
const projectEsLintFile = (0, devkit_1.joinPathFragments)(projectRoot, '.eslintrc.json');
|
|
500
|
+
if (tree.exists(projectEsLintFile)) {
|
|
501
|
+
(0, devkit_1.updateJson)(tree, projectEsLintFile, (json) => {
|
|
502
|
+
const jsonString = JSON.stringify(json);
|
|
503
|
+
const newJsonString = jsonString.replace(/\.storybook\/tsconfig\.json/g, 'tsconfig.storybook.json');
|
|
504
|
+
json = JSON.parse(newJsonString);
|
|
505
|
+
return json;
|
|
506
|
+
});
|
|
507
|
+
}
|
|
500
508
|
}
|
|
501
509
|
exports.renameAndMoveOldTsConfig = renameAndMoveOldTsConfig;
|