@shell-shock/nx 0.0.97 → 0.0.98
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/CHANGELOG.md +6 -0
- package/dist/plugin/index.cjs +14 -8
- package/dist/plugin/index.js +14 -8
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Shell Shock - Nx
|
|
4
4
|
|
|
5
|
+
## [0.0.97](https://github.com/storm-software/shell-shock/releases/tag/nx%400.0.97) (08/13/2026)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **core** to **v0.17.24**
|
|
10
|
+
|
|
5
11
|
## [0.0.96](https://github.com/storm-software/shell-shock/releases/tag/nx%400.0.96) (08/13/2026)
|
|
6
12
|
|
|
7
13
|
### Miscellaneous
|
package/dist/plugin/index.cjs
CHANGED
|
@@ -48,7 +48,7 @@ let nx_src_config_nx_json_js = require("nx/src/config/nx-json.js");
|
|
|
48
48
|
let nx_src_utils_package_json_js = require("nx/src/utils/package-json.js");
|
|
49
49
|
let nx_src_utils_package_manager_js = require("nx/src/utils/package-manager.js");
|
|
50
50
|
|
|
51
|
-
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.
|
|
51
|
+
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.252_@babel+traverse@7.29.8_@emnapi+core@1.11.3_@emnapi+runtime@1.11_97695d596639a1b7bfd97c0c747f6054/node_modules/@powerlines/nx/dist/src/helpers/constants.mjs
|
|
52
52
|
/**
|
|
53
53
|
* A list of Nx input strings that describe the Powerlines configuration file
|
|
54
54
|
*/
|
|
@@ -80,7 +80,7 @@ const CONFIG_INPUTS = [
|
|
|
80
80
|
];
|
|
81
81
|
|
|
82
82
|
//#endregion
|
|
83
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
83
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.133_zod@4.5.4/node_modules/@stryke/env/dist/ci-checks.mjs
|
|
84
84
|
/**
|
|
85
85
|
* Returns true if the current environment is a CI environment.
|
|
86
86
|
*
|
|
@@ -91,7 +91,7 @@ const isCI = (env = process.env) => {
|
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
//#endregion
|
|
94
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
94
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.133_zod@4.5.4/node_modules/@stryke/env/dist/environment-checks.mjs
|
|
95
95
|
/** Value of process.platform */
|
|
96
96
|
const platform = process?.platform || "";
|
|
97
97
|
/** Detect if stdout.TTY is available */
|
|
@@ -175,9 +175,15 @@ const nodeVersion = (process?.versions?.node || "").replace(/^v/, "") || null;
|
|
|
175
175
|
const nodeMajorVersion = Number(nodeVersion?.split(".")[0]) || null;
|
|
176
176
|
|
|
177
177
|
//#endregion
|
|
178
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
178
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.133_zod@4.5.4/node_modules/@stryke/env/dist/get-env-paths.mjs
|
|
179
179
|
const homedir = node_os.default.homedir();
|
|
180
180
|
const tmpdir = node_os.default.tmpdir();
|
|
181
|
+
/**
|
|
182
|
+
* Collapse `/C:/...` and `C:/C:/...` so Windows does not resolve them as `C:\C:\...`.
|
|
183
|
+
*/
|
|
184
|
+
function normalizeEnvPath(filePath) {
|
|
185
|
+
return filePath.replace(/\\/g, "/").replace(/^\/+([A-Z]:)/i, "$1").replace(/^([A-Z]:)(?:\/+\1)+/i, "$1");
|
|
186
|
+
}
|
|
181
187
|
const macos = (orgId) => {
|
|
182
188
|
const library = (0, _stryke_path_join_paths.joinPaths)(homedir, "Library");
|
|
183
189
|
return {
|
|
@@ -245,15 +251,15 @@ function getEnvPaths(options = {}) {
|
|
|
245
251
|
return Object.keys(result).reduce((ret, key) => {
|
|
246
252
|
if (result[key]) {
|
|
247
253
|
const filePath = result[key];
|
|
248
|
-
ret[key] = options.appId && options.appId !== options.orgId && options.appId !== options.nestedDir ? (0, _stryke_path_join_paths.joinPaths)(filePath, options.appId) : filePath;
|
|
249
|
-
if (options.nestedDir && options.nestedDir !== options.orgId && options.nestedDir !== options.appId) ret[key] = (0, _stryke_path_join_paths.joinPaths)(ret[key], options.nestedDir);
|
|
254
|
+
ret[key] = normalizeEnvPath(options.appId && options.appId !== options.orgId && options.appId !== options.nestedDir ? (0, _stryke_path_join_paths.joinPaths)(filePath, options.appId) : (0, _stryke_path_join_paths.joinPaths)(filePath));
|
|
255
|
+
if (options.nestedDir && options.nestedDir !== options.orgId && options.nestedDir !== options.appId) ret[key] = normalizeEnvPath((0, _stryke_path_join_paths.joinPaths)(ret[key], options.nestedDir));
|
|
250
256
|
}
|
|
251
257
|
return ret;
|
|
252
258
|
}, {});
|
|
253
259
|
}
|
|
254
260
|
|
|
255
261
|
//#endregion
|
|
256
|
-
//#region ../../node_modules/.pnpm/@stryke+fs@0.33.
|
|
262
|
+
//#region ../../node_modules/.pnpm/@stryke+fs@0.33.116_zod@4.5.4/node_modules/@stryke/fs/dist/exists.mjs
|
|
257
263
|
/**
|
|
258
264
|
* Check if a file exists
|
|
259
265
|
*
|
|
@@ -265,7 +271,7 @@ function existsSync(filePath) {
|
|
|
265
271
|
}
|
|
266
272
|
|
|
267
273
|
//#endregion
|
|
268
|
-
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.
|
|
274
|
+
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.252_@babel+traverse@7.29.8_@emnapi+core@1.11.3_@emnapi+runtime@1.11_97695d596639a1b7bfd97c0c747f6054/node_modules/@powerlines/nx/dist/src/helpers/plugin-utilities.mjs
|
|
269
275
|
/**
|
|
270
276
|
* Generates Nx input strings for the Powerlines configuration file, replacing the `{framework}` placeholder with the specified framework name.
|
|
271
277
|
*
|
package/dist/plugin/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { readNxJson } from "nx/src/config/nx-json.js";
|
|
|
17
17
|
import { readTargetsFromPackageJson } from "nx/src/utils/package-json.js";
|
|
18
18
|
import { detectPackageManager, getPackageManagerCommand } from "nx/src/utils/package-manager.js";
|
|
19
19
|
|
|
20
|
-
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.
|
|
20
|
+
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.252_@babel+traverse@7.29.8_@emnapi+core@1.11.3_@emnapi+runtime@1.11_97695d596639a1b7bfd97c0c747f6054/node_modules/@powerlines/nx/dist/src/helpers/constants.mjs
|
|
21
21
|
/**
|
|
22
22
|
* A list of Nx input strings that describe the Powerlines configuration file
|
|
23
23
|
*/
|
|
@@ -49,7 +49,7 @@ const CONFIG_INPUTS = [
|
|
|
49
49
|
];
|
|
50
50
|
|
|
51
51
|
//#endregion
|
|
52
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
52
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.133_zod@4.5.4/node_modules/@stryke/env/dist/ci-checks.mjs
|
|
53
53
|
/**
|
|
54
54
|
* Returns true if the current environment is a CI environment.
|
|
55
55
|
*
|
|
@@ -60,7 +60,7 @@ const isCI = (env = process.env) => {
|
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
//#endregion
|
|
63
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
63
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.133_zod@4.5.4/node_modules/@stryke/env/dist/environment-checks.mjs
|
|
64
64
|
/** Value of process.platform */
|
|
65
65
|
const platform = process?.platform || "";
|
|
66
66
|
/** Detect if stdout.TTY is available */
|
|
@@ -144,9 +144,15 @@ const nodeVersion = (process?.versions?.node || "").replace(/^v/, "") || null;
|
|
|
144
144
|
const nodeMajorVersion = Number(nodeVersion?.split(".")[0]) || null;
|
|
145
145
|
|
|
146
146
|
//#endregion
|
|
147
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
147
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.133_zod@4.5.4/node_modules/@stryke/env/dist/get-env-paths.mjs
|
|
148
148
|
const homedir = os.homedir();
|
|
149
149
|
const tmpdir = os.tmpdir();
|
|
150
|
+
/**
|
|
151
|
+
* Collapse `/C:/...` and `C:/C:/...` so Windows does not resolve them as `C:\C:\...`.
|
|
152
|
+
*/
|
|
153
|
+
function normalizeEnvPath(filePath) {
|
|
154
|
+
return filePath.replace(/\\/g, "/").replace(/^\/+([A-Z]:)/i, "$1").replace(/^([A-Z]:)(?:\/+\1)+/i, "$1");
|
|
155
|
+
}
|
|
150
156
|
const macos = (orgId) => {
|
|
151
157
|
const library = joinPaths(homedir, "Library");
|
|
152
158
|
return {
|
|
@@ -214,15 +220,15 @@ function getEnvPaths(options = {}) {
|
|
|
214
220
|
return Object.keys(result).reduce((ret, key) => {
|
|
215
221
|
if (result[key]) {
|
|
216
222
|
const filePath = result[key];
|
|
217
|
-
ret[key] = options.appId && options.appId !== options.orgId && options.appId !== options.nestedDir ? joinPaths(filePath, options.appId) : filePath;
|
|
218
|
-
if (options.nestedDir && options.nestedDir !== options.orgId && options.nestedDir !== options.appId) ret[key] = joinPaths(ret[key], options.nestedDir);
|
|
223
|
+
ret[key] = normalizeEnvPath(options.appId && options.appId !== options.orgId && options.appId !== options.nestedDir ? joinPaths(filePath, options.appId) : joinPaths(filePath));
|
|
224
|
+
if (options.nestedDir && options.nestedDir !== options.orgId && options.nestedDir !== options.appId) ret[key] = normalizeEnvPath(joinPaths(ret[key], options.nestedDir));
|
|
219
225
|
}
|
|
220
226
|
return ret;
|
|
221
227
|
}, {});
|
|
222
228
|
}
|
|
223
229
|
|
|
224
230
|
//#endregion
|
|
225
|
-
//#region ../../node_modules/.pnpm/@stryke+fs@0.33.
|
|
231
|
+
//#region ../../node_modules/.pnpm/@stryke+fs@0.33.116_zod@4.5.4/node_modules/@stryke/fs/dist/exists.mjs
|
|
226
232
|
/**
|
|
227
233
|
* Check if a file exists
|
|
228
234
|
*
|
|
@@ -234,7 +240,7 @@ function existsSync$1(filePath) {
|
|
|
234
240
|
}
|
|
235
241
|
|
|
236
242
|
//#endregion
|
|
237
|
-
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.
|
|
243
|
+
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.252_@babel+traverse@7.29.8_@emnapi+core@1.11.3_@emnapi+runtime@1.11_97695d596639a1b7bfd97c0c747f6054/node_modules/@powerlines/nx/dist/src/helpers/plugin-utilities.mjs
|
|
238
244
|
/**
|
|
239
245
|
* Generates Nx input strings for the Powerlines configuration file, replacing the `{framework}` placeholder with the specified framework name.
|
|
240
246
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/nx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.98",
|
|
4
4
|
"description": "A Nx plugin to support Shell Shock development in Nx monorepos.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
|
@@ -79,24 +79,24 @@
|
|
|
79
79
|
"typings": "dist/index.d.ts",
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@nx/devkit": "23.1.0",
|
|
82
|
-
"@powerlines/nx": "^0.13.
|
|
83
|
-
"@shell-shock/core": "0.17.
|
|
84
|
-
"@storm-software/config": "^1.138.
|
|
85
|
-
"@storm-software/config-tools": "^1.190.
|
|
86
|
-
"@storm-software/workspace-tools": "^1.297.
|
|
87
|
-
"@stryke/hash": "^0.13.
|
|
88
|
-
"@stryke/path": "^0.29.
|
|
89
|
-
"@stryke/string-format": "^0.17.
|
|
90
|
-
"@stryke/type-checks": "^0.6.
|
|
82
|
+
"@powerlines/nx": "^0.13.252",
|
|
83
|
+
"@shell-shock/core": "0.17.25",
|
|
84
|
+
"@storm-software/config": "^1.138.71",
|
|
85
|
+
"@storm-software/config-tools": "^1.190.135",
|
|
86
|
+
"@storm-software/workspace-tools": "^1.297.4",
|
|
87
|
+
"@stryke/hash": "^0.13.69",
|
|
88
|
+
"@stryke/path": "^0.29.41",
|
|
89
|
+
"@stryke/string-format": "^0.17.56",
|
|
90
|
+
"@stryke/type-checks": "^0.6.47",
|
|
91
91
|
"defu": "^6.1.7",
|
|
92
92
|
"jiti": "^2.7.0",
|
|
93
|
-
"powerlines": "^0.47.
|
|
93
|
+
"powerlines": "^0.47.212",
|
|
94
94
|
"untyped": "^1.5.2"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
98
|
-
"@powerlines/plugin-untyped": "^0.2.
|
|
99
|
-
"@storm-software/testing-tools": "^1.119.
|
|
97
|
+
"@powerlines/plugin-tsdown": "^0.1.613",
|
|
98
|
+
"@powerlines/plugin-untyped": "^0.2.628",
|
|
99
|
+
"@storm-software/testing-tools": "^1.119.287",
|
|
100
100
|
"@types/node": "^25.9.5",
|
|
101
101
|
"eslint-flat-config-utils": "^2.1.4",
|
|
102
102
|
"jsonc-eslint-parser": "^2.4.2"
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"peerDependencies": { "nx": ">=22.7.0" },
|
|
105
105
|
"publishConfig": { "access": "public" },
|
|
106
106
|
"executors": "./executors.json",
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "6fee81652a0a86b6884ed1e2420d6c85067d66e6"
|
|
108
108
|
}
|