@storm-software/cloudflare-tools 0.55.56 → 0.55.58
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-J53DLNSH.js → chunk-A6L4ZGKM.js} +140 -138
- package/dist/{chunk-ZJ4YOG5X.mjs → chunk-CRVSAZIS.mjs} +1 -1
- package/dist/{chunk-S5NUDAJR.js → chunk-DXA6VL3T.js} +3 -3
- package/dist/{chunk-QUJUYEWA.mjs → chunk-EEWZED22.mjs} +3 -3
- package/dist/{chunk-4P4IIN6G.js → chunk-I3INFEES.js} +16 -16
- package/dist/{chunk-OSZDI2GY.mjs → chunk-IZNAJLUB.mjs} +1 -1
- package/dist/{chunk-PO4HCF5K.js → chunk-JZYTC2X2.js} +12 -12
- package/dist/{chunk-LLBDXLMR.mjs → chunk-K5VN3HED.mjs} +6 -4
- package/dist/{chunk-VIDN6K7N.mjs → chunk-Q7EDJLEB.mjs} +2 -1
- package/dist/{chunk-NTRAH7JN.mjs → chunk-QHEOKFFX.mjs} +3 -3
- package/dist/{chunk-YR5LOR75.js → chunk-QJYUNRLS.js} +1 -1
- package/dist/{chunk-Z5XL2UL5.js → chunk-U2GYOTAE.js} +41 -41
- package/dist/{chunk-QQQD2SIN.js → chunk-WNICDYXY.js} +2 -1
- 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,8 +1289,10 @@ var getEntryPoints = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1289
1289
|
return ret;
|
|
1290
1290
|
}, []));
|
|
1291
1291
|
} else {
|
|
1292
|
-
|
|
1293
|
-
|
|
1292
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, `Adding ESBuild entry point
|
|
1293
|
+
- Input: ${entryPoint.in}
|
|
1294
|
+
- Output: ${entryPoint.out}`, config);
|
|
1295
|
+
if (!paths.some((p) => p.out === entryPoint.out)) {
|
|
1294
1296
|
paths.push(entryPoint);
|
|
1295
1297
|
}
|
|
1296
1298
|
}
|
|
@@ -1380,13 +1382,13 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1380
1382
|
if (!workspaceRoot3) {
|
|
1381
1383
|
throw new Error("Cannot find Nx workspace root");
|
|
1382
1384
|
}
|
|
1383
|
-
const config = await
|
|
1384
|
-
|
|
1385
|
-
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");
|
|
1386
1388
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
1387
1389
|
exitOnError: true
|
|
1388
1390
|
});
|
|
1389
|
-
const projectJsonPath =
|
|
1391
|
+
const projectJsonPath = _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
|
|
1390
1392
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
1391
1393
|
throw new Error("Cannot find project.json configuration");
|
|
1392
1394
|
}
|
|
@@ -1400,7 +1402,7 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1400
1402
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
1401
1403
|
options.name ??= `${projectName}-${options.format}`;
|
|
1402
1404
|
options.target ??= DEFAULT_TARGET;
|
|
1403
|
-
const packageJsonPath =
|
|
1405
|
+
const packageJsonPath = _chunkWNICDYXYjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
1404
1406
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1405
1407
|
throw new Error("Cannot find package.json configuration");
|
|
1406
1408
|
}
|
|
@@ -1417,19 +1419,19 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1417
1419
|
"main"
|
|
1418
1420
|
],
|
|
1419
1421
|
...userOptions,
|
|
1420
|
-
tsconfig:
|
|
1422
|
+
tsconfig: _chunkWNICDYXYjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
1421
1423
|
format: options.format || "cjs",
|
|
1422
1424
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), false),
|
|
1423
|
-
outdir: userOptions.outputPath ||
|
|
1425
|
+
outdir: userOptions.outputPath || _chunkWNICDYXYjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
1424
1426
|
distDir: userOptions.distDir || "dist",
|
|
1425
1427
|
plugins: [],
|
|
1426
1428
|
name: userOptions.name || projectName,
|
|
1427
1429
|
projectConfigurations,
|
|
1428
1430
|
projectName,
|
|
1429
1431
|
projectGraph,
|
|
1430
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
1432
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkWNICDYXYjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
1431
1433
|
minify: userOptions.minify || !userOptions.debug,
|
|
1432
|
-
verbose: userOptions.verbose ||
|
|
1434
|
+
verbose: userOptions.verbose || _chunkWNICDYXYjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
1433
1435
|
includeSrc: userOptions.includeSrc === true,
|
|
1434
1436
|
metafile: userOptions.metafile !== false,
|
|
1435
1437
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -1464,8 +1466,8 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1464
1466
|
}, {})
|
|
1465
1467
|
},
|
|
1466
1468
|
inject: [
|
|
1467
|
-
options.format === "cjs" && options.injectShims ?
|
|
1468
|
-
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
|
|
1469
1471
|
].filter(Boolean)
|
|
1470
1472
|
};
|
|
1471
1473
|
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( getDefaultBuildPlugins(userOptions, result)));
|
|
@@ -1483,14 +1485,14 @@ var resolveOptions = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
1483
1485
|
return result;
|
|
1484
1486
|
}, "resolveOptions");
|
|
1485
1487
|
async function generatePackageJson(context2) {
|
|
1486
|
-
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
1487
|
-
|
|
1488
|
-
const stopwatch =
|
|
1489
|
-
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");
|
|
1490
1492
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1491
1493
|
throw new Error("Cannot find package.json configuration");
|
|
1492
1494
|
}
|
|
1493
|
-
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");
|
|
1494
1496
|
let packageJson = JSON.parse(packageJsonFile);
|
|
1495
1497
|
if (!packageJson) {
|
|
1496
1498
|
throw new Error("Cannot find package.json configuration file");
|
|
@@ -1518,7 +1520,7 @@ async function generatePackageJson(context2) {
|
|
|
1518
1520
|
}
|
|
1519
1521
|
return ret;
|
|
1520
1522
|
}, packageJson.exports);
|
|
1521
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
1523
|
+
await _devkit.writeJsonFile.call(void 0, _chunkWNICDYXYjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
|
|
1522
1524
|
stopwatch();
|
|
1523
1525
|
}
|
|
1524
1526
|
return context2;
|
|
@@ -1544,8 +1546,8 @@ async function generateContext(getOptions) {
|
|
|
1544
1546
|
}
|
|
1545
1547
|
_chunkJ5SB6L2Ljs.__name.call(void 0, generateContext, "generateContext");
|
|
1546
1548
|
async function executeEsBuild(context2) {
|
|
1547
|
-
|
|
1548
|
-
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`);
|
|
1549
1551
|
if (process.env.STORM_WATCH) {
|
|
1550
1552
|
const ctx = await esbuild2.context(context2.options);
|
|
1551
1553
|
watch(ctx, context2.options);
|
|
@@ -1553,7 +1555,7 @@ async function executeEsBuild(context2) {
|
|
|
1553
1555
|
const options = {
|
|
1554
1556
|
...context2.options
|
|
1555
1557
|
};
|
|
1556
|
-
options.outdir =
|
|
1558
|
+
options.outdir = _chunkWNICDYXYjs.joinPaths.call(void 0, context2.options.outdir, context2.options.distDir);
|
|
1557
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
|
|
1558
1560
|
options.inject === {}) {
|
|
1559
1561
|
delete options.inject;
|
|
@@ -1578,8 +1580,8 @@ async function executeEsBuild(context2) {
|
|
|
1578
1580
|
delete options.config;
|
|
1579
1581
|
delete options.injectShims;
|
|
1580
1582
|
delete options.external;
|
|
1581
|
-
|
|
1582
|
-
${
|
|
1583
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
|
|
1584
|
+
${_chunkWNICDYXYjs.formatLogMessage.call(void 0, {
|
|
1583
1585
|
...options,
|
|
1584
1586
|
define: "<Hidden>"
|
|
1585
1587
|
})}`, context2.options.config);
|
|
@@ -1595,8 +1597,8 @@ ${_chunkQQQD2SINjs.formatLogMessage.call(void 0, {
|
|
|
1595
1597
|
_chunkJ5SB6L2Ljs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
1596
1598
|
async function copyBuildAssets(context2) {
|
|
1597
1599
|
if (_optionalChain([context2, 'access', _79 => _79.result, 'optionalAccess', _80 => _80.errors, 'access', _81 => _81.length]) === 0) {
|
|
1598
|
-
|
|
1599
|
-
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`);
|
|
1600
1602
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
1601
1603
|
stopwatch();
|
|
1602
1604
|
}
|
|
@@ -1606,9 +1608,9 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
1606
1608
|
async function reportResults(context2) {
|
|
1607
1609
|
if (_optionalChain([context2, 'access', _82 => _82.result, 'optionalAccess', _83 => _83.errors, 'access', _84 => _84.length]) === 0) {
|
|
1608
1610
|
if (context2.result.warnings.length > 0) {
|
|
1609
|
-
|
|
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);
|
|
1610
1612
|
}
|
|
1611
|
-
|
|
1613
|
+
_chunkWNICDYXYjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
1612
1614
|
}
|
|
1613
1615
|
}
|
|
1614
1616
|
_chunkJ5SB6L2Ljs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -1644,8 +1646,8 @@ async function dependencyCheck(options) {
|
|
|
1644
1646
|
_chunkJ5SB6L2Ljs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
1645
1647
|
async function cleanOutputPath(context2) {
|
|
1646
1648
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
1647
|
-
|
|
1648
|
-
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`);
|
|
1649
1651
|
await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
|
|
1650
1652
|
stopwatch();
|
|
1651
1653
|
}
|
|
@@ -1653,8 +1655,8 @@ async function cleanOutputPath(context2) {
|
|
|
1653
1655
|
}
|
|
1654
1656
|
_chunkJ5SB6L2Ljs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
1655
1657
|
async function build3(options) {
|
|
1656
|
-
|
|
1657
|
-
const stopwatch =
|
|
1658
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
1659
|
+
const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
1658
1660
|
try {
|
|
1659
1661
|
const opts = Array.isArray(options) ? options : [
|
|
1660
1662
|
options
|
|
@@ -1664,9 +1666,9 @@ async function build3(options) {
|
|
|
1664
1666
|
}
|
|
1665
1667
|
void transduce.async(opts, dependencyCheck);
|
|
1666
1668
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
1667
|
-
|
|
1669
|
+
_chunkWNICDYXYjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
1668
1670
|
} catch (error) {
|
|
1669
|
-
|
|
1671
|
+
_chunkWNICDYXYjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
1670
1672
|
throw error;
|
|
1671
1673
|
} finally {
|
|
1672
1674
|
stopwatch();
|
|
@@ -1694,9 +1696,9 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
|
|
|
1694
1696
|
return context2.rebuild();
|
|
1695
1697
|
});
|
|
1696
1698
|
if (rebuildResult instanceof Error) {
|
|
1697
|
-
|
|
1699
|
+
_chunkWNICDYXYjs.writeError.call(void 0, rebuildResult.message);
|
|
1698
1700
|
}
|
|
1699
|
-
|
|
1701
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
1700
1702
|
}, 10);
|
|
1701
1703
|
changeWatcher.on("change", fastRebuild);
|
|
1702
1704
|
return void 0;
|
|
@@ -1704,7 +1706,7 @@ var watch = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (context2, opti
|
|
|
1704
1706
|
|
|
1705
1707
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1706
1708
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1707
|
-
|
|
1709
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1708
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])) {
|
|
1709
1711
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1710
1712
|
}
|
|
@@ -1758,7 +1760,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
1758
1760
|
if (!_optionalChain([context2, 'optionalAccess', _99 => _99.projectName]) || !_optionalChain([context2, 'access', _100 => _100.projectsConfigurations, 'optionalAccess', _101 => _101.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1759
1761
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
1760
1762
|
}
|
|
1761
|
-
|
|
1763
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
|
|
1762
1764
|
_sizelimit2.default.call(void 0, [
|
|
1763
1765
|
_file2.default,
|
|
1764
1766
|
_esbuild3.default,
|
|
@@ -1766,7 +1768,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
1766
1768
|
], {
|
|
1767
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")))
|
|
1768
1770
|
}).then((result) => {
|
|
1769
|
-
|
|
1771
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
1770
1772
|
});
|
|
1771
1773
|
return {
|
|
1772
1774
|
success: true
|
|
@@ -1787,11 +1789,11 @@ var _fsextra = require('fs-extra');
|
|
|
1787
1789
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
1788
1790
|
async function typiaExecutorFn(options, _, config) {
|
|
1789
1791
|
if (options.clean !== false) {
|
|
1790
|
-
|
|
1792
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
1791
1793
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
1792
1794
|
}
|
|
1793
1795
|
await Promise.all(options.entry.map((entry) => {
|
|
1794
|
-
|
|
1796
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
1795
1797
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
1796
1798
|
input: entry,
|
|
1797
1799
|
output: options.outputPath,
|
|
@@ -1822,7 +1824,7 @@ var executor_default8 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
1822
1824
|
|
|
1823
1825
|
var _jiti = require('jiti');
|
|
1824
1826
|
async function unbuildExecutorFn(options, context2, config) {
|
|
1825
|
-
|
|
1827
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1826
1828
|
if (!_optionalChain([context2, 'access', _110 => _110.projectsConfigurations, 'optionalAccess', _111 => _111.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1827
1829
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
1828
1830
|
}
|
|
@@ -1833,7 +1835,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
1833
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.");
|
|
1834
1836
|
}
|
|
1835
1837
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1836
|
-
fsCache: config.skipCache ? false :
|
|
1838
|
+
fsCache: config.skipCache ? false : _chunkWNICDYXYjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
1837
1839
|
interopDefault: true
|
|
1838
1840
|
});
|
|
1839
1841
|
const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
|
|
@@ -1846,7 +1848,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
1846
1848
|
}, {
|
|
1847
1849
|
stubOptions: {
|
|
1848
1850
|
jiti: {
|
|
1849
|
-
fsCache: config.skipCache ? false :
|
|
1851
|
+
fsCache: config.skipCache ? false : _chunkWNICDYXYjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
|
|
1850
1852
|
}
|
|
1851
1853
|
},
|
|
1852
1854
|
rollup: {
|
|
@@ -1894,34 +1896,34 @@ var executor_default9 = withRunExecutor("TypeScript Unbuild build", unbuildExecu
|
|
|
1894
1896
|
var withRunGenerator = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
1895
1897
|
skipReadingConfig: false
|
|
1896
1898
|
}) => async (tree, _options) => {
|
|
1897
|
-
const stopwatch =
|
|
1899
|
+
const stopwatch = _chunkWNICDYXYjs.getStopwatch.call(void 0, name);
|
|
1898
1900
|
let options = _options;
|
|
1899
1901
|
let config;
|
|
1900
1902
|
try {
|
|
1901
|
-
|
|
1903
|
+
_chunkWNICDYXYjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
1902
1904
|
|
|
1903
1905
|
`, config);
|
|
1904
|
-
const workspaceRoot3 =
|
|
1906
|
+
const workspaceRoot3 = _chunkWNICDYXYjs.findWorkspaceRoot.call(void 0, );
|
|
1905
1907
|
if (!generatorOptions.skipReadingConfig) {
|
|
1906
|
-
|
|
1908
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
1907
1909
|
- workspaceRoot: ${workspaceRoot3}`, config);
|
|
1908
|
-
config = await
|
|
1910
|
+
config = await _chunkU2GYOTAEjs.getConfig.call(void 0, workspaceRoot3);
|
|
1909
1911
|
}
|
|
1910
1912
|
if (_optionalChain([generatorOptions, 'optionalAccess', _112 => _112.hooks, 'optionalAccess', _113 => _113.applyDefaultOptions])) {
|
|
1911
|
-
|
|
1913
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1912
1914
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
1913
|
-
|
|
1915
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
1914
1916
|
}
|
|
1915
|
-
|
|
1917
|
+
_chunkWNICDYXYjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
1916
1918
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
1917
1919
|
const tokenized = await applyWorkspaceTokens(options, {
|
|
1918
1920
|
workspaceRoot: tree.root,
|
|
1919
1921
|
config
|
|
1920
1922
|
}, applyWorkspaceBaseTokens);
|
|
1921
1923
|
if (_optionalChain([generatorOptions, 'optionalAccess', _114 => _114.hooks, 'optionalAccess', _115 => _115.preProcess])) {
|
|
1922
|
-
|
|
1924
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1923
1925
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
1924
|
-
|
|
1926
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1925
1927
|
}
|
|
1926
1928
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
1927
1929
|
if (result) {
|
|
@@ -1934,18 +1936,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1934
1936
|
}
|
|
1935
1937
|
}
|
|
1936
1938
|
if (_optionalChain([generatorOptions, 'optionalAccess', _125 => _125.hooks, 'optionalAccess', _126 => _126.postProcess])) {
|
|
1937
|
-
|
|
1939
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1938
1940
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1939
|
-
|
|
1941
|
+
_chunkWNICDYXYjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
1940
1942
|
}
|
|
1941
1943
|
return () => {
|
|
1942
|
-
|
|
1944
|
+
_chunkWNICDYXYjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
1943
1945
|
`, config);
|
|
1944
1946
|
};
|
|
1945
1947
|
} catch (error) {
|
|
1946
1948
|
return () => {
|
|
1947
|
-
|
|
1948
|
-
|
|
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
|
|
1949
1951
|
- Details: ${error.message}
|
|
1950
1952
|
- Stacktrace: ${error.stack}`, config);
|
|
1951
1953
|
};
|
|
@@ -1991,7 +1993,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1991
1993
|
const projectConfig = {
|
|
1992
1994
|
root: normalized.directory,
|
|
1993
1995
|
projectType: "library",
|
|
1994
|
-
sourceRoot:
|
|
1996
|
+
sourceRoot: _chunkWNICDYXYjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
1995
1997
|
targets: {
|
|
1996
1998
|
build: {
|
|
1997
1999
|
executor: options.buildExecutor,
|
|
@@ -2000,11 +2002,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2000
2002
|
],
|
|
2001
2003
|
options: {
|
|
2002
2004
|
entry: [
|
|
2003
|
-
|
|
2005
|
+
_chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
|
|
2004
2006
|
],
|
|
2005
2007
|
outputPath: getOutputPath(normalized),
|
|
2006
|
-
tsconfig:
|
|
2007
|
-
project:
|
|
2008
|
+
tsconfig: _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
2009
|
+
project: _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
2008
2010
|
defaultConfiguration: "production",
|
|
2009
2011
|
platform: "neutral",
|
|
2010
2012
|
assets: [
|
|
@@ -2058,7 +2060,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2058
2060
|
if (!normalized.importPath) {
|
|
2059
2061
|
normalized.importPath = normalized.name;
|
|
2060
2062
|
}
|
|
2061
|
-
const packageJsonPath =
|
|
2063
|
+
const packageJsonPath = _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
2062
2064
|
if (tree.exists(packageJsonPath)) {
|
|
2063
2065
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
2064
2066
|
if (!normalized.importPath) {
|
|
@@ -2115,10 +2117,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2115
2117
|
}));
|
|
2116
2118
|
}
|
|
2117
2119
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
2118
|
-
|
|
2120
|
+
_chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
|
|
2119
2121
|
]);
|
|
2120
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
2121
|
-
|
|
2122
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
2123
|
+
_chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
2122
2124
|
]);
|
|
2123
2125
|
if (tree.exists("package.json")) {
|
|
2124
2126
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -2129,7 +2131,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2129
2131
|
description = packageJson.description;
|
|
2130
2132
|
}
|
|
2131
2133
|
}
|
|
2132
|
-
const tsconfigPath =
|
|
2134
|
+
const tsconfigPath = _chunkWNICDYXYjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
2133
2135
|
if (tree.exists(tsconfigPath)) {
|
|
2134
2136
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
2135
2137
|
json.composite ??= true;
|
|
@@ -2167,7 +2169,7 @@ function getOutputPath(options) {
|
|
|
2167
2169
|
} else {
|
|
2168
2170
|
parts.push(options.projectRoot);
|
|
2169
2171
|
}
|
|
2170
|
-
return
|
|
2172
|
+
return _chunkWNICDYXYjs.joinPaths.call(void 0, ...parts);
|
|
2171
2173
|
}
|
|
2172
2174
|
_chunkJ5SB6L2Ljs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
2173
2175
|
function createProjectTsConfigJson(tree, options) {
|
|
@@ -2176,7 +2178,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2176
2178
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _138 => _138.tsconfigOptions]), () => ( {})),
|
|
2177
2179
|
compilerOptions: {
|
|
2178
2180
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2179
|
-
outDir:
|
|
2181
|
+
outDir: _chunkWNICDYXYjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2180
2182
|
noEmit: true,
|
|
2181
2183
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _139 => _139.tsconfigOptions, 'optionalAccess', _140 => _140.compilerOptions]), () => ( {}))
|
|
2182
2184
|
},
|
|
@@ -2196,7 +2198,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2196
2198
|
"src/**/*.test.ts"
|
|
2197
2199
|
]
|
|
2198
2200
|
};
|
|
2199
|
-
_devkit.writeJson.call(void 0, tree,
|
|
2201
|
+
_devkit.writeJson.call(void 0, tree, _chunkWNICDYXYjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
2200
2202
|
}
|
|
2201
2203
|
_chunkJ5SB6L2Ljs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
2202
2204
|
async function normalizeOptions(tree, options, config) {
|
|
@@ -2256,7 +2258,7 @@ _chunkJ5SB6L2Ljs.__name.call(void 0, normalizeOptions, "normalizeOptions");
|
|
|
2256
2258
|
|
|
2257
2259
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
2258
2260
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
2259
|
-
const filesDir =
|
|
2261
|
+
const filesDir = _chunkWNICDYXYjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
|
|
2260
2262
|
const tsLibraryGeneratorOptions = {
|
|
2261
2263
|
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
2262
2264
|
platform: "browser",
|
|
@@ -2328,19 +2330,19 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
|
|
|
2328
2330
|
|
|
2329
2331
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
2330
2332
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
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, {
|
|
2334
2336
|
name: "StormWorkspaceConfiguration"
|
|
2335
2337
|
});
|
|
2336
|
-
|
|
2337
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _149 => _149.workspaceRoot]), () => (
|
|
2338
|
-
|
|
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);
|
|
2339
2341
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
2340
2342
|
spaces: 2
|
|
2341
2343
|
});
|
|
2342
2344
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2343
|
-
|
|
2345
|
+
_chunkWNICDYXYjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
|
|
2344
2346
|
return {
|
|
2345
2347
|
success: true
|
|
2346
2348
|
};
|
|
@@ -2361,7 +2363,7 @@ var generator_default2 = withRunGenerator("Configuration Schema Creator", config
|
|
|
2361
2363
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
2362
2364
|
|
|
2363
2365
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
2364
|
-
const filesDir =
|
|
2366
|
+
const filesDir = _chunkWNICDYXYjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
|
|
2365
2367
|
const tsLibraryGeneratorOptions = {
|
|
2366
2368
|
...schema,
|
|
2367
2369
|
platform: "neutral",
|
|
@@ -2404,7 +2406,7 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
|
|
|
2404
2406
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
2405
2407
|
|
|
2406
2408
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
2407
|
-
const filesDir =
|
|
2409
|
+
const filesDir = _chunkWNICDYXYjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
|
|
2408
2410
|
const tsLibraryGeneratorOptions = {
|
|
2409
2411
|
platform: "node",
|
|
2410
2412
|
devDependencies: {
|