@nx/nest 20.2.2 → 20.3.0-beta.1
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 +5 -5
- package/src/generators/application/application.js +0 -2
- package/src/generators/application/schema.d.ts +1 -0
- package/src/generators/application/schema.json +5 -2
- package/src/generators/init/init.js +0 -2
- package/src/generators/library/library.js +0 -2
- package/src/generators/library/schema.json +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nest",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.3.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Nest contains executors and generators for allowing your workspace to create powerful Nest best in class APIs.",
|
|
6
6
|
"repository": {
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@nestjs/schematics": "^9.1.0",
|
|
35
|
-
"@nx/devkit": "20.
|
|
36
|
-
"@nx/js": "20.
|
|
37
|
-
"@nx/eslint": "20.
|
|
38
|
-
"@nx/node": "20.
|
|
35
|
+
"@nx/devkit": "20.3.0-beta.1",
|
|
36
|
+
"@nx/js": "20.3.0-beta.1",
|
|
37
|
+
"@nx/eslint": "20.3.0-beta.1",
|
|
38
|
+
"@nx/node": "20.3.0-beta.1",
|
|
39
39
|
"tslib": "^2.3.0"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.applicationGenerator = applicationGenerator;
|
|
4
4
|
exports.applicationGeneratorInternal = applicationGeneratorInternal;
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
7
6
|
const node_1 = require("@nx/node");
|
|
8
7
|
const init_1 = require("../init/init");
|
|
9
8
|
const lib_1 = require("./lib");
|
|
@@ -15,7 +14,6 @@ async function applicationGenerator(tree, rawOptions) {
|
|
|
15
14
|
});
|
|
16
15
|
}
|
|
17
16
|
async function applicationGeneratorInternal(tree, rawOptions) {
|
|
18
|
-
(0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'nest', 'application');
|
|
19
17
|
const options = await (0, lib_1.normalizeOptions)(tree, rawOptions);
|
|
20
18
|
const tasks = [];
|
|
21
19
|
const initTask = await (0, init_1.initGenerator)(tree, {
|
|
@@ -37,13 +37,16 @@
|
|
|
37
37
|
"description": "The tool to use for running lint checks.",
|
|
38
38
|
"type": "string",
|
|
39
39
|
"enum": ["eslint", "none"],
|
|
40
|
-
"default": "
|
|
40
|
+
"default": "none",
|
|
41
|
+
"x-prompt": "Which linter would you like to use?",
|
|
42
|
+
"x-priority": "important"
|
|
41
43
|
},
|
|
42
44
|
"unitTestRunner": {
|
|
43
45
|
"description": "Test runner to use for unit tests.",
|
|
44
46
|
"type": "string",
|
|
45
47
|
"enum": ["jest", "none"],
|
|
46
|
-
"default": "
|
|
48
|
+
"default": "none",
|
|
49
|
+
"x-prompt": "Which unit test runner would you like to use?"
|
|
47
50
|
},
|
|
48
51
|
"e2eTestRunner": {
|
|
49
52
|
"type": "string",
|
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.initGenerator = initGenerator;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
6
5
|
const lib_1 = require("./lib");
|
|
7
6
|
async function initGenerator(tree, options) {
|
|
8
|
-
(0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'nest', 'init');
|
|
9
7
|
let installPackagesTask = () => { };
|
|
10
8
|
if (!options.skipPackageJson) {
|
|
11
9
|
installPackagesTask = (0, lib_1.addDependencies)(tree, options);
|
|
@@ -4,7 +4,6 @@ exports.libraryGenerator = libraryGenerator;
|
|
|
4
4
|
exports.libraryGeneratorInternal = libraryGeneratorInternal;
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const js_1 = require("@nx/js");
|
|
7
|
-
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
8
7
|
const lib_1 = require("./lib");
|
|
9
8
|
const init_1 = require("../init/init");
|
|
10
9
|
const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
|
|
@@ -16,7 +15,6 @@ async function libraryGenerator(tree, rawOptions) {
|
|
|
16
15
|
});
|
|
17
16
|
}
|
|
18
17
|
async function libraryGeneratorInternal(tree, rawOptions) {
|
|
19
|
-
(0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'nest', 'library');
|
|
20
18
|
const options = await (0, lib_1.normalizeOptions)(tree, rawOptions);
|
|
21
19
|
await (0, js_1.libraryGenerator)(tree, (0, lib_1.toJsLibraryGeneratorOptions)(options));
|
|
22
20
|
const initTask = await (0, init_1.default)(tree, rawOptions);
|
|
@@ -31,13 +31,17 @@
|
|
|
31
31
|
"description": "The tool to use for running lint checks.",
|
|
32
32
|
"type": "string",
|
|
33
33
|
"enum": ["eslint", "none"],
|
|
34
|
-
"default": "
|
|
34
|
+
"default": "none",
|
|
35
|
+
"x-prompt": "Which linter would you like to use?",
|
|
36
|
+
"x-priority": "important"
|
|
35
37
|
},
|
|
36
38
|
"unitTestRunner": {
|
|
37
39
|
"description": "Test runner to use for unit tests.",
|
|
38
40
|
"type": "string",
|
|
39
41
|
"enum": ["jest", "none"],
|
|
40
|
-
"default": "
|
|
42
|
+
"default": "none",
|
|
43
|
+
"x-prompt": "Which unit test runner would you like to use?",
|
|
44
|
+
"x-priority": "important"
|
|
41
45
|
},
|
|
42
46
|
"tags": {
|
|
43
47
|
"description": "Add tags to the library (used for linting).",
|