@nx/node 22.7.0-pr.34971.73bed1f → 22.7.0-pr.35356.e1b62ce
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 +10 -11
- package/src/generators/application/lib/add-dependencies.d.ts.map +1 -1
- package/src/generators/application/lib/add-dependencies.js +1 -1
- package/src/generators/library/files/ts-solution/tsconfig.lib.json +0 -1
- package/src/utils/vscode-debug-config.d.ts.map +1 -1
- package/src/utils/vscode-debug-config.js +11 -3
- package/project.json +0 -52
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/node",
|
|
3
|
-
"version": "22.7.0-pr.
|
|
3
|
+
"version": "22.7.0-pr.35356.e1b62ce",
|
|
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": {
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"Backend"
|
|
19
19
|
],
|
|
20
20
|
"main": "./index.js",
|
|
21
|
-
"
|
|
21
|
+
"type": "commonjs",
|
|
22
|
+
"types": "./index.d.ts",
|
|
22
23
|
"author": "Victor Savkin",
|
|
23
24
|
"license": "MIT",
|
|
24
25
|
"bugs": {
|
|
@@ -32,20 +33,18 @@
|
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
35
|
"tslib": "^2.3.0",
|
|
35
|
-
"@nx/devkit": "22.7.0-pr.
|
|
36
|
-
"@nx/jest": "22.7.0-pr.
|
|
37
|
-
"@nx/js": "22.7.0-pr.
|
|
38
|
-
"@nx/eslint": "22.7.0-pr.
|
|
39
|
-
"@nx/docker": "22.7.0-pr.
|
|
36
|
+
"@nx/devkit": "22.7.0-pr.35356.e1b62ce",
|
|
37
|
+
"@nx/jest": "22.7.0-pr.35356.e1b62ce",
|
|
38
|
+
"@nx/js": "22.7.0-pr.35356.e1b62ce",
|
|
39
|
+
"@nx/eslint": "22.7.0-pr.35356.e1b62ce",
|
|
40
|
+
"@nx/docker": "22.7.0-pr.35356.e1b62ce",
|
|
40
41
|
"tcp-port-used": "^1.0.2",
|
|
41
42
|
"kill-port": "^1.6.1"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"nx": "22.7.0-pr.
|
|
45
|
+
"nx": "22.7.0-pr.35356.e1b62ce"
|
|
45
46
|
},
|
|
46
47
|
"publishConfig": {
|
|
47
48
|
"access": "public"
|
|
48
|
-
}
|
|
49
|
-
"types": "./index.d.ts",
|
|
50
|
-
"type": "commonjs"
|
|
49
|
+
}
|
|
51
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-dependencies.d.ts","sourceRoot":"","sources":["../../../../../../../packages/node/src/generators/application/lib/add-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,
|
|
1
|
+
{"version":3,"file":"add-dependencies.d.ts","sourceRoot":"","sources":["../../../../../../../packages/node/src/generators/application/lib/add-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAGjB,IAAI,EAEL,MAAM,YAAY,CAAC;AAepB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,GACxB;IACD,WAAW,EAAE,iBAAiB,CAAC;IAC/B,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/C,CAmDA"}
|
|
@@ -11,7 +11,7 @@ function addProjectDependencies(tree, options) {
|
|
|
11
11
|
},
|
|
12
12
|
esbuild: {
|
|
13
13
|
'@nx/esbuild': versions_2.nxVersion,
|
|
14
|
-
esbuild: versions_1.esbuildVersion,
|
|
14
|
+
esbuild: (0, devkit_1.getDependencyVersionFromPackageJson)(tree, 'esbuild') ?? versions_1.esbuildVersion,
|
|
15
15
|
},
|
|
16
16
|
};
|
|
17
17
|
const frameworkDependencies = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vscode-debug-config.d.ts","sourceRoot":"","sources":["../../../../../packages/node/src/utils/vscode-debug-config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAKL,MAAM,YAAY,CAAC;AA+BpB,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,wBAAwB,GAChC,IAAI,
|
|
1
|
+
{"version":3,"file":"vscode-debug-config.d.ts","sourceRoot":"","sources":["../../../../../packages/node/src/utils/vscode-debug-config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAKL,MAAM,YAAY,CAAC;AA+BpB,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,wBAAwB,GAChC,IAAI,CAgEN"}
|
|
@@ -28,7 +28,15 @@ function findFreeDebugPort(tree) {
|
|
|
28
28
|
return highestPort > 0 ? highestPort + 1 : 9229;
|
|
29
29
|
}
|
|
30
30
|
function addVSCodeDebugConfiguration(tree, options) {
|
|
31
|
-
|
|
31
|
+
// `getPackageManagerCommand().exec` returns the full subcommand string,
|
|
32
|
+
// e.g. `pnpm exec` for pnpm or `npm exec --` for npm. VS Code's
|
|
33
|
+
// `runtimeExecutable` expects an actual executable path, not a string
|
|
34
|
+
// with embedded arguments — passing `"pnpm exec"` fails on Windows with
|
|
35
|
+
// `Can't find Node.js binary "pnpm exec": path does not exist`. Split
|
|
36
|
+
// the command and prepend any extra tokens to runtimeArgs. (#35276)
|
|
37
|
+
const pmCommandTokens = (0, devkit_1.getPackageManagerCommand)().exec.split(' ');
|
|
38
|
+
const runtimeExecutable = pmCommandTokens[0];
|
|
39
|
+
const extraExecArgs = pmCommandTokens.slice(1);
|
|
32
40
|
// Determine the output path based on project configuration
|
|
33
41
|
let outputPath;
|
|
34
42
|
try {
|
|
@@ -48,8 +56,8 @@ function addVSCodeDebugConfiguration(tree, options) {
|
|
|
48
56
|
type: 'node',
|
|
49
57
|
request: 'launch',
|
|
50
58
|
name: `Debug ${options.projectName} with Nx`,
|
|
51
|
-
runtimeExecutable
|
|
52
|
-
runtimeArgs: ['nx', 'serve', options.projectName],
|
|
59
|
+
runtimeExecutable,
|
|
60
|
+
runtimeArgs: [...extraExecArgs, 'nx', 'serve', options.projectName],
|
|
53
61
|
env: {
|
|
54
62
|
NODE_OPTIONS: `--inspect=${debugPort}`,
|
|
55
63
|
},
|
package/project.json
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "node",
|
|
3
|
-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
-
"sourceRoot": "packages/node",
|
|
5
|
-
"projectType": "library",
|
|
6
|
-
"targets": {
|
|
7
|
-
"build": {
|
|
8
|
-
"outputs": ["{workspaceRoot}/dist/packages/node/README.md"],
|
|
9
|
-
"command": "node ./scripts/copy-readme.js node"
|
|
10
|
-
},
|
|
11
|
-
"legacy-post-build": {
|
|
12
|
-
"executor": "@nx/workspace-plugin:legacy-post-build",
|
|
13
|
-
"options": {
|
|
14
|
-
"tsConfig": "./tsconfig.lib.json",
|
|
15
|
-
"assets": [
|
|
16
|
-
{
|
|
17
|
-
"input": "packages/node",
|
|
18
|
-
"glob": "**/files/**",
|
|
19
|
-
"output": "/"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"input": "packages/node",
|
|
23
|
-
"glob": "**/files/**/.gitkeep",
|
|
24
|
-
"output": "/"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"input": "packages/node",
|
|
28
|
-
"glob": "**/*.json",
|
|
29
|
-
"ignore": ["**/tsconfig*.json", "project.json", ".eslintrc.json"],
|
|
30
|
-
"output": "/"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"input": "packages/node",
|
|
34
|
-
"glob": "**/*.js",
|
|
35
|
-
"ignore": ["**/jest.config.js"],
|
|
36
|
-
"output": "/"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"input": "packages/node",
|
|
40
|
-
"glob": "**/*.d.ts",
|
|
41
|
-
"output": "/"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"input": "",
|
|
45
|
-
"glob": "LICENSE",
|
|
46
|
-
"output": "/"
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|