@storm-software/cloudflare-tools 0.55.60 → 0.55.62
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 +7 -0
- package/README.md +1 -1
- package/dist/{chunk-QHEOKFFX.mjs → chunk-2AZUPILA.mjs} +3 -3
- package/dist/{chunk-LLLAUEYO.js → chunk-2P6I2JBP.js} +1 -1
- package/dist/{chunk-PXZTPWCU.mjs → chunk-5WRF2CGH.mjs} +186 -23
- package/dist/{chunk-QA4RGSAN.js → chunk-BHSLGWRL.js} +334 -171
- package/dist/{chunk-4CNZ5PH2.mjs → chunk-MIFPHEJP.mjs} +26 -15
- package/dist/{chunk-I3INFEES.js → chunk-MLJ3OSJX.js} +16 -16
- package/dist/{chunk-X7PWPJXA.mjs → chunk-NVKJREIU.mjs} +1 -1
- package/dist/{chunk-ZRZOBWSJ.mjs → chunk-PU6BBJRF.mjs} +3 -3
- package/dist/{chunk-ER3IKRGW.js → chunk-S24WAZG5.js} +12 -12
- package/dist/{chunk-WNICDYXY.js → chunk-TEEOPHLZ.js} +1 -1
- package/dist/{chunk-DXA6VL3T.js → chunk-UBEHQVYS.js} +3 -3
- package/dist/{chunk-U2GYOTAE.js → chunk-XFPT4O23.js} +58 -47
- package/dist/{chunk-Q7EDJLEB.mjs → chunk-ZPJS5XUY.mjs} +1 -1
- package/dist/{chunk-CRVSAZIS.mjs → chunk-ZXMAG5R6.mjs} +1 -1
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +5 -5
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/executors/cloudflare-publish/executor.js +3 -3
- package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
- package/dist/src/executors/r2-upload-publish/executor.js +5 -5
- package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
- package/dist/src/executors/serve/executor.d.mts +2 -2
- package/dist/src/executors/serve/executor.d.ts +2 -2
- package/dist/src/executors/serve/executor.js +4 -4
- package/dist/src/executors/serve/executor.mjs +3 -3
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/dist/src/generators/worker/generator.js +5 -5
- package/dist/src/generators/worker/generator.mjs +4 -4
- package/dist/src/utils/index.js +3 -3
- package/dist/src/utils/index.mjs +2 -2
- package/dist/src/utils/r2-bucket-helpers.js +3 -3
- package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.55.61](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.61) (2025-04-16)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([762e7076f](https://github.com/storm-software/storm-ops/commit/762e7076f))
|
|
11
|
+
|
|
5
12
|
## [0.55.60](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.55.60) (2025-04-15)
|
|
6
13
|
|
|
7
14
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getInternalDependencies,
|
|
3
3
|
r2UploadFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZXMAG5R6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCliOptions,
|
|
7
7
|
getPackageInfo
|
|
8
8
|
} from "./chunk-H36VLRVB.mjs";
|
|
9
9
|
import {
|
|
10
10
|
getConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MIFPHEJP.mjs";
|
|
12
12
|
import {
|
|
13
13
|
findWorkspaceRoot,
|
|
14
14
|
writeDebug,
|
|
15
15
|
writeInfo,
|
|
16
16
|
writeSuccess,
|
|
17
17
|
writeWarning
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZPJS5XUY.mjs";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-H2MWLDLR.mjs";
|
|
@@ -8,7 +8,7 @@ var require_package = _chunkJ5SB6L2Ljs.__commonJS.call(void 0, {
|
|
|
8
8
|
"package.json"(exports, module) {
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "@storm-software/cloudflare-tools",
|
|
11
|
-
version: "0.55.
|
|
11
|
+
version: "0.55.62",
|
|
12
12
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
13
13
|
repository: {
|
|
14
14
|
type: "github",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-H36VLRVB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MIFPHEJP.mjs";
|
|
8
8
|
import {
|
|
9
9
|
correctPaths,
|
|
10
10
|
findWorkspaceRoot,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
writeSuccess,
|
|
21
21
|
writeTrace,
|
|
22
22
|
writeWarning
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZPJS5XUY.mjs";
|
|
24
24
|
import {
|
|
25
25
|
__dirname,
|
|
26
26
|
__name,
|
|
@@ -636,12 +636,12 @@ import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-r
|
|
|
636
636
|
|
|
637
637
|
// ../esbuild/src/build.ts
|
|
638
638
|
import { watch as createWatcher } from "chokidar";
|
|
639
|
-
import
|
|
639
|
+
import defu3 from "defu";
|
|
640
640
|
import { debounce, flatten } from "es-toolkit";
|
|
641
641
|
import { map } from "es-toolkit/compat";
|
|
642
642
|
import * as esbuild2 from "esbuild";
|
|
643
643
|
import { globbySync } from "globby";
|
|
644
|
-
import { existsSync as
|
|
644
|
+
import { existsSync as existsSync5 } from "node:fs";
|
|
645
645
|
import hf from "node:fs/promises";
|
|
646
646
|
import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
|
|
647
647
|
|
|
@@ -1028,7 +1028,7 @@ __name(bundleTypeDefinitions, "bundleTypeDefinitions");
|
|
|
1028
1028
|
var tscPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
1029
1029
|
name: "storm:tsc",
|
|
1030
1030
|
setup(build4) {
|
|
1031
|
-
if (options.
|
|
1031
|
+
if (options.dts === false) {
|
|
1032
1032
|
return;
|
|
1033
1033
|
}
|
|
1034
1034
|
build4.onStart(async () => {
|
|
@@ -1080,7 +1080,7 @@ var getDefaultBuildPlugins = /* @__PURE__ */ __name((options, resolvedOptions) =
|
|
|
1080
1080
|
var DEFAULT_BUILD_OPTIONS = {
|
|
1081
1081
|
platform: "node",
|
|
1082
1082
|
target: "node22",
|
|
1083
|
-
format: "
|
|
1083
|
+
format: "esm",
|
|
1084
1084
|
external: [],
|
|
1085
1085
|
logLevel: "error",
|
|
1086
1086
|
tsconfig: "tsconfig.json",
|
|
@@ -1229,6 +1229,155 @@ var shebangRenderer = {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
};
|
|
1231
1231
|
|
|
1232
|
+
// ../esbuild/src/tsc.ts
|
|
1233
|
+
import { loadTsConfig } from "bundle-require";
|
|
1234
|
+
import defu2 from "defu";
|
|
1235
|
+
import { existsSync as existsSync4, mkdirSync, writeFileSync } from "node:fs";
|
|
1236
|
+
import { dirname as dirname2, isAbsolute, join, normalize } from "node:path";
|
|
1237
|
+
import ts from "typescript";
|
|
1238
|
+
function ensureTempDeclarationDir(workspaceConfig) {
|
|
1239
|
+
const root = workspaceConfig.directories.temp || join(workspaceConfig.workspaceRoot, "tmp");
|
|
1240
|
+
const dirPath = join(root, ".tsc", "declaration");
|
|
1241
|
+
if (existsSync4(dirPath)) {
|
|
1242
|
+
return dirPath;
|
|
1243
|
+
}
|
|
1244
|
+
mkdirSync(dirPath, {
|
|
1245
|
+
recursive: true
|
|
1246
|
+
});
|
|
1247
|
+
const gitIgnorePath = join(root, ".tsc", ".gitignore");
|
|
1248
|
+
writeFileSync(gitIgnorePath, "**/*\n");
|
|
1249
|
+
return dirPath;
|
|
1250
|
+
}
|
|
1251
|
+
__name(ensureTempDeclarationDir, "ensureTempDeclarationDir");
|
|
1252
|
+
function slash(path7) {
|
|
1253
|
+
const isExtendedLengthPath = path7.startsWith("\\\\?\\");
|
|
1254
|
+
if (isExtendedLengthPath) {
|
|
1255
|
+
return path7;
|
|
1256
|
+
}
|
|
1257
|
+
return path7.replace(/\\/g, "/");
|
|
1258
|
+
}
|
|
1259
|
+
__name(slash, "slash");
|
|
1260
|
+
function toAbsolutePath(workspaceConfig, p, cwd) {
|
|
1261
|
+
if (isAbsolute(p)) {
|
|
1262
|
+
return p;
|
|
1263
|
+
}
|
|
1264
|
+
return slash(normalize(join(cwd || workspaceConfig.workspaceRoot, p)));
|
|
1265
|
+
}
|
|
1266
|
+
__name(toAbsolutePath, "toAbsolutePath");
|
|
1267
|
+
var AliasPool = class AliasPool2 {
|
|
1268
|
+
static {
|
|
1269
|
+
__name(this, "AliasPool");
|
|
1270
|
+
}
|
|
1271
|
+
seen = /* @__PURE__ */ new Set();
|
|
1272
|
+
assign(name) {
|
|
1273
|
+
let suffix = 0;
|
|
1274
|
+
let alias = name === "default" ? "default_alias" : name;
|
|
1275
|
+
while (this.seen.has(alias)) {
|
|
1276
|
+
alias = `${name}_alias_${++suffix}`;
|
|
1277
|
+
if (suffix >= 1e3) {
|
|
1278
|
+
throw new Error("Alias generation exceeded limit. Possible infinite loop detected.");
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
this.seen.add(alias);
|
|
1282
|
+
return alias;
|
|
1283
|
+
}
|
|
1284
|
+
};
|
|
1285
|
+
function getExports(workspaceConfig, program, fileMapping) {
|
|
1286
|
+
const checker = program.getTypeChecker();
|
|
1287
|
+
const aliasPool = new AliasPool();
|
|
1288
|
+
const assignAlias = aliasPool.assign.bind(aliasPool);
|
|
1289
|
+
function extractExports(sourceFileName) {
|
|
1290
|
+
const cwd = program.getCurrentDirectory();
|
|
1291
|
+
sourceFileName = toAbsolutePath(workspaceConfig, sourceFileName, cwd);
|
|
1292
|
+
const sourceFile = program.getSourceFile(sourceFileName);
|
|
1293
|
+
if (!sourceFile) {
|
|
1294
|
+
return [];
|
|
1295
|
+
}
|
|
1296
|
+
const destFileName = fileMapping.get(sourceFileName);
|
|
1297
|
+
if (!destFileName) {
|
|
1298
|
+
return [];
|
|
1299
|
+
}
|
|
1300
|
+
const moduleSymbol = checker.getSymbolAtLocation(sourceFile);
|
|
1301
|
+
if (!moduleSymbol) {
|
|
1302
|
+
return [];
|
|
1303
|
+
}
|
|
1304
|
+
const exports = [];
|
|
1305
|
+
const exportSymbols = checker.getExportsOfModule(moduleSymbol);
|
|
1306
|
+
exportSymbols.forEach((symbol) => {
|
|
1307
|
+
const name = symbol.getName();
|
|
1308
|
+
exports.push({
|
|
1309
|
+
kind: "named",
|
|
1310
|
+
sourceFileName,
|
|
1311
|
+
destFileName,
|
|
1312
|
+
name,
|
|
1313
|
+
alias: assignAlias(name),
|
|
1314
|
+
isTypeOnly: false
|
|
1315
|
+
});
|
|
1316
|
+
});
|
|
1317
|
+
return exports;
|
|
1318
|
+
}
|
|
1319
|
+
__name(extractExports, "extractExports");
|
|
1320
|
+
return program.getRootFileNames().flatMap(extractExports);
|
|
1321
|
+
}
|
|
1322
|
+
__name(getExports, "getExports");
|
|
1323
|
+
function emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles = true, customTransformers) {
|
|
1324
|
+
const fileMapping = /* @__PURE__ */ new Map();
|
|
1325
|
+
const writeFile3 = /* @__PURE__ */ __name((fileName, text, writeByteOrderMark, onError, sourceFiles, data) => {
|
|
1326
|
+
const sourceFile = sourceFiles?.[0];
|
|
1327
|
+
const sourceFileName = sourceFile?.fileName;
|
|
1328
|
+
if (sourceFileName && !fileName.endsWith(".map")) {
|
|
1329
|
+
const cwd = program.getCurrentDirectory();
|
|
1330
|
+
fileMapping.set(toAbsolutePath(workspaceConfig, sourceFileName, cwd), toAbsolutePath(workspaceConfig, fileName, cwd));
|
|
1331
|
+
}
|
|
1332
|
+
return host.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data);
|
|
1333
|
+
}, "writeFile");
|
|
1334
|
+
const emitResult = program.emit(void 0, writeFile3, void 0, emitOnlyDtsFiles, customTransformers);
|
|
1335
|
+
const diagnostics = ts.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
|
|
1336
|
+
const diagnosticMessages = [];
|
|
1337
|
+
diagnostics.forEach((diagnostic) => {
|
|
1338
|
+
if (diagnostic.file) {
|
|
1339
|
+
const { line, character } = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start);
|
|
1340
|
+
const message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
|
|
1341
|
+
diagnosticMessages.push(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
|
|
1342
|
+
} else {
|
|
1343
|
+
const message = ts.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
|
|
1344
|
+
diagnosticMessages.push(message);
|
|
1345
|
+
}
|
|
1346
|
+
});
|
|
1347
|
+
const diagnosticMessage = diagnosticMessages.join("\n");
|
|
1348
|
+
if (diagnosticMessage) {
|
|
1349
|
+
writeError(`Failed to emit declaration files.
|
|
1350
|
+
|
|
1351
|
+
${diagnosticMessage}`, workspaceConfig);
|
|
1352
|
+
throw new Error("TypeScript compilation failed");
|
|
1353
|
+
}
|
|
1354
|
+
return fileMapping;
|
|
1355
|
+
}
|
|
1356
|
+
__name(emitDtsFiles, "emitDtsFiles");
|
|
1357
|
+
function emitDts(workspaceConfig, tsconfig, tsconfigRaw, emitOnlyDtsFiles = true, customTransformers) {
|
|
1358
|
+
const rawTsconfig = loadTsConfig(workspaceConfig.workspaceRoot, tsconfig);
|
|
1359
|
+
if (!rawTsconfig) {
|
|
1360
|
+
throw new Error(`Unable to find ${tsconfig || "tsconfig.json"} in ${workspaceConfig.workspaceRoot}`);
|
|
1361
|
+
}
|
|
1362
|
+
const declarationDir = ensureTempDeclarationDir(workspaceConfig);
|
|
1363
|
+
const parsedTsconfig = ts.parseJsonConfigFileContent(defu2({
|
|
1364
|
+
compilerOptions: {
|
|
1365
|
+
// Enable declaration emit and disable javascript emit
|
|
1366
|
+
noEmit: false,
|
|
1367
|
+
declaration: true,
|
|
1368
|
+
declarationMap: true,
|
|
1369
|
+
declarationDir,
|
|
1370
|
+
emitDeclarationOnly: true
|
|
1371
|
+
}
|
|
1372
|
+
}, tsconfigRaw?.compilerOptions ?? {}, rawTsconfig.data ?? {}), ts.sys, tsconfig ? dirname2(tsconfig) : "./");
|
|
1373
|
+
const options = parsedTsconfig.options;
|
|
1374
|
+
const host = ts.createCompilerHost(options);
|
|
1375
|
+
const program = ts.createProgram(parsedTsconfig.fileNames, options, host);
|
|
1376
|
+
const fileMapping = emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles, customTransformers);
|
|
1377
|
+
return getExports(workspaceConfig, program, fileMapping);
|
|
1378
|
+
}
|
|
1379
|
+
__name(emitDts, "emitDts");
|
|
1380
|
+
|
|
1232
1381
|
// ../esbuild/src/utilities/get-entry-points.ts
|
|
1233
1382
|
import { glob as glob3 } from "glob";
|
|
1234
1383
|
var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
@@ -1390,7 +1539,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
1390
1539
|
exitOnError: true
|
|
1391
1540
|
});
|
|
1392
1541
|
const projectJsonPath = joinPaths(workspaceRoot3.dir, projectRoot, "project.json");
|
|
1393
|
-
if (!
|
|
1542
|
+
if (!existsSync5(projectJsonPath)) {
|
|
1394
1543
|
throw new Error("Cannot find project.json configuration");
|
|
1395
1544
|
}
|
|
1396
1545
|
const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
|
|
@@ -1400,11 +1549,11 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
1400
1549
|
if (!projectConfigurations?.projects?.[projectName]) {
|
|
1401
1550
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
1402
1551
|
}
|
|
1403
|
-
const options =
|
|
1552
|
+
const options = defu3(userOptions, DEFAULT_BUILD_OPTIONS);
|
|
1404
1553
|
options.name ??= `${projectName}-${options.format}`;
|
|
1405
1554
|
options.target ??= DEFAULT_TARGET;
|
|
1406
1555
|
const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
1407
|
-
if (!
|
|
1556
|
+
if (!existsSync5(packageJsonPath)) {
|
|
1408
1557
|
throw new Error("Cannot find package.json configuration");
|
|
1409
1558
|
}
|
|
1410
1559
|
const env = getEnv("esbuild", options);
|
|
@@ -1486,11 +1635,11 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
1486
1635
|
return result;
|
|
1487
1636
|
}, "resolveOptions");
|
|
1488
1637
|
async function generatePackageJson(context2) {
|
|
1489
|
-
if (context2.options.generatePackageJson !== false &&
|
|
1638
|
+
if (context2.options.generatePackageJson !== false && existsSync5(joinPaths(context2.options.projectRoot, "package.json"))) {
|
|
1490
1639
|
writeDebug(" \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
1491
1640
|
const stopwatch = getStopwatch("Write package.json file");
|
|
1492
1641
|
const packageJsonPath = joinPaths(context2.options.projectRoot, "project.json");
|
|
1493
|
-
if (!
|
|
1642
|
+
if (!existsSync5(packageJsonPath)) {
|
|
1494
1643
|
throw new Error("Cannot find package.json configuration");
|
|
1495
1644
|
}
|
|
1496
1645
|
const packageJsonFile = await hf.readFile(joinPaths(context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
|
|
@@ -1561,6 +1710,7 @@ async function executeEsBuild(context2) {
|
|
|
1561
1710
|
options.inject === {}) {
|
|
1562
1711
|
delete options.inject;
|
|
1563
1712
|
}
|
|
1713
|
+
delete options.dts;
|
|
1564
1714
|
delete options.env;
|
|
1565
1715
|
delete options.name;
|
|
1566
1716
|
delete options.assets;
|
|
@@ -1596,6 +1746,16 @@ ${formatLogMessage({
|
|
|
1596
1746
|
return context2;
|
|
1597
1747
|
}
|
|
1598
1748
|
__name(executeEsBuild, "executeEsBuild");
|
|
1749
|
+
async function executeTypescript(context2) {
|
|
1750
|
+
if (context2.result?.errors.length === 0 && context2.options.dts) {
|
|
1751
|
+
writeDebug(` \u{1F4CB} Running TypeScript Compiler for ${context2.options.name}`, context2.options.config);
|
|
1752
|
+
const stopwatch = getStopwatch(`${context2.options.name} asset copy`);
|
|
1753
|
+
await emitDts(context2.options.config, context2.options.tsconfig, context2.options.tsconfigRaw, true);
|
|
1754
|
+
stopwatch();
|
|
1755
|
+
}
|
|
1756
|
+
return context2;
|
|
1757
|
+
}
|
|
1758
|
+
__name(executeTypescript, "executeTypescript");
|
|
1599
1759
|
async function copyBuildAssets(context2) {
|
|
1600
1760
|
if (context2.result?.errors.length === 0) {
|
|
1601
1761
|
writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
@@ -1612,6 +1772,9 @@ async function reportResults(context2) {
|
|
|
1612
1772
|
writeWarning(` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
1613
1773
|
}
|
|
1614
1774
|
writeSuccess(` \u{1F4E6} The ${context2.options.name} build completed successfully`, context2.options.config);
|
|
1775
|
+
} else if (context2.result?.errors && context2.result?.errors.length > 0) {
|
|
1776
|
+
writeError(` \u274C The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`, context2.options.config);
|
|
1777
|
+
throw new Error(`The ${context2.options.name} build failed with the following errors: ${context2.result.errors.map((error) => error.text).join("\n")}`);
|
|
1615
1778
|
}
|
|
1616
1779
|
}
|
|
1617
1780
|
__name(reportResults, "reportResults");
|
|
@@ -1666,7 +1829,7 @@ async function build3(options) {
|
|
|
1666
1829
|
throw new Error("No build options were provided");
|
|
1667
1830
|
}
|
|
1668
1831
|
void transduce.async(opts, dependencyCheck);
|
|
1669
|
-
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeEsBuild, copyBuildAssets, reportResults));
|
|
1832
|
+
await transduce.async(await createOptions(opts), pipe.async(generateContext, cleanOutputPath, generatePackageJson, executeTypescript, executeEsBuild, copyBuildAssets, reportResults));
|
|
1670
1833
|
writeSuccess(" \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
1671
1834
|
} catch (error) {
|
|
1672
1835
|
writeFatal("Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
@@ -1743,7 +1906,7 @@ import { execSync as execSync4 } from "node:child_process";
|
|
|
1743
1906
|
import { readFile as readFile5 } from "node:fs/promises";
|
|
1744
1907
|
|
|
1745
1908
|
// ../workspace-tools/src/utils/pnpm-deps-update.ts
|
|
1746
|
-
import { existsSync as
|
|
1909
|
+
import { existsSync as existsSync6 } from "node:fs";
|
|
1747
1910
|
import { readFile as readFile4, writeFile as writeFile2 } from "node:fs/promises";
|
|
1748
1911
|
import { format } from "prettier";
|
|
1749
1912
|
import readYamlFile from "read-yaml-file";
|
|
@@ -1822,7 +1985,7 @@ var executor_default8 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
1822
1985
|
});
|
|
1823
1986
|
|
|
1824
1987
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
1825
|
-
import { defu as
|
|
1988
|
+
import { defu as defu4 } from "defu";
|
|
1826
1989
|
import { createJiti } from "jiti";
|
|
1827
1990
|
async function unbuildExecutorFn(options, context2, config) {
|
|
1828
1991
|
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
@@ -1840,7 +2003,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
1840
2003
|
interopDefault: true
|
|
1841
2004
|
});
|
|
1842
2005
|
const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
|
|
1843
|
-
await stormUnbuild.build(
|
|
2006
|
+
await stormUnbuild.build(defu4({
|
|
1844
2007
|
...options,
|
|
1845
2008
|
projectRoot: context2.projectsConfigurations.projects[context2.projectName].root,
|
|
1846
2009
|
projectName: context2.projectName,
|
|
@@ -3306,23 +3469,23 @@ import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/proj
|
|
|
3306
3469
|
|
|
3307
3470
|
// ../workspace-tools/src/utils/lock-file.ts
|
|
3308
3471
|
import { output as output2, readJsonFile, workspaceRoot as workspaceRoot2 } from "@nx/devkit";
|
|
3309
|
-
import { existsSync as
|
|
3310
|
-
import { join as
|
|
3472
|
+
import { existsSync as existsSync7 } from "node:fs";
|
|
3473
|
+
import { join as join3 } from "node:path";
|
|
3311
3474
|
import { getNpmLockfileDependencies, getNpmLockfileNodes } from "nx/src/plugins/js/lock-file/npm-parser";
|
|
3312
3475
|
import { getPnpmLockfileDependencies, getPnpmLockfileNodes } from "nx/src/plugins/js/lock-file/pnpm-parser";
|
|
3313
3476
|
import { getYarnLockfileDependencies, getYarnLockfileNodes } from "nx/src/plugins/js/lock-file/yarn-parser";
|
|
3314
3477
|
var YARN_LOCK_FILE = "yarn.lock";
|
|
3315
3478
|
var NPM_LOCK_FILE = "package-lock.json";
|
|
3316
3479
|
var PNPM_LOCK_FILE = "pnpm-lock.yaml";
|
|
3317
|
-
var YARN_LOCK_PATH =
|
|
3318
|
-
var NPM_LOCK_PATH =
|
|
3319
|
-
var PNPM_LOCK_PATH =
|
|
3480
|
+
var YARN_LOCK_PATH = join3(workspaceRoot2, YARN_LOCK_FILE);
|
|
3481
|
+
var NPM_LOCK_PATH = join3(workspaceRoot2, NPM_LOCK_FILE);
|
|
3482
|
+
var PNPM_LOCK_PATH = join3(workspaceRoot2, PNPM_LOCK_FILE);
|
|
3320
3483
|
|
|
3321
3484
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
3322
3485
|
import { readJsonFile as readJsonFile2 } from "@nx/devkit";
|
|
3323
|
-
import
|
|
3324
|
-
import { existsSync as
|
|
3325
|
-
import { dirname as
|
|
3486
|
+
import defu5 from "defu";
|
|
3487
|
+
import { existsSync as existsSync8 } from "node:fs";
|
|
3488
|
+
import { dirname as dirname3, join as join4 } from "node:path";
|
|
3326
3489
|
|
|
3327
3490
|
// ../workspace-tools/src/utils/typia-transform.ts
|
|
3328
3491
|
import transform2 from "typia/lib/transform";
|