@nx/vite 23.0.0-beta.2 → 23.0.0-beta.20
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/dist/PLUGIN.md +33 -0
- package/{executors.d.ts → dist/executors.d.ts} +0 -3
- package/{executors.js → dist/executors.js} +1 -3
- package/{index.d.ts → dist/index.d.ts} +0 -3
- package/{index.js → dist/index.js} +1 -3
- package/{plugin.d.ts → dist/plugin.d.ts} +0 -1
- package/{plugins → dist/plugins}/nx-copy-assets.plugin.d.ts +1 -2
- package/{plugins → dist/plugins}/nx-copy-assets.plugin.js +2 -2
- package/{plugins → dist/plugins}/nx-tsconfig-paths.plugin.d.ts +0 -1
- package/{plugins → dist/plugins}/nx-tsconfig-paths.plugin.js +7 -8
- package/{plugins → dist/plugins}/nx-vite-build-coordination.plugin.d.ts +0 -1
- package/{plugins → dist/plugins}/rollup-replace-files.plugin.d.ts +0 -1
- package/{src → dist/src}/executors/build/build.impl.d.ts +0 -1
- package/{src → dist/src}/executors/build/build.impl.js +10 -40
- package/{src → dist/src}/executors/build/compat.d.ts +0 -1
- package/{src → dist/src}/executors/build/schema.json +1 -0
- package/{src → dist/src}/executors/dev-server/compat.d.ts +0 -1
- package/{src → dist/src}/executors/dev-server/dev-server.impl.d.ts +0 -1
- package/{src → dist/src}/executors/dev-server/dev-server.impl.js +5 -35
- package/{src → dist/src}/executors/dev-server/schema.json +1 -0
- package/{src → dist/src}/executors/preview-server/compat.d.ts +0 -1
- package/{src → dist/src}/executors/preview-server/preview-server.impl.d.ts +0 -1
- package/{src → dist/src}/executors/preview-server/preview-server.impl.js +5 -35
- package/{src → dist/src}/executors/preview-server/schema.json +1 -0
- package/{src → dist/src}/generators/configuration/configuration.d.ts +0 -1
- package/{src → dist/src}/generators/configuration/configuration.js +23 -11
- package/{src → dist/src}/generators/configuration/lib/convert-non-vite.d.ts +0 -1
- package/{src → dist/src}/generators/configuration/lib/convert-non-vite.js +2 -2
- package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.js +4 -12
- package/{src → dist/src}/generators/convert-to-inferred/lib/build-post-target-transformer.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/lib/build-post-target-transformer.js +2 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/preview-post-target-transformer.d.ts +1 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/serve-post-target-transformer.d.ts +1 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/utils.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.js +2 -3
- package/{src → dist/src}/generators/init/lib/utils.d.ts +0 -1
- package/{src → dist/src}/generators/init/lib/utils.js +13 -16
- package/dist/src/generators/setup-paths-plugin/lib/utils.d.ts +1 -0
- package/dist/src/generators/setup-paths-plugin/lib/utils.js +2 -0
- package/{src → dist/src}/generators/setup-paths-plugin/setup-paths-plugin.d.ts +0 -1
- package/{src → dist/src}/migrations/update-20-0-4/add-vite-temp-files-to-git-ignore.d.ts +0 -1
- package/dist/src/migrations/update-20-0-4/add-vite-temp-files-to-git-ignore.md +12 -0
- package/{src → dist/src}/migrations/update-20-5-0/eslint-ignore-vite-temp-files.d.ts +0 -1
- package/dist/src/migrations/update-20-5-0/eslint-ignore-vite-temp-files.js +44 -0
- package/dist/src/migrations/update-20-5-0/eslint-ignore-vite-temp-files.md +45 -0
- package/{src → dist/src}/migrations/update-20-5-0/install-jiti.d.ts +0 -1
- package/dist/src/migrations/update-20-5-0/install-jiti.md +6 -0
- package/{src → dist/src}/migrations/update-20-5-0/update-resolve-conditions.d.ts +0 -1
- package/dist/src/migrations/update-20-5-0/update-resolve-conditions.md +42 -0
- package/{src → dist/src}/migrations/update-22-2-0/migrate-vitest-to-vitest-package.d.ts +0 -1
- package/{src → dist/src}/migrations/update-22-2-0/migrate-vitest-to-vitest-package.js +30 -14
- package/dist/src/migrations/update-23-0-0/ai-instructions-for-vite-8.md +254 -0
- package/dist/src/migrations/update-23-0-0/ensure-vitest-package-migration.d.ts +2 -0
- package/dist/src/migrations/update-23-0-0/ensure-vitest-package-migration.js +205 -0
- package/dist/src/migrations/update-23-0-0/ensure-vitest-package-migration.md +18 -0
- package/dist/src/migrations/update-23-0-0/rename-rollup-options-to-rolldown-options.d.ts +2 -0
- package/dist/src/migrations/update-23-0-0/rename-rollup-options-to-rolldown-options.js +47 -0
- package/dist/src/migrations/update-23-0-0/rename-rollup-options-to-rolldown-options.md +65 -0
- package/{src → dist/src}/plugins/plugin.d.ts +0 -10
- package/{src → dist/src}/plugins/plugin.js +22 -215
- package/dist/src/utils/deprecation.d.ts +7 -0
- package/dist/src/utils/deprecation.js +31 -0
- package/{src → dist/src}/utils/detect-ui-framework.d.ts +0 -1
- package/{src → dist/src}/utils/e2e-web-server-info-utils.d.ts +2 -3
- package/{src → dist/src}/utils/e2e-web-server-info-utils.js +9 -10
- package/{src → dist/src}/utils/ensure-dependencies.d.ts +0 -2
- package/{src → dist/src}/utils/ensure-dependencies.js +0 -16
- package/{src → dist/src}/utils/executor-utils.d.ts +0 -2
- package/{src → dist/src}/utils/executor-utils.js +3 -7
- package/{src → dist/src}/utils/find-vite-config.d.ts +0 -1
- package/{src → dist/src}/utils/generator-utils.d.ts +1 -4
- package/{src → dist/src}/utils/generator-utils.js +10 -38
- package/{src → dist/src}/utils/ignore-vite-temp-files.d.ts +0 -1
- package/{src → dist/src}/utils/ignore-vite-temp-files.js +7 -35
- package/{src → dist/src}/utils/nx-tsconfig-paths-find-file.d.ts +0 -1
- package/{src → dist/src}/utils/options-utils.d.ts +0 -1
- package/{src → dist/src}/utils/options-utils.js +0 -3
- package/{src → dist/src}/utils/test-files/test-vite-configs.d.ts +3 -4
- package/{src → dist/src}/utils/test-files/test-vite-configs.js +3 -3
- package/dist/src/utils/version-utils.d.ts +3 -0
- package/dist/src/utils/version-utils.js +26 -0
- package/dist/src/utils/versions.d.ts +11 -0
- package/dist/src/utils/versions.js +16 -0
- package/{src → dist/src}/utils/vite-config-edit-utils.d.ts +0 -1
- package/executors.json +12 -22
- package/generators.json +8 -13
- package/migrations.json +44 -7
- package/package.json +75 -30
- package/executors.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/plugin.d.ts.map +0 -1
- package/plugins/nx-copy-assets.plugin.d.ts.map +0 -1
- package/plugins/nx-tsconfig-paths.plugin.d.ts.map +0 -1
- package/plugins/nx-vite-build-coordination.plugin.d.ts.map +0 -1
- package/plugins/rollup-replace-files.plugin.d.ts.map +0 -1
- package/src/executors/build/build.impl.d.ts.map +0 -1
- package/src/executors/build/compat.d.ts.map +0 -1
- package/src/executors/dev-server/compat.d.ts.map +0 -1
- package/src/executors/dev-server/dev-server.impl.d.ts.map +0 -1
- package/src/executors/preview-server/compat.d.ts.map +0 -1
- package/src/executors/preview-server/preview-server.impl.d.ts.map +0 -1
- package/src/executors/test/compat.d.ts +0 -3
- package/src/executors/test/compat.d.ts.map +0 -1
- package/src/executors/test/compat.js +0 -6
- package/src/executors/test/lib/nx-reporter.d.ts +0 -19
- package/src/executors/test/lib/nx-reporter.d.ts.map +0 -1
- package/src/executors/test/lib/nx-reporter.js +0 -39
- package/src/executors/test/lib/utils.d.ts +0 -5
- package/src/executors/test/lib/utils.d.ts.map +0 -1
- package/src/executors/test/lib/utils.js +0 -68
- package/src/executors/test/schema.d.ts +0 -7
- package/src/executors/test/schema.json +0 -36
- package/src/executors/test/vitest.impl.d.ts +0 -10
- package/src/executors/test/vitest.impl.d.ts.map +0 -1
- package/src/executors/test/vitest.impl.js +0 -49
- package/src/generators/configuration/configuration.d.ts.map +0 -1
- package/src/generators/configuration/lib/convert-non-vite.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/convert-to-inferred.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/build-post-target-transformer.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/preview-post-target-transformer.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/serve-post-target-transformer.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/test-post-target-transformer.d.ts +0 -6
- package/src/generators/convert-to-inferred/lib/test-post-target-transformer.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/test-post-target-transformer.js +0 -56
- package/src/generators/convert-to-inferred/lib/utils.d.ts.map +0 -1
- package/src/generators/init/init.d.ts.map +0 -1
- package/src/generators/init/lib/utils.d.ts.map +0 -1
- package/src/generators/setup-paths-plugin/lib/utils.d.ts +0 -1
- package/src/generators/setup-paths-plugin/lib/utils.d.ts.map +0 -1
- package/src/generators/setup-paths-plugin/lib/utils.js +0 -0
- package/src/generators/setup-paths-plugin/setup-paths-plugin.d.ts.map +0 -1
- package/src/generators/vitest/files/tsconfig.spec.json__tmpl__ +0 -22
- package/src/generators/vitest/schema.d.ts +0 -15
- package/src/generators/vitest/schema.json +0 -65
- package/src/generators/vitest/vitest-generator.d.ts +0 -8
- package/src/generators/vitest/vitest-generator.d.ts.map +0 -1
- package/src/generators/vitest/vitest-generator.js +0 -51
- package/src/migrations/update-20-0-4/add-vite-temp-files-to-git-ignore.d.ts.map +0 -1
- package/src/migrations/update-20-5-0/eslint-ignore-vite-temp-files.d.ts.map +0 -1
- package/src/migrations/update-20-5-0/eslint-ignore-vite-temp-files.js +0 -76
- package/src/migrations/update-20-5-0/install-jiti.d.ts.map +0 -1
- package/src/migrations/update-20-5-0/update-resolve-conditions.d.ts.map +0 -1
- package/src/migrations/update-22-2-0/create-ai-instructions-for-vitest-4.d.ts +0 -3
- package/src/migrations/update-22-2-0/create-ai-instructions-for-vitest-4.d.ts.map +0 -1
- package/src/migrations/update-22-2-0/create-ai-instructions-for-vitest-4.js +0 -16
- package/src/migrations/update-22-2-0/migrate-vitest-to-vitest-package.d.ts.map +0 -1
- package/src/plugins/plugin.d.ts.map +0 -1
- package/src/utils/detect-ui-framework.d.ts.map +0 -1
- package/src/utils/e2e-web-server-info-utils.d.ts.map +0 -1
- package/src/utils/ensure-dependencies.d.ts.map +0 -1
- package/src/utils/executor-utils.d.ts.map +0 -1
- package/src/utils/find-vite-config.d.ts.map +0 -1
- package/src/utils/generator-utils.d.ts.map +0 -1
- package/src/utils/ignore-vite-temp-files.d.ts.map +0 -1
- package/src/utils/nx-tsconfig-paths-find-file.d.ts.map +0 -1
- package/src/utils/options-utils.d.ts.map +0 -1
- package/src/utils/test-files/test-vite-configs.d.ts.map +0 -1
- package/src/utils/version-utils.d.ts +0 -15
- package/src/utils/version-utils.d.ts.map +0 -1
- package/src/utils/version-utils.js +0 -87
- package/src/utils/versions.d.ts +0 -31
- package/src/utils/versions.d.ts.map +0 -1
- package/src/utils/versions.js +0 -36
- package/src/utils/vite-config-edit-utils.d.ts.map +0 -1
- /package/{LICENSE → dist/LICENSE} +0 -0
- /package/{plugin.js → dist/plugin.js} +0 -0
- /package/{plugins → dist/plugins}/nx-vite-build-coordination.plugin.js +0 -0
- /package/{plugins → dist/plugins}/rollup-replace-files.plugin.js +0 -0
- /package/{src → dist/src}/executors/build/compat.js +0 -0
- /package/{src → dist/src}/executors/build/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/dev-server/compat.js +0 -0
- /package/{src → dist/src}/executors/dev-server/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/preview-server/compat.js +0 -0
- /package/{src → dist/src}/executors/preview-server/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/configuration/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/configuration/schema.json +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/preview-post-target-transformer.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/serve-post-target-transformer.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/utils.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/schema.json +0 -0
- /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/init/schema.json +0 -0
- /package/{src → dist/src}/generators/setup-paths-plugin/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/setup-paths-plugin/schema.json +0 -0
- /package/{src → dist/src}/generators/setup-paths-plugin/setup-paths-plugin.js +0 -0
- /package/{src → dist/src}/migrations/update-20-0-4/add-vite-temp-files-to-git-ignore.js +0 -0
- /package/{src → dist/src}/migrations/update-20-5-0/install-jiti.js +0 -0
- /package/{src → dist/src}/migrations/update-20-5-0/update-resolve-conditions.js +0 -0
- /package/{src/migrations/update-22-2-0/files → dist/src/migrations/update-22-2-0}/ai-instructions-for-vitest-4.md +0 -0
- /package/{src → dist/src}/utils/detect-ui-framework.js +0 -0
- /package/{src → dist/src}/utils/find-vite-config.js +0 -0
- /package/{src → dist/src}/utils/nx-tsconfig-paths-find-file.js +0 -0
- /package/{src → dist/src}/utils/vite-config-edit-utils.js +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.findExistingJsBuildTargetInProject = findExistingJsBuildTargetInProject;
|
|
4
|
-
exports.addOrChangeTestTarget = addOrChangeTestTarget;
|
|
5
4
|
exports.addBuildTarget = addBuildTarget;
|
|
6
5
|
exports.addServeTarget = addServeTarget;
|
|
7
6
|
exports.addPreviewTarget = addPreviewTarget;
|
|
@@ -13,9 +12,9 @@ exports.normalizeViteConfigFilePathWithTree = normalizeViteConfigFilePathWithTre
|
|
|
13
12
|
exports.getViteConfigPathForProject = getViteConfigPathForProject;
|
|
14
13
|
exports.handleUnsupportedUserProvidedTargets = handleUnsupportedUserProvidedTargets;
|
|
15
14
|
exports.handleUnknownConfiguration = handleUnknownConfiguration;
|
|
15
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
16
16
|
const devkit_1 = require("@nx/devkit");
|
|
17
|
-
const
|
|
18
|
-
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
17
|
+
const internal_2 = require("@nx/js/internal");
|
|
19
18
|
const vite_config_edit_utils_1 = require("./vite-config-edit-utils");
|
|
20
19
|
function findExistingJsBuildTargetInProject(targets) {
|
|
21
20
|
const output = {};
|
|
@@ -64,37 +63,10 @@ function findExistingJsBuildTargetInProject(targets) {
|
|
|
64
63
|
}
|
|
65
64
|
return output;
|
|
66
65
|
}
|
|
67
|
-
function addOrChangeTestTarget(tree, options, hasPlugin) {
|
|
68
|
-
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
69
|
-
hasPlugin = nxJson.plugins?.some((p) => typeof p === 'string'
|
|
70
|
-
? p === '@nx/vite/plugin'
|
|
71
|
-
: p.plugin === '@nx/vite/plugin' || hasPlugin);
|
|
72
|
-
if (hasPlugin) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
const project = (0, devkit_1.readProjectConfiguration)(tree, options.project);
|
|
76
|
-
const target = options.testTarget ?? 'test';
|
|
77
|
-
const reportsDirectory = (0, devkit_1.joinPathFragments)((0, devkit_1.offsetFromRoot)(project.root), 'coverage', project.root === '.' ? options.project : project.root);
|
|
78
|
-
const testOptions = {
|
|
79
|
-
reportsDirectory,
|
|
80
|
-
};
|
|
81
|
-
project.targets ??= {};
|
|
82
|
-
if (project.targets[target]) {
|
|
83
|
-
throw new Error(`Target "${target}" already exists in the project.`);
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
project.targets[target] = {
|
|
87
|
-
executor: '@nx/vite:test',
|
|
88
|
-
outputs: ['{options.reportsDirectory}'],
|
|
89
|
-
options: testOptions,
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
(0, devkit_1.updateProjectConfiguration)(tree, options.project, project);
|
|
93
|
-
}
|
|
94
66
|
function addBuildTarget(tree, options, target) {
|
|
95
|
-
(0,
|
|
67
|
+
(0, internal_1.addBuildTargetDefaults)(tree, '@nx/vite:build');
|
|
96
68
|
const project = (0, devkit_1.readProjectConfiguration)(tree, options.project);
|
|
97
|
-
const isTsSolutionSetup = (0,
|
|
69
|
+
const isTsSolutionSetup = (0, internal_2.isUsingTsSolutionSetup)(tree);
|
|
98
70
|
const buildOptions = {
|
|
99
71
|
outputPath: isTsSolutionSetup
|
|
100
72
|
? (0, devkit_1.joinPathFragments)(project.root, 'dist')
|
|
@@ -181,7 +153,7 @@ function addPreviewTarget(tree, options, serveTarget) {
|
|
|
181
153
|
function editTsConfig(tree, options) {
|
|
182
154
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.project);
|
|
183
155
|
let tsconfigPath = (0, devkit_1.joinPathFragments)(projectConfig.root, 'tsconfig.json');
|
|
184
|
-
const isTsSolutionSetup = (0,
|
|
156
|
+
const isTsSolutionSetup = (0, internal_2.isUsingTsSolutionSetup)(tree);
|
|
185
157
|
if (isTsSolutionSetup) {
|
|
186
158
|
tsconfigPath = [
|
|
187
159
|
(0, devkit_1.joinPathFragments)(projectConfig.root, 'tsconfig.app.json'),
|
|
@@ -272,7 +244,7 @@ function createOrEditViteConfig(tree, options, onlyVitest, projectAlreadyHasVite
|
|
|
272
244
|
const viteConfigPath = vitestFileName
|
|
273
245
|
? `${projectRoot}/vitest.config.${extension}`
|
|
274
246
|
: `${projectRoot}/vite.config.${extension}`;
|
|
275
|
-
const isTsSolutionSetup = (0,
|
|
247
|
+
const isTsSolutionSetup = (0, internal_2.isUsingTsSolutionSetup)(tree);
|
|
276
248
|
const buildOutDir = isTsSolutionSetup
|
|
277
249
|
? './dist'
|
|
278
250
|
: projectRoot === '.'
|
|
@@ -299,9 +271,9 @@ function createOrEditViteConfig(tree, options, onlyVitest, projectAlreadyHasVite
|
|
|
299
271
|
// Don't forget to update your package.json as well.
|
|
300
272
|
formats: ['es' as const]
|
|
301
273
|
},
|
|
302
|
-
|
|
274
|
+
rolldownOptions: {
|
|
303
275
|
// External packages that should not be bundled into your library.
|
|
304
|
-
external: [${options.
|
|
276
|
+
external: [${options.rolldownOptionsExternal ?? ''}]
|
|
305
277
|
},
|
|
306
278
|
},`
|
|
307
279
|
: ` build: {
|
|
@@ -498,8 +470,8 @@ function handleViteConfigFileExists(tree, viteConfigPath, options, buildOption,
|
|
|
498
470
|
fileName: 'index',
|
|
499
471
|
formats: ['es'],
|
|
500
472
|
},
|
|
501
|
-
|
|
502
|
-
external: options.
|
|
473
|
+
rolldownOptions: {
|
|
474
|
+
external: options.rolldownOptionsExternal ?? [],
|
|
503
475
|
},
|
|
504
476
|
outDir: buildOutDir,
|
|
505
477
|
reportCompressedSize: true,
|
|
@@ -2,4 +2,3 @@ import { type Tree } from '@nx/devkit';
|
|
|
2
2
|
export declare function ignoreViteTempFiles(tree: Tree, projectRoot?: string | undefined): Promise<void>;
|
|
3
3
|
export declare function addViteTempFilesToGitIgnore(tree: Tree): void;
|
|
4
4
|
export declare function isEslintInstalled(tree: Tree): boolean;
|
|
5
|
-
//# sourceMappingURL=ignore-vite-temp-files.d.ts.map
|
|
@@ -1,37 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
3
|
exports.ignoreViteTempFiles = ignoreViteTempFiles;
|
|
37
4
|
exports.addViteTempFilesToGitIgnore = addViteTempFilesToGitIgnore;
|
|
@@ -57,11 +24,16 @@ async function ignoreViteTempFilesInEslintConfig(tree, projectRoot) {
|
|
|
57
24
|
return;
|
|
58
25
|
}
|
|
59
26
|
(0, devkit_1.ensurePackage)('@nx/eslint', versions_1.nxVersion);
|
|
60
|
-
|
|
27
|
+
// Use CommonJS `require` rather than a dynamic ESM `import`: `ensurePackage`
|
|
28
|
+
// makes the on-demand-installed package available via `Module._initPaths`,
|
|
29
|
+
// which `require()` honors but ESM resolution does not. Under nodenext, a
|
|
30
|
+
// dynamic `import()` is preserved as a true ESM dynamic import, so it can't
|
|
31
|
+
// see the temp install — generators that go down this path crash with
|
|
32
|
+
// `Cannot find package '@nx/eslint'`.
|
|
33
|
+
const { addIgnoresToLintConfig, isEslintConfigSupported, useFlatConfig, } = require('@nx/eslint/internal');
|
|
61
34
|
if (!isEslintConfigSupported(tree)) {
|
|
62
35
|
return;
|
|
63
36
|
}
|
|
64
|
-
const { useFlatConfig } = await Promise.resolve().then(() => __importStar(require('@nx/eslint/src/utils/flat-config')));
|
|
65
37
|
const isUsingFlatConfig = useFlatConfig(tree);
|
|
66
38
|
if (!projectRoot && !isUsingFlatConfig) {
|
|
67
39
|
// root eslintrc files ignore all files and the root eslintrc files add
|
|
@@ -15,4 +15,3 @@ export declare function getViteServerProxyConfigPath(nxProxyConfig: string | und
|
|
|
15
15
|
export declare function getViteServerOptions(options: ViteDevServerExecutorOptions, context: ExecutorContext): Promise<Record<string, unknown>>;
|
|
16
16
|
export declare function getProxyConfig(context: ExecutorContext, proxyConfig?: string): Record<string, string | unknown> | undefined;
|
|
17
17
|
export declare function getNxTargetOptions(target: string, context: ExecutorContext): any;
|
|
18
|
-
//# sourceMappingURL=options-utils.d.ts.map
|
|
@@ -25,9 +25,6 @@ function normalizeViteConfigFilePath(contextRoot, projectRoot, configFile) {
|
|
|
25
25
|
if ((0, fs_1.existsSync)((0, devkit_1.joinPathFragments)(contextRoot, projectRoot, `vite.config.${ext}`))) {
|
|
26
26
|
return (0, devkit_1.joinPathFragments)(contextRoot, projectRoot, `vite.config.${ext}`);
|
|
27
27
|
}
|
|
28
|
-
else if ((0, fs_1.existsSync)((0, devkit_1.joinPathFragments)(contextRoot, projectRoot, `vitest.config.${ext}`))) {
|
|
29
|
-
return (0, devkit_1.joinPathFragments)(contextRoot, projectRoot, `vitest.config.${ext}`);
|
|
30
|
-
}
|
|
31
28
|
}
|
|
32
29
|
}
|
|
33
30
|
function getProjectTsConfigPath(projectRoot) {
|
|
@@ -5,8 +5,8 @@ export declare const conditionalConfig = "\n /// <reference types=\"vitest\"
|
|
|
5
5
|
export declare const configNoDefineConfig = "\n /// <reference types=\"vitest\" />\n import { defineConfig } from 'vite';\n import react from '@vitejs/plugin-react';\n import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';\n\n export default {\n plugins: [\n react(),\n nxViteTsPaths(),\n ],\n };\n ";
|
|
6
6
|
export declare const noBuildOptionsHasTestOption = "\n /// <reference types=\"vitest\" />\n import { defineConfig } from 'vite';\n import react from '@vitejs/plugin-react';\n import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';\n\n export default defineConfig({\n \n cacheDir: '../../node_modules/.vitest',\n plugins: [\n react(),\n nxViteTsPaths(),\n ],\n\n test: {\n globals: true,\n environment: 'jsdom',\n include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],\n },\n\n });\n ";
|
|
7
7
|
export declare const someBuildOptionsSomeTestOption = "\n /// <reference types=\"vitest\" />\n import { defineConfig } from 'vite';\n import react from '@vitejs/plugin-react';\n import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';\n\n export default defineConfig({\n plugins: [\n react(),\n nxViteTsPaths(),\n ],\n\n test: {\n my: 'option',\n },\n\n build: {\n my: 'option',\n }\n\n });\n ";
|
|
8
|
-
export declare const hasEverything = "\n /// <reference types=\"vitest\" />\n import { defineConfig } from 'vite';\n import react from '@vitejs/plugin-react';\n import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';\n import dts from 'vite-plugin-dts';\n import { joinPathFragments } from '@nx/devkit';\n\n export default defineConfig({\n cacheDir: '../../node_modules/.vitest',\n plugins: [\n dts({ entryRoot: 'src', tsConfigFilePath: joinPathFragments(__dirname, 'tsconfig.lib.json'), skipDiagnostics: true }),\n react(),\n nxViteTsPaths(),\n ],\n \n // Configuration for building your library.\n // See: https://vite.dev/guide/build.html#library-mode\n build: {\n lib: {\n // Could also be a dictionary or array of multiple entry points.\n entry: 'src/index.ts',\n name: 'pure-libs-react-vite',\n fileName: 'index',\n // Change this to the formats you want to support.\n // Don't forget to update your package.json as well.\n formats: ['es'],\n },\n
|
|
9
|
-
export declare const buildOption = "\n // Configuration for building your library.\n // See: https://vite.dev/guide/build.html#library-mode\n build: {\n lib: {\n // Could also be a dictionary or array of multiple entry points.\n entry: 'src/index.ts',\n name: 'my-app',\n fileName: 'index',\n // Change this to the formats you want to support.\n // Don't forget to update your package.json as well.\n formats: ['es']\n },\n
|
|
8
|
+
export declare const hasEverything = "\n /// <reference types=\"vitest\" />\n import { defineConfig } from 'vite';\n import react from '@vitejs/plugin-react';\n import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';\n import dts from 'vite-plugin-dts';\n import { joinPathFragments } from '@nx/devkit';\n\n export default defineConfig({\n cacheDir: '../../node_modules/.vitest',\n plugins: [\n dts({ entryRoot: 'src', tsConfigFilePath: joinPathFragments(__dirname, 'tsconfig.lib.json'), skipDiagnostics: true }),\n react(),\n nxViteTsPaths(),\n ],\n \n // Configuration for building your library.\n // See: https://vite.dev/guide/build.html#library-mode\n build: {\n lib: {\n // Could also be a dictionary or array of multiple entry points.\n entry: 'src/index.ts',\n name: 'pure-libs-react-vite',\n fileName: 'index',\n // Change this to the formats you want to support.\n // Don't forget to update your package.json as well.\n formats: ['es'],\n },\n rolldownOptions: {\n // External packages that should not be bundled into your library.\n external: ['react', 'react-dom', 'react/jsx-runtime'],\n },\n },\n \n test: {\n globals: true,\n environment: 'jsdom',\n include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],\n },\n });\n ";
|
|
9
|
+
export declare const buildOption = "\n // Configuration for building your library.\n // See: https://vite.dev/guide/build.html#library-mode\n build: {\n lib: {\n // Could also be a dictionary or array of multiple entry points.\n entry: 'src/index.ts',\n name: 'my-app',\n fileName: 'index',\n // Change this to the formats you want to support.\n // Don't forget to update your package.json as well.\n formats: ['es']\n },\n rolldownOptions: {\n // External packages that should not be bundled into your library.\n external: ['react', 'react-dom', 'react/jsx-runtime']\n }\n },";
|
|
10
10
|
export declare const buildOptionObject: {
|
|
11
11
|
lib: {
|
|
12
12
|
entry: string;
|
|
@@ -14,7 +14,7 @@ export declare const buildOptionObject: {
|
|
|
14
14
|
fileName: string;
|
|
15
15
|
formats: string[];
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
rolldownOptions: {
|
|
18
18
|
external: string[];
|
|
19
19
|
};
|
|
20
20
|
};
|
|
@@ -26,4 +26,3 @@ export declare const testOptionObject: {
|
|
|
26
26
|
};
|
|
27
27
|
export declare const imports: string[];
|
|
28
28
|
export declare const plugins: string[];
|
|
29
|
-
//# sourceMappingURL=test-vite-configs.d.ts.map
|
|
@@ -157,7 +157,7 @@ exports.hasEverything = `
|
|
|
157
157
|
// Don't forget to update your package.json as well.
|
|
158
158
|
formats: ['es'],
|
|
159
159
|
},
|
|
160
|
-
|
|
160
|
+
rolldownOptions: {
|
|
161
161
|
// External packages that should not be bundled into your library.
|
|
162
162
|
external: ['react', 'react-dom', 'react/jsx-runtime'],
|
|
163
163
|
},
|
|
@@ -183,7 +183,7 @@ exports.buildOption = `
|
|
|
183
183
|
// Don't forget to update your package.json as well.
|
|
184
184
|
formats: ['es']
|
|
185
185
|
},
|
|
186
|
-
|
|
186
|
+
rolldownOptions: {
|
|
187
187
|
// External packages that should not be bundled into your library.
|
|
188
188
|
external: ['react', 'react-dom', 'react/jsx-runtime']
|
|
189
189
|
}
|
|
@@ -195,7 +195,7 @@ exports.buildOptionObject = {
|
|
|
195
195
|
fileName: 'index',
|
|
196
196
|
formats: ['es'],
|
|
197
197
|
},
|
|
198
|
-
|
|
198
|
+
rolldownOptions: {
|
|
199
199
|
external: ['react', 'react-dom', 'react/jsx-runtime'],
|
|
200
200
|
},
|
|
201
201
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getInstalledViteVersion = getInstalledViteVersion;
|
|
4
|
+
exports.getInstalledViteMajorVersion = getInstalledViteMajorVersion;
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
const semver_1 = require("semver");
|
|
7
|
+
function getInstalledViteVersion(tree) {
|
|
8
|
+
const installedViteVersion = (0, devkit_1.getDependencyVersionFromPackageJson)(tree, 'vite');
|
|
9
|
+
if (!installedViteVersion ||
|
|
10
|
+
installedViteVersion === 'latest' ||
|
|
11
|
+
installedViteVersion === 'beta') {
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
return (0, semver_1.clean)(installedViteVersion) ?? (0, semver_1.coerce)(installedViteVersion)?.version;
|
|
15
|
+
}
|
|
16
|
+
function getInstalledViteMajorVersion(tree) {
|
|
17
|
+
const installedViteVersion = getInstalledViteVersion(tree);
|
|
18
|
+
if (!installedViteVersion) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
const installedMajor = (0, semver_1.major)(installedViteVersion);
|
|
22
|
+
if (installedMajor < 5 || installedMajor > 8) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
return installedMajor;
|
|
26
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const nxVersion: any;
|
|
2
|
+
export declare const viteVersion = "^8.0.0";
|
|
3
|
+
export declare const viteV7Version = "^7.0.0";
|
|
4
|
+
export declare const viteV6Version = "^6.0.0";
|
|
5
|
+
export declare const viteV5Version = "^5.0.0";
|
|
6
|
+
export declare const vitePluginReactVersion = "^6.0.0";
|
|
7
|
+
export declare const vitePluginReactV4Version = "^4.2.0";
|
|
8
|
+
export declare const vitePluginReactSwcVersion = "^4.3.0";
|
|
9
|
+
export declare const vitePluginDtsVersion = "~4.5.0";
|
|
10
|
+
export declare const ajvVersion = "^8.0.0";
|
|
11
|
+
export declare const jitiVersion = "2.4.2";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.jitiVersion = exports.ajvVersion = exports.vitePluginDtsVersion = exports.vitePluginReactSwcVersion = exports.vitePluginReactV4Version = exports.vitePluginReactVersion = exports.viteV5Version = exports.viteV6Version = exports.viteV7Version = exports.viteVersion = exports.nxVersion = void 0;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
exports.nxVersion = require((0, path_1.join)('@nx/vite', 'package.json')).version;
|
|
6
|
+
// Also update @nx/remix/utils/versions when changing vite version
|
|
7
|
+
exports.viteVersion = '^8.0.0';
|
|
8
|
+
exports.viteV7Version = '^7.0.0';
|
|
9
|
+
exports.viteV6Version = '^6.0.0';
|
|
10
|
+
exports.viteV5Version = '^5.0.0';
|
|
11
|
+
exports.vitePluginReactVersion = '^6.0.0';
|
|
12
|
+
exports.vitePluginReactV4Version = '^4.2.0';
|
|
13
|
+
exports.vitePluginReactSwcVersion = '^4.3.0';
|
|
14
|
+
exports.vitePluginDtsVersion = '~4.5.0';
|
|
15
|
+
exports.ajvVersion = '^8.0.0';
|
|
16
|
+
exports.jitiVersion = '2.4.2';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { Tree } from '@nx/devkit';
|
|
2
2
|
import { TargetFlags } from './generator-utils';
|
|
3
3
|
export declare function ensureViteConfigIsCorrect(tree: Tree, path: string, buildConfigString: string, buildConfigObject: {}, imports: string[], plugins: string[], testConfigString: string, testConfigObject: {}, cacheDir: string, projectAlreadyHasViteTargets?: TargetFlags): boolean;
|
|
4
|
-
//# sourceMappingURL=vite-config-edit-utils.d.ts.map
|
package/executors.json
CHANGED
|
@@ -1,45 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"builders": {
|
|
3
3
|
"dev-server": {
|
|
4
|
-
"implementation": "./src/executors/dev-server/compat",
|
|
5
|
-
"schema": "./src/executors/dev-server/schema.json",
|
|
4
|
+
"implementation": "./dist/src/executors/dev-server/compat",
|
|
5
|
+
"schema": "./dist/src/executors/dev-server/schema.json",
|
|
6
6
|
"description": "Vite dev server."
|
|
7
7
|
},
|
|
8
8
|
"build": {
|
|
9
|
-
"implementation": "./src/executors/build/compat",
|
|
10
|
-
"schema": "./src/executors/build/schema.json",
|
|
9
|
+
"implementation": "./dist/src/executors/build/compat",
|
|
10
|
+
"schema": "./dist/src/executors/build/schema.json",
|
|
11
11
|
"description": "Build with Vite."
|
|
12
12
|
},
|
|
13
|
-
"test": {
|
|
14
|
-
"implementation": "./src/executors/test/compat",
|
|
15
|
-
"schema": "./src/executors/test/schema.json",
|
|
16
|
-
"description": "Test with Vitest"
|
|
17
|
-
},
|
|
18
13
|
"preview-server": {
|
|
19
|
-
"implementation": "./src/executors/preview-server/compat",
|
|
20
|
-
"schema": "./src/executors/preview-server/schema.json",
|
|
14
|
+
"implementation": "./dist/src/executors/preview-server/compat",
|
|
15
|
+
"schema": "./dist/src/executors/preview-server/schema.json",
|
|
21
16
|
"description": "Vite preview server"
|
|
22
17
|
}
|
|
23
18
|
},
|
|
24
19
|
"executors": {
|
|
25
20
|
"dev-server": {
|
|
26
|
-
"implementation": "./src/executors/dev-server/dev-server.impl",
|
|
27
|
-
"schema": "./src/executors/dev-server/schema.json",
|
|
21
|
+
"implementation": "./dist/src/executors/dev-server/dev-server.impl",
|
|
22
|
+
"schema": "./dist/src/executors/dev-server/schema.json",
|
|
28
23
|
"description": "Vite dev server."
|
|
29
24
|
},
|
|
30
25
|
"build": {
|
|
31
|
-
"implementation": "./src/executors/build/build.impl",
|
|
32
|
-
"schema": "./src/executors/build/schema.json",
|
|
26
|
+
"implementation": "./dist/src/executors/build/build.impl",
|
|
27
|
+
"schema": "./dist/src/executors/build/schema.json",
|
|
33
28
|
"description": "Build with Vite."
|
|
34
29
|
},
|
|
35
|
-
"test": {
|
|
36
|
-
"implementation": "./src/executors/test/vitest.impl",
|
|
37
|
-
"schema": "./src/executors/test/schema.json",
|
|
38
|
-
"description": "Test with Vitest"
|
|
39
|
-
},
|
|
40
30
|
"preview-server": {
|
|
41
|
-
"implementation": "./src/executors/preview-server/preview-server.impl",
|
|
42
|
-
"schema": "./src/executors/preview-server/schema.json",
|
|
31
|
+
"implementation": "./dist/src/executors/preview-server/preview-server.impl",
|
|
32
|
+
"schema": "./dist/src/executors/preview-server/schema.json",
|
|
43
33
|
"description": "Vite preview server"
|
|
44
34
|
}
|
|
45
35
|
}
|
package/generators.json
CHANGED
|
@@ -3,33 +3,28 @@
|
|
|
3
3
|
"version": "0.1",
|
|
4
4
|
"generators": {
|
|
5
5
|
"init": {
|
|
6
|
-
"factory": "./src/generators/init/init#initGeneratorInternal",
|
|
7
|
-
"schema": "./src/generators/init/schema.json",
|
|
6
|
+
"factory": "./dist/src/generators/init/init#initGeneratorInternal",
|
|
7
|
+
"schema": "./dist/src/generators/init/schema.json",
|
|
8
8
|
"description": "Initialize Vite in the workspace.",
|
|
9
9
|
"aliases": ["ng-add"],
|
|
10
10
|
"hidden": true
|
|
11
11
|
},
|
|
12
12
|
"configuration": {
|
|
13
|
-
"factory": "./src/generators/configuration/configuration#viteConfigurationGeneratorInternal",
|
|
14
|
-
"schema": "./src/generators/configuration/schema.json",
|
|
13
|
+
"factory": "./dist/src/generators/configuration/configuration#viteConfigurationGeneratorInternal",
|
|
14
|
+
"schema": "./dist/src/generators/configuration/schema.json",
|
|
15
15
|
"description": "Add Vite configuration to an application.",
|
|
16
16
|
"aliases": ["config"],
|
|
17
17
|
"hidden": false
|
|
18
18
|
},
|
|
19
19
|
"setup-paths-plugin": {
|
|
20
|
-
"factory": "./src/generators/setup-paths-plugin/setup-paths-plugin",
|
|
21
|
-
"schema": "./src/generators/setup-paths-plugin/schema.json",
|
|
20
|
+
"factory": "./dist/src/generators/setup-paths-plugin/setup-paths-plugin",
|
|
21
|
+
"schema": "./dist/src/generators/setup-paths-plugin/schema.json",
|
|
22
22
|
"description": "Sets up the nxViteTsPaths plugin to enable support for workspace libraries."
|
|
23
23
|
},
|
|
24
24
|
"convert-to-inferred": {
|
|
25
|
-
"factory": "./src/generators/convert-to-inferred/convert-to-inferred",
|
|
26
|
-
"schema": "./src/generators/convert-to-inferred/schema.json",
|
|
25
|
+
"factory": "./dist/src/generators/convert-to-inferred/convert-to-inferred",
|
|
26
|
+
"schema": "./dist/src/generators/convert-to-inferred/schema.json",
|
|
27
27
|
"description": "Convert existing Vite project(s) using `@nx/vite:*` executors to use `@nx/vite/plugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target."
|
|
28
|
-
},
|
|
29
|
-
"vitest": {
|
|
30
|
-
"factory": "./src/generators/vitest/vitest-generator",
|
|
31
|
-
"schema": "./src/generators/vitest/schema.json",
|
|
32
|
-
"description": "Generate a vitest configuration."
|
|
33
28
|
}
|
|
34
29
|
}
|
|
35
30
|
}
|
package/migrations.json
CHANGED
|
@@ -3,27 +3,27 @@
|
|
|
3
3
|
"update-20-0-4": {
|
|
4
4
|
"version": "20.0.4-beta.0",
|
|
5
5
|
"description": "Add gitignore entry for temporary vite config files.",
|
|
6
|
-
"implementation": "./src/migrations/update-20-0-4/add-vite-temp-files-to-git-ignore"
|
|
6
|
+
"implementation": "./dist/src/migrations/update-20-0-4/add-vite-temp-files-to-git-ignore"
|
|
7
7
|
},
|
|
8
8
|
"update-20-0-6": {
|
|
9
9
|
"version": "20.0.6-beta.0",
|
|
10
10
|
"description": "Add gitignore entry for temporary vite config files and remove previous incorrect glob.",
|
|
11
|
-
"implementation": "./src/migrations/update-20-0-4/add-vite-temp-files-to-git-ignore"
|
|
11
|
+
"implementation": "./dist/src/migrations/update-20-0-4/add-vite-temp-files-to-git-ignore"
|
|
12
12
|
},
|
|
13
13
|
"update-20-5-0-install-jiti": {
|
|
14
14
|
"version": "20.5.0-beta.2",
|
|
15
15
|
"description": "Install jiti as a devDependency to allow vite to parse TS postcss files.",
|
|
16
|
-
"implementation": "./src/migrations/update-20-5-0/install-jiti"
|
|
16
|
+
"implementation": "./dist/src/migrations/update-20-5-0/install-jiti"
|
|
17
17
|
},
|
|
18
18
|
"update-20-5-0-update-resolve-conditions": {
|
|
19
19
|
"version": "20.5.0-beta.3",
|
|
20
20
|
"description": "Update resolve.conditions to include defaults that are no longer provided by Vite.",
|
|
21
|
-
"implementation": "./src/migrations/update-20-5-0/update-resolve-conditions"
|
|
21
|
+
"implementation": "./dist/src/migrations/update-20-5-0/update-resolve-conditions"
|
|
22
22
|
},
|
|
23
23
|
"eslint-ignore-vite-temp-files": {
|
|
24
24
|
"version": "20.5.0-beta.3",
|
|
25
25
|
"description": "Add vite config temporary files to the ESLint configuration ignore patterns if ESLint is used.",
|
|
26
|
-
"implementation": "./src/migrations/update-20-5-0/eslint-ignore-vite-temp-files"
|
|
26
|
+
"implementation": "./dist/src/migrations/update-20-5-0/eslint-ignore-vite-temp-files"
|
|
27
27
|
},
|
|
28
28
|
"update-22-2-0": {
|
|
29
29
|
"version": "22.2.0-beta.1",
|
|
@@ -31,12 +31,33 @@
|
|
|
31
31
|
"vitest": ">=4.0.0"
|
|
32
32
|
},
|
|
33
33
|
"description": "Create AI Instructions to help migrate users workspaces past breaking changes for Vitest 4.",
|
|
34
|
-
"
|
|
34
|
+
"prompt": "./dist/src/migrations/update-22-2-0/ai-instructions-for-vitest-4.md"
|
|
35
35
|
},
|
|
36
36
|
"migrate-vitest-to-vitest-package": {
|
|
37
37
|
"version": "22.2.0-beta.2",
|
|
38
38
|
"description": "Migrate Vitest usage from @nx/vite to @nx/vitest package.",
|
|
39
|
-
"implementation": "./src/migrations/update-22-2-0/migrate-vitest-to-vitest-package"
|
|
39
|
+
"implementation": "./dist/src/migrations/update-22-2-0/migrate-vitest-to-vitest-package"
|
|
40
|
+
},
|
|
41
|
+
"ensure-vitest-package-migration-23": {
|
|
42
|
+
"version": "23.0.0-beta.10",
|
|
43
|
+
"description": "Safety net: ensure any remaining @nx/vite:test executor usages are swapped to @nx/vitest:test and @nx/vitest is installed.",
|
|
44
|
+
"implementation": "./dist/src/migrations/update-23-0-0/ensure-vitest-package-migration"
|
|
45
|
+
},
|
|
46
|
+
"rename-rollup-options-to-rolldown-options": {
|
|
47
|
+
"version": "23.0.0-beta.10",
|
|
48
|
+
"requires": {
|
|
49
|
+
"vite": ">=8.0.0"
|
|
50
|
+
},
|
|
51
|
+
"description": "Rename `rollupOptions` to `rolldownOptions` in vite config files (top-level and inside `environments`). Vite 8 replaced Rollup with Rolldown.",
|
|
52
|
+
"implementation": "./dist/src/migrations/update-23-0-0/rename-rollup-options-to-rolldown-options"
|
|
53
|
+
},
|
|
54
|
+
"create-ai-instructions-for-vite-8": {
|
|
55
|
+
"version": "23.0.0-beta.10",
|
|
56
|
+
"requires": {
|
|
57
|
+
"vite": ">=8.0.0"
|
|
58
|
+
},
|
|
59
|
+
"description": "Create AI Instructions to help migrate users workspaces past breaking changes for Vite 8.",
|
|
60
|
+
"prompt": "./dist/src/migrations/update-23-0-0/ai-instructions-for-vite-8.md"
|
|
40
61
|
}
|
|
41
62
|
},
|
|
42
63
|
"packageJsonUpdates": {
|
|
@@ -149,6 +170,22 @@
|
|
|
149
170
|
"alwaysAddToPackageJson": false
|
|
150
171
|
}
|
|
151
172
|
}
|
|
173
|
+
},
|
|
174
|
+
"23.0.0": {
|
|
175
|
+
"version": "23.0.0-beta.10",
|
|
176
|
+
"packages": {
|
|
177
|
+
"vite": {
|
|
178
|
+
"version": "^8.0.0",
|
|
179
|
+
"alwaysAddToPackageJson": false
|
|
180
|
+
},
|
|
181
|
+
"@vitejs/plugin-react": {
|
|
182
|
+
"version": "^6.0.0",
|
|
183
|
+
"alwaysAddToPackageJson": false
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"incompatibleWith": {
|
|
187
|
+
"@remix-run/dev": "*"
|
|
188
|
+
}
|
|
152
189
|
}
|
|
153
190
|
}
|
|
154
191
|
}
|