@nx/nest 24.0.0-beta.1 → 24.0.0-beta.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/dist/src/generators/application/application.js +0 -1
- package/dist/src/generators/application/lib/normalize-options.js +0 -6
- package/dist/src/generators/application/schema.d.ts +0 -1
- package/dist/src/generators/library/lib/normalize-options.js +1 -8
- package/dist/src/generators/library/library.js +0 -1
- package/dist/src/generators/library/schema.d.ts +0 -1
- package/package.json +5 -5
|
@@ -11,7 +11,6 @@ const assert_vitest_supported_1 = require("../../utils/assert-vitest-supported")
|
|
|
11
11
|
const ensure_dependencies_1 = require("../../utils/ensure-dependencies");
|
|
12
12
|
async function applicationGenerator(tree, rawOptions) {
|
|
13
13
|
return await applicationGeneratorInternal(tree, {
|
|
14
|
-
addPlugin: false,
|
|
15
14
|
useProjectJson: true,
|
|
16
15
|
...rawOptions,
|
|
17
16
|
});
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.normalizeOptions = normalizeOptions;
|
|
4
4
|
exports.toNodeApplicationGeneratorOptions = toNodeApplicationGeneratorOptions;
|
|
5
|
-
const devkit_1 = require("@nx/devkit");
|
|
6
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
7
6
|
const internal_2 = require("@nx/eslint/internal");
|
|
8
7
|
const internal_3 = require("@nx/js/internal");
|
|
@@ -15,11 +14,7 @@ async function normalizeOptions(tree, options) {
|
|
|
15
14
|
rootProject: options.rootProject,
|
|
16
15
|
});
|
|
17
16
|
options.rootProject = appProjectRoot === '.';
|
|
18
|
-
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
19
|
-
const addPlugin = process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
20
|
-
nxJson.useInferencePlugins !== false;
|
|
21
17
|
return {
|
|
22
|
-
addPlugin,
|
|
23
18
|
...options,
|
|
24
19
|
strict: options.strict ?? false,
|
|
25
20
|
appProjectName,
|
|
@@ -46,7 +41,6 @@ function toNodeApplicationGeneratorOptions(options) {
|
|
|
46
41
|
rootProject: options.rootProject,
|
|
47
42
|
bundler: 'webpack', // Some features require webpack plugins such as TS transformers
|
|
48
43
|
isNest: true,
|
|
49
|
-
addPlugin: options.addPlugin,
|
|
50
44
|
useProjectJson: options.useProjectJson,
|
|
51
45
|
};
|
|
52
46
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.normalizeOptions = normalizeOptions;
|
|
4
4
|
exports.toJsLibraryGeneratorOptions = toJsLibraryGeneratorOptions;
|
|
5
|
-
const devkit_1 = require("@nx/devkit");
|
|
6
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
7
6
|
const internal_2 = require("@nx/eslint/internal");
|
|
8
7
|
const internal_3 = require("@nx/js/internal");
|
|
@@ -14,10 +13,6 @@ async function normalizeOptions(tree, options) {
|
|
|
14
13
|
directory: options.directory,
|
|
15
14
|
importPath: options.importPath,
|
|
16
15
|
});
|
|
17
|
-
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
18
|
-
const addPlugin = process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
19
|
-
nxJson.useInferencePlugins !== false;
|
|
20
|
-
options.addPlugin ??= addPlugin;
|
|
21
16
|
const fileName = projectNames.projectFileName;
|
|
22
17
|
const parsedTags = options.tags
|
|
23
18
|
? options.tags.split(',').map((s) => s.trim())
|
|
@@ -25,8 +20,7 @@ async function normalizeOptions(tree, options) {
|
|
|
25
20
|
// this helper is called before the jsLibraryGenerator is called, so, if the
|
|
26
21
|
// TS solution setup is not configured, we additionally check if the TS
|
|
27
22
|
// solution setup will be configured by the jsLibraryGenerator
|
|
28
|
-
const isUsingTsSolutionsConfig = (0, internal_3.isUsingTsSolutionSetup)(tree) ||
|
|
29
|
-
(0, internal_3.shouldConfigureTsSolutionSetup)(tree, addPlugin);
|
|
23
|
+
const isUsingTsSolutionsConfig = (0, internal_3.isUsingTsSolutionSetup)(tree) || (0, internal_3.shouldConfigureTsSolutionSetup)(tree);
|
|
30
24
|
const normalized = {
|
|
31
25
|
...options,
|
|
32
26
|
strict: options.strict ?? true,
|
|
@@ -67,7 +61,6 @@ function toJsLibraryGeneratorOptions(options) {
|
|
|
67
61
|
// controller or service is left with none at all.
|
|
68
62
|
passWithNoTests: true,
|
|
69
63
|
enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
|
|
70
|
-
addPlugin: options.addPlugin,
|
|
71
64
|
useProjectJson: options.useProjectJson,
|
|
72
65
|
};
|
|
73
66
|
}
|
|
@@ -13,7 +13,6 @@ const init_1 = tslib_1.__importDefault(require("../init/init"));
|
|
|
13
13
|
const lib_1 = require("./lib");
|
|
14
14
|
async function libraryGenerator(tree, rawOptions) {
|
|
15
15
|
return await libraryGeneratorInternal(tree, {
|
|
16
|
-
addPlugin: false,
|
|
17
16
|
useProjectJson: true,
|
|
18
17
|
...rawOptions,
|
|
19
18
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nest",
|
|
3
|
-
"version": "24.0.0-beta.
|
|
3
|
+
"version": "24.0.0-beta.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@nestjs/schematics": "^11.0.0",
|
|
63
|
-
"@nx/devkit": "24.0.0-beta.
|
|
64
|
-
"@nx/js": "24.0.0-beta.
|
|
65
|
-
"@nx/eslint": "24.0.0-beta.
|
|
66
|
-
"@nx/node": "24.0.0-beta.
|
|
63
|
+
"@nx/devkit": "24.0.0-beta.3",
|
|
64
|
+
"@nx/js": "24.0.0-beta.3",
|
|
65
|
+
"@nx/eslint": "24.0.0-beta.3",
|
|
66
|
+
"@nx/node": "24.0.0-beta.3",
|
|
67
67
|
"semver": "^7.6.3",
|
|
68
68
|
"tslib": "^2.3.0"
|
|
69
69
|
},
|