@nx/node 22.2.5 → 22.2.7
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/node",
|
|
3
|
-
"version": "22.2.
|
|
3
|
+
"version": "22.2.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Node Plugin for Nx contains generators to manage Node applications within an Nx workspace.",
|
|
6
6
|
"repository": {
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"tslib": "^2.3.0",
|
|
35
|
-
"@nx/devkit": "22.2.
|
|
36
|
-
"@nx/jest": "22.2.
|
|
37
|
-
"@nx/js": "22.2.
|
|
38
|
-
"@nx/eslint": "22.2.
|
|
39
|
-
"@nx/docker": "22.2.
|
|
35
|
+
"@nx/devkit": "22.2.7",
|
|
36
|
+
"@nx/jest": "22.2.7",
|
|
37
|
+
"@nx/js": "22.2.7",
|
|
38
|
+
"@nx/eslint": "22.2.7",
|
|
39
|
+
"@nx/docker": "22.2.7",
|
|
40
40
|
"tcp-port-used": "^1.0.2",
|
|
41
41
|
"kill-port": "^1.6.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"nx": "22.2.
|
|
44
|
+
"nx": "22.2.7"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../../../packages/node/src/generators/library/library.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAUjB,IAAI,EAIL,MAAM,YAAY,CAAC;AAWpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AASlC,MAAM,WAAW,gBAAiB,SAAQ,MAAM;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,EAAE,KAAK,GAAG,KAAK,CAAC;IACxB,uBAAuB,EAAE,OAAO,CAAC;CAClC;AAED,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAMhE;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../../../packages/node/src/generators/library/library.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAUjB,IAAI,EAIL,MAAM,YAAY,CAAC;AAWpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AASlC,MAAM,WAAW,gBAAiB,SAAQ,MAAM;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,EAAE,KAAK,GAAG,KAAK,CAAC;IACxB,uBAAuB,EAAE,OAAO,CAAC;CAClC;AAED,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAMhE;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BA2ExE;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -44,7 +44,7 @@ async function libraryGeneratorInternal(tree, schema) {
|
|
|
44
44
|
}
|
|
45
45
|
tasks.push(await (0, js_1.libraryGenerator)(tree, {
|
|
46
46
|
...schema,
|
|
47
|
-
bundler: schema.buildable || schema.publishable ?
|
|
47
|
+
bundler: schema.buildable || schema.publishable ? schema.compiler : 'none',
|
|
48
48
|
includeBabelRc: schema.babelJest,
|
|
49
49
|
importPath: schema.importPath,
|
|
50
50
|
testEnvironment: 'node',
|
|
@@ -62,7 +62,7 @@ async function libraryGeneratorInternal(tree, schema) {
|
|
|
62
62
|
(0, devkit_1.updateTsConfigsToJs)(tree, options);
|
|
63
63
|
}
|
|
64
64
|
updateProject(tree, options);
|
|
65
|
-
tasks.push(ensureDependencies(tree));
|
|
65
|
+
tasks.push(ensureDependencies(tree, options.compiler));
|
|
66
66
|
// Always run install to link packages.
|
|
67
67
|
if (options.isUsingTsSolutionConfig) {
|
|
68
68
|
tasks.push(() => (0, devkit_1.installPackagesTask)(tree, true));
|
|
@@ -161,8 +161,13 @@ function updateProject(tree, options) {
|
|
|
161
161
|
}
|
|
162
162
|
(0, devkit_1.updateProjectConfiguration)(tree, options.projectName, project);
|
|
163
163
|
}
|
|
164
|
-
function ensureDependencies(tree) {
|
|
165
|
-
|
|
164
|
+
function ensureDependencies(tree, compiler) {
|
|
165
|
+
// Only add tslib when using tsc compiler
|
|
166
|
+
// When using swc, @swc/helpers is added by addSwcDependencies()
|
|
167
|
+
const dependencies = compiler === 'tsc' ? { tslib: versions_1.tslibVersion } : {};
|
|
168
|
+
return (0, devkit_1.addDependenciesToPackageJson)(tree, dependencies, {
|
|
169
|
+
'@types/node': versions_1.typesNodeVersion,
|
|
170
|
+
});
|
|
166
171
|
}
|
|
167
172
|
function updatePackageJson(tree, options) {
|
|
168
173
|
const packageJsonPath = (0, devkit_1.joinPathFragments)(options.projectRoot, 'package.json');
|