@nx/storybook 16.9.0 → 16.9.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.9.
|
|
3
|
+
"version": "16.9.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": {
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
34
34
|
"semver": "7.5.3",
|
|
35
35
|
"tslib": "^2.3.0",
|
|
36
|
-
"@nx/cypress": "16.9.
|
|
37
|
-
"@nx/devkit": "16.9.
|
|
38
|
-
"@nx/js": "16.9.
|
|
39
|
-
"@nx/linter": "16.9.
|
|
40
|
-
"@nx/workspace": "16.9.
|
|
41
|
-
"@nrwl/storybook": "
|
|
36
|
+
"@nx/cypress": "16.9.1",
|
|
37
|
+
"@nx/devkit": "16.9.1",
|
|
38
|
+
"@nx/js": "16.9.1",
|
|
39
|
+
"@nx/linter": "16.9.1",
|
|
40
|
+
"@nx/workspace": "16.9.1",
|
|
41
|
+
"@nrwl/storybook": "16.9.1"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
@@ -369,11 +369,14 @@ function addStorybookToNamedInputs(tree) {
|
|
|
369
369
|
}
|
|
370
370
|
exports.addStorybookToNamedInputs = addStorybookToNamedInputs;
|
|
371
371
|
function createProjectStorybookDir(tree, projectName, uiFramework, js, tsConfiguration, root, projectType, projectIsRootProjectInStandaloneWorkspace, interactionTests, mainDir, isNextJs, usesSwc, usesVite, viteConfigFilePath) {
|
|
372
|
-
|
|
372
|
+
let projectDirectory = projectType === 'application'
|
|
373
373
|
? isNextJs
|
|
374
374
|
? 'components'
|
|
375
375
|
: 'src/app'
|
|
376
376
|
: 'src/lib';
|
|
377
|
+
if (uiFramework === '@storybook/vue3-vite') {
|
|
378
|
+
projectDirectory = 'src/components';
|
|
379
|
+
}
|
|
377
380
|
const storybookConfigExists = projectIsRootProjectInStandaloneWorkspace
|
|
378
381
|
? tree.exists('.storybook/main.js') || tree.exists('.storybook/main.ts')
|
|
379
382
|
: tree.exists((0, path_1.join)(root, '.storybook/main.ts')) ||
|
|
@@ -50,6 +50,12 @@ function checkDependenciesInstalled(host, schema) {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
+
if (schema.uiFramework === '@storybook/vue3-vite') {
|
|
54
|
+
if (!packageJson.dependencies['@storybook/vue3'] &&
|
|
55
|
+
!packageJson.devDependencies['@storybook/vue3']) {
|
|
56
|
+
devDependencies['@storybook/vue3'] = storybook7VersionToInstall;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
53
59
|
if (schema.uiFramework === '@storybook/angular') {
|
|
54
60
|
if (!packageJson.dependencies['@angular/forms'] &&
|
|
55
61
|
!packageJson.devDependencies['@angular/forms']) {
|