@storm-software/cloudflare-tools 0.53.0 → 0.54.0
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 +12 -0
- package/README.md +1 -1
- package/dist/{chunk-ISVNV2UX.mjs → chunk-3D3WO4IH.mjs} +15 -8
- package/dist/{chunk-TOEMUWVP.mjs → chunk-6H63LE3D.mjs} +1 -1
- package/dist/{chunk-42I5F5WI.mjs → chunk-BGWUN6JU.mjs} +3 -3
- package/dist/{chunk-AYOTXPQJ.mjs → chunk-EPJ3NXAN.mjs} +45 -92
- package/dist/{chunk-AZ4TIZKT.js → chunk-H63GI4CR.js} +3 -3
- package/dist/{chunk-M5TEDDIW.mjs → chunk-HSYTAPR3.mjs} +1 -1
- package/dist/{chunk-IU4KGUV4.mjs → chunk-KVL4WOIH.mjs} +1 -1
- package/dist/{chunk-7PSAJH4G.mjs → chunk-LYX4CNII.mjs} +3 -3
- package/dist/{chunk-YG677AGI.js → chunk-PCVUZFIE.js} +245 -292
- package/dist/{chunk-OQPC7VB6.js → chunk-THKJZT32.js} +41 -41
- package/dist/{chunk-YVLGBYMR.js → chunk-U6QKP7CG.js} +16 -16
- package/dist/{chunk-76BYR6TF.js → chunk-VV4FAXNW.js} +12 -12
- package/dist/{chunk-343PZDII.js → chunk-W6YNIJQD.js} +15 -8
- package/dist/{chunk-TYN4EHRJ.js → chunk-WTUD4B6O.js} +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.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
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 0.54.0 (2025-01-22)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **workspace-tools:** Enhanced option tokenization logic for executors ([14ed93d7](https://github.com/storm-software/storm-ops/commit/14ed93d7))
|
|
6
|
+
|
|
7
|
+
## 0.53.1 (2025-01-21)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **unbuild:** Ensure we always use directory as input instead of a file ([13d4a133](https://github.com/storm-software/storm-ops/commit/13d4a133))
|
|
12
|
+
|
|
1
13
|
## 0.53.0 (2025-01-21)
|
|
2
14
|
|
|
3
15
|
### Features
|
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 -->
|
|
@@ -479,49 +479,56 @@ var isVerbose = /* @__PURE__ */ __name((label = LogLevelLabel.SILENT) => {
|
|
|
479
479
|
var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
480
480
|
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
481
481
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
482
|
-
if (
|
|
482
|
+
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
483
483
|
return (_) => {
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
|
-
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel
|
|
486
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
487
487
|
return (message) => {
|
|
488
488
|
console.error(`
|
|
489
489
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
490
490
|
`);
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
|
-
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel
|
|
493
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
494
494
|
return (message) => {
|
|
495
495
|
console.error(`
|
|
496
496
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
497
497
|
`);
|
|
498
498
|
};
|
|
499
499
|
}
|
|
500
|
-
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel
|
|
500
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
501
501
|
return (message) => {
|
|
502
502
|
console.warn(`
|
|
503
503
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
504
504
|
`);
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
|
-
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel
|
|
507
|
+
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
508
508
|
return (message) => {
|
|
509
509
|
console.info(`
|
|
510
510
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
511
511
|
`);
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel
|
|
514
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
515
515
|
return (message) => {
|
|
516
516
|
console.info(`
|
|
517
517
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
518
518
|
`);
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
521
|
+
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
522
522
|
return (message) => {
|
|
523
523
|
console.debug(`
|
|
524
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]}
|
|
524
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
525
|
+
`);
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
529
|
+
return (message) => {
|
|
530
|
+
console.debug(`
|
|
531
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
525
532
|
`);
|
|
526
533
|
};
|
|
527
534
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getInternalDependencies,
|
|
3
3
|
r2UploadFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KVL4WOIH.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCliOptions,
|
|
7
7
|
getPackageInfo
|
|
8
8
|
} from "./chunk-XU6MTFCV.mjs";
|
|
9
9
|
import {
|
|
10
10
|
loadStormConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6H63LE3D.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-3D3WO4IH.mjs";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-A7FFSBE6.mjs";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-XU6MTFCV.mjs";
|
|
5
5
|
import {
|
|
6
6
|
loadStormConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6H63LE3D.mjs";
|
|
8
8
|
import {
|
|
9
9
|
StormConfigSchema,
|
|
10
10
|
correctPaths,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
writeSuccess,
|
|
21
21
|
writeTrace,
|
|
22
22
|
writeWarning
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3D3WO4IH.mjs";
|
|
24
24
|
import {
|
|
25
25
|
__dirname,
|
|
26
26
|
__name,
|
|
@@ -58,6 +58,9 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ __name(async (option, tokenizerOp
|
|
|
58
58
|
}
|
|
59
59
|
return result;
|
|
60
60
|
}, "applyWorkspaceBaseTokens");
|
|
61
|
+
var applyWorkspaceProjectTokens = /* @__PURE__ */ __name((option, tokenizerOptions) => {
|
|
62
|
+
return applyWorkspaceBaseTokens(option, tokenizerOptions);
|
|
63
|
+
}, "applyWorkspaceProjectTokens");
|
|
61
64
|
var applyWorkspaceTokens = /* @__PURE__ */ __name(async (options, config, tokenizerFn) => {
|
|
62
65
|
if (!options) {
|
|
63
66
|
return {};
|
|
@@ -96,71 +99,24 @@ var run = /* @__PURE__ */ __name((config, command, cwd = config.workspaceRoot ??
|
|
|
96
99
|
});
|
|
97
100
|
}, "run");
|
|
98
101
|
|
|
99
|
-
// ../workspace-tools/src/utils/apply-workspace-tokens.ts
|
|
100
|
-
var applyWorkspaceExecutorTokens = /* @__PURE__ */ __name(async (option, tokenizerOptions) => {
|
|
101
|
-
let result = option;
|
|
102
|
-
if (!result) {
|
|
103
|
-
return result;
|
|
104
|
-
}
|
|
105
|
-
let projectName;
|
|
106
|
-
let projectRoot;
|
|
107
|
-
let sourceRoot;
|
|
108
|
-
if (tokenizerOptions?.projectName) {
|
|
109
|
-
const context2 = tokenizerOptions;
|
|
110
|
-
projectName = context2.projectName;
|
|
111
|
-
projectRoot = context2.root;
|
|
112
|
-
sourceRoot = context2.sourceRoot;
|
|
113
|
-
} else {
|
|
114
|
-
const projectConfig = tokenizerOptions;
|
|
115
|
-
projectRoot = projectConfig.root;
|
|
116
|
-
if (projectConfig.name) {
|
|
117
|
-
projectName = projectConfig.name;
|
|
118
|
-
}
|
|
119
|
-
if (projectConfig.sourceRoot) {
|
|
120
|
-
sourceRoot = projectConfig.sourceRoot;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
if (tokenizerOptions.config) {
|
|
124
|
-
const configKeys = Object.keys(tokenizerOptions.config);
|
|
125
|
-
if (configKeys.some((configKey) => result.includes(`{${configKey}}`))) {
|
|
126
|
-
for (const configKey of configKeys) {
|
|
127
|
-
if (result.includes(`{${configKey}}`)) {
|
|
128
|
-
result = result.replaceAll(`{${configKey}}`, tokenizerOptions.config[configKey]);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
if (result.includes("{projectName}")) {
|
|
134
|
-
result = result.replaceAll("{projectName}", projectName);
|
|
135
|
-
}
|
|
136
|
-
if (result.includes("{projectRoot}")) {
|
|
137
|
-
result = result.replaceAll("{projectRoot}", projectRoot);
|
|
138
|
-
}
|
|
139
|
-
if (result.includes("{sourceRoot}")) {
|
|
140
|
-
result = result.replaceAll("{sourceRoot}", sourceRoot);
|
|
141
|
-
}
|
|
142
|
-
if (result.includes("{workspaceRoot}")) {
|
|
143
|
-
result = result.replaceAll("{workspaceRoot}", tokenizerOptions.workspaceRoot ?? findWorkspaceRoot());
|
|
144
|
-
}
|
|
145
|
-
return result;
|
|
146
|
-
}, "applyWorkspaceExecutorTokens");
|
|
147
|
-
|
|
148
102
|
// ../workspace-tools/src/base/base-executor.ts
|
|
103
|
+
import { defu } from "defu";
|
|
149
104
|
var withRunExecutor = /* @__PURE__ */ __name((name, executorFn, executorOptions = {}) => async (_options, context2) => {
|
|
150
105
|
const stopwatch = getStopwatch(name);
|
|
151
106
|
let options = _options;
|
|
152
107
|
let config = {};
|
|
153
108
|
try {
|
|
154
|
-
writeInfo(`\u26A1 Running the ${name} executor...
|
|
155
|
-
`, config);
|
|
156
109
|
if (!context2.projectsConfigurations?.projects || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
157
110
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
158
111
|
}
|
|
159
112
|
const workspaceRoot3 = findWorkspaceRoot();
|
|
160
|
-
const projectRoot = context2.projectsConfigurations.projects[context2.projectName]
|
|
161
|
-
const sourceRoot = context2.projectsConfigurations.projects[context2.projectName]
|
|
162
|
-
const projectName = context2.projectsConfigurations.projects[context2.projectName]
|
|
113
|
+
const projectRoot = context2.projectsConfigurations.projects[context2.projectName].root || workspaceRoot3;
|
|
114
|
+
const sourceRoot = context2.projectsConfigurations.projects[context2.projectName].sourceRoot || workspaceRoot3;
|
|
115
|
+
const projectName = context2.projectsConfigurations.projects[context2.projectName].name || context2.projectName;
|
|
163
116
|
config.workspaceRoot = workspaceRoot3;
|
|
117
|
+
writeInfo(`
|
|
118
|
+
\u26A1 Running the ${name} executor for ${projectName}
|
|
119
|
+
`, config);
|
|
164
120
|
if (!executorOptions.skipReadingConfig) {
|
|
165
121
|
writeTrace(`Loading the Storm Config from environment variables and storm.config.js file...
|
|
166
122
|
- workspaceRoot: ${workspaceRoot3}
|
|
@@ -175,17 +131,19 @@ var withRunExecutor = /* @__PURE__ */ __name((name, executorFn, executorOptions
|
|
|
175
131
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
176
132
|
writeDebug("Completed the applyDefaultOptions hook", config);
|
|
177
133
|
}
|
|
178
|
-
writeTrace(`Executor schema options \u2699\uFE0F
|
|
179
|
-
${
|
|
180
|
-
|
|
181
|
-
|
|
134
|
+
writeTrace(`Executor schema options \u2699\uFE0F
|
|
135
|
+
${formatLogMessage(options)}
|
|
136
|
+
`, config);
|
|
137
|
+
const tokenized = await applyWorkspaceTokens(options, defu({
|
|
182
138
|
workspaceRoot: workspaceRoot3,
|
|
183
139
|
projectRoot,
|
|
184
140
|
sourceRoot,
|
|
185
141
|
projectName,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
142
|
+
config
|
|
143
|
+
}, executorOptions, context2.projectsConfigurations.projects[context2.projectName], config), applyWorkspaceProjectTokens);
|
|
144
|
+
writeTrace(`Executor schema tokenized options \u2699\uFE0F
|
|
145
|
+
${formatLogMessage(tokenized)}
|
|
146
|
+
`, config);
|
|
189
147
|
if (executorOptions?.hooks?.preProcess) {
|
|
190
148
|
writeDebug("Running the preProcess hook...", config);
|
|
191
149
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
@@ -517,27 +475,23 @@ var readNxConfig = /* @__PURE__ */ __name(async (workspaceRoot3) => {
|
|
|
517
475
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
518
476
|
var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, projectRoot, projectName, sourceRoot, generatePackageJson3 = true, includeSrc = false, banner, footer) => {
|
|
519
477
|
const pendingAssets = Array.from(assets ?? []);
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
478
|
+
pendingAssets.push({
|
|
479
|
+
input: projectRoot,
|
|
480
|
+
glob: "*.md",
|
|
481
|
+
output: "."
|
|
482
|
+
});
|
|
483
|
+
pendingAssets.push({
|
|
484
|
+
input: config.workspaceRoot,
|
|
485
|
+
glob: "LICENSE",
|
|
486
|
+
output: "."
|
|
487
|
+
});
|
|
527
488
|
if (generatePackageJson3 === false) {
|
|
528
489
|
pendingAssets.push({
|
|
529
|
-
input:
|
|
490
|
+
input: projectRoot,
|
|
530
491
|
glob: "package.json",
|
|
531
492
|
output: "."
|
|
532
493
|
});
|
|
533
494
|
}
|
|
534
|
-
if (!pendingAssets?.some((asset) => asset?.glob === "LICENSE")) {
|
|
535
|
-
pendingAssets.push({
|
|
536
|
-
input: "",
|
|
537
|
-
glob: "LICENSE",
|
|
538
|
-
output: "."
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
495
|
if (includeSrc === true) {
|
|
542
496
|
pendingAssets.push({
|
|
543
497
|
input: sourceRoot,
|
|
@@ -785,7 +739,7 @@ import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-r
|
|
|
785
739
|
|
|
786
740
|
// ../esbuild/src/build.ts
|
|
787
741
|
import { watch as createWatcher } from "chokidar";
|
|
788
|
-
import
|
|
742
|
+
import defu2 from "defu";
|
|
789
743
|
import { debounce, flatten } from "es-toolkit";
|
|
790
744
|
import { map } from "es-toolkit/compat";
|
|
791
745
|
import * as esbuild2 from "esbuild";
|
|
@@ -1456,7 +1410,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
1456
1410
|
if (!projectConfigurations?.projects?.[projectName]) {
|
|
1457
1411
|
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.");
|
|
1458
1412
|
}
|
|
1459
|
-
const options =
|
|
1413
|
+
const options = defu2(userOptions, DEFAULT_BUILD_OPTIONS);
|
|
1460
1414
|
options.name ??= `${projectName}-${options.format}`;
|
|
1461
1415
|
options.target ??= DEFAULT_TARGET;
|
|
1462
1416
|
const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
@@ -1817,7 +1771,7 @@ var executor_default7 = withRunExecutor("Size-Limit Performance Test Executor",
|
|
|
1817
1771
|
// ../tsdown/src/build.ts
|
|
1818
1772
|
import { hfs as hfs5 } from "@humanfs/node";
|
|
1819
1773
|
import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3, writeJsonFile as writeJsonFile2 } from "@nx/devkit";
|
|
1820
|
-
import
|
|
1774
|
+
import defu3 from "defu";
|
|
1821
1775
|
import { findWorkspaceRoot as findWorkspaceRoot3 } from "nx/src/utils/find-workspace-root";
|
|
1822
1776
|
import { build as tsdown } from "tsdown";
|
|
1823
1777
|
|
|
@@ -1876,7 +1830,7 @@ var resolveOptions2 = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
1876
1830
|
if (!projectConfigurations?.projects?.[projectName]) {
|
|
1877
1831
|
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.");
|
|
1878
1832
|
}
|
|
1879
|
-
const options =
|
|
1833
|
+
const options = defu3(userOptions, DEFAULT_BUILD_OPTIONS2);
|
|
1880
1834
|
options.name ??= `${projectName}-${options.format}`;
|
|
1881
1835
|
options.target ??= DEFAULT_TARGET;
|
|
1882
1836
|
const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
|
|
@@ -2120,7 +2074,7 @@ var executor_default9 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
2120
2074
|
});
|
|
2121
2075
|
|
|
2122
2076
|
// ../workspace-tools/src/executors/unbuild/executor.ts
|
|
2123
|
-
import { defu as
|
|
2077
|
+
import { defu as defu4 } from "defu";
|
|
2124
2078
|
import { createJiti } from "jiti";
|
|
2125
2079
|
async function unbuildExecutorFn(options, context2, config) {
|
|
2126
2080
|
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
@@ -2132,7 +2086,7 @@ async function unbuildExecutorFn(options, context2, config) {
|
|
|
2132
2086
|
interopDefault: true
|
|
2133
2087
|
});
|
|
2134
2088
|
const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
|
|
2135
|
-
await stormUnbuild.build(
|
|
2089
|
+
await stormUnbuild.build(defu4({
|
|
2136
2090
|
...options,
|
|
2137
2091
|
projectRoot: context2.projectsConfigurations.projects?.[context2.projectName].root,
|
|
2138
2092
|
projectName: context2.projectName,
|
|
@@ -2175,6 +2129,9 @@ var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExec
|
|
|
2175
2129
|
skipReadingConfig: false,
|
|
2176
2130
|
hooks: {
|
|
2177
2131
|
applyDefaultOptions: /* @__PURE__ */ __name(async (options, config) => {
|
|
2132
|
+
options.debug ??= false;
|
|
2133
|
+
options.treeShaking ??= true;
|
|
2134
|
+
options.platform ??= "neutral";
|
|
2178
2135
|
options.entry ??= [
|
|
2179
2136
|
"{sourceRoot}"
|
|
2180
2137
|
];
|
|
@@ -3155,32 +3112,28 @@ var typescript_build_executor_untyped_default = defineUntypedSchema4({
|
|
|
3155
3112
|
title: "Bundle",
|
|
3156
3113
|
type: "boolean",
|
|
3157
3114
|
description: "Bundle the output"
|
|
3158
|
-
}
|
|
3159
|
-
$default: false
|
|
3115
|
+
}
|
|
3160
3116
|
},
|
|
3161
3117
|
minify: {
|
|
3162
3118
|
$schema: {
|
|
3163
3119
|
title: "Minify",
|
|
3164
3120
|
type: "boolean",
|
|
3165
3121
|
description: "Minify the output"
|
|
3166
|
-
}
|
|
3167
|
-
$default: false
|
|
3122
|
+
}
|
|
3168
3123
|
},
|
|
3169
3124
|
debug: {
|
|
3170
3125
|
$schema: {
|
|
3171
3126
|
title: "Debug",
|
|
3172
3127
|
type: "boolean",
|
|
3173
3128
|
description: "Debug the output"
|
|
3174
|
-
}
|
|
3175
|
-
$default: false
|
|
3129
|
+
}
|
|
3176
3130
|
},
|
|
3177
3131
|
sourcemap: {
|
|
3178
3132
|
$schema: {
|
|
3179
3133
|
title: "Sourcemap",
|
|
3180
3134
|
type: "boolean",
|
|
3181
3135
|
description: "Generate a sourcemap"
|
|
3182
|
-
}
|
|
3183
|
-
$default: false
|
|
3136
|
+
}
|
|
3184
3137
|
},
|
|
3185
3138
|
silent: {
|
|
3186
3139
|
$schema: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkW6YNIJQDjs = require('./chunk-W6YNIJQD.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkJ5SB6L2Ljs = require('./chunk-J5SB6L2L.js');
|
|
@@ -11,7 +11,7 @@ var _crypto = require('crypto');
|
|
|
11
11
|
var r2UploadFile = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (client, bucketName, projectPath, fileName, version, fileContent, contentType = "text/plain", isDryRun = false) => {
|
|
12
12
|
const checksum = _crypto.createHash.call(void 0, "sha256").update(fileContent).digest("base64");
|
|
13
13
|
const fileKey = `${projectPath}/${fileName.startsWith("/") ? fileName.substring(1) : fileName}`;
|
|
14
|
-
|
|
14
|
+
_chunkW6YNIJQDjs.writeDebug.call(void 0, `Uploading file: ${fileKey}`);
|
|
15
15
|
if (!isDryRun) {
|
|
16
16
|
await client.putObject({
|
|
17
17
|
Bucket: bucketName,
|
|
@@ -24,7 +24,7 @@ var r2UploadFile = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (c
|
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
} else {
|
|
27
|
-
|
|
27
|
+
_chunkW6YNIJQDjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
|
|
28
28
|
}
|
|
29
29
|
}, "r2UploadFile");
|
|
30
30
|
var getInternalDependencies = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (projectName, graph) => {
|
|
@@ -8,7 +8,7 @@ var require_package = __commonJS({
|
|
|
8
8
|
"package.json"(exports, module) {
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "@storm-software/cloudflare-tools",
|
|
11
|
-
version: "0.
|
|
11
|
+
version: "0.54.0",
|
|
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",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HSYTAPR3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
loadStormConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6H63LE3D.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot,
|
|
9
9
|
getStopwatch,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
writeFatal,
|
|
13
13
|
writeInfo,
|
|
14
14
|
writeTrace
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3D3WO4IH.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__dirname,
|
|
18
18
|
__name
|