@storm-software/cloudflare-tools 0.55.57 → 0.55.59
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 +14 -0
- package/README.md +1 -1
- package/dist/{chunk-EQ4W4KOF.mjs → chunk-4CNZ5PH2.mjs} +1 -1
- package/dist/{chunk-Q6K6U2VU.js → chunk-A6L4ZGKM.js} +137 -137
- package/dist/{chunk-ZJ4YOG5X.mjs → chunk-CRVSAZIS.mjs} +1 -1
- package/dist/{chunk-S5NUDAJR.js → chunk-DXA6VL3T.js} +3 -3
- package/dist/{chunk-4P4IIN6G.js → chunk-I3INFEES.js} +16 -16
- package/dist/{chunk-4FDXYQX5.mjs → chunk-K5VN3HED.mjs} +2 -2
- package/dist/{chunk-WLNMJ2TZ.js → chunk-PUQB7POQ.js} +1 -1
- package/dist/{chunk-VIDN6K7N.mjs → chunk-Q7EDJLEB.mjs} +2 -1
- package/dist/{chunk-NTRAH7JN.mjs → chunk-QHEOKFFX.mjs} +3 -3
- package/dist/{chunk-XTB3EDIU.mjs → chunk-TTTVOVML.mjs} +1 -1
- package/dist/{chunk-Z5XL2UL5.js → chunk-U2GYOTAE.js} +41 -41
- package/dist/{chunk-S6FMPHBB.mjs → chunk-UHTKO6PS.mjs} +3 -3
- package/dist/{chunk-QQQD2SIN.js → chunk-WNICDYXY.js} +2 -1
- package/dist/{chunk-Z3CIJK5G.js → chunk-ZZMK5H75.js} +12 -12
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +5 -5
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/executors/cloudflare-publish/executor.js +3 -3
- package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
- package/dist/src/executors/r2-upload-publish/executor.js +5 -5
- package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
- package/dist/src/executors/serve/executor.js +4 -4
- package/dist/src/executors/serve/executor.mjs +3 -3
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/dist/src/generators/worker/generator.js +5 -5
- package/dist/src/generators/worker/generator.mjs +4 -4
- package/dist/src/utils/index.js +3 -3
- package/dist/src/utils/index.mjs +2 -2
- package/dist/src/utils/r2-bucket-helpers.js +3 -3
- package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkU2GYOTAEjs = require('./chunk-U2GYOTAE.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -20,7 +20,7 @@ var _chunkZ5XL2UL5js = require('./chunk-Z5XL2UL5.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkWNICDYXYjs = require('./chunk-WNICDYXY.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -53,7 +53,7 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
if (result.includes("{workspaceRoot}")) {
|
|
56
|
-
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => (
|
|
56
|
+
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, ))));
|
|
57
57
|
}
|
|
58
58
|
return result;
|
|
59
59
|
}, "applyWorkspaceBaseTokens");
|
|
@@ -101,35 +101,35 @@ var run = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (config, command,
|
|
|
101
101
|
// ../workspace-tools/src/base/base-executor.ts
|
|
102
102
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
103
103
|
var withRunExecutor = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context2) => {
|
|
104
|
-
const stopwatch =
|
|
104
|
+
const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, name);
|
|
105
105
|
let options = _options;
|
|
106
106
|
let config = {};
|
|
107
107
|
try {
|
|
108
108
|
if (!_optionalChain([context2, 'access', _5 => _5.projectsConfigurations, 'optionalAccess', _6 => _6.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
109
109
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
110
110
|
}
|
|
111
|
-
const workspaceRoot3 =
|
|
111
|
+
const workspaceRoot3 = _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, );
|
|
112
112
|
const projectRoot = context2.projectsConfigurations.projects[context2.projectName].root || workspaceRoot3;
|
|
113
113
|
const sourceRoot = context2.projectsConfigurations.projects[context2.projectName].sourceRoot || projectRoot || workspaceRoot3;
|
|
114
114
|
const projectName = context2.projectName;
|
|
115
115
|
config.workspaceRoot = workspaceRoot3;
|
|
116
|
-
|
|
116
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
117
117
|
if (!executorOptions.skipReadingConfig) {
|
|
118
|
-
|
|
118
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
119
119
|
- workspaceRoot: ${workspaceRoot3}
|
|
120
120
|
- projectRoot: ${projectRoot}
|
|
121
121
|
- sourceRoot: ${sourceRoot}
|
|
122
122
|
- projectName: ${projectName}
|
|
123
123
|
`, config);
|
|
124
|
-
config = await
|
|
124
|
+
config = await _chunkU2GYOTAEjs.getConfig.call(void 0, workspaceRoot3);
|
|
125
125
|
}
|
|
126
126
|
if (_optionalChain([executorOptions, 'optionalAccess', _7 => _7.hooks, 'optionalAccess', _8 => _8.applyDefaultOptions])) {
|
|
127
|
-
|
|
127
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
128
128
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
129
|
-
|
|
129
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
${
|
|
131
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
132
|
+
${_chunkWNICDYXYjs.formatLogMessage.call(void 0, options)}
|
|
133
133
|
`, config);
|
|
134
134
|
const tokenized = await applyWorkspaceTokens(options, _defu.defu.call(void 0, {
|
|
135
135
|
workspaceRoot: workspaceRoot3,
|
|
@@ -138,13 +138,13 @@ ${_chunkQQQD2SINjs.formatLogMessage.call(void 0, options)}
|
|
|
138
138
|
projectName,
|
|
139
139
|
config
|
|
140
140
|
}, config, context2.projectsConfigurations.projects[context2.projectName]), applyWorkspaceProjectTokens);
|
|
141
|
-
|
|
142
|
-
${
|
|
141
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
|
|
142
|
+
${_chunkWNICDYXYjs.formatLogMessage.call(void 0, tokenized)}
|
|
143
143
|
`, config);
|
|
144
144
|
if (_optionalChain([executorOptions, 'optionalAccess', _9 => _9.hooks, 'optionalAccess', _10 => _10.preProcess])) {
|
|
145
|
-
|
|
145
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
146
146
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
147
|
-
|
|
147
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
148
148
|
}
|
|
149
149
|
const ret = executorFn(tokenized, context2, config);
|
|
150
150
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _11 => _11.next]))) {
|
|
@@ -154,26 +154,26 @@ ${_chunkQQQD2SINjs.formatLogMessage.call(void 0, tokenized)}
|
|
|
154
154
|
}
|
|
155
155
|
const result = await Promise.resolve(ret);
|
|
156
156
|
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.message]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.message]) === "string" && _optionalChain([result, 'optionalAccess', _16 => _16.error, 'optionalAccess', _17 => _17.name]) && typeof _optionalChain([result, 'optionalAccess', _18 => _18.error, 'optionalAccess', _19 => _19.name]) === "string")) {
|
|
157
|
-
|
|
158
|
-
${
|
|
157
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
|
|
158
|
+
${_chunkWNICDYXYjs.formatLogMessage.call(void 0, result)}`, config);
|
|
159
159
|
console.error(result);
|
|
160
160
|
throw new Error(`The ${name} executor failed to run`, {
|
|
161
161
|
cause: _optionalChain([result, 'optionalAccess', _20 => _20.error])
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
164
|
if (_optionalChain([executorOptions, 'optionalAccess', _21 => _21.hooks, 'optionalAccess', _22 => _22.postProcess])) {
|
|
165
|
-
|
|
165
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
166
166
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
167
|
-
|
|
167
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
_chunkWNICDYXYjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
170
170
|
`, config);
|
|
171
171
|
return {
|
|
172
172
|
success: true
|
|
173
173
|
};
|
|
174
174
|
} catch (error) {
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
_chunkWNICDYXYjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
176
|
+
_chunkWNICDYXYjs.writeError.call(void 0, `An exception was thrown in the executor's process
|
|
177
177
|
- Details: ${error.message}
|
|
178
178
|
- Stacktrace: ${error.stack}`, config);
|
|
179
179
|
return {
|
|
@@ -476,8 +476,8 @@ var copyAssets = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (con
|
|
|
476
476
|
output: "src/"
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
|
-
|
|
480
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
479
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
480
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkWNICDYXYjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
481
481
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
482
482
|
projectDir: projectRoot,
|
|
483
483
|
rootDir: config.workspaceRoot,
|
|
@@ -486,12 +486,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
486
486
|
});
|
|
487
487
|
await assetHandler.processAllAssetsOnce();
|
|
488
488
|
if (includeSrc === true) {
|
|
489
|
-
|
|
489
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkWNICDYXYjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
490
490
|
const files = await _glob.glob.call(void 0, [
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
491
|
+
_chunkWNICDYXYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
492
|
+
_chunkWNICDYXYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
493
|
+
_chunkWNICDYXYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
494
|
+
_chunkWNICDYXYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
495
495
|
]);
|
|
496
496
|
await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
497
497
|
|
|
@@ -514,7 +514,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
|
|
|
514
514
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _29 => _29.node, 'access', _30 => _30.data, 'optionalAccess', _31 => _31.root]) !== projectRoot && _optionalChain([dep, 'access', _32 => _32.node, 'access', _33 => _33.data, 'optionalAccess', _34 => _34.root]) !== workspaceRoot3)) {
|
|
515
515
|
const projectNode = project.node;
|
|
516
516
|
if (projectNode.data.root) {
|
|
517
|
-
const projectPackageJsonPath =
|
|
517
|
+
const projectPackageJsonPath = _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
|
|
518
518
|
if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
|
|
519
519
|
const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
|
|
520
520
|
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
@@ -525,8 +525,8 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
|
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
if (localPackages.length > 0) {
|
|
528
|
-
|
|
529
|
-
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
528
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
529
|
+
const projectJsonFile = await _promises.readFile.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
530
530
|
const projectJson = JSON.parse(projectJsonFile);
|
|
531
531
|
const projectName2 = projectJson.name;
|
|
532
532
|
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
@@ -535,7 +535,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
|
|
|
535
535
|
}
|
|
536
536
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _37 => _37.projects, 'optionalAccess', _38 => _38[projectName2], 'access', _39 => _39.implicitDependencies, 'optionalAccess', _40 => _40.reduce, 'call', _41 => _41((ret, dep) => {
|
|
537
537
|
if (_optionalChain([projectConfigurations, 'access', _42 => _42.projects, 'optionalAccess', _43 => _43[dep]])) {
|
|
538
|
-
const depPackageJsonPath =
|
|
538
|
+
const depPackageJsonPath = _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
|
|
539
539
|
if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
|
|
540
540
|
const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
|
|
541
541
|
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
@@ -559,13 +559,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0
|
|
|
559
559
|
return ret;
|
|
560
560
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
561
561
|
} else {
|
|
562
|
-
|
|
562
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
563
563
|
}
|
|
564
564
|
return packageJson;
|
|
565
565
|
}, "addPackageDependencies");
|
|
566
566
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
567
|
-
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot :
|
|
568
|
-
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
567
|
+
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, );
|
|
568
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
|
|
569
569
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
570
570
|
packageJson.type ??= "module";
|
|
571
571
|
packageJson.sideEffects ??= false;
|
|
@@ -574,7 +574,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call
|
|
|
574
574
|
if (distSrc.startsWith("/")) {
|
|
575
575
|
distSrc = distSrc.substring(1);
|
|
576
576
|
}
|
|
577
|
-
packageJson.source ??= `${
|
|
577
|
+
packageJson.source ??= `${_chunkWNICDYXYjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
578
578
|
}
|
|
579
579
|
packageJson.files ??= [
|
|
580
580
|
"dist/**/*"
|
|
@@ -605,7 +605,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call
|
|
|
605
605
|
];
|
|
606
606
|
}
|
|
607
607
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
608
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
608
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkWNICDYXYjs.joinPaths.call(void 0, "packages", projectName);
|
|
609
609
|
return packageJson;
|
|
610
610
|
}, "addWorkspacePackageJsonFields");
|
|
611
611
|
|
|
@@ -910,7 +910,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (option
|
|
|
910
910
|
setup(build4) {
|
|
911
911
|
build4.onEnd((result) => {
|
|
912
912
|
if (result.errors.length > 0 && process.env.WATCH !== "true") {
|
|
913
|
-
|
|
913
|
+
_chunkWNICDYXYjs.writeError.call(void 0, `The following errors occurred during the build:
|
|
914
914
|
${result.errors.map((error) => error.text).join("\n")}
|
|
915
915
|
|
|
916
916
|
`, resolvedOptions.config);
|
|
@@ -945,7 +945,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
|
|
|
945
945
|
var resolvePathsPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
946
946
|
name: "storm:resolve-paths",
|
|
947
947
|
setup(build4) {
|
|
948
|
-
const parentTsConfig = build4.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0,
|
|
948
|
+
const parentTsConfig = build4.initialOptions.tsconfig ? _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build4.initialOptions.tsconfig)) : _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
|
|
949
949
|
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
|
|
950
950
|
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
951
951
|
build4.onResolve({
|
|
@@ -969,7 +969,7 @@ var _apiextractor = require('@microsoft/api-extractor');
|
|
|
969
969
|
|
|
970
970
|
|
|
971
971
|
function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
972
|
-
const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0,
|
|
972
|
+
const { dependencies, peerDependencies, devDependencies } = _chunkJ5SB6L2Ljs.__require.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
|
|
973
973
|
const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
|
|
974
974
|
p,
|
|
975
975
|
getTypeDependencyPackageName(p)
|
|
@@ -1005,13 +1005,13 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
1005
1005
|
},
|
|
1006
1006
|
dtsRollup: {
|
|
1007
1007
|
enabled: true,
|
|
1008
|
-
untrimmedFilePath:
|
|
1008
|
+
untrimmedFilePath: _chunkWNICDYXYjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
|
|
1009
1009
|
},
|
|
1010
1010
|
tsdocMetadata: {
|
|
1011
1011
|
enabled: false
|
|
1012
1012
|
}
|
|
1013
1013
|
},
|
|
1014
|
-
packageJsonFullPath:
|
|
1014
|
+
packageJsonFullPath: _chunkWNICDYXYjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
|
|
1015
1015
|
configObjectFullPath: void 0
|
|
1016
1016
|
});
|
|
1017
1017
|
const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
|
|
@@ -1019,7 +1019,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
1019
1019
|
localBuild: true
|
|
1020
1020
|
});
|
|
1021
1021
|
if (extractorResult.succeeded === false) {
|
|
1022
|
-
|
|
1022
|
+
_chunkWNICDYXYjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
1023
1023
|
throw new Error("API Extractor completed with errors");
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
@@ -1038,12 +1038,12 @@ var tscPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options, r
|
|
|
1038
1038
|
const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
|
|
1039
1039
|
const typeOutDir = resolvedOptions.outdir;
|
|
1040
1040
|
const entryPoint = resolvedOptions.entryPoints[0].in.replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
1041
|
-
const bundlePath =
|
|
1041
|
+
const bundlePath = _chunkWNICDYXYjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
|
|
1042
1042
|
let dtsPath;
|
|
1043
|
-
if (_fs.existsSync.call(void 0,
|
|
1044
|
-
dtsPath =
|
|
1045
|
-
} else if (_fs.existsSync.call(void 0,
|
|
1046
|
-
dtsPath =
|
|
1043
|
+
if (_fs.existsSync.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
1044
|
+
dtsPath = _chunkWNICDYXYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
|
|
1045
|
+
} else if (_fs.existsSync.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
1046
|
+
dtsPath = _chunkWNICDYXYjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
1047
1047
|
}
|
|
1048
1048
|
const ext = resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
|
|
1049
1049
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
@@ -1207,8 +1207,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (bund
|
|
|
1207
1207
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
1208
1208
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
1209
1209
|
});
|
|
1210
|
-
|
|
1211
|
-
|
|
1210
|
+
_chunkWNICDYXYjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
1211
|
+
_chunkWNICDYXYjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
1212
1212
|
if (filteredMissingDeps.length > 0) {
|
|
1213
1213
|
throw new Error(`Missing dependencies detected - please install them:
|
|
1214
1214
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -1231,7 +1231,7 @@ var shebangRenderer = {
|
|
|
1231
1231
|
// ../esbuild/src/utilities/get-entry-points.ts
|
|
1232
1232
|
|
|
1233
1233
|
var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
1234
|
-
const workspaceRoot3 = config.workspaceRoot ||
|
|
1234
|
+
const workspaceRoot3 = config.workspaceRoot || _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, );
|
|
1235
1235
|
const entryPoints = [];
|
|
1236
1236
|
if (entry) {
|
|
1237
1237
|
if (typeof entry === "string") {
|
|
@@ -1262,8 +1262,8 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1262
1262
|
}
|
|
1263
1263
|
if (emitOnAll) {
|
|
1264
1264
|
entryPoints.push({
|
|
1265
|
-
in:
|
|
1266
|
-
out:
|
|
1265
|
+
in: _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"),
|
|
1266
|
+
out: _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}")
|
|
1267
1267
|
});
|
|
1268
1268
|
}
|
|
1269
1269
|
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
@@ -1276,9 +1276,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1276
1276
|
]
|
|
1277
1277
|
});
|
|
1278
1278
|
paths.push(...files.reduce((ret, filePath) => {
|
|
1279
|
-
const result =
|
|
1279
|
+
const result = _chunkWNICDYXYjs.correctPaths.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkWNICDYXYjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkWNICDYXYjs.correctPaths.call(void 0, projectRoot), ""));
|
|
1280
1280
|
if (result) {
|
|
1281
|
-
|
|
1281
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkWNICDYXYjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
1282
1282
|
if (!paths.some((p) => p.in === result)) {
|
|
1283
1283
|
paths.push({
|
|
1284
1284
|
in: result,
|
|
@@ -1289,7 +1289,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1289
1289
|
return ret;
|
|
1290
1290
|
}, []));
|
|
1291
1291
|
} else {
|
|
1292
|
-
|
|
1292
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, `Adding ESBuild entry point
|
|
1293
1293
|
- Input: ${entryPoint.in}
|
|
1294
1294
|
- Output: ${entryPoint.out}`, config);
|
|
1295
1295
|
if (!paths.some((p) => p.out === entryPoint.out)) {
|
|
@@ -1382,13 +1382,13 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1382
1382
|
if (!workspaceRoot3) {
|
|
1383
1383
|
throw new Error("Cannot find Nx workspace root");
|
|
1384
1384
|
}
|
|
1385
|
-
const config = await
|
|
1386
|
-
|
|
1387
|
-
const stopwatch =
|
|
1385
|
+
const config = await _chunkU2GYOTAEjs.getConfig.call(void 0, workspaceRoot3.dir);
|
|
1386
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
1387
|
+
const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, "Build options resolution");
|
|
1388
1388
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
1389
1389
|
exitOnError: true
|
|
1390
1390
|
});
|
|
1391
|
-
const projectJsonPath =
|
|
1391
|
+
const projectJsonPath = _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
|
|
1392
1392
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
1393
1393
|
throw new Error("Cannot find project.json configuration");
|
|
1394
1394
|
}
|
|
@@ -1402,7 +1402,7 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1402
1402
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
1403
1403
|
options.name ??= `${projectName}-${options.format}`;
|
|
1404
1404
|
options.target ??= DEFAULT_TARGET;
|
|
1405
|
-
const packageJsonPath =
|
|
1405
|
+
const packageJsonPath = _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
1406
1406
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1407
1407
|
throw new Error("Cannot find package.json configuration");
|
|
1408
1408
|
}
|
|
@@ -1419,19 +1419,19 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1419
1419
|
"main"
|
|
1420
1420
|
],
|
|
1421
1421
|
...userOptions,
|
|
1422
|
-
tsconfig:
|
|
1422
|
+
tsconfig: _chunkWNICDYXYjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
1423
1423
|
format: options.format || "cjs",
|
|
1424
1424
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), false),
|
|
1425
|
-
outdir: userOptions.outputPath ||
|
|
1425
|
+
outdir: userOptions.outputPath || _chunkWNICDYXYjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
1426
1426
|
distDir: userOptions.distDir || "dist",
|
|
1427
1427
|
plugins: [],
|
|
1428
1428
|
name: userOptions.name || projectName,
|
|
1429
1429
|
projectConfigurations,
|
|
1430
1430
|
projectName,
|
|
1431
1431
|
projectGraph,
|
|
1432
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
1432
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkWNICDYXYjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
1433
1433
|
minify: userOptions.minify || !userOptions.debug,
|
|
1434
|
-
verbose: userOptions.verbose ||
|
|
1434
|
+
verbose: userOptions.verbose || _chunkWNICDYXYjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
1435
1435
|
includeSrc: userOptions.includeSrc === true,
|
|
1436
1436
|
metafile: userOptions.metafile !== false,
|
|
1437
1437
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -1466,8 +1466,8 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1466
1466
|
}, {})
|
|
1467
1467
|
},
|
|
1468
1468
|
inject: [
|
|
1469
|
-
options.format === "cjs" && options.injectShims ?
|
|
1470
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ?
|
|
1469
|
+
options.format === "cjs" && options.injectShims ? _chunkWNICDYXYjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : void 0,
|
|
1470
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkWNICDYXYjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : void 0
|
|
1471
1471
|
].filter(Boolean)
|
|
1472
1472
|
};
|
|
1473
1473
|
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( getDefaultBuildPlugins(userOptions, result)));
|
|
@@ -1485,14 +1485,14 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1485
1485
|
return result;
|
|
1486
1486
|
}, "resolveOptions");
|
|
1487
1487
|
async function generatePackageJson(context2) {
|
|
1488
|
-
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
1489
|
-
|
|
1490
|
-
const stopwatch =
|
|
1491
|
-
const packageJsonPath =
|
|
1488
|
+
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
1489
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
1490
|
+
const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, "Write package.json file");
|
|
1491
|
+
const packageJsonPath = _chunkWNICDYXYjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
1492
1492
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1493
1493
|
throw new Error("Cannot find package.json configuration");
|
|
1494
1494
|
}
|
|
1495
|
-
const packageJsonFile = await _promises2.default.readFile(
|
|
1495
|
+
const packageJsonFile = await _promises2.default.readFile(_chunkWNICDYXYjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
|
|
1496
1496
|
let packageJson = JSON.parse(packageJsonFile);
|
|
1497
1497
|
if (!packageJson) {
|
|
1498
1498
|
throw new Error("Cannot find package.json configuration file");
|
|
@@ -1520,7 +1520,7 @@ async function generatePackageJson(context2) {
|
|
|
1520
1520
|
}
|
|
1521
1521
|
return ret;
|
|
1522
1522
|
}, packageJson.exports);
|
|
1523
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
1523
|
+
await _devkit.writeJsonFile.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
|
|
1524
1524
|
stopwatch();
|
|
1525
1525
|
}
|
|
1526
1526
|
return context2;
|
|
@@ -1546,8 +1546,8 @@ async function generateContext(getOptions) {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
_chunkJ5SB6L2Ljs.__name.call(void 0, generateContext, "generateContext");
|
|
1548
1548
|
async function executeEsBuild(context2) {
|
|
1549
|
-
|
|
1550
|
-
const stopwatch =
|
|
1549
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
1550
|
+
const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
1551
1551
|
if (process.env.STORM_WATCH) {
|
|
1552
1552
|
const ctx = await esbuild2.context(context2.options);
|
|
1553
1553
|
watch(ctx, context2.options);
|
|
@@ -1555,7 +1555,7 @@ async function executeEsBuild(context2) {
|
|
|
1555
1555
|
const options = {
|
|
1556
1556
|
...context2.options
|
|
1557
1557
|
};
|
|
1558
|
-
options.outdir =
|
|
1558
|
+
options.outdir = _chunkWNICDYXYjs.joinPaths.call(void 0, context2.options.outdir, context2.options.distDir);
|
|
1559
1559
|
if (!options.inject || !Array.isArray(options.inject) || options.inject.length === 0 || // eslint-disable-next-line no-constant-binary-expression, @typescript-eslint/no-explicit-any
|
|
1560
1560
|
options.inject === {}) {
|
|
1561
1561
|
delete options.inject;
|
|
@@ -1580,8 +1580,8 @@ async function executeEsBuild(context2) {
|
|
|
1580
1580
|
delete options.config;
|
|
1581
1581
|
delete options.injectShims;
|
|
1582
1582
|
delete options.external;
|
|
1583
|
-
|
|
1584
|
-
${
|
|
1583
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
|
|
1584
|
+
${_chunkWNICDYXYjs.formatLogMessage.call(void 0, {
|
|
1585
1585
|
...options,
|
|
1586
1586
|
define: "<Hidden>"
|
|
1587
1587
|
})}`, context2.options.config);
|
|
@@ -1597,8 +1597,8 @@ ${_chunkQQQD2SINjs.formatLogMessage.call(void 0, {
|
|
|
1597
1597
|
_chunkJ5SB6L2Ljs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
1598
1598
|
async function copyBuildAssets(context2) {
|
|
1599
1599
|
if (_optionalChain([context2, 'access', _79 => _79.result, 'optionalAccess', _80 => _80.errors, 'access', _81 => _81.length]) === 0) {
|
|
1600
|
-
|
|
1601
|
-
const stopwatch =
|
|
1600
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
1601
|
+
const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
1602
1602
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
1603
1603
|
stopwatch();
|
|
1604
1604
|
}
|
|
@@ -1608,9 +1608,9 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
1608
1608
|
async function reportResults(context2) {
|
|
1609
1609
|
if (_optionalChain([context2, 'access', _82 => _82.result, 'optionalAccess', _83 => _83.errors, 'access', _84 => _84.length]) === 0) {
|
|
1610
1610
|
if (context2.result.warnings.length > 0) {
|
|
1611
|
-
|
|
1611
|
+
_chunkWNICDYXYjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
1612
1612
|
}
|
|
1613
|
-
|
|
1613
|
+
_chunkWNICDYXYjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
1614
1614
|
}
|
|
1615
1615
|
}
|
|
1616
1616
|
_chunkJ5SB6L2Ljs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -1646,8 +1646,8 @@ async function dependencyCheck(options) {
|
|
|
1646
1646
|
_chunkJ5SB6L2Ljs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
1647
1647
|
async function cleanOutputPath(context2) {
|
|
1648
1648
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
1649
|
-
|
|
1650
|
-
const stopwatch =
|
|
1649
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
1650
|
+
const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
|
|
1651
1651
|
await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
|
|
1652
1652
|
stopwatch();
|
|
1653
1653
|
}
|
|
@@ -1655,8 +1655,8 @@ async function cleanOutputPath(context2) {
|
|
|
1655
1655
|
}
|
|
1656
1656
|
_chunkJ5SB6L2Ljs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
1657
1657
|
async function build3(options) {
|
|
1658
|
-
|
|
1659
|
-
const stopwatch =
|
|
1658
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
1659
|
+
const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
1660
1660
|
try {
|
|
1661
1661
|
const opts = Array.isArray(options) ? options : [
|
|
1662
1662
|
options
|
|
@@ -1666,9 +1666,9 @@ async function build3(options) {
|
|
|
1666
1666
|
}
|
|
1667
1667
|
void transduce.async(opts, dependencyCheck);
|
|
1668
1668
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
1669
|
-
|
|
1669
|
+
_chunkWNICDYXYjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
1670
1670
|
} catch (error) {
|
|
1671
|
-
|
|
1671
|
+
_chunkWNICDYXYjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
1672
1672
|
throw error;
|
|
1673
1673
|
} finally {
|
|
1674
1674
|
stopwatch();
|
|
@@ -1696,9 +1696,9 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
|
|
|
1696
1696
|
return context2.rebuild();
|
|
1697
1697
|
});
|
|
1698
1698
|
if (rebuildResult instanceof Error) {
|
|
1699
|
-
|
|
1699
|
+
_chunkWNICDYXYjs.writeError.call(void 0, rebuildResult.message);
|
|
1700
1700
|
}
|
|
1701
|
-
|
|
1701
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
1702
1702
|
}, 10);
|
|
1703
1703
|
changeWatcher.on("change", fastRebuild);
|
|
1704
1704
|
return void 0;
|
|
@@ -1706,7 +1706,7 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
|
|
|
1706
1706
|
|
|
1707
1707
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1708
1708
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1709
|
-
|
|
1709
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1710
1710
|
if (!_optionalChain([context2, 'access', _85 => _85.projectsConfigurations, 'optionalAccess', _86 => _86.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _87 => _87.projectsConfigurations, 'access', _88 => _88.projects, 'access', _89 => _89[context2.projectName], 'optionalAccess', _90 => _90.root])) {
|
|
1711
1711
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1712
1712
|
}
|
|
@@ -1760,7 +1760,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
1760
1760
|
if (!_optionalChain([context2, 'optionalAccess', _99 => _99.projectName]) || !_optionalChain([context2, 'access', _100 => _100.projectsConfigurations, 'optionalAccess', _101 => _101.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1761
1761
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
1762
1762
|
}
|
|
1763
|
-
|
|
1763
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
|
|
1764
1764
|
_sizelimit2.default.call(void 0, [
|
|
1765
1765
|
_file2.default,
|
|
1766
1766
|
_esbuild3.default,
|
|
@@ -1768,7 +1768,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
1768
1768
|
], {
|
|
1769
1769
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _102 => _102.projectsConfigurations, 'access', _103 => _103.projects, 'access', _104 => _104[context2.projectName], 'optionalAccess', _105 => _105.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _106 => _106.projectsConfigurations, 'access', _107 => _107.projects, 'access', _108 => _108[context2.projectName], 'optionalAccess', _109 => _109.root]), () => ( "./")), "src")))
|
|
1770
1770
|
}).then((result) => {
|
|
1771
|
-
|
|
1771
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
1772
1772
|
});
|
|
1773
1773
|
return {
|
|
1774
1774
|
success: true
|
|
@@ -1789,11 +1789,11 @@ var _fsextra = require('fs-extra');
|
|
|
1789
1789
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
1790
1790
|
async function typiaExecutorFn(options, _, config) {
|
|
1791
1791
|
if (options.clean !== false) {
|
|
1792
|
-
|
|
1792
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
1793
1793
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
1794
1794
|
}
|
|
1795
1795
|
await Promise.all(options.entry.map((entry) => {
|
|
1796
|
-
|
|
1796
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
1797
1797
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
1798
1798
|
input: entry,
|
|
1799
1799
|
output: options.outputPath,
|
|
@@ -1824,7 +1824,7 @@ var executor_default8 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
1824
1824
|
|
|
1825
1825
|
var _jiti = require('jiti');
|
|
1826
1826
|
async function unbuildExecutorFn(options, context2, config) {
|
|
1827
|
-
|
|
1827
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1828
1828
|
if (!_optionalChain([context2, 'access', _110 => _110.projectsConfigurations, 'optionalAccess', _111 => _111.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1829
1829
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
1830
1830
|
}
|
|
@@ -1835,7 +1835,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
1835
1835
|
throw new Error("The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory.");
|
|
1836
1836
|
}
|
|
1837
1837
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1838
|
-
fsCache: config.skipCache ? false :
|
|
1838
|
+
fsCache: config.skipCache ? false : _chunkWNICDYXYjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
1839
1839
|
interopDefault: true
|
|
1840
1840
|
});
|
|
1841
1841
|
const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
|
|
@@ -1848,7 +1848,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
1848
1848
|
}, {
|
|
1849
1849
|
stubOptions: {
|
|
1850
1850
|
jiti: {
|
|
1851
|
-
fsCache: config.skipCache ? false :
|
|
1851
|
+
fsCache: config.skipCache ? false : _chunkWNICDYXYjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
|
|
1852
1852
|
}
|
|
1853
1853
|
},
|
|
1854
1854
|
rollup: {
|
|
@@ -1896,34 +1896,34 @@ var executor_default9 = withRunExecutor("TypeScript Unbuild build", unbuildExecu
|
|
|
1896
1896
|
var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
1897
1897
|
skipReadingConfig: false
|
|
1898
1898
|
}) => async (tree, _options) => {
|
|
1899
|
-
const stopwatch =
|
|
1899
|
+
const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, name);
|
|
1900
1900
|
let options = _options;
|
|
1901
1901
|
let config;
|
|
1902
1902
|
try {
|
|
1903
|
-
|
|
1903
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
1904
1904
|
|
|
1905
1905
|
`, config);
|
|
1906
|
-
const workspaceRoot3 =
|
|
1906
|
+
const workspaceRoot3 = _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, );
|
|
1907
1907
|
if (!generatorOptions.skipReadingConfig) {
|
|
1908
|
-
|
|
1908
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
1909
1909
|
- workspaceRoot: ${workspaceRoot3}`, config);
|
|
1910
|
-
config = await
|
|
1910
|
+
config = await _chunkU2GYOTAEjs.getConfig.call(void 0, workspaceRoot3);
|
|
1911
1911
|
}
|
|
1912
1912
|
if (_optionalChain([generatorOptions, 'optionalAccess', _112 => _112.hooks, 'optionalAccess', _113 => _113.applyDefaultOptions])) {
|
|
1913
|
-
|
|
1913
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1914
1914
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
1915
|
-
|
|
1915
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
1916
1916
|
}
|
|
1917
|
-
|
|
1917
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
1918
1918
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
1919
1919
|
const tokenized = await applyWorkspaceTokens(options, {
|
|
1920
1920
|
workspaceRoot: tree.root,
|
|
1921
1921
|
config
|
|
1922
1922
|
}, applyWorkspaceBaseTokens);
|
|
1923
1923
|
if (_optionalChain([generatorOptions, 'optionalAccess', _114 => _114.hooks, 'optionalAccess', _115 => _115.preProcess])) {
|
|
1924
|
-
|
|
1924
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1925
1925
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
1926
|
-
|
|
1926
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1927
1927
|
}
|
|
1928
1928
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
1929
1929
|
if (result) {
|
|
@@ -1936,18 +1936,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
1938
|
if (_optionalChain([generatorOptions, 'optionalAccess', _125 => _125.hooks, 'optionalAccess', _126 => _126.postProcess])) {
|
|
1939
|
-
|
|
1939
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1940
1940
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1941
|
-
|
|
1941
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
1942
1942
|
}
|
|
1943
1943
|
return () => {
|
|
1944
|
-
|
|
1944
|
+
_chunkWNICDYXYjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
1945
1945
|
`, config);
|
|
1946
1946
|
};
|
|
1947
1947
|
} catch (error) {
|
|
1948
1948
|
return () => {
|
|
1949
|
-
|
|
1950
|
-
|
|
1949
|
+
_chunkWNICDYXYjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
1950
|
+
_chunkWNICDYXYjs.writeError.call(void 0, `An exception was thrown in the generator's process
|
|
1951
1951
|
- Details: ${error.message}
|
|
1952
1952
|
- Stacktrace: ${error.stack}`, config);
|
|
1953
1953
|
};
|
|
@@ -1993,7 +1993,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1993
1993
|
const projectConfig = {
|
|
1994
1994
|
root: normalized.directory,
|
|
1995
1995
|
projectType: "library",
|
|
1996
|
-
sourceRoot:
|
|
1996
|
+
sourceRoot: _chunkWNICDYXYjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
1997
1997
|
targets: {
|
|
1998
1998
|
build: {
|
|
1999
1999
|
executor: options.buildExecutor,
|
|
@@ -2002,11 +2002,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2002
2002
|
],
|
|
2003
2003
|
options: {
|
|
2004
2004
|
entry: [
|
|
2005
|
-
|
|
2005
|
+
_chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
|
|
2006
2006
|
],
|
|
2007
2007
|
outputPath: getOutputPath(normalized),
|
|
2008
|
-
tsconfig:
|
|
2009
|
-
project:
|
|
2008
|
+
tsconfig: _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
2009
|
+
project: _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
2010
2010
|
defaultConfiguration: "production",
|
|
2011
2011
|
platform: "neutral",
|
|
2012
2012
|
assets: [
|
|
@@ -2060,7 +2060,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2060
2060
|
if (!normalized.importPath) {
|
|
2061
2061
|
normalized.importPath = normalized.name;
|
|
2062
2062
|
}
|
|
2063
|
-
const packageJsonPath =
|
|
2063
|
+
const packageJsonPath = _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
2064
2064
|
if (tree.exists(packageJsonPath)) {
|
|
2065
2065
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
2066
2066
|
if (!normalized.importPath) {
|
|
@@ -2117,10 +2117,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2117
2117
|
}));
|
|
2118
2118
|
}
|
|
2119
2119
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
2120
|
-
|
|
2120
|
+
_chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
|
|
2121
2121
|
]);
|
|
2122
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
2123
|
-
|
|
2122
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
2123
|
+
_chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
2124
2124
|
]);
|
|
2125
2125
|
if (tree.exists("package.json")) {
|
|
2126
2126
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -2131,7 +2131,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2131
2131
|
description = packageJson.description;
|
|
2132
2132
|
}
|
|
2133
2133
|
}
|
|
2134
|
-
const tsconfigPath =
|
|
2134
|
+
const tsconfigPath = _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
2135
2135
|
if (tree.exists(tsconfigPath)) {
|
|
2136
2136
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
2137
2137
|
json.composite ??= true;
|
|
@@ -2169,7 +2169,7 @@ function getOutputPath(options) {
|
|
|
2169
2169
|
} else {
|
|
2170
2170
|
parts.push(options.projectRoot);
|
|
2171
2171
|
}
|
|
2172
|
-
return
|
|
2172
|
+
return _chunkWNICDYXYjs.joinPaths.call(void 0, ...parts);
|
|
2173
2173
|
}
|
|
2174
2174
|
_chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
2175
2175
|
function createProjectTsConfigJson(tree, options) {
|
|
@@ -2178,7 +2178,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2178
2178
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _138 => _138.tsconfigOptions]), () => ( {})),
|
|
2179
2179
|
compilerOptions: {
|
|
2180
2180
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2181
|
-
outDir:
|
|
2181
|
+
outDir: _chunkWNICDYXYjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2182
2182
|
noEmit: true,
|
|
2183
2183
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _139 => _139.tsconfigOptions, 'optionalAccess', _140 => _140.compilerOptions]), () => ( {}))
|
|
2184
2184
|
},
|
|
@@ -2198,7 +2198,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2198
2198
|
"src/**/*.test.ts"
|
|
2199
2199
|
]
|
|
2200
2200
|
};
|
|
2201
|
-
_devkit.writeJson.call(void 0, tree,
|
|
2201
|
+
_devkit.writeJson.call(void 0, tree, _chunkWNICDYXYjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
2202
2202
|
}
|
|
2203
2203
|
_chunkJ5SB6L2Ljs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
2204
2204
|
async function normalizeOptions(tree, options, config) {
|
|
@@ -2258,7 +2258,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, normalizeOptions, "normalizeOptions");
|
|
|
2258
2258
|
|
|
2259
2259
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
2260
2260
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
2261
|
-
const filesDir =
|
|
2261
|
+
const filesDir = _chunkWNICDYXYjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
|
|
2262
2262
|
const tsLibraryGeneratorOptions = {
|
|
2263
2263
|
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
2264
2264
|
platform: "browser",
|
|
@@ -2330,19 +2330,19 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
|
|
|
2330
2330
|
|
|
2331
2331
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
2332
2332
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
2333
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
|
|
2334
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
|
|
2335
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkWNICDYXYjs.stormWorkspaceConfigSchema, {
|
|
2336
2336
|
name: "StormWorkspaceConfiguration"
|
|
2337
2337
|
});
|
|
2338
|
-
|
|
2339
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _149 => _149.workspaceRoot]), () => (
|
|
2340
|
-
|
|
2338
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, jsonSchema, config);
|
|
2339
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _149 => _149.workspaceRoot]), () => ( _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _150 => _150.outputFile, 'optionalAccess', _151 => _151.startsWith, 'call', _152 => _152("./")]) ? "" : "./");
|
|
2340
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
2341
2341
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
2342
2342
|
spaces: 2
|
|
2343
2343
|
});
|
|
2344
2344
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2345
|
-
|
|
2345
|
+
_chunkWNICDYXYjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
|
|
2346
2346
|
return {
|
|
2347
2347
|
success: true
|
|
2348
2348
|
};
|
|
@@ -2363,7 +2363,7 @@ var generator_default2 = withRunGenerator("Configuration Schema Creator", config
|
|
|
2363
2363
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
2364
2364
|
|
|
2365
2365
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
2366
|
-
const filesDir =
|
|
2366
|
+
const filesDir = _chunkWNICDYXYjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
|
|
2367
2367
|
const tsLibraryGeneratorOptions = {
|
|
2368
2368
|
...schema,
|
|
2369
2369
|
platform: "neutral",
|
|
@@ -2406,7 +2406,7 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
|
|
|
2406
2406
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
2407
2407
|
|
|
2408
2408
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
2409
|
-
const filesDir =
|
|
2409
|
+
const filesDir = _chunkWNICDYXYjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
|
|
2410
2410
|
const tsLibraryGeneratorOptions = {
|
|
2411
2411
|
platform: "node",
|
|
2412
2412
|
devDependencies: {
|