@nx/vitest 22.7.0-beta.2 → 22.7.0-beta.4
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/vitest",
|
|
3
3
|
"description": "The Nx Plugin for Vitest to enable fast unit testing with Vitest.",
|
|
4
|
-
"version": "22.7.0-beta.
|
|
4
|
+
"version": "22.7.0-beta.4",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"executors": "./executors.json",
|
|
53
53
|
"generators": "./generators.json",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@nx/devkit": "22.7.0-beta.
|
|
56
|
-
"@nx/js": "22.7.0-beta.
|
|
55
|
+
"@nx/devkit": "22.7.0-beta.4",
|
|
56
|
+
"@nx/js": "22.7.0-beta.4",
|
|
57
57
|
"tslib": "^2.3.0",
|
|
58
58
|
"semver": "^7.6.3",
|
|
59
59
|
"@phenomnomnominal/tsquery": "~6.1.4"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"nx": "22.7.0-beta.
|
|
74
|
+
"nx": "22.7.0-beta.4"
|
|
75
75
|
},
|
|
76
76
|
"types": "./src/index.d.ts"
|
|
77
77
|
}
|
|
@@ -3,6 +3,5 @@ import { InitGeneratorSchema } from './schema';
|
|
|
3
3
|
export declare function updateDependencies(tree: Tree, schema: InitGeneratorSchema): GeneratorCallback;
|
|
4
4
|
export declare function updateNxJsonSettings(tree: Tree): void;
|
|
5
5
|
export declare function initGenerator(tree: Tree, schema: InitGeneratorSchema): Promise<GeneratorCallback>;
|
|
6
|
-
export declare function initGeneratorInternal(tree: Tree, schema: InitGeneratorSchema): Promise<GeneratorCallback>;
|
|
7
6
|
export default initGenerator;
|
|
8
7
|
//# sourceMappingURL=init.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/vitest/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EACT,KAAK,iBAAiB,EAOvB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAW/C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,mBAAmB,qBAmBzE;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,QA4B9C;AAED,
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/vitest/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EACT,KAAK,iBAAiB,EAOvB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAW/C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,mBAAmB,qBAmBzE;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,QA4B9C;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,mBAAmB,8BAkC1E;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.updateDependencies = updateDependencies;
|
|
4
4
|
exports.updateNxJsonSettings = updateNxJsonSettings;
|
|
5
5
|
exports.initGenerator = initGenerator;
|
|
6
|
-
exports.initGeneratorInternal = initGeneratorInternal;
|
|
7
6
|
const devkit_1 = require("@nx/devkit");
|
|
8
7
|
const add_plugin_1 = require("@nx/devkit/src/utils/add-plugin");
|
|
9
8
|
const versions_1 = require("../../utils/versions");
|
|
@@ -42,10 +41,7 @@ function updateNxJsonSettings(tree) {
|
|
|
42
41
|
}
|
|
43
42
|
(0, devkit_1.updateNxJson)(tree, nxJson);
|
|
44
43
|
}
|
|
45
|
-
function initGenerator(tree, schema) {
|
|
46
|
-
return initGeneratorInternal(tree, { addPlugin: false, ...schema });
|
|
47
|
-
}
|
|
48
|
-
async function initGeneratorInternal(tree, schema) {
|
|
44
|
+
async function initGenerator(tree, schema) {
|
|
49
45
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
50
46
|
const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
51
47
|
nxJson.useInferencePlugins !== false;
|