@storm-software/workspace-tools 1.232.0 → 1.233.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +1 -1
- package/dist/{chunk-DIPIPI7H.js → chunk-2AQPTJLC.js} +2 -2
- package/dist/{chunk-WKSXKBPT.js → chunk-4EO5ZWLS.js} +31 -31
- package/dist/{chunk-KS44WFBU.mjs → chunk-5FCVQVIS.mjs} +1 -1
- package/dist/{chunk-PS2NPPRM.mjs → chunk-5FEFILUQ.mjs} +1 -1
- package/dist/{chunk-BCM66MXI.mjs → chunk-5KPWW65X.mjs} +1 -1
- package/dist/{chunk-CXLDWFA3.js → chunk-5Q3LI7CF.js} +15 -15
- package/dist/{chunk-63CXRJMW.mjs → chunk-A4DWQQ6J.mjs} +1 -1
- package/dist/{chunk-22DNWOG2.js → chunk-AX4OFOSN.js} +7 -7
- package/dist/{chunk-72H4B5NB.js → chunk-CDOWHRVE.js} +17 -17
- package/dist/{chunk-KNXGOGL5.mjs → chunk-DM2FMT3G.mjs} +2 -2
- package/dist/{chunk-MPOEEZVK.mjs → chunk-DNUDJEZX.mjs} +2 -2
- package/dist/{chunk-AP62YOGH.js → chunk-EECNVIFZ.js} +5 -5
- package/dist/{chunk-FAD3MJIO.mjs → chunk-FDI6QWNH.mjs} +1 -1
- package/dist/{chunk-IR6D2ZXA.js → chunk-FHRBHQ5D.js} +2 -2
- package/dist/{chunk-IAW5BNS4.mjs → chunk-FZ3N3UJ5.mjs} +3 -3
- package/dist/{chunk-IX2EZD3F.js → chunk-GRBZKMJI.js} +2 -2
- package/dist/{chunk-J4POXWGW.mjs → chunk-GVBCN2FA.mjs} +1 -1
- package/dist/{chunk-YCJU7YTL.js → chunk-HIBDVUQ5.js} +2 -2
- package/dist/{chunk-LD5QCANE.js → chunk-JHP7QOI4.js} +51 -32
- package/dist/{chunk-CZJZJQ6D.js → chunk-L2KYX6WC.js} +2 -2
- package/dist/{chunk-AXC2MN2T.js → chunk-LEHZZU32.js} +2 -2
- package/dist/{chunk-LPWSHG6O.js → chunk-MA2QNKZ7.js} +2 -2
- package/dist/{chunk-45GU4HW2.js → chunk-MZ6IF3DO.js} +2 -2
- package/dist/{chunk-46HPJEJW.mjs → chunk-NHSJQ3KY.mjs} +1 -1
- package/dist/{chunk-GFOMWTSR.mjs → chunk-OCXXIUSC.mjs} +1 -1
- package/dist/{chunk-PE2DD2SV.mjs → chunk-OE5KYONM.mjs} +1 -1
- package/dist/{chunk-H3UJL3I6.mjs → chunk-OFSUFHFM.mjs} +2 -2
- package/dist/{chunk-EI3PUSCC.js → chunk-OJV4NKCZ.js} +9 -9
- package/dist/{chunk-PHWTI5FA.js → chunk-QA6M5DEJ.js} +2 -2
- package/dist/{chunk-357OS575.mjs → chunk-QCAF5WDF.mjs} +2 -2
- package/dist/{chunk-4CWRH5ZE.mjs → chunk-QTW54PBD.mjs} +1 -1
- package/dist/{chunk-DLQLZTCZ.mjs → chunk-RXH7O5YP.mjs} +19 -1
- package/dist/{chunk-A5H74FJO.mjs → chunk-SQHYP2JD.mjs} +1 -1
- package/dist/{chunk-TIKTN6ZZ.mjs → chunk-SZJOJ773.mjs} +1 -1
- package/dist/{chunk-MBCXSLG7.js → chunk-T2CG5RNT.js} +2 -2
- package/dist/{chunk-XKR7HI4E.mjs → chunk-T5XCHBCB.mjs} +3 -3
- package/dist/{chunk-MYOY5MK7.mjs → chunk-TSTK2BD6.mjs} +25 -6
- package/dist/{chunk-UHT3YMUI.mjs → chunk-UA7PFIEF.mjs} +1 -1
- package/dist/{chunk-K7MNWUOY.js → chunk-UPMKBKEN.js} +2 -2
- package/dist/{chunk-X5FFOC7V.js → chunk-VOPIMPWA.js} +11 -11
- package/dist/{chunk-SON5KDOS.mjs → chunk-WKYE64AL.mjs} +1 -1
- package/dist/{chunk-INAG73GE.js → chunk-WPMFZECR.js} +19 -1
- package/dist/{chunk-RQVECOZC.js → chunk-ZMA37UYA.js} +41 -41
- package/dist/{chunk-3O66TDXL.js → chunk-ZYC7FHCD.js} +5 -5
- package/dist/executors.js +16 -16
- package/dist/executors.mjs +15 -15
- package/dist/generators.js +10 -10
- package/dist/generators.mjs +11 -11
- package/dist/index.js +24 -24
- package/dist/index.mjs +25 -25
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- package/dist/src/base/base-generator.js +3 -3
- package/dist/src/base/base-generator.mjs +2 -2
- package/dist/src/base/index.js +4 -4
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/executors/cargo-build/executor.js +4 -4
- package/dist/src/executors/cargo-build/executor.mjs +3 -3
- package/dist/src/executors/cargo-check/executor.js +4 -4
- package/dist/src/executors/cargo-check/executor.mjs +3 -3
- package/dist/src/executors/cargo-clippy/executor.js +4 -4
- package/dist/src/executors/cargo-clippy/executor.mjs +3 -3
- package/dist/src/executors/cargo-doc/executor.js +4 -4
- package/dist/src/executors/cargo-doc/executor.mjs +3 -3
- package/dist/src/executors/cargo-format/executor.js +4 -4
- package/dist/src/executors/cargo-format/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.js +5 -5
- package/dist/src/executors/clean-package/executor.mjs +2 -2
- package/dist/src/executors/esbuild/executor.js +5 -5
- package/dist/src/executors/esbuild/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/executor.js +3 -3
- package/dist/src/executors/npm-publish/executor.mjs +2 -2
- package/dist/src/executors/size-limit/executor.js +4 -4
- package/dist/src/executors/size-limit/executor.mjs +3 -3
- package/dist/src/executors/tsdown/executor.js +5 -5
- package/dist/src/executors/tsdown/executor.mjs +4 -4
- package/dist/src/executors/typia/executor.js +4 -4
- package/dist/src/executors/typia/executor.mjs +3 -3
- 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 +4 -4
- package/dist/src/generators/browser-library/generator.mjs +3 -3
- package/dist/src/generators/config-schema/generator.js +4 -4
- package/dist/src/generators/config-schema/generator.mjs +3 -3
- package/dist/src/generators/neutral-library/generator.js +4 -4
- package/dist/src/generators/neutral-library/generator.mjs +3 -3
- package/dist/src/generators/node-library/generator.js +4 -4
- package/dist/src/generators/node-library/generator.mjs +3 -3
- package/dist/src/generators/preset/generator.js +4 -4
- package/dist/src/generators/preset/generator.mjs +3 -3
- package/dist/src/generators/release-version/generator.js +3 -3
- package/dist/src/generators/release-version/generator.mjs +2 -2
- package/dist/src/utils/index.js +2 -2
- package/dist/src/utils/index.mjs +1 -1
- package/dist/src/utils/pnpm-deps-update.js +2 -2
- package/dist/src/utils/pnpm-deps-update.mjs +1 -1
- package/package.json +227 -1
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
copyAssets,
|
|
7
7
|
getEntryPoints,
|
|
8
8
|
getEnv
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OCXXIUSC.mjs";
|
|
10
10
|
import {
|
|
11
11
|
withRunExecutor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GVBCN2FA.mjs";
|
|
13
13
|
import {
|
|
14
14
|
getStopwatch,
|
|
15
15
|
isVerbose,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
writeInfo,
|
|
20
20
|
writeSuccess,
|
|
21
21
|
writeWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DM2FMT3G.mjs";
|
|
23
23
|
import {
|
|
24
24
|
joinPaths
|
|
25
25
|
} from "./chunk-PVTEDLBL.mjs";
|
|
@@ -509,7 +509,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
|
|
|
509
509
|
envName: _optionalChain([fileName, 'optionalAccess', _30 => _30.toUpperCase, 'call', _31 => _31()]),
|
|
510
510
|
jitiOptions: {
|
|
511
511
|
debug: false,
|
|
512
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkXCSSYTCUjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "
|
|
512
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkXCSSYTCUjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
513
513
|
},
|
|
514
514
|
...options
|
|
515
515
|
});
|
|
@@ -521,7 +521,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
|
|
|
521
521
|
envName: _optionalChain([fileName, 'optionalAccess', _32 => _32.toUpperCase, 'call', _33 => _33()]),
|
|
522
522
|
jitiOptions: {
|
|
523
523
|
debug: false,
|
|
524
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkXCSSYTCUjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "
|
|
524
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkXCSSYTCUjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
525
525
|
},
|
|
526
526
|
configFile: fileName,
|
|
527
527
|
...options
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCDOWHRVEjs = require('./chunk-CDOWHRVE.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoFormatExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoFormatExecutor, "cargoFormatExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkCDOWHRVEjs.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkAX4OFOSNjs = require('./chunk-AX4OFOSN.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkCDOWHRVEjs = require('./chunk-CDOWHRVE.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ var _chunk72H4B5NBjs = require('./chunk-72H4B5NB.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkGRBZKMJIjs = require('./chunk-GRBZKMJI.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
|
|
@@ -31,17 +31,17 @@ var _devkit = require('@nx/devkit');
|
|
|
31
31
|
var _js = require('@nx/js');
|
|
32
32
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
33
33
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
34
|
+
var _jiti = require('jiti');
|
|
34
35
|
var _fs = require('fs');
|
|
35
36
|
var _promises = require('fs/promises');
|
|
36
37
|
var _path = require('path');
|
|
37
38
|
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
38
|
-
var _unbuild = require('unbuild');
|
|
39
39
|
|
|
40
40
|
// ../unbuild/src/clean.ts
|
|
41
41
|
|
|
42
42
|
async function clean(name = "Unbuild", directory, config) {
|
|
43
|
-
|
|
44
|
-
const stopwatch =
|
|
43
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
44
|
+
const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
45
45
|
await _promises.rm.call(void 0, directory, {
|
|
46
46
|
recursive: true,
|
|
47
47
|
force: true
|
|
@@ -70,7 +70,7 @@ var analyzePlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
|
|
|
70
70
|
renderChunk(source, chunk) {
|
|
71
71
|
const sourceBytes = formatBytes(source.length);
|
|
72
72
|
const fileName = chunk.fileName;
|
|
73
|
-
|
|
73
|
+
_chunkGRBZKMJIjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, resolvedOptions.config);
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
}, "analyzePlugin");
|
|
@@ -80,7 +80,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
|
|
|
80
80
|
name: "storm:on-error",
|
|
81
81
|
buildEnd(error) {
|
|
82
82
|
if (error) {
|
|
83
|
-
|
|
83
|
+
_chunkGRBZKMJIjs.writeError.call(void 0, `The following errors occurred during the build:
|
|
84
84
|
${error ? error.message : "Unknown build error"}
|
|
85
85
|
|
|
86
86
|
`, resolvedOptions.config);
|
|
@@ -88,7 +88,7 @@ ${error ? error.message : "Unknown build error"}
|
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
renderError(error) {
|
|
91
|
-
|
|
91
|
+
_chunkGRBZKMJIjs.writeError.call(void 0, `The following errors occurred during the build:
|
|
92
92
|
${error ? error.message : "Unknown build error"}
|
|
93
93
|
|
|
94
94
|
`, resolvedOptions.config);
|
|
@@ -123,7 +123,7 @@ async function createTsCompilerOptions(config, tsConfigPath, projectRoot, depend
|
|
|
123
123
|
declaration: true,
|
|
124
124
|
paths: _buildablelibsutils.computeCompilerOptionsPaths.call(void 0, tsConfig, _nullishCoalesce(dependencies, () => ( [])))
|
|
125
125
|
};
|
|
126
|
-
|
|
126
|
+
_chunkGRBZKMJIjs.writeTrace.call(void 0, compilerOptions, config);
|
|
127
127
|
return compilerOptions;
|
|
128
128
|
}
|
|
129
129
|
_chunk3GQAWCBQjs.__name.call(void 0, createTsCompilerOptions, "createTsCompilerOptions");
|
|
@@ -197,9 +197,9 @@ async function resolveOptions(options) {
|
|
|
197
197
|
if (!workspaceRoot) {
|
|
198
198
|
throw new Error("Cannot find workspace root");
|
|
199
199
|
}
|
|
200
|
-
const config = await
|
|
201
|
-
|
|
202
|
-
const stopwatch =
|
|
200
|
+
const config = await _chunkGRBZKMJIjs.loadStormConfig.call(void 0, workspaceRoot.dir);
|
|
201
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
202
|
+
const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, "Build options resolution");
|
|
203
203
|
if (options.configPath) {
|
|
204
204
|
const configFile = await loadConfig(options.configPath);
|
|
205
205
|
if (configFile) {
|
|
@@ -241,6 +241,11 @@ async function resolveOptions(options) {
|
|
|
241
241
|
dependencies = dependencies.filter((deps) => deps.name !== tsLibDependency.name);
|
|
242
242
|
dependencies.push(tsLibDependency);
|
|
243
243
|
}
|
|
244
|
+
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
245
|
+
cache: true,
|
|
246
|
+
fsCache: config.skipCache ? false : _chunkXCSSYTCUjs.joinPaths.call(void 0, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
247
|
+
interopDefault: true
|
|
248
|
+
});
|
|
244
249
|
const resolvedOptions = {
|
|
245
250
|
name: projectName,
|
|
246
251
|
config,
|
|
@@ -248,6 +253,7 @@ async function resolveOptions(options) {
|
|
|
248
253
|
sourceRoot,
|
|
249
254
|
projectName,
|
|
250
255
|
tsconfig,
|
|
256
|
+
jiti,
|
|
251
257
|
clean: false,
|
|
252
258
|
entries: [
|
|
253
259
|
{
|
|
@@ -314,11 +320,11 @@ async function resolveOptions(options) {
|
|
|
314
320
|
]
|
|
315
321
|
},
|
|
316
322
|
esbuild: {
|
|
317
|
-
minify:
|
|
323
|
+
minify: options.minify !== false,
|
|
318
324
|
splitting: options.splitting !== false,
|
|
319
325
|
treeShaking: options.treeShaking !== false,
|
|
320
326
|
color: true,
|
|
321
|
-
logLevel: config.logLevel ===
|
|
327
|
+
logLevel: config.logLevel === _chunkGRBZKMJIjs.LogLevelLabel.FATAL ? _chunkGRBZKMJIjs.LogLevelLabel.ERROR : _chunkGRBZKMJIjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
|
|
322
328
|
}
|
|
323
329
|
}
|
|
324
330
|
};
|
|
@@ -355,8 +361,8 @@ async function resolveOptions(options) {
|
|
|
355
361
|
_chunk3GQAWCBQjs.__name.call(void 0, resolveOptions, "resolveOptions");
|
|
356
362
|
async function generatePackageJson(options) {
|
|
357
363
|
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
358
|
-
|
|
359
|
-
const stopwatch =
|
|
364
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
365
|
+
const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, "Write package.json file");
|
|
360
366
|
const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
361
367
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
362
368
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -366,19 +372,32 @@ async function generatePackageJson(options) {
|
|
|
366
372
|
throw new Error("Cannot find package.json configuration file");
|
|
367
373
|
}
|
|
368
374
|
let packageJson = JSON.parse(packageJsonContent);
|
|
369
|
-
packageJson = await
|
|
370
|
-
packageJson = await
|
|
371
|
-
await _devkit.writeJsonFile.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, options.outDir, "package.json"), await
|
|
375
|
+
packageJson = await _chunkAX4OFOSNjs.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
|
|
376
|
+
packageJson = await _chunkAX4OFOSNjs.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
|
|
377
|
+
await _devkit.writeJsonFile.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, options.outDir, "package.json"), await _chunkAX4OFOSNjs.addPackageJsonExports.call(void 0, options.sourceRoot, packageJson));
|
|
372
378
|
stopwatch();
|
|
373
379
|
}
|
|
374
380
|
return options;
|
|
375
381
|
}
|
|
376
382
|
_chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
383
|
+
async function resolveUnbuild(options) {
|
|
384
|
+
_chunkGRBZKMJIjs.writeTrace.call(void 0, `Resolving Unbuild package with Jiti`, options.config);
|
|
385
|
+
try {
|
|
386
|
+
return options.jiti.import("unbuild");
|
|
387
|
+
} catch (error) {
|
|
388
|
+
_chunkGRBZKMJIjs.writeError.call(void 0, " \u274C An error occurred while resolving the Unbuild package", options.config);
|
|
389
|
+
throw new Error("An error occurred while resolving the Unbuild package", {
|
|
390
|
+
cause: error
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
_chunk3GQAWCBQjs.__name.call(void 0, resolveUnbuild, "resolveUnbuild");
|
|
377
395
|
async function executeUnbuild(options) {
|
|
378
|
-
|
|
379
|
-
const stopwatch =
|
|
396
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
|
|
397
|
+
const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, `${options.name} (${options.projectRoot}) build`);
|
|
380
398
|
try {
|
|
381
|
-
await
|
|
399
|
+
const unbuild = await resolveUnbuild(options);
|
|
400
|
+
await unbuild.build(options.projectRoot, false, {
|
|
382
401
|
...options,
|
|
383
402
|
rootDir: options.projectRoot
|
|
384
403
|
});
|
|
@@ -389,9 +408,9 @@ async function executeUnbuild(options) {
|
|
|
389
408
|
}
|
|
390
409
|
_chunk3GQAWCBQjs.__name.call(void 0, executeUnbuild, "executeUnbuild");
|
|
391
410
|
async function copyBuildAssets(options) {
|
|
392
|
-
|
|
393
|
-
const stopwatch =
|
|
394
|
-
await
|
|
411
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`, options.config);
|
|
412
|
+
const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
413
|
+
await _chunkAX4OFOSNjs.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outDir, options.projectRoot, options.projectName, options.sourceRoot, options.generatePackageJson, options.includeSrc);
|
|
395
414
|
stopwatch();
|
|
396
415
|
return options;
|
|
397
416
|
}
|
|
@@ -404,17 +423,17 @@ async function cleanOutputPath(options) {
|
|
|
404
423
|
}
|
|
405
424
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
406
425
|
async function build(options) {
|
|
407
|
-
|
|
408
|
-
const stopwatch =
|
|
426
|
+
_chunkGRBZKMJIjs.writeDebug.call(void 0, ` \u26A1 Executing Storm Unbuild pipeline`);
|
|
427
|
+
const stopwatch = _chunkGRBZKMJIjs.getStopwatch.call(void 0, "Unbuild pipeline");
|
|
409
428
|
try {
|
|
410
429
|
const resolvedOptions = await resolveOptions(options);
|
|
411
430
|
await cleanOutputPath(resolvedOptions);
|
|
412
431
|
await generatePackageJson(resolvedOptions);
|
|
413
432
|
await executeUnbuild(resolvedOptions);
|
|
414
433
|
await copyBuildAssets(resolvedOptions);
|
|
415
|
-
|
|
434
|
+
_chunkGRBZKMJIjs.writeSuccess.call(void 0, ` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, resolvedOptions.config);
|
|
416
435
|
} catch (error) {
|
|
417
|
-
|
|
436
|
+
_chunkGRBZKMJIjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
418
437
|
throw error;
|
|
419
438
|
} finally {
|
|
420
439
|
stopwatch();
|
|
@@ -425,7 +444,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, build, "build");
|
|
|
425
444
|
// src/executors/unbuild/executor.ts
|
|
426
445
|
|
|
427
446
|
async function unbuildExecutorFn(options, context, config) {
|
|
428
|
-
|
|
447
|
+
_chunkGRBZKMJIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
429
448
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'access', _4 => _4.projects, 'access', _5 => _5[context.projectName], 'optionalAccess', _6 => _6.root])) {
|
|
430
449
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
431
450
|
}
|
|
@@ -468,7 +487,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
468
487
|
};
|
|
469
488
|
}
|
|
470
489
|
_chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
471
|
-
var executor_default =
|
|
490
|
+
var executor_default = _chunkCDOWHRVEjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
|
|
472
491
|
skipReadingConfig: false,
|
|
473
492
|
hooks: {
|
|
474
493
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCDOWHRVEjs = require('./chunk-CDOWHRVE.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoCheckExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkCDOWHRVEjs.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -7,7 +7,7 @@ var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
|
|
|
7
7
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk5Q3LI7CFjs = require('./chunk-5Q3LI7CF.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -49,7 +49,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
49
49
|
return null;
|
|
50
50
|
}
|
|
51
51
|
_chunk3GQAWCBQjs.__name.call(void 0, nodeLibraryGeneratorFn, "nodeLibraryGeneratorFn");
|
|
52
|
-
var generator_default =
|
|
52
|
+
var generator_default = _chunk5Q3LI7CFjs.withRunGenerator.call(void 0, "TypeScript Library Creator (NodeJs Platform)", nodeLibraryGeneratorFn, {
|
|
53
53
|
hooks: {
|
|
54
54
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
55
55
|
options.description ??= "A library used by Storm Software to support NodeJs applications";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5Q3LI7CFjs = require('./chunk-5Q3LI7CF.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -42,7 +42,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
44
|
_chunk3GQAWCBQjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
|
|
45
|
-
var generator_default =
|
|
45
|
+
var generator_default = _chunk5Q3LI7CFjs.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
|
|
46
46
|
hooks: {
|
|
47
47
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
48
48
|
options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWPMFZECRjs = require('./chunk-WPMFZECR.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
|
|
@@ -37,7 +37,7 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
37
37
|
success: true
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
await
|
|
40
|
+
await _chunkWPMFZECRjs.pnpmCatalogUpdate.call(void 0, packageRoot, context.root);
|
|
41
41
|
const npmPublishCommandSegments = [
|
|
42
42
|
`npm publish --json`
|
|
43
43
|
];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5Q3LI7CFjs = require('./chunk-5Q3LI7CF.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkGRBZKMJIjs = require('./chunk-GRBZKMJI.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
|
|
@@ -18,25 +18,25 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
20
20
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
21
|
+
_chunkGRBZKMJIjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
|
|
22
|
+
_chunkGRBZKMJIjs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
|
|
23
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkGRBZKMJIjs.StormConfigSchema, {
|
|
24
24
|
name: "StormWorkspaceConfiguration"
|
|
25
25
|
});
|
|
26
|
-
|
|
26
|
+
_chunkGRBZKMJIjs.writeTrace.call(void 0, jsonSchema, config);
|
|
27
27
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./");
|
|
28
|
-
|
|
28
|
+
_chunkGRBZKMJIjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
29
29
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
30
30
|
spaces: 2
|
|
31
31
|
});
|
|
32
32
|
await _devkit.formatFiles.call(void 0, tree);
|
|
33
|
-
|
|
33
|
+
_chunkGRBZKMJIjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
|
|
34
34
|
return {
|
|
35
35
|
success: true
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
_chunk3GQAWCBQjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
|
|
39
|
-
var generator_default =
|
|
39
|
+
var generator_default = _chunk5Q3LI7CFjs.withRunGenerator.call(void 0, "Configuration Schema Creator", configSchemaGeneratorFn, {
|
|
40
40
|
hooks: {
|
|
41
41
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
42
42
|
options.outputFile ??= "{workspaceRoot}/storm-workspace.schema.json";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5Q3LI7CFjs = require('./chunk-5Q3LI7CF.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -232,7 +232,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
232
232
|
return null;
|
|
233
233
|
}
|
|
234
234
|
_chunk3GQAWCBQjs.__name.call(void 0, presetGeneratorFn, "presetGeneratorFn");
|
|
235
|
-
var generator_default =
|
|
235
|
+
var generator_default = _chunk5Q3LI7CFjs.withRunGenerator.call(void 0, "Storm Workspace Preset Generator", presetGeneratorFn);
|
|
236
236
|
|
|
237
237
|
|
|
238
238
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A4DWQQ6J.mjs";
|
|
4
4
|
import {
|
|
5
5
|
StormConfigSchema,
|
|
6
6
|
writeInfo,
|
|
7
7
|
writeSuccess,
|
|
8
8
|
writeTrace
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DM2FMT3G.mjs";
|
|
10
10
|
import {
|
|
11
11
|
findWorkspaceRoot
|
|
12
12
|
} from "./chunk-DMUTOQCB.mjs";
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
// src/utils/pnpm-deps-update.ts
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
import { readFile, writeFile } from "node:fs/promises";
|
|
11
|
+
import { format } from "prettier";
|
|
11
12
|
import readYamlFile from "read-yaml-file";
|
|
12
13
|
var pnpmCatalog;
|
|
13
14
|
async function pnpmCatalogUpdate(packageRoot, workspaceRoot = process.cwd()) {
|
|
@@ -60,7 +61,24 @@ File contents: ${pnpmWorkspaceYaml ? JSON.stringify(pnpmWorkspaceYaml) : "EMPTY
|
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
|
-
return writeFile(packageJsonPath, JSON.stringify(packageJson)
|
|
64
|
+
return writeFile(packageJsonPath, await format(JSON.stringify(packageJson), {
|
|
65
|
+
parser: "json",
|
|
66
|
+
proseWrap: "always",
|
|
67
|
+
trailingComma: "none",
|
|
68
|
+
tabWidth: 2,
|
|
69
|
+
semi: true,
|
|
70
|
+
singleQuote: false,
|
|
71
|
+
quoteProps: "as-needed",
|
|
72
|
+
insertPragma: false,
|
|
73
|
+
bracketSameLine: true,
|
|
74
|
+
printWidth: 80,
|
|
75
|
+
bracketSpacing: true,
|
|
76
|
+
arrowParens: "avoid",
|
|
77
|
+
endOfLine: "lf",
|
|
78
|
+
plugins: [
|
|
79
|
+
"prettier-plugin-pkg"
|
|
80
|
+
]
|
|
81
|
+
}));
|
|
64
82
|
}
|
|
65
83
|
__name(pnpmCatalogUpdate, "pnpmCatalogUpdate");
|
|
66
84
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCDOWHRVEjs = require('./chunk-CDOWHRVE.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoClippyExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoClippyExecutor, "cargoClippyExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkCDOWHRVEjs.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
getEntryPoints,
|
|
9
9
|
getEnv,
|
|
10
10
|
getOutExtension
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OCXXIUSC.mjs";
|
|
12
12
|
import {
|
|
13
13
|
withRunExecutor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GVBCN2FA.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getStopwatch,
|
|
17
17
|
isVerbose,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
writeSuccess,
|
|
24
24
|
writeTrace,
|
|
25
25
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DM2FMT3G.mjs";
|
|
27
27
|
import {
|
|
28
28
|
joinPaths
|
|
29
29
|
} from "./chunk-PVTEDLBL.mjs";
|