@powerlines/nx 0.10.14 → 0.10.16
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 +23 -0
- package/dist/{chunk-TGJAQNLH.mjs → chunk-GUAUB4A5.mjs} +8 -5
- package/dist/{chunk-FD6PSWBL.js → chunk-LG4AFV5G.js} +8 -5
- package/dist/executors.js +10 -10
- package/dist/executors.mjs +2 -2
- package/dist/index.js +14 -14
- package/dist/index.mjs +4 -4
- package/dist/src/plugin/index.js +2 -2
- package/dist/src/plugin/index.mjs +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Powerlines - Nx
|
|
4
4
|
|
|
5
|
+
## [0.10.16](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.16) (11/19/2025)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **nx:** Update plugin name to match package pattern
|
|
10
|
+
([02d128a](https://github.com/storm-software/powerlines/commit/02d128a))
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **nx:** Resolve issue with relative project roots in Nx plugin
|
|
15
|
+
([7f61f8a](https://github.com/storm-software/powerlines/commit/7f61f8a))
|
|
16
|
+
|
|
17
|
+
## [0.10.15](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.15) (11/19/2025)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- **nx:** Resolve issue reading `package.json` file in Nx plugin
|
|
22
|
+
([ce68929](https://github.com/storm-software/powerlines/commit/ce68929))
|
|
23
|
+
|
|
24
|
+
### Updated Dependencies
|
|
25
|
+
|
|
26
|
+
- Updated **powerlines** to **v0.22.1**
|
|
27
|
+
|
|
5
28
|
## [0.10.14](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.14) (11/19/2025)
|
|
6
29
|
|
|
7
30
|
### Bug Fixes
|
|
@@ -57,7 +57,7 @@ function getNxPluginInputs(framework) {
|
|
|
57
57
|
__name(getNxPluginInputs, "getNxPluginInputs");
|
|
58
58
|
function createNxPlugin(opts) {
|
|
59
59
|
const framework = opts?.framework || "powerlines";
|
|
60
|
-
const name = opts?.name || `${framework}/plugin
|
|
60
|
+
const name = opts?.name || `${framework}/nx/plugin`;
|
|
61
61
|
const artifactsFolder = opts?.artifactsFolder || `{projectRoot}/.${framework}`;
|
|
62
62
|
const targetInputs = getNxTargetInputs(framework);
|
|
63
63
|
const pluginInputs = getNxPluginInputs(framework);
|
|
@@ -82,7 +82,7 @@ function createNxPlugin(opts) {
|
|
|
82
82
|
return {};
|
|
83
83
|
}
|
|
84
84
|
const root = getRoot(projectRoot, context);
|
|
85
|
-
const cacheDir = joinPaths(envPaths.cache, "
|
|
85
|
+
const cacheDir = joinPaths(envPaths.cache, "nx-plugin", murmurhash(contextV2.workspaceRoot, {
|
|
86
86
|
maxLength: PROJECT_ROOT_HASH_LENGTH
|
|
87
87
|
}));
|
|
88
88
|
const jiti = createJiti(joinPaths(contextV2.workspaceRoot, projectRoot), {
|
|
@@ -90,9 +90,10 @@ function createNxPlugin(opts) {
|
|
|
90
90
|
fsCache: joinPaths(cacheDir, "jiti"),
|
|
91
91
|
moduleCache: true
|
|
92
92
|
});
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
|
|
94
|
+
const userConfig = await loadUserConfigFile(joinPaths(contextV2.workspaceRoot, projectRoot), jiti, "build", "development", configFile, framework);
|
|
95
|
+
if (!existsSync(joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"))) {
|
|
96
|
+
console.warn(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Cannot find \`package.json\` file in the project's root directory (path: "${joinPaths(contextV2.workspaceRoot, projectRoot)}"). Skipping project configuration.`);
|
|
96
97
|
return {};
|
|
97
98
|
}
|
|
98
99
|
const packageJsonContent = await readFile(joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"), "utf8");
|
|
@@ -112,6 +113,7 @@ function createNxPlugin(opts) {
|
|
|
112
113
|
}
|
|
113
114
|
const tsconfig = userConfig?.tsconfig || (existsSync(joinPaths(projectRoot, "tsconfig.json")) ? joinPaths(projectRoot, "tsconfig.json") : void 0);
|
|
114
115
|
const targets = readTargetsFromPackageJson(packageJson, nxJson, projectRoot, context.workspaceRoot);
|
|
116
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Preparing Nx targets for project in root directory ${projectRoot}.`);
|
|
115
117
|
if (options?.clean !== false && !targets[options?.clean?.targetName || "clean"]) {
|
|
116
118
|
targets[options?.clean?.targetName || "clean"] = {
|
|
117
119
|
inputs: Array.isArray(options?.clean?.inputs) ? options.clean.inputs : withNamedInputs(targetInputs, [
|
|
@@ -300,6 +302,7 @@ function createNxPlugin(opts) {
|
|
|
300
302
|
addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.type || "library", {
|
|
301
303
|
overwrite: true
|
|
302
304
|
});
|
|
305
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
|
|
303
306
|
return {
|
|
304
307
|
projects: {
|
|
305
308
|
[root]: defu(projectConfig, {
|
|
@@ -63,7 +63,7 @@ function getNxPluginInputs(framework) {
|
|
|
63
63
|
chunkSHUYVCID_js.__name(getNxPluginInputs, "getNxPluginInputs");
|
|
64
64
|
function createNxPlugin(opts) {
|
|
65
65
|
const framework = opts?.framework || "powerlines";
|
|
66
|
-
const name = opts?.name || `${framework}/plugin
|
|
66
|
+
const name = opts?.name || `${framework}/nx/plugin`;
|
|
67
67
|
const artifactsFolder = opts?.artifactsFolder || `{projectRoot}/.${framework}`;
|
|
68
68
|
const targetInputs = getNxTargetInputs(framework);
|
|
69
69
|
const pluginInputs = getNxPluginInputs(framework);
|
|
@@ -88,7 +88,7 @@ function createNxPlugin(opts) {
|
|
|
88
88
|
return {};
|
|
89
89
|
}
|
|
90
90
|
const root = pluginHelpers.getRoot(projectRoot, context);
|
|
91
|
-
const cacheDir = joinPaths.joinPaths(envPaths.cache, "
|
|
91
|
+
const cacheDir = joinPaths.joinPaths(envPaths.cache, "nx-plugin", murmurhash.murmurhash(contextV2.workspaceRoot, {
|
|
92
92
|
maxLength: chunkLTCZN4I4_js.PROJECT_ROOT_HASH_LENGTH
|
|
93
93
|
}));
|
|
94
94
|
const jiti$1 = jiti.createJiti(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot), {
|
|
@@ -96,9 +96,10 @@ function createNxPlugin(opts) {
|
|
|
96
96
|
fsCache: joinPaths.joinPaths(cacheDir, "jiti"),
|
|
97
97
|
moduleCache: true
|
|
98
98
|
});
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
|
|
100
|
+
const userConfig = await chunkLTCZN4I4_js.loadUserConfigFile(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot), jiti$1, "build", "development", configFile, framework);
|
|
101
|
+
if (!exists.existsSync(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"))) {
|
|
102
|
+
console.warn(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Cannot find \`package.json\` file in the project's root directory (path: "${joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot)}"). Skipping project configuration.`);
|
|
102
103
|
return {};
|
|
103
104
|
}
|
|
104
105
|
const packageJsonContent = await promises.readFile(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"), "utf8");
|
|
@@ -118,6 +119,7 @@ function createNxPlugin(opts) {
|
|
|
118
119
|
}
|
|
119
120
|
const tsconfig = userConfig?.tsconfig || (exists.existsSync(joinPaths.joinPaths(projectRoot, "tsconfig.json")) ? joinPaths.joinPaths(projectRoot, "tsconfig.json") : void 0);
|
|
120
121
|
const targets = packageJson_js.readTargetsFromPackageJson(packageJson, nxJson$1, projectRoot, context.workspaceRoot);
|
|
122
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Preparing Nx targets for project in root directory ${projectRoot}.`);
|
|
121
123
|
if (options?.clean !== false && !targets[options?.clean?.targetName || "clean"]) {
|
|
122
124
|
targets[options?.clean?.targetName || "clean"] = {
|
|
123
125
|
inputs: Array.isArray(options?.clean?.inputs) ? options.clean.inputs : nxJson.withNamedInputs(targetInputs, [
|
|
@@ -306,6 +308,7 @@ function createNxPlugin(opts) {
|
|
|
306
308
|
projectTags.addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.type || "library", {
|
|
307
309
|
overwrite: true
|
|
308
310
|
});
|
|
311
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
|
|
309
312
|
return {
|
|
310
313
|
projects: {
|
|
311
314
|
[root]: defu__default.default(projectConfig, {
|
package/dist/executors.js
CHANGED
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('./chunk-XO62WWX4.js');
|
|
4
|
-
var chunkFZWXH2M7_js = require('./chunk-FZWXH2M7.js');
|
|
5
|
-
var chunk7SWNXVZN_js = require('./chunk-7SWNXVZN.js');
|
|
6
4
|
var chunkQJLAFC2D_js = require('./chunk-QJLAFC2D.js');
|
|
7
5
|
var chunkDKRIOFPB_js = require('./chunk-DKRIOFPB.js');
|
|
8
6
|
var chunkKJAIPQKC_js = require('./chunk-KJAIPQKC.js');
|
|
7
|
+
var chunkFZWXH2M7_js = require('./chunk-FZWXH2M7.js');
|
|
8
|
+
var chunk7SWNXVZN_js = require('./chunk-7SWNXVZN.js');
|
|
9
9
|
require('./chunk-32RH3DSY.js');
|
|
10
10
|
require('./chunk-LTCZN4I4.js');
|
|
11
11
|
require('./chunk-SHUYVCID.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
Object.defineProperty(exports, "prepare", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return chunkFZWXH2M7_js.executor_default; }
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "build", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunk7SWNXVZN_js.executor_default; }
|
|
22
|
-
});
|
|
23
15
|
Object.defineProperty(exports, "clean", {
|
|
24
16
|
enumerable: true,
|
|
25
17
|
get: function () { return chunkQJLAFC2D_js.executor_default; }
|
|
@@ -32,3 +24,11 @@ Object.defineProperty(exports, "lint", {
|
|
|
32
24
|
enumerable: true,
|
|
33
25
|
get: function () { return chunkKJAIPQKC_js.executor_default; }
|
|
34
26
|
});
|
|
27
|
+
Object.defineProperty(exports, "prepare", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkFZWXH2M7_js.executor_default; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "build", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunk7SWNXVZN_js.executor_default; }
|
|
34
|
+
});
|
package/dist/executors.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './chunk-UV4HQO3Y.mjs';
|
|
2
|
-
export { executor_default as prepare } from './chunk-RIB65IPA.mjs';
|
|
3
|
-
export { executor_default as build } from './chunk-K7X3KSVW.mjs';
|
|
4
2
|
export { executor_default as clean } from './chunk-IWLY4VEK.mjs';
|
|
5
3
|
export { executor_default as docs } from './chunk-NSFCCGL7.mjs';
|
|
6
4
|
export { executor_default as lint } from './chunk-KNIZUAS5.mjs';
|
|
5
|
+
export { executor_default as prepare } from './chunk-RIB65IPA.mjs';
|
|
6
|
+
export { executor_default as build } from './chunk-K7X3KSVW.mjs';
|
|
7
7
|
import './chunk-WMZ45WVV.mjs';
|
|
8
8
|
import './chunk-FMYWKI25.mjs';
|
|
9
9
|
import './chunk-O6YSETKJ.mjs';
|
package/dist/index.js
CHANGED
|
@@ -1,28 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('./chunk-XO62WWX4.js');
|
|
4
|
-
var chunkFZWXH2M7_js = require('./chunk-FZWXH2M7.js');
|
|
5
|
-
var chunk7SWNXVZN_js = require('./chunk-7SWNXVZN.js');
|
|
6
4
|
var chunkQJLAFC2D_js = require('./chunk-QJLAFC2D.js');
|
|
7
5
|
var chunkDKRIOFPB_js = require('./chunk-DKRIOFPB.js');
|
|
8
6
|
var chunkKJAIPQKC_js = require('./chunk-KJAIPQKC.js');
|
|
7
|
+
var chunkFZWXH2M7_js = require('./chunk-FZWXH2M7.js');
|
|
9
8
|
require('./chunk-N2YKXZ5R.js');
|
|
9
|
+
var chunkWUJKJGEW_js = require('./chunk-WUJKJGEW.js');
|
|
10
|
+
var chunkLG4AFV5G_js = require('./chunk-LG4AFV5G.js');
|
|
11
|
+
var chunk7SWNXVZN_js = require('./chunk-7SWNXVZN.js');
|
|
10
12
|
require('./chunk-32RH3DSY.js');
|
|
11
|
-
var chunkFD6PSWBL_js = require('./chunk-FD6PSWBL.js');
|
|
12
13
|
require('./chunk-LTCZN4I4.js');
|
|
13
|
-
var chunkWUJKJGEW_js = require('./chunk-WUJKJGEW.js');
|
|
14
14
|
require('./chunk-SHUYVCID.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
Object.defineProperty(exports, "prepare", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () { return chunkFZWXH2M7_js.executor_default; }
|
|
21
|
-
});
|
|
22
|
-
Object.defineProperty(exports, "build", {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function () { return chunk7SWNXVZN_js.executor_default; }
|
|
25
|
-
});
|
|
26
18
|
Object.defineProperty(exports, "clean", {
|
|
27
19
|
enumerable: true,
|
|
28
20
|
get: function () { return chunkQJLAFC2D_js.executor_default; }
|
|
@@ -35,9 +27,9 @@ Object.defineProperty(exports, "lint", {
|
|
|
35
27
|
enumerable: true,
|
|
36
28
|
get: function () { return chunkKJAIPQKC_js.executor_default; }
|
|
37
29
|
});
|
|
38
|
-
Object.defineProperty(exports, "
|
|
30
|
+
Object.defineProperty(exports, "prepare", {
|
|
39
31
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkFZWXH2M7_js.executor_default; }
|
|
41
33
|
});
|
|
42
34
|
Object.defineProperty(exports, "sync", {
|
|
43
35
|
enumerable: true,
|
|
@@ -47,3 +39,11 @@ Object.defineProperty(exports, "syncGenerator", {
|
|
|
47
39
|
enumerable: true,
|
|
48
40
|
get: function () { return chunkWUJKJGEW_js.generatorFn; }
|
|
49
41
|
});
|
|
42
|
+
Object.defineProperty(exports, "createNodesV2", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () { return chunkLG4AFV5G_js.createNodesV2; }
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "build", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () { return chunk7SWNXVZN_js.executor_default; }
|
|
49
|
+
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './chunk-UV4HQO3Y.mjs';
|
|
2
|
-
export { executor_default as prepare } from './chunk-RIB65IPA.mjs';
|
|
3
|
-
export { executor_default as build } from './chunk-K7X3KSVW.mjs';
|
|
4
2
|
export { executor_default as clean } from './chunk-IWLY4VEK.mjs';
|
|
5
3
|
export { executor_default as docs } from './chunk-NSFCCGL7.mjs';
|
|
6
4
|
export { executor_default as lint } from './chunk-KNIZUAS5.mjs';
|
|
5
|
+
export { executor_default as prepare } from './chunk-RIB65IPA.mjs';
|
|
7
6
|
import './chunk-23KFTIT2.mjs';
|
|
7
|
+
export { generator_default as sync, generatorFn as syncGenerator } from './chunk-326QB2VK.mjs';
|
|
8
|
+
export { createNodesV2 } from './chunk-GUAUB4A5.mjs';
|
|
9
|
+
export { executor_default as build } from './chunk-K7X3KSVW.mjs';
|
|
8
10
|
import './chunk-WMZ45WVV.mjs';
|
|
9
|
-
export { createNodesV2 } from './chunk-TGJAQNLH.mjs';
|
|
10
11
|
import './chunk-FMYWKI25.mjs';
|
|
11
|
-
export { generator_default as sync, generatorFn as syncGenerator } from './chunk-326QB2VK.mjs';
|
|
12
12
|
import './chunk-O6YSETKJ.mjs';
|
package/dist/src/plugin/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLG4AFV5G_js = require('../../chunk-LG4AFV5G.js');
|
|
4
4
|
require('../../chunk-LTCZN4I4.js');
|
|
5
5
|
require('../../chunk-SHUYVCID.js');
|
|
6
6
|
|
|
@@ -8,5 +8,5 @@ require('../../chunk-SHUYVCID.js');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "createNodesV2", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkLG4AFV5G_js.createNodesV2; }
|
|
12
12
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/nx",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.16",
|
|
4
4
|
"description": "A Nx plugin to support Powerlines development in Nx monorepos.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"defu": "^6.1.4",
|
|
155
155
|
"jiti": "^2.6.1",
|
|
156
156
|
"nx": "^22.0.4",
|
|
157
|
-
"powerlines": "^0.22.
|
|
157
|
+
"powerlines": "^0.22.1"
|
|
158
158
|
},
|
|
159
159
|
"devDependencies": {
|
|
160
160
|
"@nx/workspace": "^22.0.4",
|
|
@@ -168,5 +168,5 @@
|
|
|
168
168
|
"publishConfig": { "access": "public" },
|
|
169
169
|
"executors": "./executors.json",
|
|
170
170
|
"generators": "./generators.json",
|
|
171
|
-
"gitHead": "
|
|
171
|
+
"gitHead": "781b9a5f57b9c64bf6e659316741b7c8a429445f"
|
|
172
172
|
}
|