@storm-software/terraform-tools 0.54.44 → 0.54.45
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 +9 -0
- package/README.md +1 -1
- package/dist/{chunk-TMSXVOPT.js → chunk-AWKDJF6S.js} +3 -3
- package/dist/{chunk-IASMSKFD.js → chunk-DJCYC7JQ.js} +2 -2
- package/dist/{chunk-KXU4RONH.mjs → chunk-JXHQ3VKS.mjs} +1 -1
- package/dist/{chunk-TC6M3XSY.js → chunk-MFSX2K6C.js} +133 -133
- package/dist/{chunk-SD5RUDOC.js → chunk-N54F7ABF.js} +2 -2
- package/dist/{chunk-HLKD7LH2.js → chunk-OFLYCEQV.js} +18 -2
- package/dist/{chunk-I7YJV2HQ.mjs → chunk-PX46VTHM.mjs} +1 -1
- package/dist/{chunk-7DKBJQFC.js → chunk-QLX5ZXZW.js} +2 -2
- package/dist/{chunk-2YQ45BL6.mjs → chunk-QVS5QXGT.mjs} +18 -2
- package/dist/{chunk-HNQXOQIK.js → chunk-SHSQW7WA.js} +2 -2
- package/dist/{chunk-END6WC65.mjs → chunk-UFNO4VYA.mjs} +1 -1
- package/dist/{chunk-DQSC56MV.mjs → chunk-WQRXF2IK.mjs} +1 -1
- package/dist/{chunk-2KL7TQCA.mjs → chunk-X3Q4UFXB.mjs} +10 -10
- package/dist/{chunk-JXBAKJPX.mjs → chunk-ZAEMRHF3.mjs} +1 -1
- package/dist/executors.d.mts +1 -1
- package/dist/executors.d.ts +1 -1
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +6 -6
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/base/index.d.mts +1 -1
- package/dist/src/base/index.d.ts +1 -1
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/base/terraform-executor.d.mts +1 -1276
- package/dist/src/base/terraform-executor.d.ts +1 -1276
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +2 -2
- package/dist/src/executors/apply/executor.d.mts +1 -1
- package/dist/src/executors/apply/executor.d.ts +1 -1
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +3 -3
- package/dist/src/executors/destroy/executor.d.mts +1 -1
- package/dist/src/executors/destroy/executor.d.ts +1 -1
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +3 -3
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +3 -3
- package/dist/src/executors/plan/executor.d.mts +1 -1
- package/dist/src/executors/plan/executor.d.ts +1 -1
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +3 -3
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +2 -2
- package/package.json +7 -9
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkOFLYCEQVjs = require('./chunk-OFLYCEQV.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 = _chunkOFLYCEQVjs.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 = _chunkOFLYCEQVjs.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 = _chunkOFLYCEQVjs.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 = _chunkOFLYCEQVjs.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 = _chunkOFLYCEQVjs.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
|
+
_chunkOFLYCEQVjs.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} -> ${_chunkOFLYCEQVjs.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
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkOFLYCEQVjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
332
332
|
const files = await _glob.glob.call(void 0, [
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
333
|
+
_chunkOFLYCEQVjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
334
|
+
_chunkOFLYCEQVjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
335
|
+
_chunkOFLYCEQVjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
336
|
+
_chunkOFLYCEQVjs.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 = _chunkOFLYCEQVjs.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
|
+
_chunkOFLYCEQVjs.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, _chunkOFLYCEQVjs.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 = _chunkOFLYCEQVjs.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);
|
|
@@ -401,13 +401,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0
|
|
|
401
401
|
return ret;
|
|
402
402
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
403
403
|
} else {
|
|
404
|
-
|
|
404
|
+
_chunkOFLYCEQVjs.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 : _chunkOFLYCEQVjs.findWorkspaceRoot.call(void 0, );
|
|
410
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkOFLYCEQVjs.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 ??= `${_chunkOFLYCEQVjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
420
420
|
}
|
|
421
421
|
packageJson.files ??= [
|
|
422
422
|
"dist/**/*"
|
|
@@ -447,14 +447,14 @@ 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 : _chunkOFLYCEQVjs.joinPaths.call(void 0, "packages", projectName);
|
|
451
451
|
return packageJson;
|
|
452
452
|
}, "addWorkspacePackageJsonFields");
|
|
453
453
|
|
|
454
454
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
455
455
|
|
|
456
456
|
var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
457
|
-
const workspaceRoot3 = config.workspaceRoot ||
|
|
457
|
+
const workspaceRoot3 = config.workspaceRoot || _chunkOFLYCEQVjs.findWorkspaceRoot.call(void 0, );
|
|
458
458
|
const entryPoints = [];
|
|
459
459
|
if (entry) {
|
|
460
460
|
if (typeof entry === "string") {
|
|
@@ -466,7 +466,7 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
if (emitOnAll) {
|
|
469
|
-
entryPoints.push(
|
|
469
|
+
entryPoints.push(_chunkOFLYCEQVjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
470
470
|
}
|
|
471
471
|
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
472
472
|
const paths = [];
|
|
@@ -478,9 +478,9 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
478
478
|
]
|
|
479
479
|
});
|
|
480
480
|
paths.push(...files.reduce((ret, filePath) => {
|
|
481
|
-
const result =
|
|
481
|
+
const result = _chunkOFLYCEQVjs.correctPaths.call(void 0, _chunkOFLYCEQVjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkOFLYCEQVjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunkOFLYCEQVjs.correctPaths.call(void 0, projectRoot), ""));
|
|
482
482
|
if (result) {
|
|
483
|
-
|
|
483
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkOFLYCEQVjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
484
484
|
if (!paths.includes(result)) {
|
|
485
485
|
paths.push(result);
|
|
486
486
|
}
|
|
@@ -488,10 +488,9 @@ var getEntryPoints = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
488
488
|
return ret;
|
|
489
489
|
}, []));
|
|
490
490
|
} else {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
paths.push(result);
|
|
491
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
|
|
492
|
+
if (!paths.includes(entryPoint)) {
|
|
493
|
+
paths.push(entryPoint);
|
|
495
494
|
}
|
|
496
495
|
}
|
|
497
496
|
return paths;
|
|
@@ -804,7 +803,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
|
|
|
804
803
|
setup(build4) {
|
|
805
804
|
build4.onEnd((result) => {
|
|
806
805
|
if (result.errors.length > 0 && process.env.WATCH !== "true") {
|
|
807
|
-
|
|
806
|
+
_chunkOFLYCEQVjs.writeError.call(void 0, `The following errors occurred during the build:
|
|
808
807
|
${result.errors.map((error) => error.text).join("\n")}
|
|
809
808
|
|
|
810
809
|
`, resolvedOptions.config);
|
|
@@ -839,7 +838,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
|
|
|
839
838
|
var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
840
839
|
name: "storm:resolve-paths",
|
|
841
840
|
setup(build4) {
|
|
842
|
-
const parentTsConfig = build4.initialOptions.tsconfig ? _chunk3GQAWCBQjs.__require.call(void 0,
|
|
841
|
+
const parentTsConfig = build4.initialOptions.tsconfig ? _chunk3GQAWCBQjs.__require.call(void 0, _chunkOFLYCEQVjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, build4.initialOptions.tsconfig)) : _chunk3GQAWCBQjs.__require.call(void 0, _chunkOFLYCEQVjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, "tsconfig.json"));
|
|
843
842
|
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, options.projectRoot);
|
|
844
843
|
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
845
844
|
build4.onResolve({
|
|
@@ -863,7 +862,7 @@ var _apiextractor = require('@microsoft/api-extractor');
|
|
|
863
862
|
|
|
864
863
|
|
|
865
864
|
function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
866
|
-
const { dependencies, peerDependencies, devDependencies } = _chunk3GQAWCBQjs.__require.call(void 0,
|
|
865
|
+
const { dependencies, peerDependencies, devDependencies } = _chunk3GQAWCBQjs.__require.call(void 0, _chunkOFLYCEQVjs.joinPaths.call(void 0, options.projectRoot, "package.json"));
|
|
867
866
|
const dependenciesKeys = Object.keys(_nullishCoalesce(dependencies, () => ( {}))).flatMap((p) => [
|
|
868
867
|
p,
|
|
869
868
|
getTypeDependencyPackageName(p)
|
|
@@ -899,13 +898,13 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
899
898
|
},
|
|
900
899
|
dtsRollup: {
|
|
901
900
|
enabled: true,
|
|
902
|
-
untrimmedFilePath:
|
|
901
|
+
untrimmedFilePath: _chunkOFLYCEQVjs.joinPaths.call(void 0, options.outdir, `${outfile}.d.ts`)
|
|
903
902
|
},
|
|
904
903
|
tsdocMetadata: {
|
|
905
904
|
enabled: false
|
|
906
905
|
}
|
|
907
906
|
},
|
|
908
|
-
packageJsonFullPath:
|
|
907
|
+
packageJsonFullPath: _chunkOFLYCEQVjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
|
|
909
908
|
configObjectFullPath: void 0
|
|
910
909
|
});
|
|
911
910
|
const extractorResult = _apiextractor.Extractor.invoke(extractorConfig, {
|
|
@@ -913,7 +912,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
913
912
|
localBuild: true
|
|
914
913
|
});
|
|
915
914
|
if (extractorResult.succeeded === false) {
|
|
916
|
-
|
|
915
|
+
_chunkOFLYCEQVjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
917
916
|
throw new Error("API Extractor completed with errors");
|
|
918
917
|
}
|
|
919
918
|
}
|
|
@@ -926,18 +925,18 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, r
|
|
|
926
925
|
}
|
|
927
926
|
build4.onStart(async () => {
|
|
928
927
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
929
|
-
await
|
|
928
|
+
await _chunkOFLYCEQVjs.run.call(void 0, resolvedOptions.config, `pnpm exec tsc --project ${resolvedOptions.tsconfig}`, resolvedOptions.config.workspaceRoot);
|
|
930
929
|
}
|
|
931
930
|
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && resolvedOptions.entryPoints[0] && resolvedOptions.entryPoints[0].endsWith(".ts")) {
|
|
932
931
|
const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
|
|
933
932
|
const typeOutDir = resolvedOptions.outdir;
|
|
934
933
|
const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
935
|
-
const bundlePath =
|
|
934
|
+
const bundlePath = _chunkOFLYCEQVjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
|
|
936
935
|
let dtsPath;
|
|
937
|
-
if (_fs.existsSync.call(void 0,
|
|
938
|
-
dtsPath =
|
|
939
|
-
} else if (_fs.existsSync.call(void 0,
|
|
940
|
-
dtsPath =
|
|
936
|
+
if (_fs.existsSync.call(void 0, _chunkOFLYCEQVjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
937
|
+
dtsPath = _chunkOFLYCEQVjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
|
|
938
|
+
} else if (_fs.existsSync.call(void 0, _chunkOFLYCEQVjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
939
|
+
dtsPath = _chunkOFLYCEQVjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
941
940
|
}
|
|
942
941
|
const ext = resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
|
|
943
942
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
@@ -1101,8 +1100,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bund
|
|
|
1101
1100
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
1102
1101
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
1103
1102
|
});
|
|
1104
|
-
|
|
1105
|
-
|
|
1103
|
+
_chunkOFLYCEQVjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
1104
|
+
_chunkOFLYCEQVjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
1106
1105
|
if (filteredMissingDeps.length > 0) {
|
|
1107
1106
|
throw new Error(`Missing dependencies detected - please install them:
|
|
1108
1107
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -1196,13 +1195,13 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1196
1195
|
if (!workspaceRoot3) {
|
|
1197
1196
|
throw new Error("Cannot find Nx workspace root");
|
|
1198
1197
|
}
|
|
1199
|
-
const config = await
|
|
1200
|
-
|
|
1201
|
-
const stopwatch =
|
|
1198
|
+
const config = await _chunkOFLYCEQVjs.getConfig.call(void 0, workspaceRoot3.dir);
|
|
1199
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
1200
|
+
const stopwatch = _chunkOFLYCEQVjs.getStopwatch.call(void 0, "Build options resolution");
|
|
1202
1201
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
1203
1202
|
exitOnError: true
|
|
1204
1203
|
});
|
|
1205
|
-
const projectJsonPath =
|
|
1204
|
+
const projectJsonPath = _chunkOFLYCEQVjs.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "project.json");
|
|
1206
1205
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
1207
1206
|
throw new Error("Cannot find project.json configuration");
|
|
1208
1207
|
}
|
|
@@ -1216,7 +1215,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1216
1215
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
1217
1216
|
options.name ??= `${projectName}-${options.format}`;
|
|
1218
1217
|
options.target ??= DEFAULT_TARGET;
|
|
1219
|
-
const packageJsonPath =
|
|
1218
|
+
const packageJsonPath = _chunkOFLYCEQVjs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
1220
1219
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1221
1220
|
throw new Error("Cannot find package.json configuration");
|
|
1222
1221
|
}
|
|
@@ -1233,24 +1232,23 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1233
1232
|
"main"
|
|
1234
1233
|
],
|
|
1235
1234
|
...userOptions,
|
|
1236
|
-
tsconfig:
|
|
1235
|
+
tsconfig: _chunkOFLYCEQVjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
1237
1236
|
format: options.format || "cjs",
|
|
1238
|
-
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")),
|
|
1239
|
-
outdir: userOptions.outputPath ||
|
|
1237
|
+
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), false),
|
|
1238
|
+
outdir: userOptions.outputPath || _chunkOFLYCEQVjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
1240
1239
|
distDir: userOptions.distDir || "dist",
|
|
1241
1240
|
plugins: [],
|
|
1242
1241
|
name: userOptions.name || projectName,
|
|
1243
1242
|
projectConfigurations,
|
|
1244
1243
|
projectName,
|
|
1245
1244
|
projectGraph,
|
|
1246
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
1245
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkOFLYCEQVjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
1247
1246
|
minify: userOptions.minify || !userOptions.debug,
|
|
1248
|
-
verbose: userOptions.verbose ||
|
|
1247
|
+
verbose: userOptions.verbose || _chunkOFLYCEQVjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
1249
1248
|
includeSrc: userOptions.includeSrc === true,
|
|
1250
1249
|
metafile: userOptions.metafile !== false,
|
|
1251
1250
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
1252
1251
|
clean: userOptions.clean !== false,
|
|
1253
|
-
emitOnAll: userOptions.emitOnAll === true,
|
|
1254
1252
|
assets: _nullishCoalesce(userOptions.assets, () => ( [])),
|
|
1255
1253
|
injectShims: userOptions.injectShims !== true,
|
|
1256
1254
|
bundle: userOptions.bundle !== false,
|
|
@@ -1281,8 +1279,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1281
1279
|
}, {})
|
|
1282
1280
|
},
|
|
1283
1281
|
inject: [
|
|
1284
|
-
options.format === "cjs" && options.injectShims ?
|
|
1285
|
-
options.format === "esm" && options.injectShims && options.platform === "node" ?
|
|
1282
|
+
options.format === "cjs" && options.injectShims ? _chunkOFLYCEQVjs.joinPaths.call(void 0, __dirname, "../assets/cjs_shims.js") : void 0,
|
|
1283
|
+
options.format === "esm" && options.injectShims && options.platform === "node" ? _chunkOFLYCEQVjs.joinPaths.call(void 0, __dirname, "../assets/esm_shims.js") : void 0
|
|
1286
1284
|
].filter(Boolean)
|
|
1287
1285
|
};
|
|
1288
1286
|
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( getDefaultBuildPlugins(userOptions, result)));
|
|
@@ -1300,14 +1298,14 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
1300
1298
|
return result;
|
|
1301
1299
|
}, "resolveOptions");
|
|
1302
1300
|
async function generatePackageJson(context2) {
|
|
1303
|
-
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
1304
|
-
|
|
1305
|
-
const stopwatch =
|
|
1306
|
-
const packageJsonPath =
|
|
1301
|
+
if (context2.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkOFLYCEQVjs.joinPaths.call(void 0, context2.options.projectRoot, "package.json"))) {
|
|
1302
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
1303
|
+
const stopwatch = _chunkOFLYCEQVjs.getStopwatch.call(void 0, "Write package.json file");
|
|
1304
|
+
const packageJsonPath = _chunkOFLYCEQVjs.joinPaths.call(void 0, context2.options.projectRoot, "project.json");
|
|
1307
1305
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
1308
1306
|
throw new Error("Cannot find package.json configuration");
|
|
1309
1307
|
}
|
|
1310
|
-
const packageJsonFile = await _promises2.default.readFile(
|
|
1308
|
+
const packageJsonFile = await _promises2.default.readFile(_chunkOFLYCEQVjs.joinPaths.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
|
|
1311
1309
|
let packageJson = JSON.parse(packageJsonFile);
|
|
1312
1310
|
if (!packageJson) {
|
|
1313
1311
|
throw new Error("Cannot find package.json configuration file");
|
|
@@ -1327,7 +1325,7 @@ async function generatePackageJson(context2) {
|
|
|
1327
1325
|
if (Array.isArray(context2.options.entryPoints)) {
|
|
1328
1326
|
entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
|
|
1329
1327
|
in: entryPoint,
|
|
1330
|
-
out: entryPoint
|
|
1328
|
+
out: _chunkOFLYCEQVjs.correctPaths.call(void 0, entryPoint.replaceAll(_chunkOFLYCEQVjs.correctPaths.call(void 0, context2.options.config.workspaceRoot), "").replaceAll(_chunkOFLYCEQVjs.correctPaths.call(void 0, context2.options.projectRoot), ""))
|
|
1331
1329
|
} : entryPoint);
|
|
1332
1330
|
}
|
|
1333
1331
|
for (const entryPoint of entryPoints) {
|
|
@@ -1349,7 +1347,7 @@ async function generatePackageJson(context2) {
|
|
|
1349
1347
|
}
|
|
1350
1348
|
return ret;
|
|
1351
1349
|
}, packageJson.exports);
|
|
1352
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
1350
|
+
await _devkit.writeJsonFile.call(void 0, _chunkOFLYCEQVjs.joinPaths.call(void 0, context2.options.outdir, "package.json"), packageJson);
|
|
1353
1351
|
stopwatch();
|
|
1354
1352
|
}
|
|
1355
1353
|
return context2;
|
|
@@ -1375,8 +1373,8 @@ async function generateContext(getOptions) {
|
|
|
1375
1373
|
}
|
|
1376
1374
|
_chunk3GQAWCBQjs.__name.call(void 0, generateContext, "generateContext");
|
|
1377
1375
|
async function executeEsBuild(context2) {
|
|
1378
|
-
|
|
1379
|
-
const stopwatch =
|
|
1376
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, ` \u{1F680} Running ${context2.options.name} build`, context2.options.config);
|
|
1377
|
+
const stopwatch = _chunkOFLYCEQVjs.getStopwatch.call(void 0, `${context2.options.name} build`);
|
|
1380
1378
|
if (process.env.STORM_WATCH) {
|
|
1381
1379
|
const ctx = await esbuild2.context(context2.options);
|
|
1382
1380
|
watch(ctx, context2.options);
|
|
@@ -1384,7 +1382,7 @@ async function executeEsBuild(context2) {
|
|
|
1384
1382
|
const options = {
|
|
1385
1383
|
...context2.options
|
|
1386
1384
|
};
|
|
1387
|
-
options.outdir =
|
|
1385
|
+
options.outdir = _chunkOFLYCEQVjs.joinPaths.call(void 0, context2.options.outdir, context2.options.distDir);
|
|
1388
1386
|
if (!options.inject || !Array.isArray(options.inject) || options.inject.length === 0 || // eslint-disable-next-line no-constant-binary-expression, @typescript-eslint/no-explicit-any
|
|
1389
1387
|
options.inject === {}) {
|
|
1390
1388
|
delete options.inject;
|
|
@@ -1398,7 +1396,6 @@ async function executeEsBuild(context2) {
|
|
|
1398
1396
|
delete options.clean;
|
|
1399
1397
|
delete options.debug;
|
|
1400
1398
|
delete options.generatePackageJson;
|
|
1401
|
-
delete options.emitOnAll;
|
|
1402
1399
|
delete options.distDir;
|
|
1403
1400
|
delete options.includeSrc;
|
|
1404
1401
|
delete options.verbose;
|
|
@@ -1410,8 +1407,11 @@ async function executeEsBuild(context2) {
|
|
|
1410
1407
|
delete options.config;
|
|
1411
1408
|
delete options.injectShims;
|
|
1412
1409
|
delete options.external;
|
|
1413
|
-
|
|
1414
|
-
${
|
|
1410
|
+
_chunkOFLYCEQVjs.writeTrace.call(void 0, `Run esbuild (${context2.options.name}) with the following options:
|
|
1411
|
+
${_chunkOFLYCEQVjs.formatLogMessage.call(void 0, {
|
|
1412
|
+
...options,
|
|
1413
|
+
define: "<Hidden>"
|
|
1414
|
+
})}`, context2.options.config);
|
|
1415
1415
|
const result = await esbuild2.build(options);
|
|
1416
1416
|
await esbuild2.stop();
|
|
1417
1417
|
if (result.metafile) {
|
|
@@ -1424,8 +1424,8 @@ ${_chunkHLKD7LH2js.formatLogMessage.call(void 0, options)}`, context2.options.co
|
|
|
1424
1424
|
_chunk3GQAWCBQjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
1425
1425
|
async function copyBuildAssets(context2) {
|
|
1426
1426
|
if (_optionalChain([context2, 'access', _52 => _52.result, 'optionalAccess', _53 => _53.errors, 'access', _54 => _54.length]) === 0) {
|
|
1427
|
-
|
|
1428
|
-
const stopwatch =
|
|
1427
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
1428
|
+
const stopwatch = _chunkOFLYCEQVjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
1429
1429
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
1430
1430
|
stopwatch();
|
|
1431
1431
|
}
|
|
@@ -1435,9 +1435,9 @@ _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
|
1435
1435
|
async function reportResults(context2) {
|
|
1436
1436
|
if (_optionalChain([context2, 'access', _55 => _55.result, 'optionalAccess', _56 => _56.errors, 'access', _57 => _57.length]) === 0) {
|
|
1437
1437
|
if (context2.result.warnings.length > 0) {
|
|
1438
|
-
|
|
1438
|
+
_chunkOFLYCEQVjs.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);
|
|
1439
1439
|
}
|
|
1440
|
-
|
|
1440
|
+
_chunkOFLYCEQVjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
1441
1441
|
}
|
|
1442
1442
|
}
|
|
1443
1443
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
|
|
@@ -1473,8 +1473,8 @@ async function dependencyCheck(options) {
|
|
|
1473
1473
|
_chunk3GQAWCBQjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
1474
1474
|
async function cleanOutputPath(context2) {
|
|
1475
1475
|
if (context2.options.clean !== false && context2.options.outdir) {
|
|
1476
|
-
|
|
1477
|
-
const stopwatch =
|
|
1476
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context2.options.name} output path: ${context2.options.outdir}`, context2.options.config);
|
|
1477
|
+
const stopwatch = _chunkOFLYCEQVjs.getStopwatch.call(void 0, `${context2.options.name} output clean`);
|
|
1478
1478
|
await cleanDirectories(context2.options.name, context2.options.outdir, context2.options.config);
|
|
1479
1479
|
stopwatch();
|
|
1480
1480
|
}
|
|
@@ -1482,8 +1482,8 @@ async function cleanOutputPath(context2) {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
1484
1484
|
async function build3(options) {
|
|
1485
|
-
|
|
1486
|
-
const stopwatch =
|
|
1485
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
1486
|
+
const stopwatch = _chunkOFLYCEQVjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
1487
1487
|
try {
|
|
1488
1488
|
const opts = Array.isArray(options) ? options : [
|
|
1489
1489
|
options
|
|
@@ -1493,9 +1493,9 @@ async function build3(options) {
|
|
|
1493
1493
|
}
|
|
1494
1494
|
void transduce.async(opts, dependencyCheck);
|
|
1495
1495
|
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
1496
|
-
|
|
1496
|
+
_chunkOFLYCEQVjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
1497
1497
|
} catch (error) {
|
|
1498
|
-
|
|
1498
|
+
_chunkOFLYCEQVjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
1499
1499
|
throw error;
|
|
1500
1500
|
} finally {
|
|
1501
1501
|
stopwatch();
|
|
@@ -1523,9 +1523,9 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1523
1523
|
return context2.rebuild();
|
|
1524
1524
|
});
|
|
1525
1525
|
if (rebuildResult instanceof Error) {
|
|
1526
|
-
|
|
1526
|
+
_chunkOFLYCEQVjs.writeError.call(void 0, rebuildResult.message);
|
|
1527
1527
|
}
|
|
1528
|
-
|
|
1528
|
+
_chunkOFLYCEQVjs.writeTrace.call(void 0, `${Date.now() - timeBefore}ms [${_nullishCoalesce(options.name, () => ( ""))}]`);
|
|
1529
1529
|
}, 10);
|
|
1530
1530
|
changeWatcher.on("change", fastRebuild);
|
|
1531
1531
|
return void 0;
|
|
@@ -1533,7 +1533,7 @@ var watch = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context2, opti
|
|
|
1533
1533
|
|
|
1534
1534
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
1535
1535
|
async function esbuildExecutorFn(options, context2, config) {
|
|
1536
|
-
|
|
1536
|
+
_chunkOFLYCEQVjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
1537
1537
|
if (!_optionalChain([context2, 'access', _58 => _58.projectsConfigurations, 'optionalAccess', _59 => _59.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _60 => _60.projectsConfigurations, 'access', _61 => _61.projects, 'access', _62 => _62[context2.projectName], 'optionalAccess', _63 => _63.root])) {
|
|
1538
1538
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
1539
1539
|
}
|
|
@@ -1550,7 +1550,7 @@ async function esbuildExecutorFn(options, context2, config) {
|
|
|
1550
1550
|
};
|
|
1551
1551
|
}
|
|
1552
1552
|
_chunk3GQAWCBQjs.__name.call(void 0, esbuildExecutorFn, "esbuildExecutorFn");
|
|
1553
|
-
var executor_default6 =
|
|
1553
|
+
var executor_default6 = _chunkOFLYCEQVjs.withRunExecutor.call(void 0, "Storm ESBuild build", esbuildExecutorFn, {
|
|
1554
1554
|
skipReadingConfig: false,
|
|
1555
1555
|
hooks: {
|
|
1556
1556
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1587,7 +1587,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
1587
1587
|
if (!_optionalChain([context2, 'optionalAccess', _72 => _72.projectName]) || !_optionalChain([context2, 'access', _73 => _73.projectsConfigurations, 'optionalAccess', _74 => _74.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1588
1588
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
1589
1589
|
}
|
|
1590
|
-
|
|
1590
|
+
_chunkOFLYCEQVjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
|
|
1591
1591
|
_sizelimit2.default.call(void 0, [
|
|
1592
1592
|
_file2.default,
|
|
1593
1593
|
_esbuild3.default,
|
|
@@ -1595,14 +1595,14 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
1595
1595
|
], {
|
|
1596
1596
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _75 => _75.projectsConfigurations, 'access', _76 => _76.projects, 'access', _77 => _77[context2.projectName], 'optionalAccess', _78 => _78.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _79 => _79.projectsConfigurations, 'access', _80 => _80.projects, 'access', _81 => _81[context2.projectName], 'optionalAccess', _82 => _82.root]), () => ( "./")), "src")))
|
|
1597
1597
|
}).then((result) => {
|
|
1598
|
-
|
|
1598
|
+
_chunkOFLYCEQVjs.writeInfo.call(void 0, `\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
1599
1599
|
});
|
|
1600
1600
|
return {
|
|
1601
1601
|
success: true
|
|
1602
1602
|
};
|
|
1603
1603
|
}
|
|
1604
1604
|
_chunk3GQAWCBQjs.__name.call(void 0, sizeLimitExecutorFn, "sizeLimitExecutorFn");
|
|
1605
|
-
var executor_default7 =
|
|
1605
|
+
var executor_default7 = _chunkOFLYCEQVjs.withRunExecutor.call(void 0, "Size-Limit Performance Test Executor", sizeLimitExecutorFn, {
|
|
1606
1606
|
skipReadingConfig: false,
|
|
1607
1607
|
hooks: {
|
|
1608
1608
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1616,11 +1616,11 @@ var _fsextra = require('fs-extra');
|
|
|
1616
1616
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
1617
1617
|
async function typiaExecutorFn(options, _, config) {
|
|
1618
1618
|
if (options.clean !== false) {
|
|
1619
|
-
|
|
1619
|
+
_chunkOFLYCEQVjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
1620
1620
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
1621
1621
|
}
|
|
1622
1622
|
await Promise.all(options.entry.map((entry) => {
|
|
1623
|
-
|
|
1623
|
+
_chunkOFLYCEQVjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
1624
1624
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
1625
1625
|
input: entry,
|
|
1626
1626
|
output: options.outputPath,
|
|
@@ -1632,7 +1632,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
1632
1632
|
};
|
|
1633
1633
|
}
|
|
1634
1634
|
_chunk3GQAWCBQjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
1635
|
-
var executor_default8 =
|
|
1635
|
+
var executor_default8 = _chunkOFLYCEQVjs.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
|
|
1636
1636
|
skipReadingConfig: false,
|
|
1637
1637
|
hooks: {
|
|
1638
1638
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1651,7 +1651,7 @@ var executor_default8 = _chunkHLKD7LH2js.withRunExecutor.call(void 0, "Typia run
|
|
|
1651
1651
|
|
|
1652
1652
|
var _jiti = require('jiti');
|
|
1653
1653
|
async function unbuildExecutorFn(options, context2, config) {
|
|
1654
|
-
|
|
1654
|
+
_chunkOFLYCEQVjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
1655
1655
|
if (!_optionalChain([context2, 'access', _83 => _83.projectsConfigurations, 'optionalAccess', _84 => _84.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
1656
1656
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
1657
1657
|
}
|
|
@@ -1662,7 +1662,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
1662
1662
|
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.");
|
|
1663
1663
|
}
|
|
1664
1664
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
1665
|
-
fsCache: config.skipCache ? false :
|
|
1665
|
+
fsCache: config.skipCache ? false : _chunkOFLYCEQVjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
1666
1666
|
interopDefault: true
|
|
1667
1667
|
});
|
|
1668
1668
|
const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
|
|
@@ -1675,7 +1675,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
1675
1675
|
}, {
|
|
1676
1676
|
stubOptions: {
|
|
1677
1677
|
jiti: {
|
|
1678
|
-
fsCache: config.skipCache ? false :
|
|
1678
|
+
fsCache: config.skipCache ? false : _chunkOFLYCEQVjs.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
|
|
1679
1679
|
}
|
|
1680
1680
|
},
|
|
1681
1681
|
rollup: {
|
|
@@ -1699,7 +1699,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
1699
1699
|
};
|
|
1700
1700
|
}
|
|
1701
1701
|
_chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
1702
|
-
var executor_default9 =
|
|
1702
|
+
var executor_default9 = _chunkOFLYCEQVjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
|
|
1703
1703
|
skipReadingConfig: false,
|
|
1704
1704
|
hooks: {
|
|
1705
1705
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1722,34 +1722,34 @@ var executor_default9 = _chunkHLKD7LH2js.withRunExecutor.call(void 0, "TypeScrip
|
|
|
1722
1722
|
var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
1723
1723
|
skipReadingConfig: false
|
|
1724
1724
|
}) => async (tree, _options) => {
|
|
1725
|
-
const stopwatch =
|
|
1725
|
+
const stopwatch = _chunkOFLYCEQVjs.getStopwatch.call(void 0, name);
|
|
1726
1726
|
let options = _options;
|
|
1727
1727
|
let config;
|
|
1728
1728
|
try {
|
|
1729
|
-
|
|
1729
|
+
_chunkOFLYCEQVjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
1730
1730
|
|
|
1731
1731
|
`, config);
|
|
1732
|
-
const workspaceRoot3 =
|
|
1732
|
+
const workspaceRoot3 = _chunkOFLYCEQVjs.findWorkspaceRoot.call(void 0, );
|
|
1733
1733
|
if (!generatorOptions.skipReadingConfig) {
|
|
1734
|
-
|
|
1734
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
1735
1735
|
- workspaceRoot: ${workspaceRoot3}`, config);
|
|
1736
|
-
config = await
|
|
1736
|
+
config = await _chunkOFLYCEQVjs.getConfig.call(void 0, workspaceRoot3);
|
|
1737
1737
|
}
|
|
1738
1738
|
if (_optionalChain([generatorOptions, 'optionalAccess', _85 => _85.hooks, 'optionalAccess', _86 => _86.applyDefaultOptions])) {
|
|
1739
|
-
|
|
1739
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
1740
1740
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
1741
|
-
|
|
1741
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
1742
1742
|
}
|
|
1743
|
-
|
|
1743
|
+
_chunkOFLYCEQVjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
1744
1744
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
1745
|
-
const tokenized = await
|
|
1745
|
+
const tokenized = await _chunkOFLYCEQVjs.applyWorkspaceTokens.call(void 0, options, {
|
|
1746
1746
|
workspaceRoot: tree.root,
|
|
1747
1747
|
config
|
|
1748
|
-
},
|
|
1748
|
+
}, _chunkOFLYCEQVjs.applyWorkspaceBaseTokens);
|
|
1749
1749
|
if (_optionalChain([generatorOptions, 'optionalAccess', _87 => _87.hooks, 'optionalAccess', _88 => _88.preProcess])) {
|
|
1750
|
-
|
|
1750
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
1751
1751
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
1752
|
-
|
|
1752
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
1753
1753
|
}
|
|
1754
1754
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
1755
1755
|
if (result) {
|
|
@@ -1762,18 +1762,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
1762
1762
|
}
|
|
1763
1763
|
}
|
|
1764
1764
|
if (_optionalChain([generatorOptions, 'optionalAccess', _98 => _98.hooks, 'optionalAccess', _99 => _99.postProcess])) {
|
|
1765
|
-
|
|
1765
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
1766
1766
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
1767
|
-
|
|
1767
|
+
_chunkOFLYCEQVjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
1768
1768
|
}
|
|
1769
1769
|
return () => {
|
|
1770
|
-
|
|
1770
|
+
_chunkOFLYCEQVjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
1771
1771
|
`, config);
|
|
1772
1772
|
};
|
|
1773
1773
|
} catch (error) {
|
|
1774
1774
|
return () => {
|
|
1775
|
-
|
|
1776
|
-
|
|
1775
|
+
_chunkOFLYCEQVjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
1776
|
+
_chunkOFLYCEQVjs.writeError.call(void 0, `An exception was thrown in the generator's process
|
|
1777
1777
|
- Details: ${error.message}
|
|
1778
1778
|
- Stacktrace: ${error.stack}`, config);
|
|
1779
1779
|
};
|
|
@@ -1875,7 +1875,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1875
1875
|
const projectConfig = {
|
|
1876
1876
|
root: normalized.directory,
|
|
1877
1877
|
projectType: "library",
|
|
1878
|
-
sourceRoot:
|
|
1878
|
+
sourceRoot: _chunkOFLYCEQVjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
1879
1879
|
targets: {
|
|
1880
1880
|
build: {
|
|
1881
1881
|
executor: options.buildExecutor,
|
|
@@ -1884,11 +1884,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1884
1884
|
],
|
|
1885
1885
|
options: {
|
|
1886
1886
|
entry: [
|
|
1887
|
-
|
|
1887
|
+
_chunkOFLYCEQVjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
|
|
1888
1888
|
],
|
|
1889
1889
|
outputPath: getOutputPath(normalized),
|
|
1890
|
-
tsconfig:
|
|
1891
|
-
project:
|
|
1890
|
+
tsconfig: _chunkOFLYCEQVjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
1891
|
+
project: _chunkOFLYCEQVjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
1892
1892
|
defaultConfiguration: "production",
|
|
1893
1893
|
platform: "neutral",
|
|
1894
1894
|
assets: [
|
|
@@ -1942,7 +1942,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1942
1942
|
if (!normalized.importPath) {
|
|
1943
1943
|
normalized.importPath = normalized.name;
|
|
1944
1944
|
}
|
|
1945
|
-
const packageJsonPath =
|
|
1945
|
+
const packageJsonPath = _chunkOFLYCEQVjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
1946
1946
|
if (tree.exists(packageJsonPath)) {
|
|
1947
1947
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
1948
1948
|
if (!normalized.importPath) {
|
|
@@ -1999,10 +1999,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
1999
1999
|
}));
|
|
2000
2000
|
}
|
|
2001
2001
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
2002
|
-
|
|
2002
|
+
_chunkOFLYCEQVjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
|
|
2003
2003
|
]);
|
|
2004
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
2005
|
-
|
|
2004
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkOFLYCEQVjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
2005
|
+
_chunkOFLYCEQVjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
2006
2006
|
]);
|
|
2007
2007
|
if (tree.exists("package.json")) {
|
|
2008
2008
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -2013,7 +2013,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2013
2013
|
description = packageJson.description;
|
|
2014
2014
|
}
|
|
2015
2015
|
}
|
|
2016
|
-
const tsconfigPath =
|
|
2016
|
+
const tsconfigPath = _chunkOFLYCEQVjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
2017
2017
|
if (tree.exists(tsconfigPath)) {
|
|
2018
2018
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
2019
2019
|
json.composite ??= true;
|
|
@@ -2051,7 +2051,7 @@ function getOutputPath(options) {
|
|
|
2051
2051
|
} else {
|
|
2052
2052
|
parts.push(options.projectRoot);
|
|
2053
2053
|
}
|
|
2054
|
-
return
|
|
2054
|
+
return _chunkOFLYCEQVjs.joinPaths.call(void 0, ...parts);
|
|
2055
2055
|
}
|
|
2056
2056
|
_chunk3GQAWCBQjs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
2057
2057
|
function createProjectTsConfigJson(tree, options) {
|
|
@@ -2060,7 +2060,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2060
2060
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _111 => _111.tsconfigOptions]), () => ( {})),
|
|
2061
2061
|
compilerOptions: {
|
|
2062
2062
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2063
|
-
outDir:
|
|
2063
|
+
outDir: _chunkOFLYCEQVjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2064
2064
|
noEmit: true,
|
|
2065
2065
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _112 => _112.tsconfigOptions, 'optionalAccess', _113 => _113.compilerOptions]), () => ( {}))
|
|
2066
2066
|
},
|
|
@@ -2080,7 +2080,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2080
2080
|
"src/**/*.test.ts"
|
|
2081
2081
|
]
|
|
2082
2082
|
};
|
|
2083
|
-
_devkit.writeJson.call(void 0, tree,
|
|
2083
|
+
_devkit.writeJson.call(void 0, tree, _chunkOFLYCEQVjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
2084
2084
|
}
|
|
2085
2085
|
_chunk3GQAWCBQjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
2086
2086
|
async function normalizeOptions(tree, options, config) {
|
|
@@ -2140,7 +2140,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, normalizeOptions, "normalizeOptions");
|
|
|
2140
2140
|
|
|
2141
2141
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
2142
2142
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
2143
|
-
const filesDir =
|
|
2143
|
+
const filesDir = _chunkOFLYCEQVjs.joinPaths.call(void 0, __dirname, "src", "generators", "browser-library", "files");
|
|
2144
2144
|
const tsLibraryGeneratorOptions = {
|
|
2145
2145
|
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
2146
2146
|
platform: "browser",
|
|
@@ -2212,19 +2212,19 @@ var generator_default = withRunGenerator("TypeScript Library Creator (Browser Pl
|
|
|
2212
2212
|
|
|
2213
2213
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
2214
2214
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
2215
|
+
_chunkOFLYCEQVjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator", config);
|
|
2216
|
+
_chunkOFLYCEQVjs.writeTrace.call(void 0, `Determining the Storm Workspace Configuration JSON Schema...`, config);
|
|
2217
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkOFLYCEQVjs.stormWorkspaceConfigSchema, {
|
|
2218
2218
|
name: "StormWorkspaceConfiguration"
|
|
2219
2219
|
});
|
|
2220
|
-
|
|
2221
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _122 => _122.workspaceRoot]), () => (
|
|
2222
|
-
|
|
2220
|
+
_chunkOFLYCEQVjs.writeTrace.call(void 0, jsonSchema, config);
|
|
2221
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _122 => _122.workspaceRoot]), () => ( _chunkOFLYCEQVjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _123 => _123.outputFile, 'optionalAccess', _124 => _124.startsWith, 'call', _125 => _125("./")]) ? "" : "./");
|
|
2222
|
+
_chunkOFLYCEQVjs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
2223
2223
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
2224
2224
|
spaces: 2
|
|
2225
2225
|
});
|
|
2226
2226
|
await _devkit.formatFiles.call(void 0, tree);
|
|
2227
|
-
|
|
2227
|
+
_chunkOFLYCEQVjs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
|
|
2228
2228
|
return {
|
|
2229
2229
|
success: true
|
|
2230
2230
|
};
|
|
@@ -2263,7 +2263,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, initGenerator, "initGenerator");
|
|
|
2263
2263
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
2264
2264
|
|
|
2265
2265
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
2266
|
-
const filesDir =
|
|
2266
|
+
const filesDir = _chunkOFLYCEQVjs.joinPaths.call(void 0, __dirname, "src", "generators", "neutral-library", "files");
|
|
2267
2267
|
const tsLibraryGeneratorOptions = {
|
|
2268
2268
|
...schema,
|
|
2269
2269
|
platform: "neutral",
|
|
@@ -2306,7 +2306,7 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
|
|
|
2306
2306
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
2307
2307
|
|
|
2308
2308
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
2309
|
-
const filesDir =
|
|
2309
|
+
const filesDir = _chunkOFLYCEQVjs.joinPaths.call(void 0, __dirname, "src", "generators", "node-library", "files");
|
|
2310
2310
|
const tsLibraryGeneratorOptions = {
|
|
2311
2311
|
platform: "node",
|
|
2312
2312
|
devDependencies: {
|