@nx/nest 16.3.0-beta.9 → 16.3.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nest",
|
|
3
|
-
"version": "16.3.
|
|
3
|
+
"version": "16.3.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": {
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@nestjs/schematics": "^9.1.0",
|
|
34
|
-
"@nrwl/nest": "16.3.
|
|
35
|
-
"@nx/devkit": "16.3.
|
|
36
|
-
"@nx/js": "16.3.
|
|
37
|
-
"@nx/linter": "16.3.
|
|
38
|
-
"@nx/node": "16.3.
|
|
34
|
+
"@nrwl/nest": "16.3.1",
|
|
35
|
+
"@nx/devkit": "16.3.1",
|
|
36
|
+
"@nx/js": "16.3.1",
|
|
37
|
+
"@nx/linter": "16.3.1",
|
|
38
|
+
"@nx/node": "16.3.1",
|
|
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": "29dc4bd6d069abfd91d8f4e0640047b23ceafac5"
|
|
46
46
|
}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.addExportsToBarrelFile = void 0;
|
|
4
4
|
const js_1 = require("@nx/js");
|
|
5
5
|
const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
|
|
6
|
-
const ts = require("typescript");
|
|
7
6
|
let tsModule;
|
|
8
7
|
function addExportsToBarrelFile(tree, options) {
|
|
9
8
|
if (!tsModule) {
|
|
@@ -13,7 +12,7 @@ function addExportsToBarrelFile(tree, options) {
|
|
|
13
12
|
const indexContent = tree.read(indexPath, 'utf-8');
|
|
14
13
|
let sourceFile = tsModule.createSourceFile(indexPath, indexContent, tsModule.ScriptTarget.Latest, true);
|
|
15
14
|
// find the export in the source file
|
|
16
|
-
const exportStatement = sourceFile.statements.find((statement) =>
|
|
15
|
+
const exportStatement = sourceFile.statements.find((statement) => tsModule.isExportDeclaration(statement));
|
|
17
16
|
sourceFile = (0, js_1.removeChange)(tree, sourceFile, indexPath, 0, exportStatement.getFullText());
|
|
18
17
|
sourceFile = (0, js_1.addGlobal)(tree, sourceFile, indexPath, `export * from './lib/${options.fileName}.module';`);
|
|
19
18
|
if (options.service) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-exports-to-barrel.js","sourceRoot":"","sources":["../../../../../../../packages/nest/src/generators/library/lib/add-exports-to-barrel.ts"],"names":[],"mappings":";;;AACA,+BAAiD;AACjD,qFAAiF;
|
|
1
|
+
{"version":3,"file":"add-exports-to-barrel.js","sourceRoot":"","sources":["../../../../../../../packages/nest/src/generators/library/lib/add-exports-to-barrel.ts"],"names":[],"mappings":";;;AACA,+BAAiD;AACjD,qFAAiF;AAGjF,IAAI,QAAqC,CAAC;AAE1C,SAAgB,sBAAsB,CACpC,IAAU,EACV,OAA0B;IAE1B,IAAI,CAAC,QAAQ,EAAE;QACb,QAAQ,GAAG,IAAA,oCAAgB,GAAE,CAAC;KAC/B;IACD,MAAM,SAAS,GAAG,GAAG,OAAO,CAAC,WAAW,eAAe,CAAC;IACxD,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACnD,IAAI,UAAU,GAAG,QAAQ,CAAC,gBAAgB,CACxC,SAAS,EACT,YAAY,EACZ,QAAQ,CAAC,YAAY,CAAC,MAAM,EAC5B,IAAI,CACL,CAAC;IAEF,qCAAq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