@storm-software/workspace-tools 1.294.23 → 1.294.25
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 +22 -0
- package/dist/{chunk-UUWZMAV4.js → chunk-2NJGL2TI.js} +30 -30
- package/dist/{chunk-VLO2HY6J.js → chunk-2RVRHK5X.js} +34 -34
- package/dist/{chunk-GDKXPNWV.js → chunk-3S3ECO2P.js} +20 -20
- package/dist/{chunk-FOQC5GHL.mjs → chunk-3TNILWMY.mjs} +1 -1
- package/dist/{chunk-PKVUHXO7.js → chunk-4BLFRRAU.js} +12 -12
- package/dist/{chunk-E3QUFDT5.mjs → chunk-4F7QVAV4.mjs} +1 -1
- package/dist/{chunk-PCXRIDP7.mjs → chunk-4HTNEKMP.mjs} +1 -1
- package/dist/{chunk-XJ2VKQNH.js → chunk-4NAHZGF2.js} +2 -2
- package/dist/{chunk-LU2AUK5R.mjs → chunk-54TSX5JF.mjs} +1 -1
- package/dist/{chunk-MB6AQKEM.mjs → chunk-5UC3BYGW.mjs} +1 -1
- package/dist/{chunk-WUXDWEEW.mjs → chunk-5WAINHJG.mjs} +4 -4
- package/dist/{chunk-7DDSFP3I.mjs → chunk-6FLLUGUF.mjs} +2 -2
- package/dist/{chunk-3QJHAILV.mjs → chunk-7ME734DI.mjs} +1 -1
- package/dist/{chunk-E566FKPB.mjs → chunk-BW353I42.mjs} +1 -1
- package/dist/{chunk-WOC65XYH.mjs → chunk-C2V3ONEW.mjs} +1 -1
- package/dist/{chunk-44BBGI2A.js → chunk-C6VRM4FR.js} +41 -11
- package/dist/{chunk-JGSTESA2.js → chunk-C7JD44IU.js} +2 -2
- package/dist/{chunk-KYF35U5H.mjs → chunk-CA46YTWV.mjs} +2 -2
- package/dist/{chunk-LT6HABKS.js → chunk-CDE6PVTR.js} +2 -2
- package/dist/{chunk-FR7Q4DI3.js → chunk-CQ4XK3KB.js} +16 -16
- package/dist/{chunk-R2YWPTGT.js → chunk-DK64V7OM.js} +10 -10
- package/dist/{chunk-EYAMFI7D.js → chunk-ERW6FMLX.js} +2 -2
- package/dist/{chunk-MYVCMGXZ.mjs → chunk-FS5FXBEU.mjs} +1 -1
- package/dist/{chunk-K5U7AXCP.js → chunk-GLXI6TSE.js} +6 -6
- package/dist/{chunk-M3GIMCUS.js → chunk-GPGFEHZS.js} +4 -4
- package/dist/{chunk-4RS25MXA.mjs → chunk-GRTWE432.mjs} +1 -1
- package/dist/{chunk-LGDWG3TS.mjs → chunk-GSNIJD6H.mjs} +2 -2
- package/dist/{chunk-M7PSICO4.js → chunk-GXUESV2V.js} +2 -2
- package/dist/{chunk-IQGZG64W.mjs → chunk-HWZH4YPQ.mjs} +1 -1
- package/dist/{chunk-OOVL4X5X.mjs → chunk-JFFINA6G.mjs} +3 -3
- package/dist/{chunk-3KQCOKHR.mjs → chunk-JWBCOV5V.mjs} +2 -2
- package/dist/{chunk-NYWAVN3K.mjs → chunk-K45IJANL.mjs} +1 -1
- package/dist/{chunk-6NYDBV23.js → chunk-LL2ZDCBE.js} +2 -2
- package/dist/{chunk-JFTB2MZS.mjs → chunk-LYU4P6X3.mjs} +2 -2
- package/dist/{chunk-SPA3KPYJ.js → chunk-NSD4P5QK.js} +5 -5
- package/dist/{chunk-DY45LR4B.js → chunk-OEDORFRQ.js} +2 -2
- package/dist/{chunk-XWAMKDVR.js → chunk-OF2KR2GF.js} +2 -2
- package/dist/{chunk-T26MOHEW.mjs → chunk-PLJLDJO3.mjs} +1 -1
- package/dist/{chunk-KGBMBIMD.js → chunk-PMRFT5WV.js} +2 -2
- package/dist/{chunk-GV3NH3O3.js → chunk-Q2S3VKFE.js} +2 -2
- package/dist/{chunk-73ALUS6R.mjs → chunk-Q4Z7ZWH2.mjs} +4 -4
- package/dist/{chunk-O2O6OMNY.js → chunk-Q73EB4Y6.js} +4 -4
- package/dist/{chunk-3X6RG4EG.js → chunk-QKU75RHX.js} +2 -2
- package/dist/{chunk-YSQAKVSC.mjs → chunk-QR3G4OD6.mjs} +41 -11
- package/dist/{chunk-ONY5XVLY.mjs → chunk-R55AVCBI.mjs} +1 -1
- package/dist/{chunk-6UHWGGM5.mjs → chunk-R5P7EFSH.mjs} +1 -1
- package/dist/{chunk-REBYV6UF.js → chunk-TBEXCUCY.js} +11 -11
- package/dist/{chunk-MHDUK7AG.mjs → chunk-U6J37DIY.mjs} +2 -2
- package/dist/{chunk-X6XVS2G3.js → chunk-U7DOJ5Z4.js} +2 -2
- package/dist/{chunk-NECOAJIF.js → chunk-UVPMJRGC.js} +2 -2
- package/dist/{chunk-SW324EZL.js → chunk-XEMXSQHD.js} +5 -5
- package/dist/{chunk-C22BY3WI.mjs → chunk-XQR4GBDW.mjs} +2 -2
- package/dist/{chunk-ZB64FD5X.mjs → chunk-XXZQGOLV.mjs} +1 -1
- package/dist/{chunk-DFKALALI.js → chunk-ZLJDMEVQ.js} +2 -2
- package/dist/executors.js +20 -20
- package/dist/executors.mjs +19 -19
- package/dist/generators.js +10 -10
- package/dist/generators.mjs +12 -12
- package/dist/index.js +29 -29
- package/dist/index.mjs +31 -31
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-generator.js +4 -4
- package/dist/src/base/base-generator.mjs +3 -3
- package/dist/src/base/index.js +5 -5
- package/dist/src/base/index.mjs +4 -4
- package/dist/src/executors/cargo-build/executor.js +5 -5
- package/dist/src/executors/cargo-build/executor.mjs +4 -4
- package/dist/src/executors/cargo-check/executor.js +5 -5
- package/dist/src/executors/cargo-check/executor.mjs +4 -4
- package/dist/src/executors/cargo-clippy/executor.js +5 -5
- package/dist/src/executors/cargo-clippy/executor.mjs +4 -4
- package/dist/src/executors/cargo-doc/executor.js +5 -5
- package/dist/src/executors/cargo-doc/executor.mjs +4 -4
- package/dist/src/executors/cargo-format/executor.js +5 -5
- package/dist/src/executors/cargo-format/executor.mjs +4 -4
- package/dist/src/executors/cargo-publish/executor.js +4 -4
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +3 -3
- package/dist/src/executors/esbuild/executor.js +6 -6
- package/dist/src/executors/esbuild/executor.mjs +5 -5
- package/dist/src/executors/napi/executor.js +5 -5
- package/dist/src/executors/napi/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/executor.js +6 -6
- package/dist/src/executors/npm-publish/executor.mjs +5 -5
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +4 -4
- package/dist/src/executors/tsdown/executor.js +6 -6
- package/dist/src/executors/tsdown/executor.mjs +5 -5
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +4 -4
- package/dist/src/executors/unbuild/executor.js +5 -5
- package/dist/src/executors/unbuild/executor.mjs +4 -4
- package/dist/src/generators/browser-library/generator.js +5 -5
- package/dist/src/generators/browser-library/generator.mjs +4 -4
- package/dist/src/generators/config-schema/generator.js +5 -5
- package/dist/src/generators/config-schema/generator.mjs +4 -4
- package/dist/src/generators/neutral-library/generator.js +5 -5
- package/dist/src/generators/neutral-library/generator.mjs +4 -4
- package/dist/src/generators/node-library/generator.js +5 -5
- package/dist/src/generators/node-library/generator.mjs +4 -4
- package/dist/src/generators/preset/generator.js +5 -5
- package/dist/src/generators/preset/generator.mjs +4 -4
- package/dist/src/release/index.js +6 -6
- package/dist/src/release/index.mjs +5 -5
- package/dist/src/release/js-version-actions.js +4 -4
- package/dist/src/release/js-version-actions.mjs +3 -3
- package/dist/src/release/rust-version-actions.js +5 -5
- package/dist/src/release/rust-version-actions.mjs +4 -4
- package/dist/src/utils/index.js +4 -4
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/package-helpers.js +4 -4
- package/dist/src/utils/package-helpers.mjs +3 -3
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.294.24](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.294.24) (01/14/2026)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **config-tools** to **v1.188.78**
|
|
10
|
+
- Updated **pnpm-tools** to **v0.6.80**
|
|
11
|
+
- Updated **npm-tools** to **v0.6.35**
|
|
12
|
+
- Updated **esbuild** to **v0.53.78**
|
|
13
|
+
- Updated **unbuild** to **v0.57.78**
|
|
14
|
+
- Updated **tsdown** to **v0.45.78**
|
|
15
|
+
|
|
16
|
+
## [1.294.23](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.294.23) (01/14/2026)
|
|
17
|
+
|
|
18
|
+
### Updated Dependencies
|
|
19
|
+
|
|
20
|
+
- Updated **config-tools** to **v1.188.77**
|
|
21
|
+
- Updated **pnpm-tools** to **v0.6.79**
|
|
22
|
+
- Updated **npm-tools** to **v0.6.34**
|
|
23
|
+
- Updated **esbuild** to **v0.53.77**
|
|
24
|
+
- Updated **unbuild** to **v0.57.77**
|
|
25
|
+
- Updated **tsdown** to **v0.45.77**
|
|
26
|
+
|
|
5
27
|
## [1.294.22](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.294.22) (01/14/2026)
|
|
6
28
|
|
|
7
29
|
### Updated Dependencies
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkGLXI6TSEjs = require('./chunk-GLXI6TSE.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk3S3ECO2Pjs = require('./chunk-3S3ECO2P.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkDK64V7OMjs = require('./chunk-DK64V7OM.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ var _chunkR2YWPTGTjs = require('./chunk-R2YWPTGT.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkC6VRM4FRjs = require('./chunk-C6VRM4FR.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -79,11 +79,11 @@ var resolveOptions = async (userOptions) => {
|
|
|
79
79
|
if (!workspaceRoot) {
|
|
80
80
|
throw new Error("Cannot find Nx workspace root");
|
|
81
81
|
}
|
|
82
|
-
const workspaceConfig = await
|
|
82
|
+
const workspaceConfig = await _chunkDK64V7OMjs.getWorkspaceConfig.call(void 0, options.debug === true, {
|
|
83
83
|
workspaceRoot
|
|
84
84
|
});
|
|
85
|
-
|
|
86
|
-
const stopwatch =
|
|
85
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
86
|
+
const stopwatch = _chunkC6VRM4FRjs.getStopwatch.call(void 0, "Build options resolution");
|
|
87
87
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
88
88
|
exitOnError: true
|
|
89
89
|
});
|
|
@@ -117,7 +117,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
117
117
|
const result = {
|
|
118
118
|
name: projectName,
|
|
119
119
|
mode: "production",
|
|
120
|
-
target:
|
|
120
|
+
target: _chunkGLXI6TSEjs.DEFAULT_TARGET,
|
|
121
121
|
generatePackageJson: true,
|
|
122
122
|
outDir: _chunkCQDBLKPFjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
123
123
|
minify: !debug,
|
|
@@ -149,15 +149,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
149
149
|
};
|
|
150
150
|
result.env = _defu2.default.call(void 0,
|
|
151
151
|
options.env,
|
|
152
|
-
|
|
152
|
+
_chunkGLXI6TSEjs.getEnv.call(void 0, "tsdown", result)
|
|
153
153
|
);
|
|
154
154
|
stopwatch();
|
|
155
155
|
return result;
|
|
156
156
|
};
|
|
157
157
|
async function generatePackageJson(options) {
|
|
158
158
|
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
159
|
-
|
|
160
|
-
const stopwatch =
|
|
159
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
160
|
+
const stopwatch = _chunkC6VRM4FRjs.getStopwatch.call(void 0, "Write package.json file");
|
|
161
161
|
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
162
162
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
163
163
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -174,13 +174,13 @@ async function generatePackageJson(options) {
|
|
|
174
174
|
throw new Error("Cannot find package.json configuration file");
|
|
175
175
|
}
|
|
176
176
|
let packageJson = JSON.parse(packageJsonFile);
|
|
177
|
-
packageJson = await
|
|
177
|
+
packageJson = await _chunkGLXI6TSEjs.addPackageDependencies.call(void 0,
|
|
178
178
|
options.workspaceConfig.workspaceRoot,
|
|
179
179
|
options.projectRoot,
|
|
180
180
|
options.projectName,
|
|
181
181
|
packageJson
|
|
182
182
|
);
|
|
183
|
-
packageJson = await
|
|
183
|
+
packageJson = await _chunkGLXI6TSEjs.addWorkspacePackageJsonFields.call(void 0,
|
|
184
184
|
options.workspaceConfig,
|
|
185
185
|
options.projectRoot,
|
|
186
186
|
options.sourceRoot,
|
|
@@ -190,7 +190,7 @@ async function generatePackageJson(options) {
|
|
|
190
190
|
);
|
|
191
191
|
packageJson.exports ??= {};
|
|
192
192
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
193
|
-
packageJson.exports["."] ??=
|
|
193
|
+
packageJson.exports["."] ??= _chunkGLXI6TSEjs.addPackageJsonExport.call(void 0,
|
|
194
194
|
"index",
|
|
195
195
|
packageJson.type,
|
|
196
196
|
options.sourceRoot
|
|
@@ -206,7 +206,7 @@ async function generatePackageJson(options) {
|
|
|
206
206
|
const split = entryPoint.out.split(".");
|
|
207
207
|
split.pop();
|
|
208
208
|
const entry2 = split.join(".").replaceAll("\\", "/");
|
|
209
|
-
packageJson.exports[`./${entry2}`] ??=
|
|
209
|
+
packageJson.exports[`./${entry2}`] ??= _chunkGLXI6TSEjs.addPackageJsonExport.call(void 0,
|
|
210
210
|
entry2,
|
|
211
211
|
options.fixedExtension ? "fixed" : packageJson.type,
|
|
212
212
|
options.sourceRoot
|
|
@@ -231,8 +231,8 @@ async function generatePackageJson(options) {
|
|
|
231
231
|
return options;
|
|
232
232
|
}
|
|
233
233
|
async function executeTSDown(options) {
|
|
234
|
-
|
|
235
|
-
const stopwatch =
|
|
234
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
|
|
235
|
+
const stopwatch = _chunkC6VRM4FRjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
236
236
|
await _tsdown.build.call(void 0, {
|
|
237
237
|
...options,
|
|
238
238
|
entry: options.entry,
|
|
@@ -242,12 +242,12 @@ async function executeTSDown(options) {
|
|
|
242
242
|
return options;
|
|
243
243
|
}
|
|
244
244
|
async function copyBuildAssets(options) {
|
|
245
|
-
|
|
245
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0,
|
|
246
246
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
247
247
|
options.workspaceConfig
|
|
248
248
|
);
|
|
249
|
-
const stopwatch =
|
|
250
|
-
await
|
|
249
|
+
const stopwatch = _chunkC6VRM4FRjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
250
|
+
await _chunkGLXI6TSEjs.copyAssets.call(void 0,
|
|
251
251
|
options.workspaceConfig,
|
|
252
252
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
253
253
|
options.outDir,
|
|
@@ -260,18 +260,18 @@ async function copyBuildAssets(options) {
|
|
|
260
260
|
return options;
|
|
261
261
|
}
|
|
262
262
|
async function reportResults(options) {
|
|
263
|
-
|
|
263
|
+
_chunkC6VRM4FRjs.writeSuccess.call(void 0,
|
|
264
264
|
` \u{1F4E6} The ${options.name} build completed successfully`,
|
|
265
265
|
options.workspaceConfig
|
|
266
266
|
);
|
|
267
267
|
}
|
|
268
268
|
async function cleanOutputPath(options) {
|
|
269
269
|
if (options.clean !== false && options.workspaceConfig) {
|
|
270
|
-
|
|
270
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0,
|
|
271
271
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
|
|
272
272
|
options.workspaceConfig
|
|
273
273
|
);
|
|
274
|
-
const stopwatch =
|
|
274
|
+
const stopwatch = _chunkC6VRM4FRjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
275
275
|
await cleanDirectories(
|
|
276
276
|
options.name,
|
|
277
277
|
options.outDir,
|
|
@@ -282,8 +282,8 @@ async function cleanOutputPath(options) {
|
|
|
282
282
|
return options;
|
|
283
283
|
}
|
|
284
284
|
async function build(options) {
|
|
285
|
-
|
|
286
|
-
const stopwatch =
|
|
285
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
286
|
+
const stopwatch = _chunkC6VRM4FRjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
287
287
|
try {
|
|
288
288
|
const opts = Array.isArray(options) ? options : [options];
|
|
289
289
|
if (opts.length === 0) {
|
|
@@ -303,13 +303,13 @@ async function build(options) {
|
|
|
303
303
|
})
|
|
304
304
|
);
|
|
305
305
|
} else {
|
|
306
|
-
|
|
306
|
+
_chunkC6VRM4FRjs.writeWarning.call(void 0,
|
|
307
307
|
" \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
|
|
308
308
|
);
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
_chunkC6VRM4FRjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
311
311
|
} catch (error) {
|
|
312
|
-
|
|
312
|
+
_chunkC6VRM4FRjs.writeFatal.call(void 0,
|
|
313
313
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
314
314
|
);
|
|
315
315
|
throw error;
|
|
@@ -320,7 +320,7 @@ async function build(options) {
|
|
|
320
320
|
|
|
321
321
|
// src/executors/tsdown/executor.ts
|
|
322
322
|
async function tsdownExecutorFn(options, context, config) {
|
|
323
|
-
|
|
323
|
+
_chunkC6VRM4FRjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
324
324
|
if (!_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'optionalAccess', _4 => _4.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _5 => _5.projectsConfigurations, 'access', _6 => _6.projects, 'access', _7 => _7[context.projectName], 'optionalAccess', _8 => _8.root])) {
|
|
325
325
|
throw new Error(
|
|
326
326
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -341,7 +341,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
341
341
|
success: true
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
|
-
var executor_default =
|
|
344
|
+
var executor_default = _chunk3S3ECO2Pjs.withRunExecutor.call(void 0,
|
|
345
345
|
"Storm TSDown build",
|
|
346
346
|
tsdownExecutorFn,
|
|
347
347
|
{
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkGLXI6TSEjs = require('./chunk-GLXI6TSE.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk3S3ECO2Pjs = require('./chunk-3S3ECO2P.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkDK64V7OMjs = require('./chunk-DK64V7OM.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -21,7 +21,7 @@ var _chunkR2YWPTGTjs = require('./chunk-R2YWPTGT.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkC6VRM4FRjs = require('./chunk-C6VRM4FR.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -29,12 +29,12 @@ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
|
29
29
|
// ../esbuild/src/assets.ts
|
|
30
30
|
async function copyBuildAssets(context) {
|
|
31
31
|
if (!_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) && _optionalChain([context, 'access', _4 => _4.options, 'access', _5 => _5.assets, 'optionalAccess', _6 => _6.length])) {
|
|
32
|
-
|
|
32
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0,
|
|
33
33
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
34
34
|
context.workspaceConfig
|
|
35
35
|
);
|
|
36
|
-
const stopwatch =
|
|
37
|
-
await
|
|
36
|
+
const stopwatch = _chunkC6VRM4FRjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
37
|
+
await _chunkGLXI6TSEjs.copyAssets.call(void 0,
|
|
38
38
|
context.workspaceConfig,
|
|
39
39
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
40
40
|
context.outputPath,
|
|
@@ -102,8 +102,8 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
102
102
|
".woff2": "file"
|
|
103
103
|
},
|
|
104
104
|
banner: {
|
|
105
|
-
js:
|
|
106
|
-
css:
|
|
105
|
+
js: _chunkGLXI6TSEjs.DEFAULT_JS_BANNER,
|
|
106
|
+
css: _chunkGLXI6TSEjs.DEFAULT_CSS_BANNER
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
|
|
@@ -114,11 +114,11 @@ async function resolveContext(userOptions) {
|
|
|
114
114
|
if (!workspaceRoot) {
|
|
115
115
|
throw new Error("Cannot find Nx workspace root");
|
|
116
116
|
}
|
|
117
|
-
const workspaceConfig = await
|
|
117
|
+
const workspaceConfig = await _chunkDK64V7OMjs.getWorkspaceConfig.call(void 0, true, {
|
|
118
118
|
workspaceRoot: workspaceRoot.dir
|
|
119
119
|
});
|
|
120
|
-
|
|
121
|
-
const stopwatch =
|
|
120
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
121
|
+
const stopwatch = _chunkC6VRM4FRjs.getStopwatch.call(void 0, "Build options resolution");
|
|
122
122
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
123
123
|
exitOnError: true
|
|
124
124
|
});
|
|
@@ -149,7 +149,7 @@ async function resolveContext(userOptions) {
|
|
|
149
149
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
150
150
|
throw new Error("Cannot find package.json configuration");
|
|
151
151
|
}
|
|
152
|
-
const env =
|
|
152
|
+
const env = _chunkGLXI6TSEjs.getEnv.call(void 0, "esbuild", options);
|
|
153
153
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
154
154
|
const resolvedOptions = {
|
|
155
155
|
...options,
|
|
@@ -188,10 +188,10 @@ async function resolveContext(userOptions) {
|
|
|
188
188
|
};
|
|
189
189
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
190
190
|
if (context.options.verbose) {
|
|
191
|
-
|
|
191
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0,
|
|
192
192
|
` \u2699\uFE0F Build options resolved:
|
|
193
193
|
|
|
194
|
-
${
|
|
194
|
+
${_chunkC6VRM4FRjs.formatLogMessage.call(void 0, context.options)}`,
|
|
195
195
|
workspaceConfig
|
|
196
196
|
);
|
|
197
197
|
}
|
|
@@ -204,8 +204,8 @@ ${_chunk44BBGI2Ajs.formatLogMessage.call(void 0, context.options)}`,
|
|
|
204
204
|
|
|
205
205
|
async function generatePackageJson(context) {
|
|
206
206
|
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
207
|
-
|
|
208
|
-
const stopwatch =
|
|
207
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
208
|
+
const stopwatch = _chunkC6VRM4FRjs.getStopwatch.call(void 0, "Write package.json file");
|
|
209
209
|
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
210
210
|
context.options.projectRoot,
|
|
211
211
|
"project.json"
|
|
@@ -225,13 +225,13 @@ async function generatePackageJson(context) {
|
|
|
225
225
|
if (!packageJson) {
|
|
226
226
|
throw new Error("Cannot find package.json configuration file");
|
|
227
227
|
}
|
|
228
|
-
packageJson = await
|
|
228
|
+
packageJson = await _chunkGLXI6TSEjs.addPackageDependencies.call(void 0,
|
|
229
229
|
context.workspaceConfig.workspaceRoot,
|
|
230
230
|
context.options.projectRoot,
|
|
231
231
|
context.projectName,
|
|
232
232
|
packageJson
|
|
233
233
|
);
|
|
234
|
-
packageJson = await
|
|
234
|
+
packageJson = await _chunkGLXI6TSEjs.addWorkspacePackageJsonFields.call(void 0,
|
|
235
235
|
context.workspaceConfig,
|
|
236
236
|
context.options.projectRoot,
|
|
237
237
|
context.sourceRoot,
|
|
@@ -332,12 +332,12 @@ async function generatePackageJson(context) {
|
|
|
332
332
|
var _tsup = require('tsup');
|
|
333
333
|
async function build(options) {
|
|
334
334
|
if (!options.silent) {
|
|
335
|
-
|
|
335
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0,
|
|
336
336
|
` \u{1F680} Running ${options.name || "tsup"} build`,
|
|
337
337
|
options.workspaceConfig
|
|
338
338
|
);
|
|
339
339
|
}
|
|
340
|
-
const stopwatch =
|
|
340
|
+
const stopwatch = _chunkC6VRM4FRjs.getStopwatch.call(void 0, `${options.name || "tsup"} build`);
|
|
341
341
|
await _tsup.build.call(void 0, options);
|
|
342
342
|
if (!options.silent) {
|
|
343
343
|
stopwatch();
|
|
@@ -346,11 +346,11 @@ async function build(options) {
|
|
|
346
346
|
|
|
347
347
|
// ../esbuild/src/tsup.ts
|
|
348
348
|
async function executeTsup(context) {
|
|
349
|
-
|
|
349
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0,
|
|
350
350
|
` \u{1F680} Running ${context.options.name} build`,
|
|
351
351
|
context.workspaceConfig
|
|
352
352
|
);
|
|
353
|
-
const stopwatch =
|
|
353
|
+
const stopwatch = _chunkC6VRM4FRjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
354
354
|
await build({
|
|
355
355
|
...context.options,
|
|
356
356
|
outDir: context.options.distDir ? _chunkCQDBLKPFjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
@@ -364,17 +364,17 @@ async function executeTsup(context) {
|
|
|
364
364
|
async function reportResults(context) {
|
|
365
365
|
if (_optionalChain([context, 'access', _9 => _9.result, 'optionalAccess', _10 => _10.errors, 'access', _11 => _11.length]) === 0) {
|
|
366
366
|
if (context.result.warnings.length > 0) {
|
|
367
|
-
|
|
367
|
+
_chunkC6VRM4FRjs.writeWarning.call(void 0,
|
|
368
368
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
369
369
|
context.workspaceConfig
|
|
370
370
|
);
|
|
371
371
|
}
|
|
372
|
-
|
|
372
|
+
_chunkC6VRM4FRjs.writeSuccess.call(void 0,
|
|
373
373
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
374
374
|
context.workspaceConfig
|
|
375
375
|
);
|
|
376
376
|
} else if (_optionalChain([context, 'access', _12 => _12.result, 'optionalAccess', _13 => _13.errors]) && _optionalChain([context, 'access', _14 => _14.result, 'optionalAccess', _15 => _15.errors, 'access', _16 => _16.length]) > 0) {
|
|
377
|
-
|
|
377
|
+
_chunkC6VRM4FRjs.writeError.call(void 0,
|
|
378
378
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
379
379
|
context.workspaceConfig
|
|
380
380
|
);
|
|
@@ -385,19 +385,19 @@ async function reportResults(context) {
|
|
|
385
385
|
}
|
|
386
386
|
async function cleanOutputPath(context) {
|
|
387
387
|
if (context.clean !== false && context.outputPath) {
|
|
388
|
-
|
|
388
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0,
|
|
389
389
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
390
390
|
context.workspaceConfig
|
|
391
391
|
);
|
|
392
|
-
const stopwatch =
|
|
392
|
+
const stopwatch = _chunkC6VRM4FRjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
393
393
|
await cleanDirectories(context.outputPath);
|
|
394
394
|
stopwatch();
|
|
395
395
|
}
|
|
396
396
|
return context;
|
|
397
397
|
}
|
|
398
398
|
async function build2(options) {
|
|
399
|
-
|
|
400
|
-
const stopwatch =
|
|
399
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
400
|
+
const stopwatch = _chunkC6VRM4FRjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
401
401
|
try {
|
|
402
402
|
const opts = Array.isArray(options) ? options : [options];
|
|
403
403
|
if (opts.length === 0) {
|
|
@@ -412,9 +412,9 @@ async function build2(options) {
|
|
|
412
412
|
executeTsup(context)
|
|
413
413
|
]);
|
|
414
414
|
await reportResults(context);
|
|
415
|
-
|
|
415
|
+
_chunkC6VRM4FRjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
416
416
|
} catch (error) {
|
|
417
|
-
|
|
417
|
+
_chunkC6VRM4FRjs.writeFatal.call(void 0,
|
|
418
418
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
419
419
|
);
|
|
420
420
|
throw error;
|
|
@@ -425,7 +425,7 @@ async function build2(options) {
|
|
|
425
425
|
|
|
426
426
|
// src/executors/esbuild/executor.ts
|
|
427
427
|
async function esbuildExecutorFn(options, context, config) {
|
|
428
|
-
|
|
428
|
+
_chunkC6VRM4FRjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
429
429
|
if (!_optionalChain([context, 'access', _17 => _17.projectsConfigurations, 'optionalAccess', _18 => _18.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _19 => _19.projectsConfigurations, 'access', _20 => _20.projects, 'access', _21 => _21[context.projectName], 'optionalAccess', _22 => _22.root])) {
|
|
430
430
|
throw new Error(
|
|
431
431
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -446,7 +446,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
446
446
|
success: true
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
|
-
var executor_default =
|
|
449
|
+
var executor_default = _chunk3S3ECO2Pjs.withRunExecutor.call(void 0,
|
|
450
450
|
"Storm ESBuild build",
|
|
451
451
|
esbuildExecutorFn,
|
|
452
452
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHXQRGLIIjs = require('./chunk-HXQRGLII.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkDK64V7OMjs = require('./chunk-DK64V7OM.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ var _chunkR2YWPTGTjs = require('./chunk-R2YWPTGT.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkC6VRM4FRjs = require('./chunk-C6VRM4FR.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -22,7 +22,7 @@ var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
|
22
22
|
// src/base/base-executor.ts
|
|
23
23
|
var _defu = require('defu');
|
|
24
24
|
var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
25
|
-
const stopwatch =
|
|
25
|
+
const stopwatch = _chunkC6VRM4FRjs.getStopwatch.call(void 0, name);
|
|
26
26
|
let options = _options;
|
|
27
27
|
let config = {};
|
|
28
28
|
try {
|
|
@@ -36,9 +36,9 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
36
36
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
37
37
|
const projectName = context.projectName;
|
|
38
38
|
config.workspaceRoot = workspaceRoot;
|
|
39
|
-
|
|
39
|
+
_chunkC6VRM4FRjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
40
40
|
if (!executorOptions.skipReadingConfig) {
|
|
41
|
-
|
|
41
|
+
_chunkC6VRM4FRjs.writeTrace.call(void 0,
|
|
42
42
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
43
43
|
- workspaceRoot: ${workspaceRoot}
|
|
44
44
|
- projectRoot: ${projectRoot}
|
|
@@ -47,18 +47,18 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
47
47
|
`,
|
|
48
48
|
config
|
|
49
49
|
);
|
|
50
|
-
config = await
|
|
50
|
+
config = await _chunkDK64V7OMjs.getConfig.call(void 0, workspaceRoot);
|
|
51
51
|
}
|
|
52
52
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
53
|
-
|
|
53
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
54
54
|
options = await Promise.resolve(
|
|
55
55
|
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
56
56
|
);
|
|
57
|
-
|
|
57
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
_chunkC6VRM4FRjs.writeTrace.call(void 0,
|
|
60
60
|
`Executor schema options \u2699\uFE0F
|
|
61
|
-
${
|
|
61
|
+
${_chunkC6VRM4FRjs.formatLogMessage.call(void 0, options)}
|
|
62
62
|
`,
|
|
63
63
|
config
|
|
64
64
|
);
|
|
@@ -71,18 +71,18 @@ ${_chunk44BBGI2Ajs.formatLogMessage.call(void 0, options)}
|
|
|
71
71
|
),
|
|
72
72
|
_chunkHXQRGLIIjs.applyWorkspaceProjectTokens
|
|
73
73
|
);
|
|
74
|
-
|
|
74
|
+
_chunkC6VRM4FRjs.writeTrace.call(void 0,
|
|
75
75
|
`Executor schema tokenized options \u2699\uFE0F
|
|
76
|
-
${
|
|
76
|
+
${_chunkC6VRM4FRjs.formatLogMessage.call(void 0, tokenized)}
|
|
77
77
|
`,
|
|
78
78
|
config
|
|
79
79
|
);
|
|
80
80
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
81
|
-
|
|
81
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
82
82
|
await Promise.resolve(
|
|
83
83
|
executorOptions.hooks.preProcess(tokenized, config)
|
|
84
84
|
);
|
|
85
|
-
|
|
85
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
86
86
|
}
|
|
87
87
|
const ret = executorFn(tokenized, context, config);
|
|
88
88
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -97,7 +97,7 @@ ${_chunk44BBGI2Ajs.formatLogMessage.call(void 0, tokenized)}
|
|
|
97
97
|
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _8 => _8.error, 'optionalAccess', _9 => _9.message]) && typeof _optionalChain([result, 'optionalAccess', _10 => _10.error, 'optionalAccess', _11 => _11.message]) === "string" && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.name]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.name]) === "string")) {
|
|
98
98
|
throw new Error(
|
|
99
99
|
`Failure determined while running the ${name} executor
|
|
100
|
-
${
|
|
100
|
+
${_chunkC6VRM4FRjs.formatLogMessage.call(void 0,
|
|
101
101
|
result
|
|
102
102
|
)}`,
|
|
103
103
|
{
|
|
@@ -106,21 +106,21 @@ ${_chunk44BBGI2Ajs.formatLogMessage.call(void 0,
|
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
108
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
109
|
-
|
|
109
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
110
110
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
111
|
-
|
|
111
|
+
_chunkC6VRM4FRjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
_chunkC6VRM4FRjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
114
114
|
`, config);
|
|
115
115
|
return {
|
|
116
116
|
success: true
|
|
117
117
|
};
|
|
118
118
|
} catch (error) {
|
|
119
|
-
|
|
119
|
+
_chunkC6VRM4FRjs.writeFatal.call(void 0,
|
|
120
120
|
"A fatal error occurred while running the executor - the process was forced to terminate",
|
|
121
121
|
config
|
|
122
122
|
);
|
|
123
|
-
|
|
123
|
+
_chunkC6VRM4FRjs.writeError.call(void 0,
|
|
124
124
|
`An exception was thrown in the executor's process
|
|
125
125
|
- Details: ${error.message}
|
|
126
126
|
- Stacktrace: ${error.stack}`,
|