@nx/vue 21.2.1 → 21.2.3
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/vue",
|
|
3
|
-
"version": "21.2.
|
|
3
|
+
"version": "21.2.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Vue plugin for Nx contains executors and generators for managing Vue applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Vitest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
|
|
6
6
|
"repository": {
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"picomatch": "^4.0.2",
|
|
33
33
|
"tslib": "^2.3.0",
|
|
34
|
-
"@nx/devkit": "21.2.
|
|
35
|
-
"@nx/js": "21.2.
|
|
36
|
-
"@nx/eslint": "21.2.
|
|
37
|
-
"@nx/vite": "21.2.
|
|
38
|
-
"@nx/web": "21.2.
|
|
34
|
+
"@nx/devkit": "21.2.3",
|
|
35
|
+
"@nx/js": "21.2.3",
|
|
36
|
+
"@nx/eslint": "21.2.3",
|
|
37
|
+
"@nx/vite": "21.2.3",
|
|
38
|
+
"@nx/web": "21.2.3"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
@@ -51,7 +51,7 @@ async function normalizeOptions(host, options) {
|
|
|
51
51
|
if (appProjectType !== 'application') {
|
|
52
52
|
throw new Error(`appProject expected type of "application" but got "${appProjectType}"`);
|
|
53
53
|
}
|
|
54
|
-
const appSourceRoot = (0, ts_solution_setup_1.getProjectSourceRoot)(
|
|
54
|
+
const appSourceRoot = (0, ts_solution_setup_1.getProjectSourceRoot)(appProjectConfig, host);
|
|
55
55
|
try {
|
|
56
56
|
normalized.appMain = appProjectConfig.targets.build.options.main;
|
|
57
57
|
normalized.appSourceRoot = (0, devkit_1.normalizePath)(appSourceRoot);
|
|
@@ -3,14 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createComponentStories = createComponentStories;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
|
6
|
+
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
6
7
|
const utils_1 = require("./utils");
|
|
7
8
|
let tsModule;
|
|
8
9
|
function createComponentStories(host, { project, js, interactionTests }, componentPath) {
|
|
9
10
|
if (!tsModule) {
|
|
10
11
|
tsModule = (0, ensure_typescript_1.ensureTypescript)();
|
|
11
12
|
}
|
|
12
|
-
const proj = (0, devkit_1.
|
|
13
|
-
const sourceRoot = proj
|
|
13
|
+
const proj = (0, devkit_1.readProjectConfiguration)(host, project);
|
|
14
|
+
const sourceRoot = (0, ts_solution_setup_1.getProjectSourceRoot)(proj);
|
|
14
15
|
const componentFilePath = (0, devkit_1.joinPathFragments)(sourceRoot, componentPath);
|
|
15
16
|
const componentDirectory = componentFilePath.replace(componentFilePath.slice(componentFilePath.lastIndexOf('/')), '');
|
|
16
17
|
const componentFileName = componentFilePath
|