@nx/nest 23.0.0-beta.5 → 23.0.0-beta.6
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nest",
|
|
3
|
-
"version": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.6",
|
|
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": {
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@nestjs/schematics": "^11.0.0",
|
|
36
|
-
"@nx/devkit": "23.0.0-beta.
|
|
37
|
-
"@nx/js": "23.0.0-beta.
|
|
38
|
-
"@nx/eslint": "23.0.0-beta.
|
|
39
|
-
"@nx/node": "23.0.0-beta.
|
|
36
|
+
"@nx/devkit": "23.0.0-beta.6",
|
|
37
|
+
"@nx/js": "23.0.0-beta.6",
|
|
38
|
+
"@nx/eslint": "23.0.0-beta.6",
|
|
39
|
+
"@nx/node": "23.0.0-beta.6",
|
|
40
40
|
"tslib": "^2.3.0"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.normalizeOptions = normalizeOptions;
|
|
4
4
|
exports.toNodeApplicationGeneratorOptions = toNodeApplicationGeneratorOptions;
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const
|
|
6
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
7
7
|
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
8
8
|
async function normalizeOptions(tree, options) {
|
|
9
|
-
await (0,
|
|
10
|
-
const { projectName: appProjectName, projectRoot: appProjectRoot } = await (0,
|
|
9
|
+
await (0, internal_1.ensureRootProjectName)(options, 'application');
|
|
10
|
+
const { projectName: appProjectName, projectRoot: appProjectRoot } = await (0, internal_1.determineProjectNameAndRootOptions)(tree, {
|
|
11
11
|
name: options.name,
|
|
12
12
|
projectType: 'application',
|
|
13
13
|
directory: options.directory,
|
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.normalizeOptions = normalizeOptions;
|
|
4
4
|
exports.toJsLibraryGeneratorOptions = toJsLibraryGeneratorOptions;
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const
|
|
6
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
7
7
|
const get_npm_scope_1 = require("@nx/js/src/utils/package-json/get-npm-scope");
|
|
8
8
|
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
9
9
|
async function normalizeOptions(tree, options) {
|
|
10
|
-
await (0,
|
|
11
|
-
const { projectName, names: projectNames, projectRoot, importPath, } = await (0,
|
|
10
|
+
await (0, internal_1.ensureRootProjectName)(options, 'library');
|
|
11
|
+
const { projectName, names: projectNames, projectRoot, importPath, } = await (0, internal_1.determineProjectNameAndRootOptions)(tree, {
|
|
12
12
|
name: options.name,
|
|
13
13
|
projectType: 'library',
|
|
14
14
|
directory: options.directory,
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.libraryGenerator = libraryGenerator;
|
|
4
4
|
exports.libraryGeneratorInternal = libraryGeneratorInternal;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
6
7
|
const devkit_1 = require("@nx/devkit");
|
|
7
|
-
const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
|
|
8
8
|
const js_1 = require("@nx/js");
|
|
9
9
|
const ensure_dependencies_1 = require("../../utils/ensure-dependencies");
|
|
10
10
|
const init_1 = tslib_1.__importDefault(require("../init/init"));
|
|
@@ -35,7 +35,7 @@ async function libraryGeneratorInternal(tree, rawOptions) {
|
|
|
35
35
|
initTask,
|
|
36
36
|
depsTask,
|
|
37
37
|
() => {
|
|
38
|
-
(0,
|
|
38
|
+
(0, internal_1.logShowProjectCommand)(options.projectName);
|
|
39
39
|
},
|
|
40
40
|
]);
|
|
41
41
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.normalizeOptions = normalizeOptions;
|
|
4
4
|
exports.unitTestRunnerToSpec = unitTestRunnerToSpec;
|
|
5
|
-
const
|
|
5
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
6
6
|
async function normalizeOptions(tree, options, normalizationOptions = {}) {
|
|
7
7
|
const { allowedFileExtensions = ['js', 'ts'], skipLanguageOption = false, suffix, } = normalizationOptions;
|
|
8
|
-
const { directory, artifactName, fileExtension } = await (0,
|
|
8
|
+
const { directory, artifactName, fileExtension } = await (0, internal_1.determineArtifactNameAndDirectoryOptions)(tree, {
|
|
9
9
|
path: options.path,
|
|
10
10
|
allowedFileExtensions,
|
|
11
11
|
fileExtension: options.language === 'js' ? 'js' : 'ts',
|