@nx/js 22.7.7 → 22.7.8
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/js",
|
|
3
|
-
"version": "22.7.
|
|
3
|
+
"version": "22.7.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
|
|
6
6
|
"repository": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@babel/preset-env": "^7.23.2",
|
|
41
41
|
"@babel/preset-typescript": "^7.22.5",
|
|
42
42
|
"@babel/runtime": "^7.22.6",
|
|
43
|
-
"@nx/devkit": "22.7.
|
|
44
|
-
"@nx/workspace": "22.7.
|
|
43
|
+
"@nx/devkit": "22.7.8",
|
|
44
|
+
"@nx/workspace": "22.7.8",
|
|
45
45
|
"@zkochan/js-yaml": "0.0.7",
|
|
46
46
|
"babel-plugin-const-enum": "^1.0.1",
|
|
47
47
|
"babel-plugin-macros": "^3.1.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"tslib": "^2.3.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"nx": "22.7.
|
|
64
|
+
"nx": "22.7.8"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"verdaccio": "^6.0.5"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verdaccio.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/js/src/executors/verdaccio/verdaccio.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAU,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"verdaccio.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/js/src/executors/verdaccio/verdaccio.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAU,MAAM,YAAY,CAAC;AAQrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAUnD;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,uBAAuB,EAChC,OAAO,EAAE,eAAe;;;GAqDzB;AA6TD,eAAe,iBAAiB,CAAC"}
|
|
@@ -7,6 +7,7 @@ const internal_1 = require("@nx/devkit/internal");
|
|
|
7
7
|
const child_process_1 = require("child_process");
|
|
8
8
|
const detect_port_1 = tslib_1.__importDefault(require("detect-port"));
|
|
9
9
|
const node_fs_1 = require("node:fs");
|
|
10
|
+
const devkit_internals_1 = require("nx/src/devkit-internals");
|
|
10
11
|
const path_1 = require("path");
|
|
11
12
|
const semver_1 = require("semver");
|
|
12
13
|
let childProcess;
|
|
@@ -66,12 +67,19 @@ async function verdaccioExecutor(options, context) {
|
|
|
66
67
|
port: options.port,
|
|
67
68
|
};
|
|
68
69
|
}
|
|
70
|
+
function getVerdaccioBinPath() {
|
|
71
|
+
const { packageJson, path: packageJsonPath } = (0, devkit_internals_1.readModulePackageJson)('verdaccio');
|
|
72
|
+
const bin = typeof packageJson.bin === 'string'
|
|
73
|
+
? packageJson.bin
|
|
74
|
+
: packageJson.bin['verdaccio'];
|
|
75
|
+
return (0, path_1.join)((0, path_1.dirname)(packageJsonPath), bin);
|
|
76
|
+
}
|
|
69
77
|
/**
|
|
70
78
|
* Fork the verdaccio process: https://verdaccio.org/docs/verdaccio-programmatically/#using-fork-from-child_process-module
|
|
71
79
|
*/
|
|
72
80
|
function startVerdaccio(options, workspaceRoot) {
|
|
73
81
|
return new Promise((resolve, reject) => {
|
|
74
|
-
childProcess = (0, child_process_1.fork)(
|
|
82
|
+
childProcess = (0, child_process_1.fork)(getVerdaccioBinPath(), createVerdaccioOptions(options, workspaceRoot), {
|
|
75
83
|
env: {
|
|
76
84
|
...process.env,
|
|
77
85
|
VERDACCIO_HANDLE_KILL_SIGNALS: 'true',
|