@nx/vue 23.0.0-beta.12 → 23.0.0-beta.14
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 +12 -12
- package/src/generators/application/application.js +5 -6
- package/src/generators/application/lib/normalize-options.js +2 -2
- package/src/generators/component/lib/utils.d.ts.map +1 -1
- package/src/generators/component/lib/utils.js +4 -5
- package/src/generators/library/lib/normalize-options.js +4 -4
- package/src/generators/library/library.d.ts.map +1 -1
- package/src/generators/library/library.js +8 -10
- package/src/generators/stories/lib/component-story.d.ts.map +1 -1
- package/src/generators/stories/lib/component-story.js +3 -4
- package/src/utils/ast-utils.js +2 -2
- package/src/utils/create-ts-config.js +3 -3
- package/tailwind.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/vue",
|
|
3
|
-
"version": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.14",
|
|
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": {
|
|
@@ -30,27 +30,27 @@
|
|
|
30
30
|
"migrations": "./migrations.json"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nx/devkit": "23.0.0-beta.
|
|
34
|
-
"@nx/eslint": "23.0.0-beta.
|
|
35
|
-
"@nx/js": "23.0.0-beta.
|
|
36
|
-
"@nx/vite": "23.0.0-beta.
|
|
37
|
-
"@nx/vitest": "23.0.0-beta.
|
|
38
|
-
"@nx/web": "23.0.0-beta.
|
|
33
|
+
"@nx/devkit": "23.0.0-beta.14",
|
|
34
|
+
"@nx/eslint": "23.0.0-beta.14",
|
|
35
|
+
"@nx/js": "23.0.0-beta.14",
|
|
36
|
+
"@nx/vite": "23.0.0-beta.14",
|
|
37
|
+
"@nx/vitest": "23.0.0-beta.14",
|
|
38
|
+
"@nx/web": "23.0.0-beta.14",
|
|
39
39
|
"picomatch": "4.0.4",
|
|
40
40
|
"semver": "^7.6.3",
|
|
41
41
|
"tslib": "^2.3.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"nx": "23.0.0-beta.
|
|
44
|
+
"nx": "23.0.0-beta.14"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@nx/cypress": "23.0.0-beta.
|
|
51
|
-
"@nx/playwright": "23.0.0-beta.
|
|
52
|
-
"@nx/rsbuild": "23.0.0-beta.
|
|
53
|
-
"@nx/storybook": "23.0.0-beta.
|
|
50
|
+
"@nx/cypress": "23.0.0-beta.14",
|
|
51
|
+
"@nx/playwright": "23.0.0-beta.14",
|
|
52
|
+
"@nx/rsbuild": "23.0.0-beta.14",
|
|
53
|
+
"@nx/storybook": "23.0.0-beta.14"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
56
56
|
"@nx/cypress": {
|
|
@@ -14,8 +14,7 @@ const add_vite_1 = require("./lib/add-vite");
|
|
|
14
14
|
const add_rsbuild_1 = require("./lib/add-rsbuild");
|
|
15
15
|
const create_ts_config_1 = require("../../utils/create-ts-config");
|
|
16
16
|
const ensure_dependencies_1 = require("../../utils/ensure-dependencies");
|
|
17
|
-
const
|
|
18
|
-
const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
|
|
17
|
+
const internal_2 = require("@nx/js/internal");
|
|
19
18
|
function applicationGenerator(tree, options) {
|
|
20
19
|
return applicationGeneratorInternal(tree, {
|
|
21
20
|
addPlugin: false,
|
|
@@ -25,7 +24,7 @@ function applicationGenerator(tree, options) {
|
|
|
25
24
|
}
|
|
26
25
|
async function applicationGeneratorInternal(tree, _options) {
|
|
27
26
|
const tasks = [];
|
|
28
|
-
const addTsPlugin = (0,
|
|
27
|
+
const addTsPlugin = (0, internal_2.shouldConfigureTsSolutionSetup)(tree, _options.addPlugin, _options.useTsSolution);
|
|
29
28
|
tasks.push(await (0, js_1.initGenerator)(tree, {
|
|
30
29
|
..._options,
|
|
31
30
|
tsConfigName: _options.rootProject
|
|
@@ -40,7 +39,7 @@ async function applicationGeneratorInternal(tree, _options) {
|
|
|
40
39
|
// If we are using the new TS solution
|
|
41
40
|
// We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
|
|
42
41
|
if (options.isUsingTsSolutionConfig) {
|
|
43
|
-
await (0,
|
|
42
|
+
await (0, internal_2.addProjectToTsSolutionWorkspace)(tree, options.appProjectRoot);
|
|
44
43
|
}
|
|
45
44
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
46
45
|
options.addPlugin ??=
|
|
@@ -105,7 +104,7 @@ async function applicationGeneratorInternal(tree, _options) {
|
|
|
105
104
|
if (options.js)
|
|
106
105
|
(0, devkit_1.toJS)(tree);
|
|
107
106
|
if (options.isUsingTsSolutionConfig) {
|
|
108
|
-
(0,
|
|
107
|
+
(0, internal_2.updateTsconfigFiles)(tree, options.appProjectRoot, 'tsconfig.app.json', {
|
|
109
108
|
jsx: 'preserve',
|
|
110
109
|
jsxImportSource: 'vue',
|
|
111
110
|
module: 'esnext',
|
|
@@ -115,7 +114,7 @@ async function applicationGeneratorInternal(tree, _options) {
|
|
|
115
114
|
? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
|
|
116
115
|
: undefined);
|
|
117
116
|
}
|
|
118
|
-
(0,
|
|
117
|
+
(0, internal_2.sortPackageJsonFields)(tree, options.appProjectRoot);
|
|
119
118
|
if (!options.skipFormat)
|
|
120
119
|
await (0, devkit_1.formatFiles)(tree);
|
|
121
120
|
tasks.push(() => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.normalizeOptions = normalizeOptions;
|
|
4
4
|
const internal_1 = require("@nx/devkit/internal");
|
|
5
|
-
const
|
|
5
|
+
const internal_2 = require("@nx/js/internal");
|
|
6
6
|
async function normalizeOptions(host, options) {
|
|
7
7
|
await (0, internal_1.ensureRootProjectName)(options, 'application');
|
|
8
8
|
const { projectName, projectRoot: appProjectRoot, importPath, } = await (0, internal_1.determineProjectNameAndRootOptions)(host, {
|
|
@@ -12,7 +12,7 @@ async function normalizeOptions(host, options) {
|
|
|
12
12
|
rootProject: options.rootProject,
|
|
13
13
|
});
|
|
14
14
|
options.rootProject = appProjectRoot === '.';
|
|
15
|
-
const isUsingTsSolutionConfig = (0,
|
|
15
|
+
const isUsingTsSolutionConfig = (0, internal_2.isUsingTsSolutionSetup)(host);
|
|
16
16
|
const appProjectName = !isUsingTsSolutionConfig || options.name ? projectName : importPath;
|
|
17
17
|
const e2eProjectName = options.rootProject ? 'e2e' : `${appProjectName}-e2e`;
|
|
18
18
|
const e2eProjectRoot = options.rootProject ? 'e2e' : `${appProjectRoot}-e2e`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../packages/vue/src/generators/component/lib/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAML,IAAI,EACL,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../packages/vue/src/generators/component/lib/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAML,IAAI,EACL,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAIvE,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,gBAAgB,CAAC,CAsC3B;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QAqCvE"}
|
|
@@ -5,9 +5,8 @@ exports.addExportsToBarrel = addExportsToBarrel;
|
|
|
5
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
6
6
|
const devkit_1 = require("@nx/devkit");
|
|
7
7
|
const path_1 = require("path");
|
|
8
|
-
const
|
|
8
|
+
const internal_2 = require("@nx/js/internal");
|
|
9
9
|
const ast_utils_1 = require("../../../utils/ast-utils");
|
|
10
|
-
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
11
10
|
let tsModule;
|
|
12
11
|
async function normalizeOptions(host, options) {
|
|
13
12
|
const { fileName, filePath, directory, project: projectName, } = await (0, internal_1.determineArtifactNameAndDirectoryOptions)(host, {
|
|
@@ -20,7 +19,7 @@ async function normalizeOptions(host, options) {
|
|
|
20
19
|
const project = (0, devkit_1.getProjects)(host).get(projectName);
|
|
21
20
|
const { root, sourceRoot: projectSourceRoot, projectType } = project;
|
|
22
21
|
if (options.export &&
|
|
23
|
-
(0,
|
|
22
|
+
(0, internal_2.getProjectType)(host, root, projectType) === 'application') {
|
|
24
23
|
devkit_1.logger.warn(`The "--export" option should not be used with applications and will do nothing.`);
|
|
25
24
|
}
|
|
26
25
|
options.routing = options.routing ?? false;
|
|
@@ -37,11 +36,11 @@ async function normalizeOptions(host, options) {
|
|
|
37
36
|
}
|
|
38
37
|
function addExportsToBarrel(host, options) {
|
|
39
38
|
if (!tsModule) {
|
|
40
|
-
tsModule = (0,
|
|
39
|
+
tsModule = (0, internal_2.ensureTypescript)();
|
|
41
40
|
}
|
|
42
41
|
const workspace = (0, devkit_1.getProjects)(host);
|
|
43
42
|
const proj = workspace.get(options.projectName);
|
|
44
|
-
const isApp = (0,
|
|
43
|
+
const isApp = (0, internal_2.getProjectType)(host, proj.root, proj.projectType) === 'application';
|
|
45
44
|
if (options.export && !isApp) {
|
|
46
45
|
const indexFilePath = (0, devkit_1.joinPathFragments)(options.projectSourceRoot ?? 'src', options.js ? 'index.js' : 'index.ts');
|
|
47
46
|
const indexSource = host.read(indexFilePath, 'utf-8');
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.normalizeOptions = normalizeOptions;
|
|
4
4
|
const internal_1 = require("@nx/devkit/internal");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const
|
|
6
|
+
const internal_2 = require("@nx/js/internal");
|
|
7
7
|
async function normalizeOptions(host, options) {
|
|
8
8
|
await (0, internal_1.ensureRootProjectName)(options, 'library');
|
|
9
9
|
const { projectName, names: projectNames, projectRoot, importPath, } = await (0, internal_1.determineProjectNameAndRootOptions)(host, {
|
|
@@ -26,7 +26,7 @@ async function normalizeOptions(host, options) {
|
|
|
26
26
|
const nxJson = (0, devkit_1.readNxJson)(host);
|
|
27
27
|
const addPlugin = process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
28
28
|
nxJson.useInferencePlugins !== false;
|
|
29
|
-
const isUsingTsSolutionConfig = (0,
|
|
29
|
+
const isUsingTsSolutionConfig = (0, internal_2.isUsingTsSolutionSetup)(host);
|
|
30
30
|
const normalized = {
|
|
31
31
|
addPlugin,
|
|
32
32
|
...options,
|
|
@@ -47,11 +47,11 @@ async function normalizeOptions(host, options) {
|
|
|
47
47
|
normalized.inSourceTests === normalized.minimal || normalized.inSourceTests;
|
|
48
48
|
if (options.appProject) {
|
|
49
49
|
const appProjectConfig = (0, devkit_1.getProjects)(host).get(options.appProject);
|
|
50
|
-
const appProjectType = (0,
|
|
50
|
+
const appProjectType = (0, internal_2.getProjectType)(host, appProjectConfig.root, appProjectConfig.projectType);
|
|
51
51
|
if (appProjectType !== 'application') {
|
|
52
52
|
throw new Error(`appProject expected type of "application" but got "${appProjectType}"`);
|
|
53
53
|
}
|
|
54
|
-
const appSourceRoot = (0,
|
|
54
|
+
const appSourceRoot = (0, internal_2.getProjectSourceRoot)(appProjectConfig, host);
|
|
55
55
|
try {
|
|
56
56
|
normalized.appMain = appProjectConfig.targets.build.options.main;
|
|
57
57
|
normalized.appSourceRoot = (0, devkit_1.normalizePath)(appSourceRoot);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../../../packages/vue/src/generators/library/library.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,iBAAiB,EAOjB,IAAI,EAGL,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../../../packages/vue/src/generators/library/library.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,iBAAiB,EAOjB,IAAI,EAGL,MAAM,YAAY,CAAC;AAsBpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAM1D;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAoKxE;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -6,9 +6,7 @@ const tslib_1 = require("tslib");
|
|
|
6
6
|
const internal_1 = require("@nx/devkit/internal");
|
|
7
7
|
const devkit_1 = require("@nx/devkit");
|
|
8
8
|
const js_1 = require("@nx/js");
|
|
9
|
-
const
|
|
10
|
-
const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
|
|
11
|
-
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
9
|
+
const internal_2 = require("@nx/js/internal");
|
|
12
10
|
const path_1 = require("path");
|
|
13
11
|
const add_linting_1 = require("../../utils/add-linting");
|
|
14
12
|
const create_ts_config_1 = require("../../utils/create-ts-config");
|
|
@@ -31,7 +29,7 @@ async function libraryGeneratorInternal(tree, schema) {
|
|
|
31
29
|
if (schema.publishable === true && !schema.importPath) {
|
|
32
30
|
throw new Error(`For publishable libs you have to provide a proper "--importPath" which needs to be a valid npm package name (e.g. my-awesome-lib or @myorg/my-lib)`);
|
|
33
31
|
}
|
|
34
|
-
const addTsPlugin = (0,
|
|
32
|
+
const addTsPlugin = (0, internal_2.shouldConfigureTsSolutionSetup)(tree, schema.addPlugin);
|
|
35
33
|
tasks.push(await (0, js_1.initGenerator)(tree, {
|
|
36
34
|
...schema,
|
|
37
35
|
addTsPlugin,
|
|
@@ -41,7 +39,7 @@ async function libraryGeneratorInternal(tree, schema) {
|
|
|
41
39
|
// If we are using the new TS solution
|
|
42
40
|
// We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
|
|
43
41
|
if (options.isUsingTsSolutionConfig) {
|
|
44
|
-
await (0,
|
|
42
|
+
await (0, internal_2.addProjectToTsSolutionWorkspace)(tree, options.projectRoot);
|
|
45
43
|
}
|
|
46
44
|
let packageJson = {
|
|
47
45
|
name: options.importPath,
|
|
@@ -106,7 +104,7 @@ async function libraryGeneratorInternal(tree, schema) {
|
|
|
106
104
|
if (options.js)
|
|
107
105
|
(0, devkit_1.toJS)(tree);
|
|
108
106
|
if (options.isUsingTsSolutionConfig) {
|
|
109
|
-
(0,
|
|
107
|
+
(0, internal_2.updateTsconfigFiles)(tree, options.projectRoot, 'tsconfig.lib.json', {
|
|
110
108
|
jsx: 'preserve',
|
|
111
109
|
jsxImportSource: 'vue',
|
|
112
110
|
module: 'esnext',
|
|
@@ -116,18 +114,18 @@ async function libraryGeneratorInternal(tree, schema) {
|
|
|
116
114
|
? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
|
|
117
115
|
: undefined);
|
|
118
116
|
}
|
|
119
|
-
(0,
|
|
117
|
+
(0, internal_2.sortPackageJsonFields)(tree, options.projectRoot);
|
|
120
118
|
if (options.publishable) {
|
|
121
119
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.projectName);
|
|
122
120
|
if (options.isUsingTsSolutionConfig) {
|
|
123
|
-
await (0,
|
|
121
|
+
await (0, internal_2.addReleaseConfigForTsSolution)(tree, options.projectName, projectConfig);
|
|
124
122
|
}
|
|
125
123
|
else {
|
|
126
124
|
const nxJson = (0, devkit_1.readJson)(tree, 'nx.json');
|
|
127
|
-
await (0,
|
|
125
|
+
await (0, internal_2.addReleaseConfigForNonTsSolution)(tree, options.projectName, projectConfig);
|
|
128
126
|
}
|
|
129
127
|
(0, devkit_1.updateProjectConfiguration)(tree, options.projectName, projectConfig);
|
|
130
|
-
tasks.push(await (0,
|
|
128
|
+
tasks.push(await (0, internal_2.releaseTasks)(tree));
|
|
131
129
|
}
|
|
132
130
|
if (!options.skipFormat)
|
|
133
131
|
await (0, devkit_1.formatFiles)(tree);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-story.d.ts","sourceRoot":"","sources":["../../../../../../../packages/vue/src/generators/stories/lib/component-story.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,IAAI,EACL,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"component-story.d.ts","sourceRoot":"","sources":["../../../../../../../packages/vue/src/generators/stories/lib/component-story.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,IAAI,EACL,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAUpD,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,IAAI,EACV,EAAE,OAAO,EAAE,EAAE,EAAE,gBAAgB,EAAE,EAAE,sBAAsB,EACzD,aAAa,EAAE,MAAM,QAuCtB"}
|
|
@@ -2,17 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createComponentStories = createComponentStories;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const
|
|
6
|
-
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
5
|
+
const internal_1 = require("@nx/js/internal");
|
|
7
6
|
const utils_1 = require("./utils");
|
|
8
7
|
const path_1 = require("path");
|
|
9
8
|
let tsModule;
|
|
10
9
|
function createComponentStories(host, { project, js, interactionTests }, componentPath) {
|
|
11
10
|
if (!tsModule) {
|
|
12
|
-
tsModule = (0,
|
|
11
|
+
tsModule = (0, internal_1.ensureTypescript)();
|
|
13
12
|
}
|
|
14
13
|
const proj = (0, devkit_1.readProjectConfiguration)(host, project);
|
|
15
|
-
const sourceRoot = (0,
|
|
14
|
+
const sourceRoot = (0, internal_1.getProjectSourceRoot)(proj);
|
|
16
15
|
const componentFilePath = (0, devkit_1.joinPathFragments)(sourceRoot, componentPath);
|
|
17
16
|
const componentDirectory = componentFilePath.replace(componentFilePath.slice(componentFilePath.lastIndexOf('/')), '');
|
|
18
17
|
const componentFileName = componentFilePath
|
package/src/utils/ast-utils.js
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.addImport = addImport;
|
|
4
4
|
const js_1 = require("@nx/js");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const
|
|
6
|
+
const internal_1 = require("@nx/js/internal");
|
|
7
7
|
let tsModule;
|
|
8
8
|
function addImport(source, statement) {
|
|
9
9
|
if (!tsModule) {
|
|
10
|
-
tsModule = (0,
|
|
10
|
+
tsModule = (0, internal_1.ensureTypescript)();
|
|
11
11
|
}
|
|
12
12
|
const allImports = (0, js_1.findNodes)(source, tsModule.SyntaxKind.ImportDeclaration);
|
|
13
13
|
if (allImports.length > 0) {
|
|
@@ -6,10 +6,10 @@ exports.createTsConfigForNonTsSolution = createTsConfigForNonTsSolution;
|
|
|
6
6
|
exports.extractTsConfigBase = extractTsConfigBase;
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
8
|
const devkit_1 = require("@nx/devkit");
|
|
9
|
-
const shared = tslib_1.__importStar(require("@nx/js
|
|
10
|
-
const
|
|
9
|
+
const shared = tslib_1.__importStar(require("@nx/js"));
|
|
10
|
+
const internal_1 = require("@nx/js/internal");
|
|
11
11
|
function createTsConfig(host, projectRoot, type, options, relativePathToRootTsConfig) {
|
|
12
|
-
if ((0,
|
|
12
|
+
if ((0, internal_1.isUsingTsSolutionSetup)(host)) {
|
|
13
13
|
createTsConfigForTsSolution(host, projectRoot, type, options, relativePathToRootTsConfig);
|
|
14
14
|
}
|
|
15
15
|
else {
|
package/tailwind.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createGlobPatternsForDependencies = createGlobPatternsForDependencies;
|
|
4
|
-
const
|
|
4
|
+
const internal_1 = require("@nx/js/internal");
|
|
5
5
|
let hasWarned = false;
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated `@nx/vue/tailwind` will be removed in Nx 24. Migrate to Tailwind CSS v4 which no longer needs glob patterns.
|
|
@@ -15,7 +15,7 @@ function createGlobPatternsForDependencies(dirPath, fileGlobPattern = '/**/!(*.s
|
|
|
15
15
|
`See: https://nx.dev/docs/technologies/vue/guides/using-tailwind-css-in-vue\n`);
|
|
16
16
|
}
|
|
17
17
|
try {
|
|
18
|
-
return (0,
|
|
18
|
+
return (0, internal_1.createGlobPatternsForDependencies)(dirPath, fileGlobPattern);
|
|
19
19
|
}
|
|
20
20
|
catch (e) {
|
|
21
21
|
/**
|