@shell-shock/nx 0.0.95 → 0.0.97
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 +15 -0
- package/dist/{rolldown-runtime-C_NdSu1c.js → _virtual/_rolldown/runtime.cjs} +2 -8
- package/dist/{base-executor-B48XZipC.js → base/base-executor.cjs} +1 -6
- package/dist/base/base-executor.d.cts +16 -0
- package/dist/base/base-executor.d.cts.map +1 -0
- package/dist/base/base-executor.d.ts +16 -0
- package/dist/base/base-executor.d.ts.map +1 -0
- package/dist/{base-executor-ChtjGl_i.mjs → base/base-executor.js} +2 -2
- package/dist/base/base-executor.js.map +1 -0
- package/dist/base/base-executor.schema.d.cts +166 -0
- package/dist/base/base-executor.schema.d.cts.map +1 -0
- package/dist/base/base-executor.schema.d.ts +2 -3
- package/dist/base/base-executor.schema.d.ts.map +1 -0
- package/dist/base/base-executor.schema.json +7 -19
- package/dist/base/base-executor.untyped.cjs +17 -0
- package/dist/{index.mjs → base/base-executor.untyped.js} +2 -3
- package/dist/base/base-executor.untyped.js.map +1 -0
- package/dist/base/index.cjs +4 -0
- package/dist/base/index.d.cts +2 -0
- package/dist/base/index.d.ts +2 -0
- package/dist/base/index.js +4 -0
- package/dist/executors/build/{executor.mjs → executor.cjs} +5 -6
- package/dist/executors/build/executor.d.cts +6 -0
- package/dist/executors/build/executor.d.cts.map +1 -0
- package/dist/executors/build/executor.d.ts +3 -181
- package/dist/executors/build/executor.d.ts.map +1 -1
- package/dist/executors/build/executor.js +6 -7
- package/dist/executors/build/executor.js.map +1 -0
- package/dist/executors/build/{executor.d.mts → schema.d.cts} +76 -82
- package/dist/executors/build/schema.d.cts.map +1 -0
- package/dist/executors/build/schema.d.ts +177 -191
- package/dist/executors/build/schema.d.ts.map +1 -0
- package/dist/executors/build/schema.json +7 -19
- package/dist/executors/clean/executor.cjs +11 -0
- package/dist/executors/clean/executor.d.cts +6 -0
- package/dist/executors/clean/executor.d.cts.map +1 -0
- package/dist/executors/clean/executor.d.ts +3 -181
- package/dist/executors/clean/executor.d.ts.map +1 -1
- package/dist/executors/clean/executor.js +4 -3
- package/dist/executors/clean/executor.js.map +1 -0
- package/dist/executors/clean/{executor.d.mts → schema.d.cts} +76 -82
- package/dist/executors/clean/schema.d.cts.map +1 -0
- package/dist/executors/clean/schema.d.ts +177 -191
- package/dist/executors/clean/schema.d.ts.map +1 -0
- package/dist/executors/clean/schema.json +7 -19
- package/dist/executors/docs/executor.cjs +11 -0
- package/dist/executors/docs/executor.d.cts +6 -0
- package/dist/executors/docs/executor.d.cts.map +1 -0
- package/dist/executors/docs/executor.d.ts +3 -181
- package/dist/executors/docs/executor.d.ts.map +1 -1
- package/dist/executors/docs/executor.js +4 -3
- package/dist/executors/docs/executor.js.map +1 -0
- package/dist/executors/docs/{executor.d.mts → schema.d.cts} +76 -82
- package/dist/executors/docs/schema.d.cts.map +1 -0
- package/dist/executors/docs/schema.d.ts +177 -191
- package/dist/executors/docs/schema.d.ts.map +1 -0
- package/dist/executors/docs/schema.json +7 -19
- package/dist/executors/lint/executor.cjs +11 -0
- package/dist/executors/lint/executor.d.cts +6 -0
- package/dist/executors/lint/executor.d.cts.map +1 -0
- package/dist/executors/lint/executor.d.ts +3 -181
- package/dist/executors/lint/executor.d.ts.map +1 -1
- package/dist/executors/lint/executor.js +4 -3
- package/dist/executors/lint/executor.js.map +1 -0
- package/dist/executors/lint/{executor.d.mts → schema.d.cts} +76 -82
- package/dist/executors/lint/schema.d.cts.map +1 -0
- package/dist/executors/lint/schema.d.ts +177 -191
- package/dist/executors/lint/schema.d.ts.map +1 -0
- package/dist/executors/lint/schema.json +7 -19
- package/dist/executors/prepare/{executor.mjs → executor.cjs} +5 -6
- package/dist/executors/prepare/executor.d.cts +6 -0
- package/dist/executors/prepare/executor.d.cts.map +1 -0
- package/dist/executors/prepare/executor.d.ts +3 -181
- package/dist/executors/prepare/executor.d.ts.map +1 -1
- package/dist/executors/prepare/executor.js +6 -7
- package/dist/executors/prepare/executor.js.map +1 -0
- package/dist/executors/prepare/{executor.d.mts → schema.d.cts} +76 -82
- package/dist/executors/prepare/schema.d.cts.map +1 -0
- package/dist/executors/prepare/schema.d.ts +177 -191
- package/dist/executors/prepare/schema.d.ts.map +1 -0
- package/dist/executors/prepare/schema.json +7 -19
- package/dist/index.cjs +5 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -181
- package/dist/index.js +3 -19
- package/dist/plugin/{index.mjs → index.cjs} +115 -83
- package/dist/plugin/index.d.cts +7 -0
- package/dist/plugin/index.d.cts.map +1 -0
- package/dist/plugin/index.d.ts +2 -3
- package/dist/plugin/index.d.ts.map +1 -1
- package/dist/plugin/index.js +85 -113
- package/dist/plugin/index.js.map +1 -0
- package/docs/api/{base-executor.schema.md → base/base-executor.schema.md} +3 -3
- package/docs/api/{build → executors/build}/schema.md +3 -3
- package/docs/api/{clean → executors/clean}/schema.md +3 -3
- package/docs/api/{docs → executors/docs}/schema.md +3 -3
- package/docs/api/{lint → executors/lint}/schema.md +3 -3
- package/docs/api/{prepare → executors/prepare}/schema.md +3 -3
- package/package.json +18 -18
- package/dist/base-executor-ChtjGl_i.mjs.map +0 -1
- package/dist/executors/build/executor.d.mts.map +0 -1
- package/dist/executors/build/executor.mjs.map +0 -1
- package/dist/executors/clean/executor.d.mts.map +0 -1
- package/dist/executors/clean/executor.mjs +0 -12
- package/dist/executors/clean/executor.mjs.map +0 -1
- package/dist/executors/docs/executor.d.mts.map +0 -1
- package/dist/executors/docs/executor.mjs +0 -12
- package/dist/executors/docs/executor.mjs.map +0 -1
- package/dist/executors/lint/executor.d.mts.map +0 -1
- package/dist/executors/lint/executor.mjs +0 -12
- package/dist/executors/lint/executor.mjs.map +0 -1
- package/dist/executors/prepare/executor.d.mts.map +0 -1
- package/dist/executors/prepare/executor.mjs.map +0 -1
- package/dist/index.d.mts +0 -181
- package/dist/index.d.mts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/plugin/index.d.mts +0 -8
- package/dist/plugin/index.d.mts.map +0 -1
- package/dist/plugin/index.mjs.map +0 -1
package/dist/index.cjs
ADDED
package/dist/index.d.cts
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,181 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
//#region src/base/base-executor.schema.d.ts
|
|
6
|
-
// Generated by powerlines
|
|
7
|
-
// Do not edit this file directly
|
|
8
|
-
interface BaseExecutorSchema {
|
|
9
|
-
/**
|
|
10
|
-
* Powerlines Configuration File
|
|
11
|
-
*
|
|
12
|
-
* The path to the Powerlines configuration file. Alias for `configFile`.
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @format path
|
|
16
|
-
*/
|
|
17
|
-
config?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Powerlines Configuration File
|
|
20
|
-
*
|
|
21
|
-
* The path to the Powerlines configuration file. Alias for `config`.
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* @format path
|
|
25
|
-
*/
|
|
26
|
-
configFile?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Powerlines Configuration Index
|
|
29
|
-
*
|
|
30
|
-
* The index in the Powerlines configuration file to use (if an array of configurations are provided).
|
|
31
|
-
*
|
|
32
|
-
* @default 0
|
|
33
|
-
*/
|
|
34
|
-
configIndex?: number;
|
|
35
|
-
/**
|
|
36
|
-
* Input Entry File(s)
|
|
37
|
-
*
|
|
38
|
-
* The entry file(s) that serve as the input for the project
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* @format path
|
|
42
|
-
*/
|
|
43
|
-
input?: Array<string>;
|
|
44
|
-
/**
|
|
45
|
-
* TSConfig Path
|
|
46
|
-
*
|
|
47
|
-
* The path to the tsconfig file
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* @format path
|
|
51
|
-
*/
|
|
52
|
-
tsconfig?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Output Path
|
|
55
|
-
*
|
|
56
|
-
* The path to the output directory for the build artifacts
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* @format path
|
|
60
|
-
*/
|
|
61
|
-
outputPath?: string;
|
|
62
|
-
/**
|
|
63
|
-
* Copy Path
|
|
64
|
-
*
|
|
65
|
-
* A directory path to copy the build artifacts into
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* @oneOf [object Object],[object Object]
|
|
69
|
-
*/
|
|
70
|
-
copyPath?: any;
|
|
71
|
-
/**
|
|
72
|
-
* Sourcemap
|
|
73
|
-
*
|
|
74
|
-
* Generate a sourcemap
|
|
75
|
-
*
|
|
76
|
-
*/
|
|
77
|
-
sourceMap?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Minify
|
|
80
|
-
*
|
|
81
|
-
* Minify the output
|
|
82
|
-
*
|
|
83
|
-
*/
|
|
84
|
-
minify?: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Format
|
|
87
|
-
*
|
|
88
|
-
* The format to build
|
|
89
|
-
*
|
|
90
|
-
* @default ["cjs","esm"]
|
|
91
|
-
*/
|
|
92
|
-
format?: Array<string>;
|
|
93
|
-
/**
|
|
94
|
-
* Platform
|
|
95
|
-
*
|
|
96
|
-
* The platform to build
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* @enum neutral,node,browser
|
|
100
|
-
*/
|
|
101
|
-
platform?: string;
|
|
102
|
-
/**
|
|
103
|
-
* External
|
|
104
|
-
*
|
|
105
|
-
* The external dependencies
|
|
106
|
-
*
|
|
107
|
-
*/
|
|
108
|
-
external?: Array<any>;
|
|
109
|
-
/**
|
|
110
|
-
* No External
|
|
111
|
-
*
|
|
112
|
-
* The dependencies that should not be treated as external
|
|
113
|
-
*
|
|
114
|
-
*/
|
|
115
|
-
noExternal?: Array<any>;
|
|
116
|
-
/**
|
|
117
|
-
* Skip Node Modules Bundle
|
|
118
|
-
*
|
|
119
|
-
* Skip bundling node_modules during the build process (if required)
|
|
120
|
-
*
|
|
121
|
-
*/
|
|
122
|
-
skipNodeModulesBundle?: boolean;
|
|
123
|
-
/**
|
|
124
|
-
* Mode
|
|
125
|
-
*
|
|
126
|
-
* The build mode
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* @enum development,test,production
|
|
130
|
-
*/
|
|
131
|
-
mode?: string;
|
|
132
|
-
/**
|
|
133
|
-
* Log Level
|
|
134
|
-
*
|
|
135
|
-
* The log level to use for the build process
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* @enum fatal,error,warn,success,info,debug,trace,silent
|
|
139
|
-
*/
|
|
140
|
-
logLevel?: string;
|
|
141
|
-
/**
|
|
142
|
-
* Define
|
|
143
|
-
*
|
|
144
|
-
* The `define` values
|
|
145
|
-
*
|
|
146
|
-
*/
|
|
147
|
-
define?: Record<string, string>;
|
|
148
|
-
/**
|
|
149
|
-
* Assets
|
|
150
|
-
*
|
|
151
|
-
* The `assets` values
|
|
152
|
-
*
|
|
153
|
-
*/
|
|
154
|
-
assets?: Array<{
|
|
155
|
-
input?: string;
|
|
156
|
-
output?: string;
|
|
157
|
-
glob: string;
|
|
158
|
-
ignore?: string[];
|
|
159
|
-
dot?: boolean;
|
|
160
|
-
}>;
|
|
161
|
-
/**
|
|
162
|
-
* Additional Arguments
|
|
163
|
-
*
|
|
164
|
-
* The additional arguments provided during execution of the command
|
|
165
|
-
*
|
|
166
|
-
*/
|
|
167
|
-
additionalArgs?: Record<string, string>;
|
|
168
|
-
}
|
|
169
|
-
//#endregion
|
|
170
|
-
//#region src/base/base-executor.d.ts
|
|
171
|
-
/**
|
|
172
|
-
* A higher-order function that wraps a Powerlines executor function, providing a consistent interface for Nx executors in the Shell Shock project. This function abstracts away the integration details with Powerlines, allowing developers to focus on implementing the core logic of their executors.
|
|
173
|
-
*
|
|
174
|
-
* @param command - The name of the command that this executor will handle (e.g., "build", "lint").
|
|
175
|
-
* @param executorFn - The actual executor function that contains the logic to be executed. It receives a PowerlinesExecutorContext and PowerlinesExecutorApi as parameters.
|
|
176
|
-
* @returns A PromiseExecutor function that can be used as an Nx executor.
|
|
177
|
-
*/
|
|
178
|
-
declare function withExecutor<TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: string, executorFn: (context: PowerlinesExecutorContext<TExecutorSchema>, api: PowerlinesExecutorApi) => Promise<BaseExecutorResult | null | undefined> | BaseExecutorResult | null | undefined): PromiseExecutor<TExecutorSchema>;
|
|
179
|
-
//#endregion
|
|
180
|
-
export { withExecutor };
|
|
181
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { withExecutor } from "./base/base-executor.js";
|
|
2
|
+
import "./base/index.js";
|
|
3
|
+
export { withExecutor };
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const require_base_executor = require('./base-executor-B48XZipC.js');
|
|
4
|
-
let _powerlines_nx_base_base_executor_untyped = require("@powerlines/nx/base/base-executor.untyped");
|
|
5
|
-
_powerlines_nx_base_base_executor_untyped = require_rolldown_runtime.__toESM(_powerlines_nx_base_base_executor_untyped);
|
|
6
|
-
let untyped = require("untyped");
|
|
1
|
+
import { withExecutor } from "./base/base-executor.js";
|
|
2
|
+
import "./base/index.js";
|
|
7
3
|
|
|
8
|
-
|
|
9
|
-
var base_executor_untyped_default = (0, untyped.defineUntypedSchema)({
|
|
10
|
-
..._powerlines_nx_base_base_executor_untyped.default,
|
|
11
|
-
$schema: {
|
|
12
|
-
id: "BaseExecutorSchema",
|
|
13
|
-
title: "Base Executor",
|
|
14
|
-
description: "A shared/base schema type definition for Shell Shock executors",
|
|
15
|
-
required: []
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
exports.withExecutor = require_base_executor.withExecutor;
|
|
4
|
+
export { withExecutor };
|
|
@@ -1,22 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
14
|
+
__defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
let _stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
30
|
+
let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
31
|
+
let _stryke_type_checks_is_error = require("@stryke/type-checks/is-error");
|
|
32
|
+
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
33
|
+
let defu = require("defu");
|
|
34
|
+
defu = __toESM(defu, 1);
|
|
35
|
+
let _nx_devkit = require("@nx/devkit");
|
|
36
|
+
let _storm_software_workspace_tools_utils_nx_json = require("@storm-software/workspace-tools/utils/nx-json");
|
|
37
|
+
let _storm_software_workspace_tools_utils_plugin_helpers = require("@storm-software/workspace-tools/utils/plugin-helpers");
|
|
38
|
+
let _storm_software_workspace_tools_utils_project_tags = require("@storm-software/workspace-tools/utils/project-tags");
|
|
39
|
+
let node_path = require("node:path");
|
|
40
|
+
node_path = __toESM(node_path, 1);
|
|
41
|
+
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
42
|
+
let node_os = require("node:os");
|
|
43
|
+
node_os = __toESM(node_os, 1);
|
|
44
|
+
let node_fs = require("node:fs");
|
|
45
|
+
let node_fs_promises = require("node:fs/promises");
|
|
46
|
+
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
47
|
+
let nx_src_config_nx_json_js = require("nx/src/config/nx-json.js");
|
|
48
|
+
let nx_src_utils_package_json_js = require("nx/src/utils/package-json.js");
|
|
49
|
+
let nx_src_utils_package_manager_js = require("nx/src/utils/package-manager.js");
|
|
18
50
|
|
|
19
|
-
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.
|
|
51
|
+
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.251_@babel+traverse@7.29.8_@emnapi+core@1.11.3_@emnapi+runtime@1.11_da8e47766cba8b5dacb163cff1f27a5b/node_modules/@powerlines/nx/dist/src/helpers/constants.mjs
|
|
20
52
|
/**
|
|
21
53
|
* A list of Nx input strings that describe the Powerlines configuration file
|
|
22
54
|
*/
|
|
@@ -48,7 +80,7 @@ const CONFIG_INPUTS = [
|
|
|
48
80
|
];
|
|
49
81
|
|
|
50
82
|
//#endregion
|
|
51
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
83
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.127_@nx+jest@23.1.0_jest@30.4.2_zod@4.4.3/node_modules/@stryke/env/dist/ci-checks.mjs
|
|
52
84
|
/**
|
|
53
85
|
* Returns true if the current environment is a CI environment.
|
|
54
86
|
*
|
|
@@ -59,7 +91,7 @@ const isCI = (env = process.env) => {
|
|
|
59
91
|
};
|
|
60
92
|
|
|
61
93
|
//#endregion
|
|
62
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
94
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.127_@nx+jest@23.1.0_jest@30.4.2_zod@4.4.3/node_modules/@stryke/env/dist/environment-checks.mjs
|
|
63
95
|
/** Value of process.platform */
|
|
64
96
|
const platform = process?.platform || "";
|
|
65
97
|
/** Detect if stdout.TTY is available */
|
|
@@ -143,39 +175,39 @@ const nodeVersion = (process?.versions?.node || "").replace(/^v/, "") || null;
|
|
|
143
175
|
const nodeMajorVersion = Number(nodeVersion?.split(".")[0]) || null;
|
|
144
176
|
|
|
145
177
|
//#endregion
|
|
146
|
-
//#region ../../node_modules/.pnpm/@stryke+env@0.20.
|
|
147
|
-
const homedir =
|
|
148
|
-
const tmpdir =
|
|
178
|
+
//#region ../../node_modules/.pnpm/@stryke+env@0.20.127_@nx+jest@23.1.0_jest@30.4.2_zod@4.4.3/node_modules/@stryke/env/dist/get-env-paths.mjs
|
|
179
|
+
const homedir = node_os.default.homedir();
|
|
180
|
+
const tmpdir = node_os.default.tmpdir();
|
|
149
181
|
const macos = (orgId) => {
|
|
150
|
-
const library = joinPaths(homedir, "Library");
|
|
182
|
+
const library = (0, _stryke_path_join_paths.joinPaths)(homedir, "Library");
|
|
151
183
|
return {
|
|
152
|
-
data: joinPaths(library, "Application Support", orgId),
|
|
153
|
-
config: joinPaths(library, "Preferences", orgId),
|
|
154
|
-
cache: joinPaths(library, "Caches", orgId),
|
|
155
|
-
log: joinPaths(library, "Logs", orgId),
|
|
156
|
-
temp: joinPaths(tmpdir, orgId)
|
|
184
|
+
data: (0, _stryke_path_join_paths.joinPaths)(library, "Application Support", orgId),
|
|
185
|
+
config: (0, _stryke_path_join_paths.joinPaths)(library, "Preferences", orgId),
|
|
186
|
+
cache: (0, _stryke_path_join_paths.joinPaths)(library, "Caches", orgId),
|
|
187
|
+
log: (0, _stryke_path_join_paths.joinPaths)(library, "Logs", orgId),
|
|
188
|
+
temp: (0, _stryke_path_join_paths.joinPaths)(tmpdir, orgId)
|
|
157
189
|
};
|
|
158
190
|
};
|
|
159
191
|
const windows = (orgId) => {
|
|
160
|
-
const appData = process.env.APPDATA || joinPaths(homedir, "AppData", "Roaming");
|
|
161
|
-
const localAppData = process.env.LOCALAPPDATA || joinPaths(homedir, "AppData", "Local");
|
|
162
|
-
const windowsFormattedOrgId = titleCase(orgId).trim().replace(/\s+/g, "");
|
|
192
|
+
const appData = process.env.APPDATA || (0, _stryke_path_join_paths.joinPaths)(homedir, "AppData", "Roaming");
|
|
193
|
+
const localAppData = process.env.LOCALAPPDATA || (0, _stryke_path_join_paths.joinPaths)(homedir, "AppData", "Local");
|
|
194
|
+
const windowsFormattedOrgId = (0, _stryke_string_format_title_case.titleCase)(orgId).trim().replace(/\s+/g, "");
|
|
163
195
|
return {
|
|
164
|
-
data: joinPaths(localAppData, windowsFormattedOrgId, "Data"),
|
|
165
|
-
config: joinPaths(appData, windowsFormattedOrgId, "Config"),
|
|
166
|
-
cache: joinPaths(localAppData, "Cache", orgId),
|
|
167
|
-
log: joinPaths(localAppData, windowsFormattedOrgId, "Log"),
|
|
168
|
-
temp: joinPaths(tmpdir, orgId)
|
|
196
|
+
data: (0, _stryke_path_join_paths.joinPaths)(localAppData, windowsFormattedOrgId, "Data"),
|
|
197
|
+
config: (0, _stryke_path_join_paths.joinPaths)(appData, windowsFormattedOrgId, "Config"),
|
|
198
|
+
cache: (0, _stryke_path_join_paths.joinPaths)(localAppData, "Cache", orgId),
|
|
199
|
+
log: (0, _stryke_path_join_paths.joinPaths)(localAppData, windowsFormattedOrgId, "Log"),
|
|
200
|
+
temp: (0, _stryke_path_join_paths.joinPaths)(tmpdir, orgId)
|
|
169
201
|
};
|
|
170
202
|
};
|
|
171
203
|
const linux = (orgId) => {
|
|
172
|
-
const username =
|
|
204
|
+
const username = node_path.default.basename(homedir);
|
|
173
205
|
return {
|
|
174
|
-
data: joinPaths(process.env.XDG_DATA_HOME || joinPaths(homedir, ".local", "share"), orgId),
|
|
175
|
-
config: joinPaths(process.env.XDG_CONFIG_HOME || joinPaths(homedir, ".config"), orgId),
|
|
176
|
-
cache: joinPaths(process.env.XDG_CACHE_HOME || joinPaths(homedir, ".cache"), orgId),
|
|
177
|
-
log: joinPaths(process.env.XDG_STATE_HOME || joinPaths(homedir, ".local", "state"), orgId),
|
|
178
|
-
temp: process.env.DEVENV_RUNTIME || process.env.XDG_RUNTIME_DIR ? joinPaths(process.env.DEVENV_RUNTIME || process.env.XDG_RUNTIME_DIR, orgId) : joinPaths(tmpdir, username, orgId)
|
|
206
|
+
data: (0, _stryke_path_join_paths.joinPaths)(process.env.XDG_DATA_HOME || (0, _stryke_path_join_paths.joinPaths)(homedir, ".local", "share"), orgId),
|
|
207
|
+
config: (0, _stryke_path_join_paths.joinPaths)(process.env.XDG_CONFIG_HOME || (0, _stryke_path_join_paths.joinPaths)(homedir, ".config"), orgId),
|
|
208
|
+
cache: (0, _stryke_path_join_paths.joinPaths)(process.env.XDG_CACHE_HOME || (0, _stryke_path_join_paths.joinPaths)(homedir, ".cache"), orgId),
|
|
209
|
+
log: (0, _stryke_path_join_paths.joinPaths)(process.env.XDG_STATE_HOME || (0, _stryke_path_join_paths.joinPaths)(homedir, ".local", "state"), orgId),
|
|
210
|
+
temp: process.env.DEVENV_RUNTIME || process.env.XDG_RUNTIME_DIR ? (0, _stryke_path_join_paths.joinPaths)(process.env.DEVENV_RUNTIME || process.env.XDG_RUNTIME_DIR, orgId) : (0, _stryke_path_join_paths.joinPaths)(tmpdir, username, orgId)
|
|
179
211
|
};
|
|
180
212
|
};
|
|
181
213
|
/**
|
|
@@ -205,35 +237,35 @@ function getEnvPaths(options = {}) {
|
|
|
205
237
|
else if (process.env.STORM_LOG_DIR) result.log = process.env.STORM_LOG_DIR;
|
|
206
238
|
else if (process.env.STORM_TEMP_DIR) result.temp = process.env.STORM_TEMP_DIR;
|
|
207
239
|
if (options.workspaceRoot) {
|
|
208
|
-
result.cache ??= joinPaths(options.workspaceRoot, "node_modules", ".cache", orgId);
|
|
209
|
-
result.temp ??= joinPaths(options.workspaceRoot, "tmp", orgId);
|
|
210
|
-
result.log ??= joinPaths(result.temp, "logs");
|
|
211
|
-
result.config ??= joinPaths(options.workspaceRoot, ".config", orgId);
|
|
240
|
+
result.cache ??= (0, _stryke_path_join_paths.joinPaths)(options.workspaceRoot, "node_modules", ".cache", orgId);
|
|
241
|
+
result.temp ??= (0, _stryke_path_join_paths.joinPaths)(options.workspaceRoot, "tmp", orgId);
|
|
242
|
+
result.log ??= (0, _stryke_path_join_paths.joinPaths)(result.temp, "logs");
|
|
243
|
+
result.config ??= (0, _stryke_path_join_paths.joinPaths)(options.workspaceRoot, ".config", orgId);
|
|
212
244
|
}
|
|
213
245
|
return Object.keys(result).reduce((ret, key) => {
|
|
214
246
|
if (result[key]) {
|
|
215
247
|
const filePath = result[key];
|
|
216
|
-
ret[key] = options.appId && options.appId !== options.orgId && options.appId !== options.nestedDir ? joinPaths(filePath, options.appId) : filePath;
|
|
217
|
-
if (options.nestedDir && options.nestedDir !== options.orgId && options.nestedDir !== options.appId) ret[key] = joinPaths(ret[key], options.nestedDir);
|
|
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);
|
|
218
250
|
}
|
|
219
251
|
return ret;
|
|
220
252
|
}, {});
|
|
221
253
|
}
|
|
222
254
|
|
|
223
255
|
//#endregion
|
|
224
|
-
//#region ../../node_modules/.pnpm/@stryke+fs@0.33.
|
|
256
|
+
//#region ../../node_modules/.pnpm/@stryke+fs@0.33.110_@nx+jest@23.1.0_jest@30.4.2_zod@4.4.3/node_modules/@stryke/fs/dist/exists.mjs
|
|
225
257
|
/**
|
|
226
258
|
* Check if a file exists
|
|
227
259
|
*
|
|
228
260
|
* @param filePath - The file path to check
|
|
229
261
|
* @returns An indicator specifying if the file exists
|
|
230
262
|
*/
|
|
231
|
-
function existsSync
|
|
232
|
-
return existsSync(filePath);
|
|
263
|
+
function existsSync(filePath) {
|
|
264
|
+
return (0, node_fs.existsSync)(filePath);
|
|
233
265
|
}
|
|
234
266
|
|
|
235
267
|
//#endregion
|
|
236
|
-
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.
|
|
268
|
+
//#region ../../node_modules/.pnpm/@powerlines+nx@0.13.251_@babel+traverse@7.29.8_@emnapi+core@1.11.3_@emnapi+runtime@1.11_da8e47766cba8b5dacb163cff1f27a5b/node_modules/@powerlines/nx/dist/src/helpers/plugin-utilities.mjs
|
|
237
269
|
/**
|
|
238
270
|
* Generates Nx input strings for the Powerlines configuration file, replacing the `{framework}` placeholder with the specified framework name.
|
|
239
271
|
*
|
|
@@ -259,8 +291,8 @@ function getNxPluginInputs(framework) {
|
|
|
259
291
|
* @returns A CreateNodesV2 function that can be used as an Nx plugin
|
|
260
292
|
*/
|
|
261
293
|
function createNxPlugin(opts) {
|
|
262
|
-
const framework = kebabCase(opts?.framework) || "powerlines";
|
|
263
|
-
const title = `${titleCase(framework)} Nx Plugin`;
|
|
294
|
+
const framework = (0, _stryke_string_format_kebab_case.kebabCase)(opts?.framework) || "powerlines";
|
|
295
|
+
const title = `${(0, _stryke_string_format_title_case.titleCase)(framework)} Nx Plugin`;
|
|
264
296
|
try {
|
|
265
297
|
const name = opts?.name || `${framework}/nx/plugin`;
|
|
266
298
|
const artifactsFolder = opts?.artifactsFolder || `{projectRoot}/.${framework}`;
|
|
@@ -273,36 +305,37 @@ function createNxPlugin(opts) {
|
|
|
273
305
|
appId: framework,
|
|
274
306
|
workspaceRoot: contextV2.workspaceRoot
|
|
275
307
|
}).cache) throw new Error("The cache directory could not be determined.");
|
|
276
|
-
const nxJson = readNxJson(contextV2.workspaceRoot);
|
|
277
|
-
|
|
308
|
+
const nxJson = (0, nx_src_config_nx_json_js.readNxJson)(contextV2.workspaceRoot);
|
|
309
|
+
const packageManagerCommand = (0, nx_src_utils_package_manager_js.getPackageManagerCommand)((0, nx_src_utils_package_manager_js.detectPackageManager)(contextV2.workspaceRoot), contextV2.workspaceRoot);
|
|
310
|
+
return (0, _nx_devkit.createNodesFromFiles)(async (configFile, _, context) => {
|
|
278
311
|
try {
|
|
279
|
-
const projectRoot = getProjectRoot(configFile, contextV2.workspaceRoot);
|
|
312
|
+
const projectRoot = (0, _storm_software_workspace_tools_utils_plugin_helpers.getProjectRoot)(configFile, contextV2.workspaceRoot);
|
|
280
313
|
if (!projectRoot) {
|
|
281
314
|
console.error(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - package.json and ${framework} configuration files (i.e. ${framework}.config.ts) must be located in the project root directory: ${configFile}`);
|
|
282
315
|
return {};
|
|
283
316
|
}
|
|
284
|
-
const root = getRoot(projectRoot, context);
|
|
317
|
+
const root = (0, _storm_software_workspace_tools_utils_plugin_helpers.getRoot)(projectRoot, context);
|
|
285
318
|
if (options?.verboseOutput) console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
|
|
286
|
-
if (!existsSync
|
|
287
|
-
if (options?.verboseOutput) console.warn(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Cannot find \`package.json\` file in the project's root directory (path: "${joinPaths(contextV2.workspaceRoot, projectRoot)}"). Skipping project configuration.`);
|
|
319
|
+
if (!existsSync((0, _stryke_path_join_paths.joinPaths)(contextV2.workspaceRoot, projectRoot, "package.json"))) {
|
|
320
|
+
if (options?.verboseOutput) console.warn(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Cannot find \`package.json\` file in the project's root directory (path: "${(0, _stryke_path_join_paths.joinPaths)(contextV2.workspaceRoot, projectRoot)}"). Skipping project configuration.`);
|
|
288
321
|
return {};
|
|
289
322
|
}
|
|
290
|
-
const packageJsonContent = await readFile(joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"), "utf8");
|
|
323
|
+
const packageJsonContent = await (0, node_fs_promises.readFile)((0, _stryke_path_join_paths.joinPaths)(contextV2.workspaceRoot, projectRoot, "package.json"), "utf8");
|
|
291
324
|
if (!packageJsonContent) {
|
|
292
325
|
if (options?.verboseOutput) console.warn(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - No package.json file found for project in root directory ${projectRoot}`);
|
|
293
326
|
return {};
|
|
294
327
|
}
|
|
295
328
|
const packageJson = JSON.parse(packageJsonContent);
|
|
296
|
-
const projectConfig = getProjectConfigFromProjectRoot(projectRoot, packageJson);
|
|
329
|
+
const projectConfig = (0, _storm_software_workspace_tools_utils_plugin_helpers.getProjectConfigFromProjectRoot)(projectRoot, packageJson);
|
|
297
330
|
if (!projectConfig) {
|
|
298
331
|
if (options?.verboseOutput) console.warn(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - No project configuration found for project in root directory ${projectRoot}`);
|
|
299
332
|
return {};
|
|
300
333
|
}
|
|
301
|
-
const targets = readTargetsFromPackageJson(packageJson, nxJson, projectRoot, context.workspaceRoot);
|
|
334
|
+
const targets = (0, nx_src_utils_package_json_js.readTargetsFromPackageJson)(packageJson, nxJson, projectRoot, context.workspaceRoot, packageManagerCommand);
|
|
302
335
|
if (options?.verboseOutput) console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Preparing Nx targets for project in root directory ${projectRoot}.`);
|
|
303
336
|
if (options?.clean !== false && !targets[options?.clean?.targetName || "clean"]) targets[options?.clean?.targetName || "clean"] = {
|
|
304
337
|
cache: options?.clean?.cache ?? options?.cache ?? true,
|
|
305
|
-
inputs: Array.isArray(options?.clean?.inputs) ? options.clean.inputs : withNamedInputs(targetInputs, [options?.clean?.inputs || "typescript"]),
|
|
338
|
+
inputs: Array.isArray(options?.clean?.inputs) ? options.clean.inputs : (0, _storm_software_workspace_tools_utils_nx_json.withNamedInputs)(targetInputs, [options?.clean?.inputs || "typescript"]),
|
|
306
339
|
outputs: options?.clean?.outputs,
|
|
307
340
|
executor: options?.clean?.executor || `@${framework}/nx:${options?.clean?.targetName || "clean"}`,
|
|
308
341
|
dependsOn: options?.clean?.dependsOn ?? [`^${options?.clean?.targetName || "clean"}`],
|
|
@@ -325,7 +358,7 @@ function createNxPlugin(opts) {
|
|
|
325
358
|
};
|
|
326
359
|
if (options?.prepare !== false && !targets[options?.prepare?.targetName || "prepare"]) targets[options?.prepare?.targetName || "prepare"] = {
|
|
327
360
|
cache: options?.prepare?.cache ?? options?.cache ?? true,
|
|
328
|
-
inputs: Array.isArray(options?.prepare?.inputs) ? options.prepare.inputs : withNamedInputs(targetInputs, [options?.prepare?.inputs || "typescript"]),
|
|
361
|
+
inputs: Array.isArray(options?.prepare?.inputs) ? options.prepare.inputs : (0, _storm_software_workspace_tools_utils_nx_json.withNamedInputs)(targetInputs, [options?.prepare?.inputs || "typescript"]),
|
|
329
362
|
outputs: options?.prepare?.outputs ?? [artifactsFolder],
|
|
330
363
|
executor: options?.prepare?.executor || `@${framework}/nx:${options?.prepare?.targetName || "prepare"}`,
|
|
331
364
|
dependsOn: options?.prepare?.dependsOn ?? [`^${options?.prepare?.targetName || "build"}`].filter(Boolean),
|
|
@@ -347,10 +380,10 @@ function createNxPlugin(opts) {
|
|
|
347
380
|
};
|
|
348
381
|
if (options?.build !== false && !targets[options?.build?.targetName || "build"]) targets[options?.build?.targetName || "build"] = {
|
|
349
382
|
cache: options?.build?.cache ?? options?.cache ?? true,
|
|
350
|
-
inputs: Array.isArray(options?.build?.inputs) ? options.build.inputs : withNamedInputs(targetInputs, [options?.build?.inputs || "typescript"]),
|
|
383
|
+
inputs: Array.isArray(options?.build?.inputs) ? options.build.inputs : (0, _storm_software_workspace_tools_utils_nx_json.withNamedInputs)(targetInputs, [options?.build?.inputs || "typescript"]),
|
|
351
384
|
outputs: options?.build?.outputs ?? ["{options.outputPath}"],
|
|
352
385
|
executor: options?.build?.executor || `@${framework}/nx:${options?.build?.targetName || "build"}`,
|
|
353
|
-
dependsOn: options?.build?.dependsOn ?? [`^${options?.build?.targetName || "build"}`, isDevelopment ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"].filter(Boolean),
|
|
386
|
+
dependsOn: options?.build?.dependsOn ?? [`^${options?.build?.targetName || "build"}`, isDevelopment ? void 0 : (0, _stryke_type_checks_is_set_object.isSetObject)(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"].filter(Boolean),
|
|
354
387
|
defaultConfiguration: options?.build?.defaultConfiguration || "production",
|
|
355
388
|
options: {
|
|
356
389
|
projectType: projectConfig.projectType,
|
|
@@ -369,10 +402,10 @@ function createNxPlugin(opts) {
|
|
|
369
402
|
};
|
|
370
403
|
if (options?.lint !== false && !targets[options?.lint?.targetName || "lint"]) targets[options?.lint?.targetName || "lint"] = {
|
|
371
404
|
cache: options?.lint?.cache ?? options?.cache ?? true,
|
|
372
|
-
inputs: Array.isArray(options?.lint?.inputs) ? options.lint.inputs : withNamedInputs([...targetInputs, artifactsFolder], options?.lint?.inputs ? [options.lint.inputs] : ["linting", "typescript"]),
|
|
405
|
+
inputs: Array.isArray(options?.lint?.inputs) ? options.lint.inputs : (0, _storm_software_workspace_tools_utils_nx_json.withNamedInputs)([...targetInputs, artifactsFolder], options?.lint?.inputs ? [options.lint.inputs] : ["linting", "typescript"]),
|
|
373
406
|
outputs: options?.lint?.outputs ?? ["{options.outputPath}"],
|
|
374
407
|
executor: options?.lint?.executor || `@${framework}/nx:${options?.lint?.targetName || "lint"}`,
|
|
375
|
-
dependsOn: options?.lint?.dependsOn ?? [`^${options?.lint?.targetName || "lint"}`, isDevelopment ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"].filter(Boolean),
|
|
408
|
+
dependsOn: options?.lint?.dependsOn ?? [`^${options?.lint?.targetName || "lint"}`, isDevelopment ? void 0 : (0, _stryke_type_checks_is_set_object.isSetObject)(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"].filter(Boolean),
|
|
376
409
|
defaultConfiguration: options?.lint?.defaultConfiguration || "production",
|
|
377
410
|
options: {
|
|
378
411
|
projectType: projectConfig.projectType,
|
|
@@ -391,13 +424,13 @@ function createNxPlugin(opts) {
|
|
|
391
424
|
};
|
|
392
425
|
if (options?.docs !== false && !targets[options?.docs?.targetName || "docs"]) targets[options?.docs?.targetName || "docs"] = {
|
|
393
426
|
cache: options?.docs?.cache ?? options?.cache ?? true,
|
|
394
|
-
inputs: Array.isArray(options?.docs?.inputs) ? options.docs.inputs : withNamedInputs([...targetInputs, artifactsFolder], options?.docs?.inputs ? [options.docs.inputs] : ["documentation", "typescript"]),
|
|
427
|
+
inputs: Array.isArray(options?.docs?.inputs) ? options.docs.inputs : (0, _storm_software_workspace_tools_utils_nx_json.withNamedInputs)([...targetInputs, artifactsFolder], options?.docs?.inputs ? [options.docs.inputs] : ["documentation", "typescript"]),
|
|
395
428
|
outputs: options?.docs?.outputs ?? ["{options.outputPath}"],
|
|
396
429
|
executor: options?.docs?.executor || `@${framework}/nx:${options?.docs?.targetName || "docs"}`,
|
|
397
430
|
dependsOn: options?.docs?.dependsOn ?? [
|
|
398
431
|
`^${options?.docs?.targetName || "docs"}`,
|
|
399
432
|
options?.build !== false && `${options?.build?.targetName || "build"}`,
|
|
400
|
-
isDevelopment ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
433
|
+
isDevelopment ? void 0 : (0, _stryke_type_checks_is_set_object.isSetObject)(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
401
434
|
].filter(Boolean),
|
|
402
435
|
defaultConfiguration: options?.docs?.defaultConfiguration || "production",
|
|
403
436
|
options: {
|
|
@@ -417,13 +450,13 @@ function createNxPlugin(opts) {
|
|
|
417
450
|
};
|
|
418
451
|
if (options?.deploy !== false && !targets[options?.deploy?.targetName || "deploy"]) targets[options?.deploy?.targetName || "deploy"] = {
|
|
419
452
|
cache: options?.deploy?.cache ?? false,
|
|
420
|
-
inputs: Array.isArray(options?.deploy?.inputs) ? options.deploy.inputs : withNamedInputs([...targetInputs, artifactsFolder], options?.deploy?.inputs ? [options.deploy.inputs] : ["documentation", "typescript"]),
|
|
453
|
+
inputs: Array.isArray(options?.deploy?.inputs) ? options.deploy.inputs : (0, _storm_software_workspace_tools_utils_nx_json.withNamedInputs)([...targetInputs, artifactsFolder], options?.deploy?.inputs ? [options.deploy.inputs] : ["documentation", "typescript"]),
|
|
421
454
|
outputs: options?.deploy?.outputs ?? ["{options.outputPath}"],
|
|
422
455
|
executor: options?.deploy?.executor || `@${framework}/nx:${options?.deploy?.targetName || "deploy"}`,
|
|
423
456
|
dependsOn: options?.deploy?.dependsOn ?? [
|
|
424
457
|
`^${options?.deploy?.targetName || "deploy"}`,
|
|
425
458
|
options?.build !== false && `${options?.build?.targetName || "build"}`,
|
|
426
|
-
isDevelopment ? void 0 : isSetObject(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
459
|
+
isDevelopment ? void 0 : (0, _stryke_type_checks_is_set_object.isSetObject)(options?.prepare) && options?.prepare?.targetName ? options?.prepare?.targetName : "prepare"
|
|
427
460
|
].filter(Boolean),
|
|
428
461
|
defaultConfiguration: options?.deploy?.defaultConfiguration || "production",
|
|
429
462
|
options: {
|
|
@@ -441,24 +474,24 @@ function createNxPlugin(opts) {
|
|
|
441
474
|
}
|
|
442
475
|
}
|
|
443
476
|
};
|
|
444
|
-
setDefaultProjectTags(projectConfig, name);
|
|
445
|
-
addProjectTag(projectConfig, framework, projectConfig.projectType || "library", { overwrite: true });
|
|
477
|
+
(0, _storm_software_workspace_tools_utils_project_tags.setDefaultProjectTags)(projectConfig, name);
|
|
478
|
+
(0, _storm_software_workspace_tools_utils_project_tags.addProjectTag)(projectConfig, framework, projectConfig.projectType || "library", { overwrite: true });
|
|
446
479
|
if (options?.verboseOutput) console.debug(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
|
|
447
|
-
return { projects: { [root]: defu(projectConfig, {
|
|
480
|
+
return { projects: { [root]: (0, defu.default)(projectConfig, {
|
|
448
481
|
projectType: projectConfig.projectType || "library",
|
|
449
482
|
root,
|
|
450
|
-
sourceRoot: joinPaths(root, "src"),
|
|
483
|
+
sourceRoot: (0, _stryke_path_join_paths.joinPaths)(root, "src"),
|
|
451
484
|
targets
|
|
452
485
|
}) } };
|
|
453
486
|
} catch (error) {
|
|
454
|
-
console.error(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Failed to process the project configuration for file "${configFile}" - ${isError(error) ? error.message : isSetString(error) ? error : "Unknown fatal error"}`);
|
|
487
|
+
console.error(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Failed to process the project configuration for file "${configFile}" - ${(0, _stryke_type_checks_is_error.isError)(error) ? error.message : (0, _stryke_type_checks_is_set_string.isSetString)(error) ? error : "Unknown fatal error"}`);
|
|
455
488
|
return {};
|
|
456
489
|
}
|
|
457
490
|
}, configFiles, options, contextV2);
|
|
458
491
|
}];
|
|
459
492
|
} catch (error) {
|
|
460
|
-
console.error(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - ${isError(error) ? error.message : isSetString(error) ? error : "Unknown fatal error during plugin initialization"}`);
|
|
461
|
-
throw new Error(`Failed to initialize the ${title} - ${isError(error) ? error.message : isSetString(error) ? error : "See previous logs for more details"}`, { cause: error instanceof Error ? error : void 0 });
|
|
493
|
+
console.error(`[${title}] - ${(/* @__PURE__ */ new Date()).toISOString()} - ${(0, _stryke_type_checks_is_error.isError)(error) ? error.message : (0, _stryke_type_checks_is_set_string.isSetString)(error) ? error : "Unknown fatal error during plugin initialization"}`);
|
|
494
|
+
throw new Error(`Failed to initialize the ${title} - ${(0, _stryke_type_checks_is_error.isError)(error) ? error.message : (0, _stryke_type_checks_is_set_string.isSetString)(error) ? error : "See previous logs for more details"}`, { cause: error instanceof Error ? error : void 0 });
|
|
462
495
|
}
|
|
463
496
|
}
|
|
464
497
|
|
|
@@ -467,5 +500,4 @@ function createNxPlugin(opts) {
|
|
|
467
500
|
const createNodesV2 = createNxPlugin({ framework: "shell-shock" });
|
|
468
501
|
|
|
469
502
|
//#endregion
|
|
470
|
-
|
|
471
|
-
//# sourceMappingURL=index.mjs.map
|
|
503
|
+
exports.createNodesV2 = createNodesV2;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CreateNodes } from "@nx/devkit";
|
|
2
|
+
import { NxPluginOptions } from "@powerlines/nx";
|
|
3
|
+
//#region src/plugin/index.d.ts
|
|
4
|
+
declare const createNodesV2: CreateNodes<NxPluginOptions>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { createNodesV2 };
|
|
7
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/plugin/index.ts"],"mappings":";;;cAsBa,eAAe,YAAY"}
|
package/dist/plugin/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateNodes } from "@nx/devkit";
|
|
2
2
|
import { NxPluginOptions } from "@powerlines/nx";
|
|
3
|
-
|
|
4
3
|
//#region src/plugin/index.d.ts
|
|
5
|
-
declare const createNodesV2:
|
|
4
|
+
declare const createNodesV2: CreateNodes<NxPluginOptions>;
|
|
6
5
|
//#endregion
|
|
7
6
|
export { createNodesV2 };
|
|
8
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/plugin/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/plugin/index.ts"],"mappings":""}
|