@nx/nest 16.1.4 → 16.2.0-beta.0
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": "16.
|
|
3
|
+
"version": "16.2.0-beta.0",
|
|
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": {
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@nestjs/schematics": "^9.1.0",
|
|
34
|
-
"@nrwl/nest": "16.
|
|
35
|
-
"@nx/devkit": "16.
|
|
36
|
-
"@nx/js": "16.
|
|
37
|
-
"@nx/linter": "16.
|
|
38
|
-
"@nx/node": "16.
|
|
34
|
+
"@nrwl/nest": "16.2.0-beta.0",
|
|
35
|
+
"@nx/devkit": "16.2.0-beta.0",
|
|
36
|
+
"@nx/js": "16.2.0-beta.0",
|
|
37
|
+
"@nx/linter": "16.2.0-beta.0",
|
|
38
|
+
"@nx/node": "16.2.0-beta.0",
|
|
39
39
|
"enquirer": "~2.3.6"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"types": "./index.d.ts",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "f7ba85e8ec9c074eaee81731a20aee7ea6dbc8aa"
|
|
46
46
|
}
|
|
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.toJsLibraryGeneratorOptions = exports.normalizeOptions = void 0;
|
|
4
4
|
const linter_1 = require("@nx/linter");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
const get_npm_scope_1 = require("@nx/js/src/utils/package-json/get-npm-scope");
|
|
6
7
|
function normalizeOptions(tree, options) {
|
|
7
8
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
8
9
|
const { layoutDirectory, projectDirectory } = (0, devkit_1.extractLayoutDirectory)(options.directory);
|
|
9
|
-
const { libsDir: defaultLibsDir
|
|
10
|
+
const { libsDir: defaultLibsDir } = (0, devkit_1.getWorkspaceLayout)(tree);
|
|
10
11
|
const libsDir = layoutDirectory !== null && layoutDirectory !== void 0 ? layoutDirectory : defaultLibsDir;
|
|
11
12
|
const name = (0, devkit_1.names)(options.name).fileName;
|
|
12
13
|
const fullProjectDirectory = projectDirectory
|
|
@@ -18,7 +19,7 @@ function normalizeOptions(tree, options) {
|
|
|
18
19
|
const parsedTags = options.tags
|
|
19
20
|
? options.tags.split(',').map((s) => s.trim())
|
|
20
21
|
: [];
|
|
21
|
-
const normalized = Object.assign(Object.assign({}, options), { strict: (_a = options.strict) !== null && _a !== void 0 ? _a : true, controller: (_b = options.controller) !== null && _b !== void 0 ? _b : false, fileName, global: (_c = options.global) !== null && _c !== void 0 ? _c : false, linter: (_d = options.linter) !== null && _d !== void 0 ? _d : linter_1.Linter.EsLint, parsedTags, prefix:
|
|
22
|
+
const normalized = Object.assign(Object.assign({}, options), { strict: (_a = options.strict) !== null && _a !== void 0 ? _a : true, controller: (_b = options.controller) !== null && _b !== void 0 ? _b : false, fileName, global: (_c = options.global) !== null && _c !== void 0 ? _c : false, linter: (_d = options.linter) !== null && _d !== void 0 ? _d : linter_1.Linter.EsLint, parsedTags, prefix: (0, get_npm_scope_1.getNpmScope)(tree), projectDirectory: fullProjectDirectory, projectName,
|
|
22
23
|
projectRoot, service: (_e = options.service) !== null && _e !== void 0 ? _e : false, target: (_f = options.target) !== null && _f !== void 0 ? _f : 'es6', testEnvironment: (_g = options.testEnvironment) !== null && _g !== void 0 ? _g : 'node', unitTestRunner: (_h = options.unitTestRunner) !== null && _h !== void 0 ? _h : 'jest', libsDir });
|
|
23
24
|
return normalized;
|
|
24
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/nest/src/generators/library/lib/normalize-options.ts"],"names":[],"mappings":";;;AACA,uCAAoC;AACpC,uCAMoB;
|
|
1
|
+
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/nest/src/generators/library/lib/normalize-options.ts"],"names":[],"mappings":";;;AACA,uCAAoC;AACpC,uCAMoB;AAEpB,+EAA0E;AAE1E,SAAgB,gBAAgB,CAC9B,IAAU,EACV,OAAgC;;IAEhC,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,GAAG,IAAA,+BAAsB,EAClE,OAAO,CAAC,SAAS,CAClB,CAAC;IACF,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC;IAC7D,MAAM,OAAO,GAAG,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,cAAc,CAAC;IAClD,MAAM,IAAI,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC;IAC1C,MAAM,oBAAoB,GAAG,gBAAgB;QAC3C,CAAC,CAAC,GAAG,IAAA,cAAK,EAAC,gBAAgB,CAAC,CAAC,QAAQ,IAAI,IAAI,EAAE;QAC/C,CAAC,CAAC,IAAI,CAAC;IAET,MAAM,WAAW,GAAG,oBAAoB,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;IAC5E,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC;IACzD,MAAM,WAAW,GAAG,IAAA,0BAAiB,EAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;IAErE,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI;QAC7B,CAAC,CAAC,OAAO,CAAC,IAAI,CA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