@powerlines/nx 0.10.68 → 0.11.0
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/{chunk-DNMCZOZX.js → chunk-2KLRY6GO.js} +2 -2
- package/dist/{chunk-HJZ2I6NE.mjs → chunk-4QGBKGVB.mjs} +25 -9
- package/dist/{chunk-KBRCV5NY.js → chunk-XR24N2HA.js} +25 -9
- package/dist/{chunk-2SK7GXYX.mjs → chunk-ZPDOOUZK.mjs} +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/src/helpers/plugin-utilities.d.mts +9 -0
- package/dist/src/helpers/plugin-utilities.d.ts +9 -0
- package/dist/src/helpers/plugin-utilities.js +4 -4
- package/dist/src/helpers/plugin-utilities.mjs +1 -1
- package/dist/src/plugin/index.js +3 -3
- package/dist/src/plugin/index.mjs +2 -2
- package/dist/src/types/plugin.d.mts +1 -1
- package/dist/src/types/plugin.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Powerlines - Nx
|
|
4
4
|
|
|
5
|
+
## [0.10.68](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.68) (12/14/2025)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **powerlines** to **v0.31.5**
|
|
10
|
+
|
|
5
11
|
## [0.10.67](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.67) (12/14/2025)
|
|
6
12
|
|
|
7
13
|
### Updated Dependencies
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXR24N2HA_js = require('./chunk-XR24N2HA.js');
|
|
4
4
|
|
|
5
5
|
// src/plugin/index.ts
|
|
6
|
-
var createNodesV2 =
|
|
6
|
+
var createNodesV2 = chunkXR24N2HA_js.createNxPlugin({
|
|
7
7
|
framework: "powerlines"
|
|
8
8
|
});
|
|
9
9
|
|
|
@@ -32,7 +32,9 @@ function createNxPlugin(opts) {
|
|
|
32
32
|
const artifactsFolder = opts?.artifactsFolder || `{projectRoot}/.${framework}`;
|
|
33
33
|
const targetInputs = getNxTargetInputs(framework);
|
|
34
34
|
const pluginInputs = getNxPluginInputs(framework);
|
|
35
|
-
|
|
35
|
+
if (opts?.verbose) {
|
|
36
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Initializing the ${titleCase(framework)} Nx plugin for the following inputs: ${pluginInputs}`);
|
|
37
|
+
}
|
|
36
38
|
return [
|
|
37
39
|
pluginInputs,
|
|
38
40
|
async (configFiles, options, contextV2) => {
|
|
@@ -61,29 +63,41 @@ function createNxPlugin(opts) {
|
|
|
61
63
|
return {};
|
|
62
64
|
}
|
|
63
65
|
const root = getRoot(projectRoot, context);
|
|
64
|
-
|
|
66
|
+
if (opts?.verbose) {
|
|
67
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
|
|
68
|
+
}
|
|
65
69
|
const userConfig = await loadUserConfigFile(projectRoot, contextV2.workspaceRoot, resolver, "build", "development", configFile, framework);
|
|
66
70
|
if (!existsSync(joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"))) {
|
|
67
|
-
|
|
71
|
+
if (opts?.verbose) {
|
|
72
|
+
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.`);
|
|
73
|
+
}
|
|
68
74
|
return {};
|
|
69
75
|
}
|
|
70
76
|
const packageJsonContent = await readFile(joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"), "utf8");
|
|
71
77
|
if (!packageJsonContent) {
|
|
72
|
-
|
|
78
|
+
if (opts?.verbose) {
|
|
79
|
+
console.warn(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - No package.json file found for project in root directory ${projectRoot}`);
|
|
80
|
+
}
|
|
73
81
|
return {};
|
|
74
82
|
}
|
|
75
83
|
const packageJson = JSON.parse(packageJsonContent);
|
|
76
84
|
if (!userConfig.configFile && !packageJson?.storm) {
|
|
77
|
-
|
|
85
|
+
if (opts?.verbose) {
|
|
86
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
|
|
87
|
+
}
|
|
78
88
|
return {};
|
|
79
89
|
}
|
|
80
90
|
const projectConfig = getProjectConfigFromProjectRoot(projectRoot, packageJson);
|
|
81
91
|
if (!projectConfig) {
|
|
82
|
-
|
|
92
|
+
if (opts?.verbose) {
|
|
93
|
+
console.warn(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - No project configuration found for project in root directory ${projectRoot}`);
|
|
94
|
+
}
|
|
83
95
|
return {};
|
|
84
96
|
}
|
|
85
97
|
const targets = readTargetsFromPackageJson(packageJson, nxJson, projectRoot, context.workspaceRoot);
|
|
86
|
-
|
|
98
|
+
if (opts?.verbose) {
|
|
99
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Preparing Nx targets for project in root directory ${projectRoot}.`);
|
|
100
|
+
}
|
|
87
101
|
if (options?.clean !== false && !targets[options?.clean?.targetName || "clean"]) {
|
|
88
102
|
targets[options?.clean?.targetName || "clean"] = {
|
|
89
103
|
inputs: Array.isArray(options?.clean?.inputs) ? options.clean.inputs : withNamedInputs(targetInputs, [
|
|
@@ -125,7 +139,7 @@ function createNxPlugin(opts) {
|
|
|
125
139
|
],
|
|
126
140
|
executor: options?.prepare?.executor || `@${framework}/nx:${options?.prepare?.targetName || "prepare"}`,
|
|
127
141
|
dependsOn: options?.prepare?.dependsOn ?? [
|
|
128
|
-
`^${options?.prepare?.targetName || "
|
|
142
|
+
`^${options?.prepare?.targetName || "build"}`,
|
|
129
143
|
options?.clean !== false && `${options?.clean?.targetName || "clean"}`
|
|
130
144
|
].filter(Boolean),
|
|
131
145
|
defaultConfiguration: options?.prepare?.defaultConfiguration || "production",
|
|
@@ -308,7 +322,9 @@ function createNxPlugin(opts) {
|
|
|
308
322
|
addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.type || "library", {
|
|
309
323
|
overwrite: true
|
|
310
324
|
});
|
|
311
|
-
|
|
325
|
+
if (opts?.verbose) {
|
|
326
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
|
|
327
|
+
}
|
|
312
328
|
return {
|
|
313
329
|
projects: {
|
|
314
330
|
[root]: defu(projectConfig, {
|
|
@@ -38,7 +38,9 @@ function createNxPlugin(opts) {
|
|
|
38
38
|
const artifactsFolder = opts?.artifactsFolder || `{projectRoot}/.${framework}`;
|
|
39
39
|
const targetInputs = getNxTargetInputs(framework);
|
|
40
40
|
const pluginInputs = getNxPluginInputs(framework);
|
|
41
|
-
|
|
41
|
+
if (opts?.verbose) {
|
|
42
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Initializing the ${titleCase.titleCase(framework)} Nx plugin for the following inputs: ${pluginInputs}`);
|
|
43
|
+
}
|
|
42
44
|
return [
|
|
43
45
|
pluginInputs,
|
|
44
46
|
async (configFiles, options, contextV2) => {
|
|
@@ -67,29 +69,41 @@ function createNxPlugin(opts) {
|
|
|
67
69
|
return {};
|
|
68
70
|
}
|
|
69
71
|
const root = pluginHelpers.getRoot(projectRoot, context);
|
|
70
|
-
|
|
72
|
+
if (opts?.verbose) {
|
|
73
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
|
|
74
|
+
}
|
|
71
75
|
const userConfig = await chunkDQI2I5KK_js.loadUserConfigFile(projectRoot, contextV2.workspaceRoot, resolver, "build", "development", configFile, framework);
|
|
72
76
|
if (!exists.existsSync(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"))) {
|
|
73
|
-
|
|
77
|
+
if (opts?.verbose) {
|
|
78
|
+
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.`);
|
|
79
|
+
}
|
|
74
80
|
return {};
|
|
75
81
|
}
|
|
76
82
|
const packageJsonContent = await promises.readFile(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"), "utf8");
|
|
77
83
|
if (!packageJsonContent) {
|
|
78
|
-
|
|
84
|
+
if (opts?.verbose) {
|
|
85
|
+
console.warn(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - No package.json file found for project in root directory ${projectRoot}`);
|
|
86
|
+
}
|
|
79
87
|
return {};
|
|
80
88
|
}
|
|
81
89
|
const packageJson = JSON.parse(packageJsonContent);
|
|
82
90
|
if (!userConfig.configFile && !packageJson?.storm) {
|
|
83
|
-
|
|
91
|
+
if (opts?.verbose) {
|
|
92
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
|
|
93
|
+
}
|
|
84
94
|
return {};
|
|
85
95
|
}
|
|
86
96
|
const projectConfig = pluginHelpers.getProjectConfigFromProjectRoot(projectRoot, packageJson);
|
|
87
97
|
if (!projectConfig) {
|
|
88
|
-
|
|
98
|
+
if (opts?.verbose) {
|
|
99
|
+
console.warn(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - No project configuration found for project in root directory ${projectRoot}`);
|
|
100
|
+
}
|
|
89
101
|
return {};
|
|
90
102
|
}
|
|
91
103
|
const targets = packageJson_js.readTargetsFromPackageJson(packageJson, nxJson$1, projectRoot, context.workspaceRoot);
|
|
92
|
-
|
|
104
|
+
if (opts?.verbose) {
|
|
105
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Preparing Nx targets for project in root directory ${projectRoot}.`);
|
|
106
|
+
}
|
|
93
107
|
if (options?.clean !== false && !targets[options?.clean?.targetName || "clean"]) {
|
|
94
108
|
targets[options?.clean?.targetName || "clean"] = {
|
|
95
109
|
inputs: Array.isArray(options?.clean?.inputs) ? options.clean.inputs : nxJson.withNamedInputs(targetInputs, [
|
|
@@ -131,7 +145,7 @@ function createNxPlugin(opts) {
|
|
|
131
145
|
],
|
|
132
146
|
executor: options?.prepare?.executor || `@${framework}/nx:${options?.prepare?.targetName || "prepare"}`,
|
|
133
147
|
dependsOn: options?.prepare?.dependsOn ?? [
|
|
134
|
-
`^${options?.prepare?.targetName || "
|
|
148
|
+
`^${options?.prepare?.targetName || "build"}`,
|
|
135
149
|
options?.clean !== false && `${options?.clean?.targetName || "clean"}`
|
|
136
150
|
].filter(Boolean),
|
|
137
151
|
defaultConfiguration: options?.prepare?.defaultConfiguration || "production",
|
|
@@ -314,7 +328,9 @@ function createNxPlugin(opts) {
|
|
|
314
328
|
projectTags.addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.type || "library", {
|
|
315
329
|
overwrite: true
|
|
316
330
|
});
|
|
317
|
-
|
|
331
|
+
if (opts?.verbose) {
|
|
332
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
|
|
333
|
+
}
|
|
318
334
|
return {
|
|
319
335
|
projects: {
|
|
320
336
|
[root]: defu__default.default(projectConfig, {
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2KLRY6GO_js = require('./chunk-2KLRY6GO.js');
|
|
4
4
|
require('./chunk-XO62WWX4.js');
|
|
5
5
|
var chunkIPCWDRHB_js = require('./chunk-IPCWDRHB.js');
|
|
6
6
|
var chunk2I2COQXO_js = require('./chunk-2I2COQXO.js');
|
|
@@ -10,7 +10,7 @@ var chunkRHBHSB3N_js = require('./chunk-RHBHSB3N.js');
|
|
|
10
10
|
require('./chunk-N2YKXZ5R.js');
|
|
11
11
|
var chunkWUJKJGEW_js = require('./chunk-WUJKJGEW.js');
|
|
12
12
|
require('./chunk-6BIJYAAM.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-XR24N2HA.js');
|
|
14
14
|
require('./chunk-DQI2I5KK.js');
|
|
15
15
|
require('./chunk-IQVSZEQ6.js');
|
|
16
16
|
require('./chunk-SHUYVCID.js');
|
|
@@ -19,7 +19,7 @@ require('./chunk-SHUYVCID.js');
|
|
|
19
19
|
|
|
20
20
|
Object.defineProperty(exports, "createNodesV2", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk2KLRY6GO_js.createNodesV2; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "lint", {
|
|
25
25
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createNodesV2 } from './chunk-
|
|
1
|
+
export { createNodesV2 } from './chunk-ZPDOOUZK.mjs';
|
|
2
2
|
import './chunk-UV4HQO3Y.mjs';
|
|
3
3
|
export { executor_default as lint } from './chunk-NTS4NV36.mjs';
|
|
4
4
|
export { executor_default as prepare } from './chunk-XNSEB5AI.mjs';
|
|
@@ -8,7 +8,7 @@ export { executor_default as docs } from './chunk-CZ5MSBO3.mjs';
|
|
|
8
8
|
import './chunk-23KFTIT2.mjs';
|
|
9
9
|
export { generator_default as sync, generatorFn as syncGenerator } from './chunk-326QB2VK.mjs';
|
|
10
10
|
import './chunk-RINC6MFJ.mjs';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-4QGBKGVB.mjs';
|
|
12
12
|
import './chunk-OVX2CEXQ.mjs';
|
|
13
13
|
import './chunk-IC47MFKB.mjs';
|
|
14
14
|
import './chunk-O6YSETKJ.mjs';
|
|
@@ -43,6 +43,15 @@ interface CreateNxPluginOptions {
|
|
|
43
43
|
* @defaultValue "powerlines"
|
|
44
44
|
*/
|
|
45
45
|
framework?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Whether to enable verbose logging for the Nx plugin.
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* If enabled, the plugin will log more detailed information about its operations, which can be useful for debugging and troubleshooting.
|
|
51
|
+
*
|
|
52
|
+
* @defaultValue false
|
|
53
|
+
*/
|
|
54
|
+
verbose?: boolean;
|
|
46
55
|
}
|
|
47
56
|
/**
|
|
48
57
|
* Creates an Nx plugin that integrates Powerlines into the Nx build process.
|
|
@@ -43,6 +43,15 @@ interface CreateNxPluginOptions {
|
|
|
43
43
|
* @defaultValue "powerlines"
|
|
44
44
|
*/
|
|
45
45
|
framework?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Whether to enable verbose logging for the Nx plugin.
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* If enabled, the plugin will log more detailed information about its operations, which can be useful for debugging and troubleshooting.
|
|
51
|
+
*
|
|
52
|
+
* @defaultValue false
|
|
53
|
+
*/
|
|
54
|
+
verbose?: boolean;
|
|
46
55
|
}
|
|
47
56
|
/**
|
|
48
57
|
* Creates an Nx plugin that integrates Powerlines into the Nx build process.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXR24N2HA_js = require('../../chunk-XR24N2HA.js');
|
|
4
4
|
require('../../chunk-DQI2I5KK.js');
|
|
5
5
|
require('../../chunk-IQVSZEQ6.js');
|
|
6
6
|
require('../../chunk-SHUYVCID.js');
|
|
@@ -9,13 +9,13 @@ require('../../chunk-SHUYVCID.js');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "createNxPlugin", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkXR24N2HA_js.createNxPlugin; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "getNxPluginInputs", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkXR24N2HA_js.getNxPluginInputs; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "getNxTargetInputs", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkXR24N2HA_js.getNxTargetInputs; }
|
|
21
21
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createNxPlugin, getNxPluginInputs, getNxTargetInputs } from '../../chunk-
|
|
1
|
+
export { createNxPlugin, getNxPluginInputs, getNxTargetInputs } from '../../chunk-4QGBKGVB.mjs';
|
|
2
2
|
import '../../chunk-OVX2CEXQ.mjs';
|
|
3
3
|
import '../../chunk-IC47MFKB.mjs';
|
|
4
4
|
import '../../chunk-O6YSETKJ.mjs';
|
package/dist/src/plugin/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunk2KLRY6GO_js = require('../../chunk-2KLRY6GO.js');
|
|
4
|
+
require('../../chunk-XR24N2HA.js');
|
|
5
5
|
require('../../chunk-DQI2I5KK.js');
|
|
6
6
|
require('../../chunk-IQVSZEQ6.js');
|
|
7
7
|
require('../../chunk-SHUYVCID.js');
|
|
@@ -10,5 +10,5 @@ require('../../chunk-SHUYVCID.js');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "createNodesV2", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk2KLRY6GO_js.createNodesV2; }
|
|
14
14
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createNodesV2 } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { createNodesV2 } from '../../chunk-ZPDOOUZK.mjs';
|
|
2
|
+
import '../../chunk-4QGBKGVB.mjs';
|
|
3
3
|
import '../../chunk-OVX2CEXQ.mjs';
|
|
4
4
|
import '../../chunk-IC47MFKB.mjs';
|
|
5
5
|
import '../../chunk-O6YSETKJ.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/nx",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "A Nx plugin to support Powerlines development in Nx monorepos.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"defu": "^6.1.4",
|
|
197
197
|
"jiti": "^2.6.1",
|
|
198
198
|
"nx": "^22.2.3",
|
|
199
|
-
"powerlines": "^0.31.
|
|
199
|
+
"powerlines": "^0.31.6"
|
|
200
200
|
},
|
|
201
201
|
"devDependencies": {
|
|
202
202
|
"@nx/workspace": "^22.2.3",
|
|
@@ -210,5 +210,5 @@
|
|
|
210
210
|
"publishConfig": { "access": "public" },
|
|
211
211
|
"executors": "./executors.json",
|
|
212
212
|
"generators": "./generators.json",
|
|
213
|
-
"gitHead": "
|
|
213
|
+
"gitHead": "a7da8c6e6ecb00c6bd05fa6b6525ec369d58b0c4"
|
|
214
214
|
}
|