@storm-software/terraform-tools 0.54.62 → 0.54.64
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-PYPQY2AE.mjs → chunk-3OHP5XR7.mjs} +1 -1
- package/dist/{chunk-2RL7NUCA.mjs → chunk-5L6S5MSQ.mjs} +2 -1
- package/dist/{chunk-UF2LVXX3.mjs → chunk-6DHDE4R5.mjs} +2 -2
- package/dist/{chunk-A4M4Q7TM.mjs → chunk-6DOGULXV.mjs} +3 -3
- package/dist/{chunk-U5I2Y23H.mjs → chunk-ASFTANKT.mjs} +1 -1
- package/dist/{chunk-TOLJAFRB.js → chunk-DHBOQ6QN.js} +2 -2
- package/dist/{chunk-7KJYA3C3.js → chunk-DLJYMU67.js} +1 -0
- package/dist/{chunk-SC7WG7PG.js → chunk-EVACDYVV.js} +2 -2
- package/dist/{chunk-7TS7RAV3.mjs → chunk-IQBE77EA.mjs} +1 -1
- package/dist/{chunk-GZYCK7ZJ.js → chunk-JJLWDVUK.js} +2 -2
- package/dist/{chunk-UMMSLZTK.js → chunk-JYWO443U.js} +3 -3
- package/dist/{chunk-TIP5HMJK.mjs → chunk-MVJYL7QB.mjs} +1 -1
- package/dist/{chunk-Y4D6KHJP.mjs → chunk-VGSUCQ2S.mjs} +1 -1
- package/dist/{chunk-MOC2J7HF.js → chunk-YKYW2IDQ.js} +132 -132
- package/dist/{chunk-AL4R2SSW.js → chunk-YRJ6SG2R.js} +2 -2
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +7 -7
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +3 -3
- package/dist/index.js +8 -8
- package/dist/index.mjs +8 -8
- package/dist/src/base/base-terraform-executor.untyped.mjs +1 -1
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +3 -3
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +4 -4
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +4 -4
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +4 -4
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +4 -4
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +3 -3
- package/dist/tsup.config.mjs +1 -1
- package/package.json +3 -3
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkDLJYMU67js = require('./chunk-DLJYMU67.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -159,7 +159,7 @@ async function cargoBuildExecutor(options, context2) {
|
|
|
159
159
|
return await cargoCommand(...command);
|
|
160
160
|
}
|
|
161
161
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoBuildExecutor, "cargoBuildExecutor");
|
|
162
|
-
var executor_default =
|
|
162
|
+
var executor_default = _chunkDLJYMU67js.withRunExecutor.call(void 0, "Cargo Build", cargoBuildExecutor, {
|
|
163
163
|
skipReadingConfig: false,
|
|
164
164
|
hooks: {
|
|
165
165
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -176,7 +176,7 @@ async function cargoCheckExecutor(options, context2) {
|
|
|
176
176
|
return await cargoCommand(...command);
|
|
177
177
|
}
|
|
178
178
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoCheckExecutor, "cargoCheckExecutor");
|
|
179
|
-
var executor_default2 =
|
|
179
|
+
var executor_default2 = _chunkDLJYMU67js.withRunExecutor.call(void 0, "Cargo Check", cargoCheckExecutor, {
|
|
180
180
|
skipReadingConfig: false,
|
|
181
181
|
hooks: {
|
|
182
182
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -192,7 +192,7 @@ async function cargoClippyExecutor(options, context2) {
|
|
|
192
192
|
return await cargoCommand(...command);
|
|
193
193
|
}
|
|
194
194
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoClippyExecutor, "cargoClippyExecutor");
|
|
195
|
-
var executor_default3 =
|
|
195
|
+
var executor_default3 = _chunkDLJYMU67js.withRunExecutor.call(void 0, "Cargo Clippy", cargoClippyExecutor, {
|
|
196
196
|
skipReadingConfig: false,
|
|
197
197
|
hooks: {
|
|
198
198
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -214,7 +214,7 @@ async function cargoDocExecutor(options, context2) {
|
|
|
214
214
|
return await cargoCommand(...command);
|
|
215
215
|
}
|
|
216
216
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
|
|
217
|
-
var executor_default4 =
|
|
217
|
+
var executor_default4 = _chunkDLJYMU67js.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
|
|
218
218
|
skipReadingConfig: false,
|
|
219
219
|
hooks: {
|
|
220
220
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -237,7 +237,7 @@ async function cargoFormatExecutor(options, context2) {
|
|
|
237
237
|
return await cargoCommand(...command);
|
|
238
238
|
}
|
|
239
239
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoFormatExecutor, "cargoFormatExecutor");
|
|
240
|
-
var executor_default5 =
|
|
240
|
+
var executor_default5 = _chunkDLJYMU67js.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
|
|
241
241
|
skipReadingConfig: false,
|
|
242
242
|
hooks: {
|
|
243
243
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -318,8 +318,8 @@ var copyAssets = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (con
|
|
|
318
318
|
output: "src/"
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
|
-
|
|
322
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
321
|
+
_chunkDLJYMU67js.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
322
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkDLJYMU67js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
323
323
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
324
324
|
projectDir: projectRoot,
|
|
325
325
|
rootDir: config.workspaceRoot,
|
|
@@ -328,12 +328,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
328
328
|
});
|
|
329
329
|
await assetHandler.processAllAssetsOnce();
|
|
330
330
|
if (includeSrc === true) {
|
|
331
|
-
|
|
331
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkDLJYMU67js.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
332
332
|
const files = await _glob.glob.call(void 0, [
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
333
|
+
_chunkDLJYMU67js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
334
|
+
_chunkDLJYMU67js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
335
|
+
_chunkDLJYMU67js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
336
|
+
_chunkDLJYMU67js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
337
337
|
]);
|
|
338
338
|
await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
339
339
|
|
|
@@ -356,7 +356,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
356
356
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && _optionalChain([dep, 'access', _5 => _5.node, 'access', _6 => _6.data, 'optionalAccess', _7 => _7.root]) !== projectRoot && _optionalChain([dep, 'access', _8 => _8.node, 'access', _9 => _9.data, 'optionalAccess', _10 => _10.root]) !== workspaceRoot3)) {
|
|
357
357
|
const projectNode = project.node;
|
|
358
358
|
if (projectNode.data.root) {
|
|
359
|
-
const projectPackageJsonPath =
|
|
359
|
+
const projectPackageJsonPath = _chunkDLJYMU67js.joinPaths.call(void 0, workspaceRoot3, projectNode.data.root, "package.json");
|
|
360
360
|
if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
|
|
361
361
|
const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
|
|
362
362
|
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
@@ -367,8 +367,8 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
if (localPackages.length > 0) {
|
|
370
|
-
|
|
371
|
-
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
370
|
+
_chunkDLJYMU67js.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
371
|
+
const projectJsonFile = await _promises.readFile.call(void 0, _chunkDLJYMU67js.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
372
372
|
const projectJson = JSON.parse(projectJsonFile);
|
|
373
373
|
const projectName2 = projectJson.name;
|
|
374
374
|
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
@@ -377,7 +377,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
377
377
|
}
|
|
378
378
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _13 => _13.projects, 'optionalAccess', _14 => _14[projectName2], 'access', _15 => _15.implicitDependencies, 'optionalAccess', _16 => _16.reduce, 'call', _17 => _17((ret, dep) => {
|
|
379
379
|
if (_optionalChain([projectConfigurations, 'access', _18 => _18.projects, 'optionalAccess', _19 => _19[dep]])) {
|
|
380
|
-
const depPackageJsonPath =
|
|
380
|
+
const depPackageJsonPath = _chunkDLJYMU67js.joinPaths.call(void 0, workspaceRoot3, projectConfigurations.projects[dep].root, "package.json");
|
|
381
381
|
if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
|
|
382
382
|
const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
|
|
383
383
|
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
@@ -396,18 +396,18 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
396
396
|
}, _nullishCoalesce(packageJson.dependencies, () => ( {})));
|
|
397
397
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
398
398
|
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _24 => _24.includes, 'call', _25 => _25(localPackage.name)]) && _optionalChain([packageJson, 'access', _26 => _26.dependencies, 'optionalAccess', _27 => _27[localPackage.name]]) === void 0) {
|
|
399
|
-
ret[localPackage.name] = localPackage.version || "0.0.1"
|
|
399
|
+
ret[localPackage.name] = `^${localPackage.version || "0.0.1"}`;
|
|
400
400
|
}
|
|
401
401
|
return ret;
|
|
402
402
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
403
403
|
} else {
|
|
404
|
-
|
|
404
|
+
_chunkDLJYMU67js.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
405
405
|
}
|
|
406
406
|
return packageJson;
|
|
407
407
|
}, "addPackageDependencies");
|
|
408
408
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
409
|
-
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot :
|
|
410
|
-
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
409
|
+
const workspaceRoot3 = config.workspaceRoot ? config.workspaceRoot : _chunkDLJYMU67js.findWorkspaceRoot.call(void 0, );
|
|
410
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkDLJYMU67js.joinPaths.call(void 0, workspaceRoot3, "package.json"), "utf8");
|
|
411
411
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
412
412
|
packageJson.type ??= "module";
|
|
413
413
|
packageJson.sideEffects ??= false;
|
|
@@ -416,7 +416,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
|
|
|
416
416
|
if (distSrc.startsWith("/")) {
|
|
417
417
|
distSrc = distSrc.substring(1);
|
|
418
418
|
}
|
|
419
|
-
packageJson.source ??= `${
|
|
419
|
+
packageJson.source ??= `${_chunkDLJYMU67js.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
420
420
|
}
|
|
421
421
|
packageJson.files ??= [
|
|
422
422
|
"dist/**/*"
|
|
@@ -447,7 +447,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call
|
|
|
447
447
|
];
|
|
448
448
|
}
|
|
449
449
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
450
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
450
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkDLJYMU67js.joinPaths.call(void 0, "packages", projectName);
|
|
451
451
|
return packageJson;
|
|
452
452
|
}, "addWorkspacePackageJsonFields");
|
|
453
453
|
|
|
@@ -752,7 +752,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
|
|
|
752
752
|
setup(build4) {
|
|
753
753
|
build4.onEnd((result) => {
|
|
754
754
|
if (result.errors.length > 0 && process.env.WATCH !== "true") {
|
|
755
|
-
|
|
755
|
+
_chunkDLJYMU67js.writeError.call(void 0, `The following errors occurred during the build:
|
|
756
756
|
${result.errors.map((error) => error.text).join("\n")}
|
|
757
757
|
|
|
758
758
|
`, resolvedOptions.config);
|
|
@@ -787,7 +787,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
|
|
|
787
787
|
var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
788
788
|
name: "storm:resolve-paths",
|
|
789
789
|
setup(build4) {
|
|
790
|
-
const parentTsConfig = build4.initialOptions.tsconfig ? _chunk3GQAWCBQjs.__require.call(void 0,
|
|
790
|
+
const parentTsConfig = build4.initialOptions.tsconfig ? _chunk3GQAWCBQjs.__require.call(void 0, _chunkDLJYMU67js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build4.initialOptions.tsconfig)) : _chunk3GQAWCBQjs.__require.call(void 0, _chunkDLJYMU67js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
|
|
791
791
|
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
|
|
792
792
|
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
793
793
|
build4.onResolve({
|
|
@@ -811,7 +811,7 @@ var _apiextractor = require('@microsoft/api-extractor');
|
|
|
811
811
|
|
|
812
812
|
|
|
813
813
|
function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
814
|
-
const { dependencies, peerDependencies, devDependencies } = _chunk3GQAWCBQjs.__require.call(void 0,
|
|
814
|
+
const { dependencies, peerDependencies, devDependencies } = _chunk3GQAWCBQjs.__require.call(void 0, _chunkDLJYMU67js.joinPaths.call(void 0, options.projectRoot, "package.json"));
|
|
815
815
|
const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
|
|
816
816
|
p,
|
|
817
817
|
getTypeDependencyPackageName(p)
|
|
@@ -847,13 +847,13 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
847
847
|
},
|
|
848
848
|
dtsRollup: {
|
|
849
849
|
enabled: true,
|
|
850
|
-
untrimmedFilePath:
|
|
850
|
+
untrimmedFilePath: _chunkDLJYMU67js.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
|
|
851
851
|
},
|
|
852
852
|
tsdocMetadata: {
|
|
853
853
|
enabled: false
|
|
854
854
|
}
|
|
855
855
|
},
|
|
856
|
-
packageJsonFullPath:
|
|
856
|
+
packageJsonFullPath: _chunkDLJYMU67js.joinPaths.call(void 0, options.projectRoot, "package.json"),
|
|
857
857
|
configObjectFullPath: void 0
|
|
858
858
|
});
|
|
859
859
|
const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
|
|
@@ -861,7 +861,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
861
861
|
localBuild: true
|
|
862
862
|
});
|
|
863
863
|
if (extractorResult.succeeded === false) {
|
|
864
|
-
|
|
864
|
+
_chunkDLJYMU67js.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
865
865
|
throw new Error("API Extractor completed with errors");
|
|
866
866
|
}
|
|
867
867
|
}
|
|
@@ -874,18 +874,18 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, r
|
|
|
874
874
|
}
|
|
875
875
|
build4.onStart(async () => {
|
|
876
876
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
877
|
-
await
|
|
877
|
+
await _chunkDLJYMU67js.run.call(void 0, resolvedOptions.config, `pnpm exec tsc --project ${resolvedOptions.tsconfig}`, resolvedOptions.config.workspaceRoot);
|
|
878
878
|
}
|
|
879
879
|
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && _optionalChain([resolvedOptions, 'access', _44 => _44.entryPoints, 'access', _45 => _45[0], 'optionalAccess', _46 => _46.in]) && resolvedOptions.entryPoints[0].in.endsWith(".ts")) {
|
|
880
880
|
const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
|
|
881
881
|
const typeOutDir = resolvedOptions.outdir;
|
|
882
882
|
const entryPoint = resolvedOptions.entryPoints[0].in.replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
883
|
-
const bundlePath =
|
|
883
|
+
const bundlePath = _chunkDLJYMU67js.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
|
|
884
884
|
let dtsPath;
|
|
885
|
-
if (_fs.existsSync.call(void 0,
|
|
886
|
-
dtsPath =
|
|
887
|
-
} else if (_fs.existsSync.call(void 0,
|
|
888
|
-
dtsPath =
|
|
885
|
+
if (_fs.existsSync.call(void 0, _chunkDLJYMU67js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
886
|
+
dtsPath = _chunkDLJYMU67js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
|
|
887
|
+
} else if (_fs.existsSync.call(void 0, _chunkDLJYMU67js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
888
|
+
dtsPath = _chunkDLJYMU67js.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
889
889
|
}
|
|
890
890
|
const ext = resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
|
|
891
891
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
@@ -1049,8 +1049,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bund
|
|
|
1049
1049
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
1050
1050
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
1051
1051
|
});
|
|
1052
|
-
|
|
1053
|
-
|
|
1052
|
+
_chunkDLJYMU67js.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
1053
|
+
_chunkDLJYMU67js.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
1054
1054
|
if (filteredMissingDeps.length > 0) {
|
|
1055
1055
|
throw new Error(`Missing dependencies detected - please install them:
|
|
1056
1056
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -1187,7 +1187,7 @@ function emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles = true, c
|
|
|
1187
1187
|
});
|
|
1188
1188
|
const diagnosticMessage = diagnosticMessages.join("\n");
|
|
1189
1189
|
if (diagnosticMessage) {
|
|
1190
|
-
|
|
1190
|
+
_chunkDLJYMU67js.writeError.call(void 0, `Failed to emit declaration files.
|
|
1191
1191
|
|
|
1192
1192
|
${diagnosticMessage}`, workspaceConfig);
|
|
1193
1193
|
throw new Error("TypeScript compilation failed");
|
|
@@ -1222,7 +1222,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, emitDts, "emitDts");
|
|
|
1222
1222
|
// ../esbuild/src/utilities/get-entry-points.ts
|
|
1223
1223
|
|
|
1224
1224
|
var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
1225
|
-
const workspaceRoot3 = config.workspaceRoot ||
|
|
1225
|
+
const workspaceRoot3 = config.workspaceRoot || _chunkDLJYMU67js.findWorkspaceRoot.call(void 0, );
|
|
1226
1226
|
const entryPoints = [];
|
|
1227
1227
|
if (entry) {
|
|
1228
1228
|
if (typeof entry === "string") {
|
|
@@ -1253,8 +1253,8 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1253
1253
|
}
|
|
1254
1254
|
if (emitOnAll) {
|
|
1255
1255
|
entryPoints.push({
|
|
1256
|
-
in:
|
|
1257
|
-
out:
|
|
1256
|
+
in: _chunkDLJYMU67js.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"),
|
|
1257
|
+
out: _chunkDLJYMU67js.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}")
|
|
1258
1258
|
});
|
|
1259
1259
|
}
|
|
1260
1260
|
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
@@ -1267,9 +1267,9 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1267
1267
|
]
|
|
1268
1268
|
});
|
|
1269
1269
|
paths.push(...files.reduce((ret, filePath) => {
|
|
1270
|
-
const result =
|
|
1270
|
+
const result = _chunkDLJYMU67js.correctPaths.call(void 0, _chunkDLJYMU67js.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkDLJYMU67js.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkDLJYMU67js.correctPaths.call(void 0, projectRoot), ""));
|
|
1271
1271
|
if (result) {
|
|
1272
|
-
|
|
1272
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkDLJYMU67js.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
1273
1273
|
if (!paths.some((p) => p.in === result)) {
|
|
1274
1274
|
paths.push({
|
|
1275
1275
|
in: result,
|
|
@@ -1280,7 +1280,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1280
1280
|
return ret;
|
|
1281
1281
|
}, []));
|
|
1282
1282
|
} else {
|
|
1283
|
-
|
|
1283
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, `Adding ESBuild entry point
|
|
1284
1284
|
- Input: ${entryPoint.in}
|
|
1285
1285
|
- Output: ${entryPoint.out}`, config);
|
|
1286
1286
|
if (!paths.some((p) => p.out === entryPoint.out)) {
|
|
@@ -1373,13 +1373,13 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1373
1373
|
if (!workspaceRoot3) {
|
|
1374
1374
|
throw new Error("Cannot find Nx workspace root");
|
|
1375
1375
|
}
|
|
1376
|
-
const config = await
|
|
1377
|
-
|
|
1378
|
-
const stopwatch =
|
|
1376
|
+
const config = await _chunkDLJYMU67js.getConfig.call(void 0, workspaceRoot3.dir);
|
|
1377
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
1378
|
+
const stopwatch = _chunkDLJYMU67js.getStopwatch.call(void 0, "Build options resolution");
|
|
1379
1379
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
1380
1380
|
exitOnError: true
|
|
1381
1381
|
});
|
|
1382
|
-
const projectJsonPath =
|
|
1382
|
+
const projectJsonPath = _chunkDLJYMU67js.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
|
|
1383
1383
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
1384
1384
|
throw new Error("Cannot find project.json configuration");
|
|
1385
1385
|
}
|
|
@@ -1393,7 +1393,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1393
1393
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
1394
1394
|
options.name ??= `${projectName}-${options.format}`;
|
|
1395
1395
|
options.target ??= DEFAULT_TARGET;
|
|
1396
|
-
const packageJsonPath =
|
|
1396
|
+
const packageJsonPath = _chunkDLJYMU67js.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
1397
1397
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1398
1398
|
throw new Error("Cannot find package.json configuration");
|
|
1399
1399
|
}
|
|
@@ -1410,19 +1410,19 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1410
1410
|
"main"
|
|
1411
1411
|
],
|
|
1412
1412
|
...userOptions,
|
|
1413
|
-
tsconfig:
|
|
1413
|
+
tsconfig: _chunkDLJYMU67js.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
1414
1414
|
format: options.format || "cjs",
|
|
1415
1415
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), false),
|
|
1416
|
-
outdir: userOptions.outputPath ||
|
|
1416
|
+
outdir: userOptions.outputPath || _chunkDLJYMU67js.joinPaths.call(void 0, "dist", projectRoot),
|
|
1417
1417
|
distDir: userOptions.distDir || "dist",
|
|
1418
1418
|
plugins: [],
|
|
1419
1419
|
name: userOptions.name || projectName,
|
|
1420
1420
|
projectConfigurations,
|
|
1421
1421
|
projectName,
|
|
1422
1422
|
projectGraph,
|
|
1423
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
1423
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkDLJYMU67js.joinPaths.call(void 0, projectRoot, "src"),
|
|
1424
1424
|
minify: userOptions.minify || !userOptions.debug,
|
|
1425
|
-
verbose: userOptions.verbose ||
|
|
1425
|
+
verbose: userOptions.verbose || _chunkDLJYMU67js.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
1426
1426
|
includeSrc: userOptions.includeSrc === true,
|
|
1427
1427
|
metafile: userOptions.metafile !== false,
|
|
1428
1428
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -1457,8 +1457,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1457
1457
|
}, {})
|
|
1458
1458
|
},
|
|
1459
1459
|
inject: [
|
|
1460
|
-
options.format === "cjs" && options.injectShims ?
|
|
1461
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ?
|
|
1460
|
+
options.format === "cjs" && options.injectShims ? _chunkDLJYMU67js.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : void 0,
|
|
1461
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkDLJYMU67js.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : void 0
|
|
1462
1462
|
].filter(Boolean)
|
|
1463
1463
|
};
|
|
1464
1464
|
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( getDefaultBuildPlugins(userOptions, result)));
|
|
@@ -1476,14 +1476,14 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1476
1476
|
return result;
|
|
1477
1477
|
}, "resolveOptions");
|
|
1478
1478
|
async function generatePackageJson(context2) {
|
|
1479
|
-
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
1480
|
-
|
|
1481
|
-
const stopwatch =
|
|
1482
|
-
const packageJsonPath =
|
|
1479
|
+
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkDLJYMU67js.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
1480
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
1481
|
+
const stopwatch = _chunkDLJYMU67js.getStopwatch.call(void 0, "Write package.json file");
|
|
1482
|
+
const packageJsonPath = _chunkDLJYMU67js.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
1483
1483
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1484
1484
|
throw new Error("Cannot find package.json configuration");
|
|
1485
1485
|
}
|
|
1486
|
-
const packageJsonFile = await _promises2.default.readFile(
|
|
1486
|
+
const packageJsonFile = await _promises2.default.readFile(_chunkDLJYMU67js.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
|
|
1487
1487
|
let packageJson = JSON.parse(packageJsonFile);
|
|
1488
1488
|
if (!packageJson) {
|
|
1489
1489
|
throw new Error("Cannot find package.json configuration file");
|
|
@@ -1511,7 +1511,7 @@ async function generatePackageJson(context2) {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
return ret;
|
|
1513
1513
|
}, packageJson.exports);
|
|
1514
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
1514
|
+
await _devkit.writeJsonFile.call(void 0, _chunkDLJYMU67js.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
|
|
1515
1515
|
stopwatch();
|
|
1516
1516
|
}
|
|
1517
1517
|
return context2;
|
|
@@ -1537,8 +1537,8 @@ async function generateContext(getOptions) {
|
|
|
1537
1537
|
}
|
|
1538
1538
|
_chunk3GQAWCBQjs.__name.call(void 0, generateContext, "generateContext");
|
|
1539
1539
|
async function executeEsBuild(context2) {
|
|
1540
|
-
|
|
1541
|
-
const stopwatch =
|
|
1540
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
1541
|
+
const stopwatch = _chunkDLJYMU67js.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
1542
1542
|
if (process.env.STORM_WATCH) {
|
|
1543
1543
|
const ctx = await esbuild2.context(context2.options);
|
|
1544
1544
|
watch(ctx, context2.options);
|
|
@@ -1546,7 +1546,7 @@ async function executeEsBuild(context2) {
|
|
|
1546
1546
|
const options = {
|
|
1547
1547
|
...context2.options
|
|
1548
1548
|
};
|
|
1549
|
-
options.outdir =
|
|
1549
|
+
options.outdir = _chunkDLJYMU67js.joinPaths.call(void 0, context2.options.outdir, context2.options.distDir);
|
|
1550
1550
|
if (!options.inject || !Array.isArray(options.inject) || options.inject.length === 0 || // eslint-disable-next-line no-constant-binary-expression, @typescript-eslint/no-explicit-any
|
|
1551
1551
|
options.inject === {}) {
|
|
1552
1552
|
delete options.inject;
|
|
@@ -1572,8 +1572,8 @@ async function executeEsBuild(context2) {
|
|
|
1572
1572
|
delete options.config;
|
|
1573
1573
|
delete options.injectShims;
|
|
1574
1574
|
delete options.external;
|
|
1575
|
-
|
|
1576
|
-
${
|
|
1575
|
+
_chunkDLJYMU67js.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
|
|
1576
|
+
${_chunkDLJYMU67js.formatLogMessage.call(void 0, {
|
|
1577
1577
|
...options,
|
|
1578
1578
|
define: "<Hidden>"
|
|
1579
1579
|
})}`, context2.options.config);
|
|
@@ -1589,8 +1589,8 @@ ${_chunk7KJYA3C3js.formatLogMessage.call(void 0, {
|
|
|
1589
1589
|
_chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
1590
1590
|
async function executeTypescript(context2) {
|
|
1591
1591
|
if (_optionalChain([context2, 'access', _58 => _58.result, 'optionalAccess', _59 => _59.errors, 'access', _60 => _60.length]) === 0 && context2.options.dts) {
|
|
1592
|
-
|
|
1593
|
-
const stopwatch =
|
|
1592
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, ` \u{1F4CB} Running TypeScript Compiler for ${context2.options.name}`, context2.options.config);
|
|
1593
|
+
const stopwatch = _chunkDLJYMU67js.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
1594
1594
|
await emitDts(context2.options.config, context2.options.tsconfig, context2.options.tsconfigRaw, true);
|
|
1595
1595
|
stopwatch();
|
|
1596
1596
|
}
|
|
@@ -1599,8 +1599,8 @@ async function executeTypescript(context2) {
|
|
|
1599
1599
|
_chunk3GQAWCBQjs.__name.call(void 0, executeTypescript, "executeTypescript");
|
|
1600
1600
|
async function copyBuildAssets(context2) {
|
|
1601
1601
|
if (_optionalChain([context2, 'access', _61 => _61.result, 'optionalAccess', _62 => _62.errors, 'access', _63 => _63.length]) === 0) {
|
|
1602
|
-
|
|
1603
|
-
const stopwatch =
|
|
1602
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
1603
|
+
const stopwatch = _chunkDLJYMU67js.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
1604
1604
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
1605
1605
|
stopwatch();
|
|
1606
1606
|
}
|
|
@@ -1610,11 +1610,11 @@ _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
1610
1610
|
async function reportResults(context2) {
|
|
1611
1611
|
if (_optionalChain([context2, 'access', _64 => _64.result, 'optionalAccess', _65 => _65.errors, 'access', _66 => _66.length]) === 0) {
|
|
1612
1612
|
if (context2.result.warnings.length > 0) {
|
|
1613
|
-
|
|
1613
|
+
_chunkDLJYMU67js.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);
|
|
1614
1614
|
}
|
|
1615
|
-
|
|
1615
|
+
_chunkDLJYMU67js.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
1616
1616
|
} else if (_optionalChain([context2, 'access', _67 => _67.result, 'optionalAccess', _68 => _68.errors]) && _optionalChain([context2, 'access', _69 => _69.result, 'optionalAccess', _70 => _70.errors, 'access', _71 => _71.length]) > 0) {
|
|
1617
|
-
|
|
1617
|
+
_chunkDLJYMU67js.writeError.call(void 0, ` \u274C The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`, context2.options.config);
|
|
1618
1618
|
throw new Error(`The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`);
|
|
1619
1619
|
}
|
|
1620
1620
|
}
|
|
@@ -1651,8 +1651,8 @@ async function dependencyCheck(options) {
|
|
|
1651
1651
|
_chunk3GQAWCBQjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
1652
1652
|
async function cleanOutputPath(context2) {
|
|
1653
1653
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
1654
|
-
|
|
1655
|
-
const stopwatch =
|
|
1654
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
1655
|
+
const stopwatch = _chunkDLJYMU67js.getStopwatch.call(void 0, `${context2.options.name} output clean`);
|
|
1656
1656
|
await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
|
|
1657
1657
|
stopwatch();
|
|
1658
1658
|
}
|
|
@@ -1660,8 +1660,8 @@ async function cleanOutputPath(context2) {
|
|
|
1660
1660
|
}
|
|
1661
1661
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
1662
1662
|
async function build3(options) {
|
|
1663
|
-
|
|
1664
|
-
const stopwatch =
|
|
1663
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
1664
|
+
const stopwatch = _chunkDLJYMU67js.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
1665
1665
|
try {
|
|
1666
1666
|
const opts = Array.isArray(options) ? options : [
|
|
1667
1667
|
options
|
|
@@ -1671,9 +1671,9 @@ async function build3(options) {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
void transduce.async(opts, dependencyCheck);
|
|
1673
1673
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeTypescript, executeEsBuild, copyBuildAssets, reportResults));
|
|
1674
|
-
|
|
1674
|
+
_chunkDLJYMU67js.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
1675
1675
|
} catch (error) {
|
|
1676
|
-
|
|
1676
|
+
_chunkDLJYMU67js.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
1677
1677
|
throw error;
|
|
1678
1678
|
} finally {
|
|
1679
1679
|
stopwatch();
|
|
@@ -1701,9 +1701,9 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1701
1701
|
return context2.rebuild();
|
|
1702
1702
|
});
|
|
1703
1703
|
if (rebuildResult instanceof Error) {
|
|
1704
|
-
|
|
1704
|
+
_chunkDLJYMU67js.writeError.call(void 0, rebuildResult.message);
|
|
1705
1705
|
}
|
|
1706
|
-
|
|
1706
|
+
_chunkDLJYMU67js.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
1707
1707
|
}, 10);
|
|
1708
1708
|
changeWatcher.on("change", fastRebuild);
|
|
1709
1709
|
return void 0;
|
|
@@ -1711,7 +1711,7 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1711
1711
|
|
|
1712
1712
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1713
1713
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1714
|
-
|
|
1714
|
+
_chunkDLJYMU67js.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1715
1715
|
if (!_optionalChain([context2, 'access', _72 => _72.projectsConfigurations, 'optionalAccess', _73 => _73.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _74 => _74.projectsConfigurations, 'access', _75 => _75.projects, 'access', _76 => _76[context2.projectName], 'optionalAccess', _77 => _77.root])) {
|
|
1716
1716
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1717
1717
|
}
|
|
@@ -1728,7 +1728,7 @@ async function esbuildExecutorFn(options, context2, config) {
|
|
|
1728
1728
|
};
|
|
1729
1729
|
}
|
|
1730
1730
|
_chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
1731
|
-
var executor_default6 =
|
|
1731
|
+
var executor_default6 = _chunkDLJYMU67js.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
|
|
1732
1732
|
skipReadingConfig: false,
|
|
1733
1733
|
hooks: {
|
|
1734
1734
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1765,7 +1765,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
1765
1765
|
if (!_optionalChain([context2, 'optionalAccess', _86 => _86.projectName]) || !_optionalChain([context2, 'access', _87 => _87.projectsConfigurations, 'optionalAccess', _88 => _88.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1766
1766
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
1767
1767
|
}
|
|
1768
|
-
|
|
1768
|
+
_chunkDLJYMU67js.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
|
|
1769
1769
|
_sizelimit2.default.call(void 0, [
|
|
1770
1770
|
_file2.default,
|
|
1771
1771
|
_esbuild3.default,
|
|
@@ -1773,14 +1773,14 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
1773
1773
|
], {
|
|
1774
1774
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _89 => _89.projectsConfigurations, 'access', _90 => _90.projects, 'access', _91 => _91[context2.projectName], 'optionalAccess', _92 => _92.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _93 => _93.projectsConfigurations, 'access', _94 => _94.projects, 'access', _95 => _95[context2.projectName], 'optionalAccess', _96 => _96.root]), () => ( "./")), "src")))
|
|
1775
1775
|
}).then((result) => {
|
|
1776
|
-
|
|
1776
|
+
_chunkDLJYMU67js.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
1777
1777
|
});
|
|
1778
1778
|
return {
|
|
1779
1779
|
success: true
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
1782
|
_chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
|
|
1783
|
-
var executor_default7 =
|
|
1783
|
+
var executor_default7 = _chunkDLJYMU67js.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
|
|
1784
1784
|
skipReadingConfig: false,
|
|
1785
1785
|
hooks: {
|
|
1786
1786
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1794,11 +1794,11 @@ var _fsextra = require('fs-extra');
|
|
|
1794
1794
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
1795
1795
|
async function typiaExecutorFn(options, _, config) {
|
|
1796
1796
|
if (options.clean !== false) {
|
|
1797
|
-
|
|
1797
|
+
_chunkDLJYMU67js.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
1798
1798
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
1799
1799
|
}
|
|
1800
1800
|
await Promise.all(options.entry.map((entry) => {
|
|
1801
|
-
|
|
1801
|
+
_chunkDLJYMU67js.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
1802
1802
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
1803
1803
|
input: entry,
|
|
1804
1804
|
output: options.outputPath,
|
|
@@ -1810,7 +1810,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
1810
1810
|
};
|
|
1811
1811
|
}
|
|
1812
1812
|
_chunk3GQAWCBQjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
1813
|
-
var executor_default8 =
|
|
1813
|
+
var executor_default8 = _chunkDLJYMU67js.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
|
|
1814
1814
|
skipReadingConfig: false,
|
|
1815
1815
|
hooks: {
|
|
1816
1816
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1829,7 +1829,7 @@ var executor_default8 = _chunk7KJYA3C3js.withRunExecutor.call(void 0, "Typia run
|
|
|
1829
1829
|
|
|
1830
1830
|
var _jiti = require('jiti');
|
|
1831
1831
|
async function unbuildExecutorFn(options, context2, config) {
|
|
1832
|
-
|
|
1832
|
+
_chunkDLJYMU67js.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1833
1833
|
if (!_optionalChain([context2, 'access', _97 => _97.projectsConfigurations, 'optionalAccess', _98 => _98.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1834
1834
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
1835
1835
|
}
|
|
@@ -1840,7 +1840,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
1840
1840
|
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.");
|
|
1841
1841
|
}
|
|
1842
1842
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1843
|
-
fsCache: config.skipCache ? false :
|
|
1843
|
+
fsCache: config.skipCache ? false : _chunkDLJYMU67js.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
1844
1844
|
interopDefault: true
|
|
1845
1845
|
});
|
|
1846
1846
|
const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
|
|
@@ -1853,7 +1853,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
1853
1853
|
}, {
|
|
1854
1854
|
stubOptions: {
|
|
1855
1855
|
jiti: {
|
|
1856
|
-
fsCache: config.skipCache ? false :
|
|
1856
|
+
fsCache: config.skipCache ? false : _chunkDLJYMU67js.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
|
|
1857
1857
|
}
|
|
1858
1858
|
},
|
|
1859
1859
|
rollup: {
|
|
@@ -1877,7 +1877,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
1877
1877
|
};
|
|
1878
1878
|
}
|
|
1879
1879
|
_chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
1880
|
-
var executor_default9 =
|
|
1880
|
+
var executor_default9 = _chunkDLJYMU67js.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
|
|
1881
1881
|
skipReadingConfig: false,
|
|
1882
1882
|
hooks: {
|
|
1883
1883
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1901,34 +1901,34 @@ var executor_default9 = _chunk7KJYA3C3js.withRunExecutor.call(void 0, "TypeScrip
|
|
|
1901
1901
|
var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
1902
1902
|
skipReadingConfig: false
|
|
1903
1903
|
}) => async (tree, _options) => {
|
|
1904
|
-
const stopwatch =
|
|
1904
|
+
const stopwatch = _chunkDLJYMU67js.getStopwatch.call(void 0, name);
|
|
1905
1905
|
let options = _options;
|
|
1906
1906
|
let config;
|
|
1907
1907
|
try {
|
|
1908
|
-
|
|
1908
|
+
_chunkDLJYMU67js.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
1909
1909
|
|
|
1910
1910
|
`, config);
|
|
1911
|
-
const workspaceRoot3 =
|
|
1911
|
+
const workspaceRoot3 = _chunkDLJYMU67js.findWorkspaceRoot.call(void 0, );
|
|
1912
1912
|
if (!generatorOptions.skipReadingConfig) {
|
|
1913
|
-
|
|
1913
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
1914
1914
|
- workspaceRoot: ${workspaceRoot3}`, config);
|
|
1915
|
-
config = await
|
|
1915
|
+
config = await _chunkDLJYMU67js.getConfig.call(void 0, workspaceRoot3);
|
|
1916
1916
|
}
|
|
1917
1917
|
if (_optionalChain([generatorOptions, 'optionalAccess', _99 => _99.hooks, 'optionalAccess', _100 => _100.applyDefaultOptions])) {
|
|
1918
|
-
|
|
1918
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1919
1919
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
1920
|
-
|
|
1920
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
1921
1921
|
}
|
|
1922
|
-
|
|
1922
|
+
_chunkDLJYMU67js.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
1923
1923
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
1924
|
-
const tokenized = await
|
|
1924
|
+
const tokenized = await _chunkDLJYMU67js.applyWorkspaceTokens.call(void 0, options, {
|
|
1925
1925
|
workspaceRoot: tree.root,
|
|
1926
1926
|
config
|
|
1927
|
-
},
|
|
1927
|
+
}, _chunkDLJYMU67js.applyWorkspaceBaseTokens);
|
|
1928
1928
|
if (_optionalChain([generatorOptions, 'optionalAccess', _101 => _101.hooks, 'optionalAccess', _102 => _102.preProcess])) {
|
|
1929
|
-
|
|
1929
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1930
1930
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
1931
|
-
|
|
1931
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1932
1932
|
}
|
|
1933
1933
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
1934
1934
|
if (result) {
|
|
@@ -1941,18 +1941,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
1943
|
if (_optionalChain([generatorOptions, 'optionalAccess', _112 => _112.hooks, 'optionalAccess', _113 => _113.postProcess])) {
|
|
1944
|
-
|
|
1944
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1945
1945
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1946
|
-
|
|
1946
|
+
_chunkDLJYMU67js.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
1947
1947
|
}
|
|
1948
1948
|
return () => {
|
|
1949
|
-
|
|
1949
|
+
_chunkDLJYMU67js.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
1950
1950
|
`, config);
|
|
1951
1951
|
};
|
|
1952
1952
|
} catch (error) {
|
|
1953
1953
|
return () => {
|
|
1954
|
-
|
|
1955
|
-
|
|
1954
|
+
_chunkDLJYMU67js.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
1955
|
+
_chunkDLJYMU67js.writeError.call(void 0, `An exception was thrown in the generator's process
|
|
1956
1956
|
- Details: ${error.message}
|
|
1957
1957
|
- Stacktrace: ${error.stack}`, config);
|
|
1958
1958
|
};
|
|
@@ -2054,7 +2054,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2054
2054
|
const projectConfig = {
|
|
2055
2055
|
root: normalized.directory,
|
|
2056
2056
|
projectType: "library",
|
|
2057
|
-
sourceRoot:
|
|
2057
|
+
sourceRoot: _chunkDLJYMU67js.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
2058
2058
|
targets: {
|
|
2059
2059
|
build: {
|
|
2060
2060
|
executor: options.buildExecutor,
|
|
@@ -2063,11 +2063,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2063
2063
|
],
|
|
2064
2064
|
options: {
|
|
2065
2065
|
entry: [
|
|
2066
|
-
|
|
2066
|
+
_chunkDLJYMU67js.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
|
|
2067
2067
|
],
|
|
2068
2068
|
outputPath: getOutputPath(normalized),
|
|
2069
|
-
tsconfig:
|
|
2070
|
-
project:
|
|
2069
|
+
tsconfig: _chunkDLJYMU67js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
2070
|
+
project: _chunkDLJYMU67js.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
2071
2071
|
defaultConfiguration: "production",
|
|
2072
2072
|
platform: "neutral",
|
|
2073
2073
|
assets: [
|
|
@@ -2121,7 +2121,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2121
2121
|
if (!normalized.importPath) {
|
|
2122
2122
|
normalized.importPath = normalized.name;
|
|
2123
2123
|
}
|
|
2124
|
-
const packageJsonPath =
|
|
2124
|
+
const packageJsonPath = _chunkDLJYMU67js.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
2125
2125
|
if (tree.exists(packageJsonPath)) {
|
|
2126
2126
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
2127
2127
|
if (!normalized.importPath) {
|
|
@@ -2178,10 +2178,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2178
2178
|
}));
|
|
2179
2179
|
}
|
|
2180
2180
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
2181
|
-
|
|
2181
|
+
_chunkDLJYMU67js.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
|
|
2182
2182
|
]);
|
|
2183
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
2184
|
-
|
|
2183
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkDLJYMU67js.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
2184
|
+
_chunkDLJYMU67js.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
2185
2185
|
]);
|
|
2186
2186
|
if (tree.exists("package.json")) {
|
|
2187
2187
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -2192,7 +2192,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2192
2192
|
description = packageJson.description;
|
|
2193
2193
|
}
|
|
2194
2194
|
}
|
|
2195
|
-
const tsconfigPath =
|
|
2195
|
+
const tsconfigPath = _chunkDLJYMU67js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
2196
2196
|
if (tree.exists(tsconfigPath)) {
|
|
2197
2197
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
2198
2198
|
json.composite ??= true;
|
|
@@ -2230,7 +2230,7 @@ function getOutputPath(options) {
|
|
|
2230
2230
|
} else {
|
|
2231
2231
|
parts.push(options.projectRoot);
|
|
2232
2232
|
}
|
|
2233
|
-
return
|
|
2233
|
+
return _chunkDLJYMU67js.joinPaths.call(void 0, ...parts);
|
|
2234
2234
|
}
|
|
2235
2235
|
_chunk3GQAWCBQjs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
2236
2236
|
function createProjectTsConfigJson(tree, options) {
|
|
@@ -2239,7 +2239,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2239
2239
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _125 => _125.tsconfigOptions]), () => ( {})),
|
|
2240
2240
|
compilerOptions: {
|
|
2241
2241
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2242
|
-
outDir:
|
|
2242
|
+
outDir: _chunkDLJYMU67js.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2243
2243
|
noEmit: true,
|
|
2244
2244
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _126 => _126.tsconfigOptions, 'optionalAccess', _127 => _127.compilerOptions]), () => ( {}))
|
|
2245
2245
|
},
|
|
@@ -2259,7 +2259,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2259
2259
|
"src/**/*.test.ts"
|
|
2260
2260
|
]
|
|
2261
2261
|
};
|
|
2262
|
-
_devkit.writeJson.call(void 0, tree,
|
|
2262
|
+
_devkit.writeJson.call(void 0, tree, _chunkDLJYMU67js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
2263
2263
|
}
|
|
2264
2264
|
_chunk3GQAWCBQjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
2265
2265
|
async function normalizeOptions(tree, options, config) {
|
|
@@ -2319,7 +2319,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, normalizeOptions, "normalizeOptions");
|
|
|
2319
2319
|
|
|
2320
2320
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
2321
2321
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
2322
|
-
const filesDir =
|
|
2322
|
+
const filesDir = _chunkDLJYMU67js.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
|
|
2323
2323
|
const tsLibraryGeneratorOptions = {
|
|
2324
2324
|
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
2325
2325
|
platform: "browser",
|
|
@@ -2391,19 +2391,19 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
|
|
|
2391
2391
|
|
|
2392
2392
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
2393
2393
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
2394
|
+
_chunkDLJYMU67js.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
|
|
2395
|
+
_chunkDLJYMU67js.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
|
|
2396
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkDLJYMU67js.stormWorkspaceConfigSchema, {
|
|
2397
2397
|
name: "StormWorkspaceConfiguration"
|
|
2398
2398
|
});
|
|
2399
|
-
|
|
2400
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _136 => _136.workspaceRoot]), () => (
|
|
2401
|
-
|
|
2399
|
+
_chunkDLJYMU67js.writeTrace.call(void 0, jsonSchema, config);
|
|
2400
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _136 => _136.workspaceRoot]), () => ( _chunkDLJYMU67js.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _137 => _137.outputFile, 'optionalAccess', _138 => _138.startsWith, 'call', _139 => _139("./")]) ? "" : "./");
|
|
2401
|
+
_chunkDLJYMU67js.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
2402
2402
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
2403
2403
|
spaces: 2
|
|
2404
2404
|
});
|
|
2405
2405
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2406
|
-
|
|
2406
|
+
_chunkDLJYMU67js.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
|
|
2407
2407
|
return {
|
|
2408
2408
|
success: true
|
|
2409
2409
|
};
|
|
@@ -2442,7 +2442,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, initGenerator, "initGenerator");
|
|
|
2442
2442
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
2443
2443
|
|
|
2444
2444
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
2445
|
-
const filesDir =
|
|
2445
|
+
const filesDir = _chunkDLJYMU67js.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
|
|
2446
2446
|
const tsLibraryGeneratorOptions = {
|
|
2447
2447
|
...schema,
|
|
2448
2448
|
platform: "neutral",
|
|
@@ -2485,7 +2485,7 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
|
|
|
2485
2485
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
2486
2486
|
|
|
2487
2487
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
2488
|
-
const filesDir =
|
|
2488
|
+
const filesDir = _chunkDLJYMU67js.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
|
|
2489
2489
|
const tsLibraryGeneratorOptions = {
|
|
2490
2490
|
platform: "node",
|
|
2491
2491
|
devDependencies: {
|