@nx/storybook 19.6.4 → 19.6.6
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 +6 -6
- package/src/plugins/plugin.js +3 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/storybook",
|
|
3
|
-
"version": "19.6.
|
|
3
|
+
"version": "19.6.6",
|
|
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,14 +33,14 @@
|
|
|
33
33
|
"migrations": "./migrations.json"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@nx/devkit": "19.6.
|
|
36
|
+
"@nx/devkit": "19.6.6",
|
|
37
37
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
38
38
|
"semver": "^7.5.3",
|
|
39
39
|
"tslib": "^2.3.0",
|
|
40
|
-
"@nx/cypress": "19.6.
|
|
41
|
-
"@nx/js": "19.6.
|
|
42
|
-
"@nx/eslint": "19.6.
|
|
43
|
-
"@nrwl/storybook": "19.6.
|
|
40
|
+
"@nx/cypress": "19.6.6",
|
|
41
|
+
"@nx/js": "19.6.6",
|
|
42
|
+
"@nx/eslint": "19.6.6",
|
|
43
|
+
"@nrwl/storybook": "19.6.6"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
package/src/plugins/plugin.js
CHANGED
|
@@ -61,7 +61,7 @@ exports.createNodes = [
|
|
|
61
61
|
},
|
|
62
62
|
];
|
|
63
63
|
async function buildStorybookTargets(configFilePath, projectRoot, options, context, projectName) {
|
|
64
|
-
const buildOutputs = getOutputs(
|
|
64
|
+
const buildOutputs = getOutputs();
|
|
65
65
|
const namedInputs = (0, get_named_inputs_1.getNamedInputs)(projectRoot, context);
|
|
66
66
|
const storybookFramework = await getStorybookFramework(configFilePath, context);
|
|
67
67
|
const frameworkIsAngular = storybookFramework === '@storybook/angular';
|
|
@@ -167,24 +167,15 @@ async function getStorybookFramework(configFilePath, context) {
|
|
|
167
167
|
const { framework } = await (0, config_utils_1.loadConfigFile)(resolvedPath);
|
|
168
168
|
return typeof framework === 'string' ? framework : framework.name;
|
|
169
169
|
}
|
|
170
|
-
function getOutputs(
|
|
171
|
-
const normalizedOutputPath = normalizeOutputPath(projectRoot);
|
|
170
|
+
function getOutputs() {
|
|
172
171
|
const outputs = [
|
|
173
|
-
|
|
172
|
+
`{projectRoot}/storybook-static`,
|
|
174
173
|
`{options.output-dir}`,
|
|
175
174
|
`{options.outputDir}`,
|
|
176
175
|
`{options.o}`,
|
|
177
176
|
];
|
|
178
177
|
return outputs;
|
|
179
178
|
}
|
|
180
|
-
function normalizeOutputPath(projectRoot) {
|
|
181
|
-
if (projectRoot === '.') {
|
|
182
|
-
return `{projectRoot}/storybook-static`;
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
return `{workspaceRoot}/{projectRoot}/storybook-static`;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
179
|
function normalizeOptions(options) {
|
|
189
180
|
options ??= {};
|
|
190
181
|
options.buildStorybookTargetName ??= 'build-storybook';
|