@nx/storybook 17.0.0-rc.0 → 17.0.0-rc.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": "17.0.0-rc.
|
|
3
|
+
"version": "17.0.0-rc.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": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
34
34
|
"semver": "7.5.3",
|
|
35
35
|
"tslib": "^2.3.0",
|
|
36
|
-
"@nx/cypress": "17.0.0-rc.
|
|
37
|
-
"@nx/devkit": "17.0.0-rc.
|
|
38
|
-
"@nx/js": "17.0.0-rc.
|
|
39
|
-
"@nx/eslint": "17.0.0-rc.
|
|
40
|
-
"@nrwl/storybook": "17.0.0-rc.
|
|
36
|
+
"@nx/cypress": "17.0.0-rc.2",
|
|
37
|
+
"@nx/devkit": "17.0.0-rc.2",
|
|
38
|
+
"@nx/js": "17.0.0-rc.2",
|
|
39
|
+
"@nx/eslint": "17.0.0-rc.2",
|
|
40
|
+
"@nrwl/storybook": "17.0.0-rc.2"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
@@ -367,7 +367,7 @@ function createProjectStorybookDir(tree, projectName, uiFramework, js, tsConfigu
|
|
|
367
367
|
: 'src/app'
|
|
368
368
|
: 'src/lib';
|
|
369
369
|
if (uiFramework === '@storybook/vue3-vite') {
|
|
370
|
-
projectDirectory = 'src
|
|
370
|
+
projectDirectory = 'src';
|
|
371
371
|
}
|
|
372
372
|
const storybookConfigExists = projectIsRootProjectInStandaloneWorkspace
|
|
373
373
|
? tree.exists('.storybook/main.js') || tree.exists('.storybook/main.ts')
|
package/src/utils/utilities.js
CHANGED
|
@@ -176,12 +176,14 @@ function isTheFileAStory(tree, path) {
|
|
|
176
176
|
});
|
|
177
177
|
const importSpecifiers = (0, js_1.findNodes)(importNode, [
|
|
178
178
|
ts.SyntaxKind.ImportSpecifier,
|
|
179
|
+
ts.SyntaxKind.NamespaceImport,
|
|
179
180
|
]);
|
|
180
181
|
importSpecifiers.forEach((importSpecifier) => {
|
|
181
182
|
if (importSpecifier.getText() === 'Story' ||
|
|
182
183
|
importSpecifier.getText() === 'Meta' ||
|
|
183
184
|
importSpecifier.getText() === 'storiesOf' ||
|
|
184
|
-
importSpecifier.getText() === 'ComponentStory'
|
|
185
|
+
importSpecifier.getText() === 'ComponentStory' ||
|
|
186
|
+
importSpecifier.getText().includes('Storybook')) {
|
|
185
187
|
nodeContainsStoryImport = true;
|
|
186
188
|
}
|
|
187
189
|
});
|