@powerlines/nx 0.10.26 → 0.10.27
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 +11 -0
- package/dist/{chunk-ACE6O62X.js → chunk-2PYUYDPD.js} +11 -11
- package/dist/{chunk-4A6Y7MGQ.js → chunk-2W5L3QE3.js} +2 -2
- package/dist/{chunk-6WVDB4DZ.js → chunk-2YSHMNU6.js} +2 -2
- package/dist/{chunk-BXKPRYNH.mjs → chunk-DMX7BNND.mjs} +22 -14
- package/dist/{chunk-PJYRCGK4.js → chunk-ELZO2KAE.js} +2 -2
- package/dist/{chunk-A7SAZMVH.mjs → chunk-EWXGKWHK.mjs} +1 -1
- package/dist/{chunk-A26KXB6A.js → chunk-I7QVZOFS.js} +2 -2
- package/dist/{chunk-6UH4EGMN.mjs → chunk-LH6XKDMA.mjs} +1 -1
- package/dist/{chunk-ONWCIW2E.mjs → chunk-LQRLEK65.mjs} +1 -1
- package/dist/{chunk-JPTGZQLU.js → chunk-MAMHMV35.js} +22 -14
- package/dist/{chunk-IAWSQ5AX.mjs → chunk-U2ZZ4QLS.mjs} +3 -1
- package/dist/{chunk-2SFOQMAA.js → chunk-UAUZWBTW.js} +12 -10
- package/dist/{chunk-B5L3T46G.js → chunk-V5EQMHJX.js} +2 -2
- package/dist/{chunk-Z22G7IM3.mjs → chunk-WAXOGGDZ.mjs} +1 -1
- package/dist/{chunk-X6GFPXO4.mjs → chunk-WGIN2BGP.mjs} +11 -11
- package/dist/{chunk-KCL7KVDF.mjs → chunk-WNLIJGN4.mjs} +1 -1
- package/dist/{chunk-L46S3DXB.mjs → chunk-Y4WK22DY.mjs} +1 -1
- package/dist/{chunk-7TPTVC3S.js → chunk-YPABMWPC.js} +2 -2
- package/dist/executors.js +12 -12
- package/dist/executors.mjs +7 -7
- package/dist/index.js +15 -15
- package/dist/index.mjs +9 -9
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- package/dist/src/executors/build/executor.js +5 -5
- package/dist/src/executors/build/executor.mjs +3 -3
- package/dist/src/executors/clean/executor.js +5 -5
- package/dist/src/executors/clean/executor.mjs +3 -3
- package/dist/src/executors/docs/executor.js +5 -5
- package/dist/src/executors/docs/executor.mjs +3 -3
- package/dist/src/executors/lint/executor.js +5 -5
- package/dist/src/executors/lint/executor.mjs +3 -3
- package/dist/src/executors/prepare/executor.js +5 -5
- package/dist/src/executors/prepare/executor.mjs +3 -3
- package/dist/src/helpers/plugin-utilities.js +5 -5
- package/dist/src/helpers/plugin-utilities.mjs +2 -2
- package/dist/src/plugin/index.js +4 -4
- package/dist/src/plugin/index.mjs +3 -3
- package/dist/src/types/plugin.d.mts +24 -0
- package/dist/src/types/plugin.d.ts +24 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Powerlines - Nx
|
|
4
4
|
|
|
5
|
+
## [0.10.27](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.27) (11/21/2025)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **powerlines:** Fix config file path resolution issue
|
|
10
|
+
([c201914](https://github.com/storm-software/powerlines/commit/c201914))
|
|
11
|
+
|
|
12
|
+
### Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated **powerlines** to **v0.23.10**
|
|
15
|
+
|
|
5
16
|
## [0.10.26](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.26) (11/20/2025)
|
|
6
17
|
|
|
7
18
|
### Bug Fixes
|
|
@@ -5,6 +5,7 @@ var getConfig = require('@storm-software/config-tools/get-config');
|
|
|
5
5
|
var exists = require('@stryke/fs/exists');
|
|
6
6
|
var append = require('@stryke/path/append');
|
|
7
7
|
var joinPaths = require('@stryke/path/join-paths');
|
|
8
|
+
var replace = require('@stryke/path/replace');
|
|
8
9
|
var isFunction = require('@stryke/type-checks/is-function');
|
|
9
10
|
var isSetObject = require('@stryke/type-checks/is-set-object');
|
|
10
11
|
var c12 = require('c12');
|
|
@@ -13,7 +14,6 @@ var types = require('@storm-software/config-tools/types');
|
|
|
13
14
|
require('@stryke/fs/json');
|
|
14
15
|
require('@stryke/fs/list-files');
|
|
15
16
|
require('@stryke/fs/remove-file');
|
|
16
|
-
require('@stryke/hash/hash-files');
|
|
17
17
|
require('@stryke/helpers/get-unique');
|
|
18
18
|
require('@stryke/path/file-path-fns');
|
|
19
19
|
var kebabCase = require('@stryke/string-format/kebab-case');
|
|
@@ -32,23 +32,23 @@ async function loadWorkspaceConfig(workspaceRoot, cwd) {
|
|
|
32
32
|
}));
|
|
33
33
|
}
|
|
34
34
|
chunkSHUYVCID_js.__name(loadWorkspaceConfig, "loadWorkspaceConfig");
|
|
35
|
-
async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode, configFile, framework = "powerlines") {
|
|
35
|
+
async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode = "production", configFile, framework = "powerlines") {
|
|
36
36
|
let resolvedUserConfig = {};
|
|
37
|
-
|
|
37
|
+
let resolvedUserConfigFile;
|
|
38
|
+
if (configFile) {
|
|
39
|
+
resolvedUserConfigFile = exists.existsSync(replace.replacePath(configFile, projectRoot)) ? replace.replacePath(configFile, projectRoot) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), replace.replacePath(configFile, projectRoot))) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), replace.replacePath(configFile, projectRoot)) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile) : void 0;
|
|
40
|
+
}
|
|
41
|
+
if (!resolvedUserConfigFile) {
|
|
42
|
+
resolvedUserConfigFile = exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
|
|
43
|
+
}
|
|
38
44
|
if (resolvedUserConfigFile) {
|
|
39
|
-
|
|
40
|
-
try {
|
|
41
|
-
resolvedPath = jiti.esmResolve(resolvedUserConfigFile);
|
|
42
|
-
} catch {
|
|
43
|
-
resolvedPath = resolvedUserConfigFile;
|
|
44
|
-
}
|
|
45
|
-
const resolved = await jiti.import(resolvedPath);
|
|
45
|
+
const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
|
|
46
46
|
if (resolved) {
|
|
47
47
|
let config = {};
|
|
48
48
|
if (isFunction.isFunction(resolved)) {
|
|
49
49
|
config = await Promise.resolve(resolved({
|
|
50
50
|
command,
|
|
51
|
-
mode
|
|
51
|
+
mode,
|
|
52
52
|
isSsrBuild: false,
|
|
53
53
|
isPreview: false
|
|
54
54
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUAUZWBTW_js = require('./chunk-UAUZWBTW.js');
|
|
4
4
|
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
5
|
var defu = require('defu');
|
|
6
6
|
|
|
@@ -19,7 +19,7 @@ async function executorFn(context, api) {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
22
|
-
var executor =
|
|
22
|
+
var executor = chunkUAUZWBTW_js.withExecutor("build", executorFn);
|
|
23
23
|
var executor_default = executor;
|
|
24
24
|
|
|
25
25
|
exports.executorFn = executorFn;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMAMHMV35_js = require('./chunk-MAMHMV35.js');
|
|
4
4
|
|
|
5
5
|
// src/plugin/index.ts
|
|
6
|
-
var createNodesV2 =
|
|
6
|
+
var createNodesV2 = chunkMAMHMV35_js.createNxPlugin({
|
|
7
7
|
framework: "powerlines"
|
|
8
8
|
});
|
|
9
9
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PROJECT_ROOT_HASH_LENGTH, loadUserConfigFile } from './chunk-
|
|
1
|
+
import { PROJECT_ROOT_HASH_LENGTH, loadUserConfigFile } from './chunk-WGIN2BGP.mjs';
|
|
2
2
|
import { CONFIG_INPUTS } from './chunk-LQU7XWFP.mjs';
|
|
3
3
|
import { __name } from './chunk-O6YSETKJ.mjs';
|
|
4
4
|
import { createNodesFromFiles } from '@nx/devkit';
|
|
@@ -45,6 +45,14 @@ function createNxPlugin(opts) {
|
|
|
45
45
|
throw new Error("The cache directory could not be determined.");
|
|
46
46
|
}
|
|
47
47
|
const nxJson = readNxJson(contextV2.workspaceRoot);
|
|
48
|
+
const resolver = createJiti(contextV2.workspaceRoot, {
|
|
49
|
+
debug: !!options?.debug,
|
|
50
|
+
interopDefault: true,
|
|
51
|
+
fsCache: joinPaths(envPaths.cache, "nx-plugin", murmurhash(contextV2.workspaceRoot, {
|
|
52
|
+
maxLength: PROJECT_ROOT_HASH_LENGTH
|
|
53
|
+
}), "jiti"),
|
|
54
|
+
moduleCache: true
|
|
55
|
+
});
|
|
48
56
|
return createNodesFromFiles(async (configFile, _, context) => {
|
|
49
57
|
try {
|
|
50
58
|
const projectRoot = getProjectRoot(configFile, contextV2.workspaceRoot);
|
|
@@ -53,16 +61,10 @@ function createNxPlugin(opts) {
|
|
|
53
61
|
return {};
|
|
54
62
|
}
|
|
55
63
|
const root = getRoot(projectRoot, context);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
const
|
|
60
|
-
interopDefault: true,
|
|
61
|
-
fsCache: joinPaths(cacheDir, "jiti"),
|
|
62
|
-
moduleCache: true
|
|
63
|
-
});
|
|
64
|
-
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
|
|
65
|
-
const userConfig = await loadUserConfigFile(projectRoot, contextV2.workspaceRoot, jiti, "build", "development", configFile, framework);
|
|
64
|
+
if (options?.debug) {
|
|
65
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
|
|
66
|
+
}
|
|
67
|
+
const userConfig = await loadUserConfigFile(projectRoot, contextV2.workspaceRoot, resolver, "build", "development", configFile, framework);
|
|
66
68
|
if (!existsSync(joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"))) {
|
|
67
69
|
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.`);
|
|
68
70
|
return {};
|
|
@@ -74,7 +76,9 @@ function createNxPlugin(opts) {
|
|
|
74
76
|
}
|
|
75
77
|
const packageJson = JSON.parse(packageJsonContent);
|
|
76
78
|
if (!userConfig.configFile && !packageJson?.storm) {
|
|
77
|
-
|
|
79
|
+
if (options?.debug) {
|
|
80
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
|
|
81
|
+
}
|
|
78
82
|
return {};
|
|
79
83
|
}
|
|
80
84
|
const projectConfig = getProjectConfigFromProjectRoot(projectRoot, packageJson);
|
|
@@ -84,7 +88,9 @@ function createNxPlugin(opts) {
|
|
|
84
88
|
}
|
|
85
89
|
const tsconfig = userConfig?.tsconfig || (existsSync(joinPaths(projectRoot, "tsconfig.json")) ? joinPaths(projectRoot, "tsconfig.json") : void 0);
|
|
86
90
|
const targets = readTargetsFromPackageJson(packageJson, nxJson, projectRoot, context.workspaceRoot);
|
|
87
|
-
|
|
91
|
+
if (options?.debug) {
|
|
92
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Preparing Nx targets for project in root directory ${projectRoot}.`);
|
|
93
|
+
}
|
|
88
94
|
if (options?.clean !== false && !targets[options?.clean?.targetName || "clean"]) {
|
|
89
95
|
targets[options?.clean?.targetName || "clean"] = {
|
|
90
96
|
inputs: Array.isArray(options?.clean?.inputs) ? options.clean.inputs : withNamedInputs(targetInputs, [
|
|
@@ -314,7 +320,9 @@ function createNxPlugin(opts) {
|
|
|
314
320
|
addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.type || "library", {
|
|
315
321
|
overwrite: true
|
|
316
322
|
});
|
|
317
|
-
|
|
323
|
+
if (options?.debug) {
|
|
324
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
|
|
325
|
+
}
|
|
318
326
|
return {
|
|
319
327
|
projects: {
|
|
320
328
|
[root]: defu(projectConfig, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUAUZWBTW_js = require('./chunk-UAUZWBTW.js');
|
|
4
4
|
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
5
|
|
|
6
6
|
// src/executors/clean/executor.ts
|
|
@@ -11,7 +11,7 @@ async function executorFn(context, api) {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
14
|
-
var executor =
|
|
14
|
+
var executor = chunkUAUZWBTW_js.withExecutor("clean", executorFn);
|
|
15
15
|
var executor_default = executor;
|
|
16
16
|
|
|
17
17
|
exports.executorFn = executorFn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUAUZWBTW_js = require('./chunk-UAUZWBTW.js');
|
|
4
4
|
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
5
|
|
|
6
6
|
// src/executors/docs/executor.ts
|
|
@@ -11,7 +11,7 @@ async function executorFn(context, api) {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
14
|
-
var executor =
|
|
14
|
+
var executor = chunkUAUZWBTW_js.withExecutor("docs", executorFn);
|
|
15
15
|
var executor_default = executor;
|
|
16
16
|
|
|
17
17
|
exports.executorFn = executorFn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2PYUYDPD_js = require('./chunk-2PYUYDPD.js');
|
|
4
4
|
var chunkVIU4CXA3_js = require('./chunk-VIU4CXA3.js');
|
|
5
5
|
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
6
6
|
var devkit = require('@nx/devkit');
|
|
@@ -51,6 +51,14 @@ function createNxPlugin(opts) {
|
|
|
51
51
|
throw new Error("The cache directory could not be determined.");
|
|
52
52
|
}
|
|
53
53
|
const nxJson$1 = nxJson_js.readNxJson(contextV2.workspaceRoot);
|
|
54
|
+
const resolver = jiti.createJiti(contextV2.workspaceRoot, {
|
|
55
|
+
debug: !!options?.debug,
|
|
56
|
+
interopDefault: true,
|
|
57
|
+
fsCache: joinPaths.joinPaths(envPaths.cache, "nx-plugin", murmurhash.murmurhash(contextV2.workspaceRoot, {
|
|
58
|
+
maxLength: chunk2PYUYDPD_js.PROJECT_ROOT_HASH_LENGTH
|
|
59
|
+
}), "jiti"),
|
|
60
|
+
moduleCache: true
|
|
61
|
+
});
|
|
54
62
|
return devkit.createNodesFromFiles(async (configFile, _, context) => {
|
|
55
63
|
try {
|
|
56
64
|
const projectRoot = pluginHelpers.getProjectRoot(configFile, contextV2.workspaceRoot);
|
|
@@ -59,16 +67,10 @@ function createNxPlugin(opts) {
|
|
|
59
67
|
return {};
|
|
60
68
|
}
|
|
61
69
|
const root = pluginHelpers.getRoot(projectRoot, context);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
const
|
|
66
|
-
interopDefault: true,
|
|
67
|
-
fsCache: joinPaths.joinPaths(cacheDir, "jiti"),
|
|
68
|
-
moduleCache: true
|
|
69
|
-
});
|
|
70
|
-
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
|
|
71
|
-
const userConfig = await chunkACE6O62X_js.loadUserConfigFile(projectRoot, contextV2.workspaceRoot, jiti$1, "build", "development", configFile, framework);
|
|
70
|
+
if (options?.debug) {
|
|
71
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
|
|
72
|
+
}
|
|
73
|
+
const userConfig = await chunk2PYUYDPD_js.loadUserConfigFile(projectRoot, contextV2.workspaceRoot, resolver, "build", "development", configFile, framework);
|
|
72
74
|
if (!exists.existsSync(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"))) {
|
|
73
75
|
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.`);
|
|
74
76
|
return {};
|
|
@@ -80,7 +82,9 @@ function createNxPlugin(opts) {
|
|
|
80
82
|
}
|
|
81
83
|
const packageJson = JSON.parse(packageJsonContent);
|
|
82
84
|
if (!userConfig.configFile && !packageJson?.storm) {
|
|
83
|
-
|
|
85
|
+
if (options?.debug) {
|
|
86
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
|
|
87
|
+
}
|
|
84
88
|
return {};
|
|
85
89
|
}
|
|
86
90
|
const projectConfig = pluginHelpers.getProjectConfigFromProjectRoot(projectRoot, packageJson);
|
|
@@ -90,7 +94,9 @@ function createNxPlugin(opts) {
|
|
|
90
94
|
}
|
|
91
95
|
const tsconfig = userConfig?.tsconfig || (exists.existsSync(joinPaths.joinPaths(projectRoot, "tsconfig.json")) ? joinPaths.joinPaths(projectRoot, "tsconfig.json") : void 0);
|
|
92
96
|
const targets = packageJson_js.readTargetsFromPackageJson(packageJson, nxJson$1, projectRoot, context.workspaceRoot);
|
|
93
|
-
|
|
97
|
+
if (options?.debug) {
|
|
98
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Preparing Nx targets for project in root directory ${projectRoot}.`);
|
|
99
|
+
}
|
|
94
100
|
if (options?.clean !== false && !targets[options?.clean?.targetName || "clean"]) {
|
|
95
101
|
targets[options?.clean?.targetName || "clean"] = {
|
|
96
102
|
inputs: Array.isArray(options?.clean?.inputs) ? options.clean.inputs : nxJson.withNamedInputs(targetInputs, [
|
|
@@ -320,7 +326,9 @@ function createNxPlugin(opts) {
|
|
|
320
326
|
projectTags.addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.type || "library", {
|
|
321
327
|
overwrite: true
|
|
322
328
|
});
|
|
323
|
-
|
|
329
|
+
if (options?.debug) {
|
|
330
|
+
console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
|
|
331
|
+
}
|
|
324
332
|
return {
|
|
325
333
|
projects: {
|
|
326
334
|
[root]: defu__default.default(projectConfig, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadWorkspaceConfig, CACHE_HASH_LENGTH, PROJECT_ROOT_HASH_LENGTH, getPrefixedProjectRootHash, loadUserConfigFile, writeMetaFile } from './chunk-
|
|
1
|
+
import { loadWorkspaceConfig, CACHE_HASH_LENGTH, PROJECT_ROOT_HASH_LENGTH, getPrefixedProjectRootHash, loadUserConfigFile, writeMetaFile } from './chunk-WGIN2BGP.mjs';
|
|
2
2
|
import { __name } from './chunk-O6YSETKJ.mjs';
|
|
3
3
|
import { getLogFn, getLogLevel, writeError } from '@storm-software/config-tools/logger';
|
|
4
4
|
import { withRunExecutor } from '@storm-software/workspace-tools/base/base-executor';
|
|
@@ -624,6 +624,7 @@ function createDefaultEnvironment(userConfig) {
|
|
|
624
624
|
__name(createDefaultEnvironment, "createDefaultEnvironment");
|
|
625
625
|
function resolveOptions(options) {
|
|
626
626
|
return defu5(options, {
|
|
627
|
+
debug: options.logLevel === "trace",
|
|
627
628
|
interopDefault: true,
|
|
628
629
|
fsCache: options.mode !== "development" ? joinPaths$1(options.cacheDir, "jiti") : false,
|
|
629
630
|
moduleCache: options.mode !== "development"
|
|
@@ -3061,6 +3062,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3061
3062
|
projectRoot: cacheKey.projectRoot,
|
|
3062
3063
|
cacheDir: this.cachePath,
|
|
3063
3064
|
mode: cacheKey.mode,
|
|
3065
|
+
logLevel: config.logLevel || this.config?.logLevel || this.workspaceConfig.logLevel || "info",
|
|
3064
3066
|
skipCache: cacheKey.skipCache
|
|
3065
3067
|
});
|
|
3066
3068
|
const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2PYUYDPD_js = require('./chunk-2PYUYDPD.js');
|
|
4
4
|
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
5
|
var logger = require('@storm-software/config-tools/logger');
|
|
6
6
|
var baseExecutor = require('@storm-software/workspace-tools/base/base-executor');
|
|
@@ -654,6 +654,7 @@ function createDefaultEnvironment(userConfig) {
|
|
|
654
654
|
chunkSHUYVCID_js.__name(createDefaultEnvironment, "createDefaultEnvironment");
|
|
655
655
|
function resolveOptions(options) {
|
|
656
656
|
return defu5__default.default(options, {
|
|
657
|
+
debug: options.logLevel === "trace",
|
|
657
658
|
interopDefault: true,
|
|
658
659
|
fsCache: options.mode !== "development" ? joinPaths.joinPaths(options.cacheDir, "jiti") : false,
|
|
659
660
|
moduleCache: options.mode !== "development"
|
|
@@ -2677,7 +2678,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2677
2678
|
* @returns A promise that resolves to the new context.
|
|
2678
2679
|
*/
|
|
2679
2680
|
static async from(workspaceRoot, config) {
|
|
2680
|
-
const context = new _PowerlinesContext(await
|
|
2681
|
+
const context = new _PowerlinesContext(await chunk2PYUYDPD_js.loadWorkspaceConfig(workspaceRoot, config.root));
|
|
2681
2682
|
await context.withUserConfig(config);
|
|
2682
2683
|
context.powerlinesPath = await resolve.resolvePackage("powerlines");
|
|
2683
2684
|
if (!context.powerlinesPath) {
|
|
@@ -2774,10 +2775,10 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2774
2775
|
workspaceRoot: this.workspaceConfig?.workspaceRoot,
|
|
2775
2776
|
projectRoot: this.config?.projectRoot
|
|
2776
2777
|
}, {
|
|
2777
|
-
maxLength:
|
|
2778
|
+
maxLength: chunk2PYUYDPD_js.PROJECT_ROOT_HASH_LENGTH
|
|
2778
2779
|
}),
|
|
2779
2780
|
configHash: murmurhash.murmurhash(this.config, {
|
|
2780
|
-
maxLength:
|
|
2781
|
+
maxLength: chunk2PYUYDPD_js.CACHE_HASH_LENGTH
|
|
2781
2782
|
})
|
|
2782
2783
|
};
|
|
2783
2784
|
}
|
|
@@ -2837,7 +2838,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2837
2838
|
* Get the path to the data directory for the project
|
|
2838
2839
|
*/
|
|
2839
2840
|
get dataPath() {
|
|
2840
|
-
return join.joinPaths(this.envPaths.data, "projects",
|
|
2841
|
+
return join.joinPaths(this.envPaths.data, "projects", chunk2PYUYDPD_js.getPrefixedProjectRootHash(this.config.name, this.meta.projectRootHash));
|
|
2841
2842
|
}
|
|
2842
2843
|
/**
|
|
2843
2844
|
* Get the path to the cache directory for the project
|
|
@@ -2847,7 +2848,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2847
2848
|
checksum: this.#checksum,
|
|
2848
2849
|
config: this.meta.configHash
|
|
2849
2850
|
}, {
|
|
2850
|
-
maxLength:
|
|
2851
|
+
maxLength: chunk2PYUYDPD_js.CACHE_HASH_LENGTH
|
|
2851
2852
|
}));
|
|
2852
2853
|
}
|
|
2853
2854
|
/**
|
|
@@ -3091,9 +3092,10 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3091
3092
|
projectRoot: cacheKey.projectRoot,
|
|
3092
3093
|
cacheDir: this.cachePath,
|
|
3093
3094
|
mode: cacheKey.mode,
|
|
3095
|
+
logLevel: config.logLevel || this.config?.logLevel || this.workspaceConfig.logLevel || "info",
|
|
3094
3096
|
skipCache: cacheKey.skipCache
|
|
3095
3097
|
});
|
|
3096
|
-
const userConfig = await
|
|
3098
|
+
const userConfig = await chunk2PYUYDPD_js.loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
|
|
3097
3099
|
this.mergeUserConfig(userConfig.config);
|
|
3098
3100
|
configCache.set(cacheKey, {
|
|
3099
3101
|
projectJson: this.projectJson,
|
|
@@ -3452,7 +3454,7 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
|
|
|
3452
3454
|
* @returns A promise that resolves to the new context.
|
|
3453
3455
|
*/
|
|
3454
3456
|
static async from(workspaceRoot, config) {
|
|
3455
|
-
const context = new _PowerlinesAPIContext(await
|
|
3457
|
+
const context = new _PowerlinesAPIContext(await chunk2PYUYDPD_js.loadWorkspaceConfig(workspaceRoot, config.root));
|
|
3456
3458
|
await context.withUserConfig(config);
|
|
3457
3459
|
context.powerlinesPath = await resolve.resolvePackage("powerlines");
|
|
3458
3460
|
if (!context.powerlinesPath) {
|
|
@@ -3640,7 +3642,7 @@ ${context.entry.map((entry) => `- ${entry.input.file || entry.file}${entry.outpu
|
|
|
3640
3642
|
|
|
3641
3643
|
${console.formatLogMessage(context.config)}`);
|
|
3642
3644
|
context.fs[__VFS_PATCH__]();
|
|
3643
|
-
await
|
|
3645
|
+
await chunk2PYUYDPD_js.writeMetaFile(context);
|
|
3644
3646
|
context.persistedMeta = context.meta;
|
|
3645
3647
|
if (!exists.existsSync(context.cachePath)) {
|
|
3646
3648
|
await helpers.createDirectory(context.cachePath);
|
|
@@ -3770,7 +3772,7 @@ ${formatTypes(generatedTypes)}
|
|
|
3770
3772
|
throw new Error("Failed to parse the TypeScript configuration file.");
|
|
3771
3773
|
}
|
|
3772
3774
|
await this.callPostHook(context, "prepare");
|
|
3773
|
-
await
|
|
3775
|
+
await chunk2PYUYDPD_js.writeMetaFile(context);
|
|
3774
3776
|
context.fs[__VFS_REVERT__]();
|
|
3775
3777
|
});
|
|
3776
3778
|
this.context.log(types.LogLevelLabel.INFO, "Powerlines API has been prepared successfully");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUAUZWBTW_js = require('./chunk-UAUZWBTW.js');
|
|
4
4
|
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
5
|
var defu = require('defu');
|
|
6
6
|
|
|
@@ -19,7 +19,7 @@ async function executorFn(context, api) {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
22
|
-
var executor =
|
|
22
|
+
var executor = chunkUAUZWBTW_js.withExecutor("prepare", executorFn);
|
|
23
23
|
var executor_default = executor;
|
|
24
24
|
|
|
25
25
|
exports.executorFn = executorFn;
|
|
@@ -3,6 +3,7 @@ import { getWorkspaceConfig } from '@storm-software/config-tools/get-config';
|
|
|
3
3
|
import { existsSync } from '@stryke/fs/exists';
|
|
4
4
|
import { appendPath } from '@stryke/path/append';
|
|
5
5
|
import { joinPaths } from '@stryke/path/join-paths';
|
|
6
|
+
import { replacePath } from '@stryke/path/replace';
|
|
6
7
|
import { isFunction } from '@stryke/type-checks/is-function';
|
|
7
8
|
import { isSetObject } from '@stryke/type-checks/is-set-object';
|
|
8
9
|
import { loadConfig } from 'c12';
|
|
@@ -11,7 +12,6 @@ import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
|
11
12
|
import '@stryke/fs/json';
|
|
12
13
|
import '@stryke/fs/list-files';
|
|
13
14
|
import '@stryke/fs/remove-file';
|
|
14
|
-
import '@stryke/hash/hash-files';
|
|
15
15
|
import '@stryke/helpers/get-unique';
|
|
16
16
|
import '@stryke/path/file-path-fns';
|
|
17
17
|
import { kebabCase } from '@stryke/string-format/kebab-case';
|
|
@@ -26,23 +26,23 @@ async function loadWorkspaceConfig(workspaceRoot, cwd) {
|
|
|
26
26
|
}));
|
|
27
27
|
}
|
|
28
28
|
__name(loadWorkspaceConfig, "loadWorkspaceConfig");
|
|
29
|
-
async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode, configFile, framework = "powerlines") {
|
|
29
|
+
async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode = "production", configFile, framework = "powerlines") {
|
|
30
30
|
let resolvedUserConfig = {};
|
|
31
|
-
|
|
31
|
+
let resolvedUserConfigFile;
|
|
32
|
+
if (configFile) {
|
|
33
|
+
resolvedUserConfigFile = existsSync(replacePath(configFile, projectRoot)) ? replacePath(configFile, projectRoot) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), replacePath(configFile, projectRoot))) ? joinPaths(appendPath(projectRoot, workspaceRoot), replacePath(configFile, projectRoot)) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths(appendPath(projectRoot, workspaceRoot), configFile) : void 0;
|
|
34
|
+
}
|
|
35
|
+
if (!resolvedUserConfigFile) {
|
|
36
|
+
resolvedUserConfigFile = existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
|
|
37
|
+
}
|
|
32
38
|
if (resolvedUserConfigFile) {
|
|
33
|
-
|
|
34
|
-
try {
|
|
35
|
-
resolvedPath = jiti.esmResolve(resolvedUserConfigFile);
|
|
36
|
-
} catch {
|
|
37
|
-
resolvedPath = resolvedUserConfigFile;
|
|
38
|
-
}
|
|
39
|
-
const resolved = await jiti.import(resolvedPath);
|
|
39
|
+
const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
|
|
40
40
|
if (resolved) {
|
|
41
41
|
let config = {};
|
|
42
42
|
if (isFunction(resolved)) {
|
|
43
43
|
config = await Promise.resolve(resolved({
|
|
44
44
|
command,
|
|
45
|
-
mode
|
|
45
|
+
mode,
|
|
46
46
|
isSsrBuild: false,
|
|
47
47
|
isPreview: false
|
|
48
48
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUAUZWBTW_js = require('./chunk-UAUZWBTW.js');
|
|
4
4
|
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
5
|
|
|
6
6
|
// src/executors/lint/executor.ts
|
|
@@ -11,7 +11,7 @@ async function executorFn(context, api) {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
14
|
-
var executor =
|
|
14
|
+
var executor = chunkUAUZWBTW_js.withExecutor("lint", executorFn);
|
|
15
15
|
var executor_default = executor;
|
|
16
16
|
|
|
17
17
|
exports.executorFn = executorFn;
|
package/dist/executors.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('./chunk-XO62WWX4.js');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
4
|
+
var chunkYPABMWPC_js = require('./chunk-YPABMWPC.js');
|
|
5
|
+
var chunkV5EQMHJX_js = require('./chunk-V5EQMHJX.js');
|
|
6
|
+
var chunk2W5L3QE3_js = require('./chunk-2W5L3QE3.js');
|
|
7
|
+
var chunkELZO2KAE_js = require('./chunk-ELZO2KAE.js');
|
|
8
|
+
var chunkI7QVZOFS_js = require('./chunk-I7QVZOFS.js');
|
|
9
|
+
require('./chunk-UAUZWBTW.js');
|
|
10
|
+
require('./chunk-2PYUYDPD.js');
|
|
11
11
|
require('./chunk-SHUYVCID.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "lint", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkYPABMWPC_js.executor_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "prepare", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkV5EQMHJX_js.executor_default; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "build", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk2W5L3QE3_js.executor_default; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "clean", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkELZO2KAE_js.executor_default; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "docs", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkI7QVZOFS_js.executor_default; }
|
|
34
34
|
});
|
package/dist/executors.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './chunk-UV4HQO3Y.mjs';
|
|
2
|
-
export { executor_default as lint } from './chunk-
|
|
3
|
-
export { executor_default as prepare } from './chunk-
|
|
4
|
-
export { executor_default as build } from './chunk-
|
|
5
|
-
export { executor_default as clean } from './chunk-
|
|
6
|
-
export { executor_default as docs } from './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
2
|
+
export { executor_default as lint } from './chunk-EWXGKWHK.mjs';
|
|
3
|
+
export { executor_default as prepare } from './chunk-WNLIJGN4.mjs';
|
|
4
|
+
export { executor_default as build } from './chunk-LH6XKDMA.mjs';
|
|
5
|
+
export { executor_default as clean } from './chunk-LQRLEK65.mjs';
|
|
6
|
+
export { executor_default as docs } from './chunk-WAXOGGDZ.mjs';
|
|
7
|
+
import './chunk-U2ZZ4QLS.mjs';
|
|
8
|
+
import './chunk-WGIN2BGP.mjs';
|
|
9
9
|
import './chunk-O6YSETKJ.mjs';
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2YSHMNU6_js = require('./chunk-2YSHMNU6.js');
|
|
4
4
|
require('./chunk-XO62WWX4.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
5
|
+
var chunkYPABMWPC_js = require('./chunk-YPABMWPC.js');
|
|
6
|
+
var chunkV5EQMHJX_js = require('./chunk-V5EQMHJX.js');
|
|
7
|
+
var chunk2W5L3QE3_js = require('./chunk-2W5L3QE3.js');
|
|
8
|
+
var chunkELZO2KAE_js = require('./chunk-ELZO2KAE.js');
|
|
9
|
+
var chunkI7QVZOFS_js = require('./chunk-I7QVZOFS.js');
|
|
10
10
|
require('./chunk-N2YKXZ5R.js');
|
|
11
11
|
var chunkWUJKJGEW_js = require('./chunk-WUJKJGEW.js');
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-UAUZWBTW.js');
|
|
13
|
+
require('./chunk-MAMHMV35.js');
|
|
14
|
+
require('./chunk-2PYUYDPD.js');
|
|
15
15
|
require('./chunk-VIU4CXA3.js');
|
|
16
16
|
require('./chunk-SHUYVCID.js');
|
|
17
17
|
|
|
@@ -19,27 +19,27 @@ require('./chunk-SHUYVCID.js');
|
|
|
19
19
|
|
|
20
20
|
Object.defineProperty(exports, "createNodesV2", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk2YSHMNU6_js.createNodesV2; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "lint", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkYPABMWPC_js.executor_default; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "prepare", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkV5EQMHJX_js.executor_default; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "build", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk2W5L3QE3_js.executor_default; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "clean", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkELZO2KAE_js.executor_default; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "docs", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkI7QVZOFS_js.executor_default; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "sync", {
|
|
45
45
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { createNodesV2 } from './chunk-
|
|
1
|
+
export { createNodesV2 } from './chunk-Y4WK22DY.mjs';
|
|
2
2
|
import './chunk-UV4HQO3Y.mjs';
|
|
3
|
-
export { executor_default as lint } from './chunk-
|
|
4
|
-
export { executor_default as prepare } from './chunk-
|
|
5
|
-
export { executor_default as build } from './chunk-
|
|
6
|
-
export { executor_default as clean } from './chunk-
|
|
7
|
-
export { executor_default as docs } from './chunk-
|
|
3
|
+
export { executor_default as lint } from './chunk-EWXGKWHK.mjs';
|
|
4
|
+
export { executor_default as prepare } from './chunk-WNLIJGN4.mjs';
|
|
5
|
+
export { executor_default as build } from './chunk-LH6XKDMA.mjs';
|
|
6
|
+
export { executor_default as clean } from './chunk-LQRLEK65.mjs';
|
|
7
|
+
export { executor_default as docs } from './chunk-WAXOGGDZ.mjs';
|
|
8
8
|
import './chunk-23KFTIT2.mjs';
|
|
9
9
|
export { generator_default as sync, generatorFn as syncGenerator } from './chunk-326QB2VK.mjs';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
10
|
+
import './chunk-U2ZZ4QLS.mjs';
|
|
11
|
+
import './chunk-DMX7BNND.mjs';
|
|
12
|
+
import './chunk-WGIN2BGP.mjs';
|
|
13
13
|
import './chunk-LQU7XWFP.mjs';
|
|
14
14
|
import './chunk-O6YSETKJ.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkUAUZWBTW_js = require('../../chunk-UAUZWBTW.js');
|
|
4
|
+
require('../../chunk-2PYUYDPD.js');
|
|
5
5
|
require('../../chunk-SHUYVCID.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "withExecutor", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkUAUZWBTW_js.withExecutor; }
|
|
12
12
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { withExecutor } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { withExecutor } from '../../chunk-U2ZZ4QLS.mjs';
|
|
2
|
+
import '../../chunk-WGIN2BGP.mjs';
|
|
3
3
|
import '../../chunk-O6YSETKJ.mjs';
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
5
|
+
var chunk2W5L3QE3_js = require('../../../chunk-2W5L3QE3.js');
|
|
6
|
+
require('../../../chunk-UAUZWBTW.js');
|
|
7
|
+
require('../../../chunk-2PYUYDPD.js');
|
|
8
8
|
require('../../../chunk-SHUYVCID.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "default", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk2W5L3QE3_js.executor_default; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "executorFn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk2W5L3QE3_js.executorFn; }
|
|
19
19
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { executor_default as default, executorFn } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { executor_default as default, executorFn } from '../../../chunk-LH6XKDMA.mjs';
|
|
2
|
+
import '../../../chunk-U2ZZ4QLS.mjs';
|
|
3
|
+
import '../../../chunk-WGIN2BGP.mjs';
|
|
4
4
|
import '../../../chunk-O6YSETKJ.mjs';
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
5
|
+
var chunkELZO2KAE_js = require('../../../chunk-ELZO2KAE.js');
|
|
6
|
+
require('../../../chunk-UAUZWBTW.js');
|
|
7
|
+
require('../../../chunk-2PYUYDPD.js');
|
|
8
8
|
require('../../../chunk-SHUYVCID.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "default", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkELZO2KAE_js.executor_default; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "executorFn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkELZO2KAE_js.executorFn; }
|
|
19
19
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { executor_default as default, executorFn } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { executor_default as default, executorFn } from '../../../chunk-LQRLEK65.mjs';
|
|
2
|
+
import '../../../chunk-U2ZZ4QLS.mjs';
|
|
3
|
+
import '../../../chunk-WGIN2BGP.mjs';
|
|
4
4
|
import '../../../chunk-O6YSETKJ.mjs';
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
5
|
+
var chunkI7QVZOFS_js = require('../../../chunk-I7QVZOFS.js');
|
|
6
|
+
require('../../../chunk-UAUZWBTW.js');
|
|
7
|
+
require('../../../chunk-2PYUYDPD.js');
|
|
8
8
|
require('../../../chunk-SHUYVCID.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "default", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkI7QVZOFS_js.executor_default; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "executorFn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkI7QVZOFS_js.executorFn; }
|
|
19
19
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { executor_default as default, executorFn } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { executor_default as default, executorFn } from '../../../chunk-WAXOGGDZ.mjs';
|
|
2
|
+
import '../../../chunk-U2ZZ4QLS.mjs';
|
|
3
|
+
import '../../../chunk-WGIN2BGP.mjs';
|
|
4
4
|
import '../../../chunk-O6YSETKJ.mjs';
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
5
|
+
var chunkYPABMWPC_js = require('../../../chunk-YPABMWPC.js');
|
|
6
|
+
require('../../../chunk-UAUZWBTW.js');
|
|
7
|
+
require('../../../chunk-2PYUYDPD.js');
|
|
8
8
|
require('../../../chunk-SHUYVCID.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "default", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkYPABMWPC_js.executor_default; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "executorFn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkYPABMWPC_js.executorFn; }
|
|
19
19
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { executor_default as default, executorFn } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { executor_default as default, executorFn } from '../../../chunk-EWXGKWHK.mjs';
|
|
2
|
+
import '../../../chunk-U2ZZ4QLS.mjs';
|
|
3
|
+
import '../../../chunk-WGIN2BGP.mjs';
|
|
4
4
|
import '../../../chunk-O6YSETKJ.mjs';
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
5
|
+
var chunkV5EQMHJX_js = require('../../../chunk-V5EQMHJX.js');
|
|
6
|
+
require('../../../chunk-UAUZWBTW.js');
|
|
7
|
+
require('../../../chunk-2PYUYDPD.js');
|
|
8
8
|
require('../../../chunk-SHUYVCID.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "default", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkV5EQMHJX_js.executor_default; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "executorFn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkV5EQMHJX_js.executorFn; }
|
|
19
19
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { executor_default as default, executorFn } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { executor_default as default, executorFn } from '../../../chunk-WNLIJGN4.mjs';
|
|
2
|
+
import '../../../chunk-U2ZZ4QLS.mjs';
|
|
3
|
+
import '../../../chunk-WGIN2BGP.mjs';
|
|
4
4
|
import '../../../chunk-O6YSETKJ.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkMAMHMV35_js = require('../../chunk-MAMHMV35.js');
|
|
4
|
+
require('../../chunk-2PYUYDPD.js');
|
|
5
5
|
require('../../chunk-VIU4CXA3.js');
|
|
6
6
|
require('../../chunk-SHUYVCID.js');
|
|
7
7
|
|
|
@@ -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 chunkMAMHMV35_js.createNxPlugin; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "getNxPluginInputs", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkMAMHMV35_js.getNxPluginInputs; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "getNxTargetInputs", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkMAMHMV35_js.getNxTargetInputs; }
|
|
21
21
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createNxPlugin, getNxPluginInputs, getNxTargetInputs } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { createNxPlugin, getNxPluginInputs, getNxTargetInputs } from '../../chunk-DMX7BNND.mjs';
|
|
2
|
+
import '../../chunk-WGIN2BGP.mjs';
|
|
3
3
|
import '../../chunk-LQU7XWFP.mjs';
|
|
4
4
|
import '../../chunk-O6YSETKJ.mjs';
|
package/dist/src/plugin/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
3
|
+
var chunk2YSHMNU6_js = require('../../chunk-2YSHMNU6.js');
|
|
4
|
+
require('../../chunk-MAMHMV35.js');
|
|
5
|
+
require('../../chunk-2PYUYDPD.js');
|
|
6
6
|
require('../../chunk-VIU4CXA3.js');
|
|
7
7
|
require('../../chunk-SHUYVCID.js');
|
|
8
8
|
|
|
@@ -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 chunk2YSHMNU6_js.createNodesV2; }
|
|
14
14
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createNodesV2 } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { createNodesV2 } from '../../chunk-Y4WK22DY.mjs';
|
|
2
|
+
import '../../chunk-DMX7BNND.mjs';
|
|
3
|
+
import '../../chunk-WGIN2BGP.mjs';
|
|
4
4
|
import '../../chunk-LQU7XWFP.mjs';
|
|
5
5
|
import '../../chunk-O6YSETKJ.mjs';
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
interface NxPluginOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Enable debug logging for the plugin
|
|
4
|
+
*
|
|
5
|
+
* @defaultValue false
|
|
6
|
+
*/
|
|
7
|
+
debug?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Configuration options for the clean target added by the Nx plugin
|
|
10
|
+
*/
|
|
2
11
|
clean?: false | {
|
|
3
12
|
/**
|
|
4
13
|
* The name of the clean target to use when cleaning the project
|
|
@@ -33,6 +42,9 @@ interface NxPluginOptions {
|
|
|
33
42
|
*/
|
|
34
43
|
executor?: string;
|
|
35
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Configuration options for the prepare target added by the Nx plugin
|
|
47
|
+
*/
|
|
36
48
|
prepare?: false | {
|
|
37
49
|
/**
|
|
38
50
|
* The name of the prepare target to use when preparing the project
|
|
@@ -67,6 +79,9 @@ interface NxPluginOptions {
|
|
|
67
79
|
*/
|
|
68
80
|
executor?: string;
|
|
69
81
|
};
|
|
82
|
+
/**
|
|
83
|
+
* Configuration options for the lint target added by the Nx plugin
|
|
84
|
+
*/
|
|
70
85
|
lint?: false | {
|
|
71
86
|
/**
|
|
72
87
|
* The name of the lint target to use when linting the project
|
|
@@ -101,6 +116,9 @@ interface NxPluginOptions {
|
|
|
101
116
|
*/
|
|
102
117
|
executor?: string;
|
|
103
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* Configuration options for the build target added by the Nx plugin
|
|
121
|
+
*/
|
|
104
122
|
build?: false | {
|
|
105
123
|
/**
|
|
106
124
|
* The name of the build target to use when building the project
|
|
@@ -135,6 +153,9 @@ interface NxPluginOptions {
|
|
|
135
153
|
*/
|
|
136
154
|
executor?: string;
|
|
137
155
|
};
|
|
156
|
+
/**
|
|
157
|
+
* Configuration options for the docs target added by the Nx plugin
|
|
158
|
+
*/
|
|
138
159
|
docs?: false | {
|
|
139
160
|
/**
|
|
140
161
|
* The name of the docs target to use when generating documentation for the project
|
|
@@ -169,6 +190,9 @@ interface NxPluginOptions {
|
|
|
169
190
|
*/
|
|
170
191
|
executor?: string;
|
|
171
192
|
};
|
|
193
|
+
/**
|
|
194
|
+
* Configuration options for the deploy target added by the Nx plugin
|
|
195
|
+
*/
|
|
172
196
|
deploy?: false | {
|
|
173
197
|
/**
|
|
174
198
|
* The name of the deploy target to use when deploying the project
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
interface NxPluginOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Enable debug logging for the plugin
|
|
4
|
+
*
|
|
5
|
+
* @defaultValue false
|
|
6
|
+
*/
|
|
7
|
+
debug?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Configuration options for the clean target added by the Nx plugin
|
|
10
|
+
*/
|
|
2
11
|
clean?: false | {
|
|
3
12
|
/**
|
|
4
13
|
* The name of the clean target to use when cleaning the project
|
|
@@ -33,6 +42,9 @@ interface NxPluginOptions {
|
|
|
33
42
|
*/
|
|
34
43
|
executor?: string;
|
|
35
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Configuration options for the prepare target added by the Nx plugin
|
|
47
|
+
*/
|
|
36
48
|
prepare?: false | {
|
|
37
49
|
/**
|
|
38
50
|
* The name of the prepare target to use when preparing the project
|
|
@@ -67,6 +79,9 @@ interface NxPluginOptions {
|
|
|
67
79
|
*/
|
|
68
80
|
executor?: string;
|
|
69
81
|
};
|
|
82
|
+
/**
|
|
83
|
+
* Configuration options for the lint target added by the Nx plugin
|
|
84
|
+
*/
|
|
70
85
|
lint?: false | {
|
|
71
86
|
/**
|
|
72
87
|
* The name of the lint target to use when linting the project
|
|
@@ -101,6 +116,9 @@ interface NxPluginOptions {
|
|
|
101
116
|
*/
|
|
102
117
|
executor?: string;
|
|
103
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* Configuration options for the build target added by the Nx plugin
|
|
121
|
+
*/
|
|
104
122
|
build?: false | {
|
|
105
123
|
/**
|
|
106
124
|
* The name of the build target to use when building the project
|
|
@@ -135,6 +153,9 @@ interface NxPluginOptions {
|
|
|
135
153
|
*/
|
|
136
154
|
executor?: string;
|
|
137
155
|
};
|
|
156
|
+
/**
|
|
157
|
+
* Configuration options for the docs target added by the Nx plugin
|
|
158
|
+
*/
|
|
138
159
|
docs?: false | {
|
|
139
160
|
/**
|
|
140
161
|
* The name of the docs target to use when generating documentation for the project
|
|
@@ -169,6 +190,9 @@ interface NxPluginOptions {
|
|
|
169
190
|
*/
|
|
170
191
|
executor?: string;
|
|
171
192
|
};
|
|
193
|
+
/**
|
|
194
|
+
* Configuration options for the deploy target added by the Nx plugin
|
|
195
|
+
*/
|
|
172
196
|
deploy?: false | {
|
|
173
197
|
/**
|
|
174
198
|
* The name of the deploy target to use when deploying the project
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/nx",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.27",
|
|
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.1.0",
|
|
199
|
-
"powerlines": "^0.23.
|
|
199
|
+
"powerlines": "^0.23.10"
|
|
200
200
|
},
|
|
201
201
|
"devDependencies": {
|
|
202
202
|
"@nx/workspace": "^22.1.0",
|
|
@@ -210,5 +210,5 @@
|
|
|
210
210
|
"publishConfig": { "access": "public" },
|
|
211
211
|
"executors": "./executors.json",
|
|
212
212
|
"generators": "./generators.json",
|
|
213
|
-
"gitHead": "
|
|
213
|
+
"gitHead": "5a6b8349dc29bf9e496ed5dee32c6cfb8d9bff4e"
|
|
214
214
|
}
|