@storm-software/cloudflare-tools 0.65.6 → 0.65.8
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 +17 -0
- package/README.md +1 -1
- package/dist/{chunk-NYUGUHRY.mjs → chunk-FXMVUKUI.mjs} +1 -1
- package/dist/{chunk-537PH6YK.mjs → chunk-HHVUEOQK.mjs} +6 -4
- package/dist/{chunk-6CP6ARGM.js → chunk-HUZVQCWL.js} +6 -4
- package/dist/{chunk-QBISXDXF.mjs → chunk-I66YQUR5.mjs} +1 -1
- package/dist/{chunk-EHEXWPEP.mjs → chunk-KMLK2F6Z.mjs} +8 -121
- package/dist/{chunk-U3IGSCX3.js → chunk-LRGILLMQ.js} +57 -172
- package/dist/{chunk-G6PGMOAM.mjs → chunk-NFLQWRRT.mjs} +3 -3
- package/dist/{chunk-N3UQB43Z.js → chunk-PUBL4ZFL.js} +3 -3
- package/dist/{chunk-QAVQTJUQ.js → chunk-QEA3Q7LA.js} +5 -5
- package/dist/{chunk-B44VJUAX.js → chunk-S3CA5OUV.js} +2 -2
- package/dist/{chunk-SN6UJZ2G.mjs → chunk-UIS2643Z.mjs} +3 -3
- package/dist/{chunk-N6YTSDTM.mjs → chunk-ZFX6WEQ7.mjs} +1 -1
- package/dist/executors.js +3 -3
- package/dist/executors.mjs +5 -5
- package/dist/generators.js +4 -4
- package/dist/generators.mjs +4 -4
- package/dist/index.js +6 -6
- package/dist/index.mjs +7 -7
- package/dist/src/executors/cloudflare-publish/executor.js +2 -2
- package/dist/src/executors/cloudflare-publish/executor.mjs +4 -4
- package/dist/src/executors/r2-upload-publish/executor.js +3 -3
- package/dist/src/executors/r2-upload-publish/executor.mjs +3 -3
- package/dist/src/executors/serve/executor.js +3 -3
- 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 +2 -2
- package/dist/src/generators/worker/generator.js +4 -4
- package/dist/src/generators/worker/generator.mjs +4 -4
- package/dist/src/utils/index.mjs +1 -1
- package/dist/src/utils/r2-bucket-helpers.mjs +1 -1
- package/dist/tsup.config.mjs +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.65.7](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.65.7) (2025-08-16)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **config-tools:** Update the .env names to `STORM_WORKSPACE_CONFIG` and
|
|
10
|
+
`STORM_WORKSPACE_CONFIG_FILE`
|
|
11
|
+
([c44a3df36](https://github.com/storm-software/storm-ops/commit/c44a3df36))
|
|
12
|
+
|
|
13
|
+
## [0.65.6](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.65.6) (2025-08-11)
|
|
14
|
+
|
|
15
|
+
### Miscellaneous
|
|
16
|
+
|
|
17
|
+
- **monorepo:** Update to TypeScript v5.9.2
|
|
18
|
+
([cf34d601f](https://github.com/storm-software/storm-ops/commit/cf34d601f))
|
|
19
|
+
- **monorepo:** Regenerate README markdown files
|
|
20
|
+
([5b9ffe718](https://github.com/storm-software/storm-ops/commit/5b9ffe718))
|
|
21
|
+
|
|
5
22
|
## [0.65.5](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.65.5) (2025-08-09)
|
|
6
23
|
|
|
7
24
|
### 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 -->
|
|
@@ -1042,7 +1042,7 @@ var getConfigEnv = () => {
|
|
|
1042
1042
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1043
1043
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1044
1044
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1045
|
-
configFile: process.env[`${prefix}
|
|
1045
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? correctPaths(process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1046
1046
|
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1047
1047
|
directories: {
|
|
1048
1048
|
cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
@@ -1105,7 +1105,7 @@ var getConfigEnv = () => {
|
|
|
1105
1105
|
config.licensing = `${config.homepage}/docs`;
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
1108
|
-
const serializedConfig = process.env[`${prefix}
|
|
1108
|
+
const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
|
|
1109
1109
|
if (serializedConfig) {
|
|
1110
1110
|
const parsed = JSON.parse(serializedConfig);
|
|
1111
1111
|
config = {
|
|
@@ -1337,7 +1337,9 @@ var setConfigEnv = (config) => {
|
|
|
1337
1337
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1338
1338
|
}
|
|
1339
1339
|
if (config.configFile) {
|
|
1340
|
-
process.env[`${prefix}
|
|
1340
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = correctPaths(
|
|
1341
|
+
config.configFile
|
|
1342
|
+
);
|
|
1341
1343
|
}
|
|
1342
1344
|
if (config.workspaceRoot) {
|
|
1343
1345
|
process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config.workspaceRoot);
|
|
@@ -1441,7 +1443,7 @@ var setConfigEnv = (config) => {
|
|
|
1441
1443
|
config.skipConfigLogging
|
|
1442
1444
|
);
|
|
1443
1445
|
}
|
|
1444
|
-
process.env[`${prefix}
|
|
1446
|
+
process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config);
|
|
1445
1447
|
for (const key of Object.keys(config.extensions ?? {})) {
|
|
1446
1448
|
if (config.extensions[key] && Object.keys(config.extensions[key])) {
|
|
1447
1449
|
setExtensionEnv(key, config.extensions[key]);
|
|
@@ -1042,7 +1042,7 @@ var getConfigEnv = () => {
|
|
|
1042
1042
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1043
1043
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1044
1044
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1045
|
-
configFile: process.env[`${prefix}
|
|
1045
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? correctPaths(process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1046
1046
|
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1047
1047
|
directories: {
|
|
1048
1048
|
cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
@@ -1105,7 +1105,7 @@ var getConfigEnv = () => {
|
|
|
1105
1105
|
config.licensing = `${config.homepage}/docs`;
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
1108
|
-
const serializedConfig = process.env[`${prefix}
|
|
1108
|
+
const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
|
|
1109
1109
|
if (serializedConfig) {
|
|
1110
1110
|
const parsed = JSON.parse(serializedConfig);
|
|
1111
1111
|
config = {
|
|
@@ -1337,7 +1337,9 @@ var setConfigEnv = (config) => {
|
|
|
1337
1337
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1338
1338
|
}
|
|
1339
1339
|
if (config.configFile) {
|
|
1340
|
-
process.env[`${prefix}
|
|
1340
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = correctPaths(
|
|
1341
|
+
config.configFile
|
|
1342
|
+
);
|
|
1341
1343
|
}
|
|
1342
1344
|
if (config.workspaceRoot) {
|
|
1343
1345
|
process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config.workspaceRoot);
|
|
@@ -1441,7 +1443,7 @@ var setConfigEnv = (config) => {
|
|
|
1441
1443
|
config.skipConfigLogging
|
|
1442
1444
|
);
|
|
1443
1445
|
}
|
|
1444
|
-
process.env[`${prefix}
|
|
1446
|
+
process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config);
|
|
1445
1447
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
1446
1448
|
if (config.extensions[key] && Object.keys(config.extensions[key])) {
|
|
1447
1449
|
setExtensionEnv(key, config.extensions[key]);
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
joinPaths,
|
|
10
10
|
schemaRegistry,
|
|
11
11
|
workspaceConfigSchema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HHVUEOQK.mjs";
|
|
13
13
|
import {
|
|
14
14
|
formatLogMessage,
|
|
15
15
|
getStopwatch,
|
|
@@ -22,9 +22,8 @@ import {
|
|
|
22
22
|
writeWarning
|
|
23
23
|
} from "./chunk-V44DYGWX.mjs";
|
|
24
24
|
import {
|
|
25
|
-
__dirname
|
|
26
|
-
|
|
27
|
-
} from "./chunk-N6YTSDTM.mjs";
|
|
25
|
+
__dirname
|
|
26
|
+
} from "./chunk-ZFX6WEQ7.mjs";
|
|
28
27
|
|
|
29
28
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
30
29
|
var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
@@ -452,10 +451,6 @@ import { readFileSync } from "node:fs";
|
|
|
452
451
|
import https from "node:https";
|
|
453
452
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
454
453
|
|
|
455
|
-
// ../esbuild/src/build.ts
|
|
456
|
-
import * as esbuild from "esbuild";
|
|
457
|
-
import { globbySync } from "globby";
|
|
458
|
-
|
|
459
454
|
// ../build-tools/src/config.ts
|
|
460
455
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
461
456
|
*
|
|
@@ -1031,88 +1026,6 @@ async function generatePackageJson(context) {
|
|
|
1031
1026
|
return context;
|
|
1032
1027
|
}
|
|
1033
1028
|
|
|
1034
|
-
// ../esbuild/src/plugins/deps-check.ts
|
|
1035
|
-
import { builtinModules as builtinModules2 } from "node:module";
|
|
1036
|
-
import path2 from "node:path";
|
|
1037
|
-
var unusedIgnore = [
|
|
1038
|
-
// these are our dev dependencies
|
|
1039
|
-
/@types\/.*?/,
|
|
1040
|
-
/@typescript-eslint.*?/,
|
|
1041
|
-
/eslint.*?/,
|
|
1042
|
-
"esbuild",
|
|
1043
|
-
"husky",
|
|
1044
|
-
"is-ci",
|
|
1045
|
-
"lint-staged",
|
|
1046
|
-
"prettier",
|
|
1047
|
-
"typescript",
|
|
1048
|
-
"ts-node",
|
|
1049
|
-
"ts-jest",
|
|
1050
|
-
"@swc/core",
|
|
1051
|
-
"@swc/jest",
|
|
1052
|
-
"jest",
|
|
1053
|
-
// these are missing 3rd party deps
|
|
1054
|
-
"spdx-exceptions",
|
|
1055
|
-
"spdx-license-ids",
|
|
1056
|
-
// type-only, so it is not detected
|
|
1057
|
-
"ts-toolbelt",
|
|
1058
|
-
// these are indirectly used by build
|
|
1059
|
-
"buffer"
|
|
1060
|
-
];
|
|
1061
|
-
var missingIgnore = [".prisma", "@prisma/client", "ts-toolbelt"];
|
|
1062
|
-
var depsCheckPlugin = (bundle) => ({
|
|
1063
|
-
name: "storm:deps-check",
|
|
1064
|
-
setup(build3) {
|
|
1065
|
-
const pkgJsonPath = path2.join(process.cwd(), "package.json");
|
|
1066
|
-
const pkgContents = __require(pkgJsonPath);
|
|
1067
|
-
const regDependencies = Object.keys(pkgContents["dependencies"] ?? {});
|
|
1068
|
-
const devDependencies = Object.keys(pkgContents["devDependencies"] ?? {});
|
|
1069
|
-
const peerDependencies = Object.keys(pkgContents["peerDependencies"] ?? {});
|
|
1070
|
-
const dependencies = [
|
|
1071
|
-
...regDependencies,
|
|
1072
|
-
...bundle ? devDependencies : []
|
|
1073
|
-
];
|
|
1074
|
-
const collectedDependencies = /* @__PURE__ */ new Set();
|
|
1075
|
-
const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
|
|
1076
|
-
build3.onResolve({ filter: onlyPackages }, (args) => {
|
|
1077
|
-
if (args.importer.includes(process.cwd())) {
|
|
1078
|
-
if (args.path[0] === "@") {
|
|
1079
|
-
const [org, pkg] = args.path.split("/");
|
|
1080
|
-
collectedDependencies.add(`${org}/${pkg}`);
|
|
1081
|
-
} else {
|
|
1082
|
-
const [pkg] = args.path.split("/");
|
|
1083
|
-
collectedDependencies.add(pkg);
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
return { external: true };
|
|
1087
|
-
});
|
|
1088
|
-
build3.onEnd(() => {
|
|
1089
|
-
const unusedDependencies = [...dependencies].filter((dep) => {
|
|
1090
|
-
return !collectedDependencies.has(dep) || builtinModules2.includes(dep);
|
|
1091
|
-
});
|
|
1092
|
-
const missingDependencies = [...collectedDependencies].filter((dep) => {
|
|
1093
|
-
return !dependencies.includes(dep) && !builtinModules2.includes(dep);
|
|
1094
|
-
});
|
|
1095
|
-
const filteredUnusedDeps = unusedDependencies.filter((dep) => {
|
|
1096
|
-
return !unusedIgnore.some((pattern) => dep.match(pattern));
|
|
1097
|
-
});
|
|
1098
|
-
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
1099
|
-
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
1100
|
-
});
|
|
1101
|
-
writeWarning(
|
|
1102
|
-
`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
|
|
1103
|
-
);
|
|
1104
|
-
writeError(
|
|
1105
|
-
`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
|
|
1106
|
-
);
|
|
1107
|
-
if (filteredMissingDeps.length > 0) {
|
|
1108
|
-
throw new Error(`Missing dependencies detected - please install them:
|
|
1109
|
-
${JSON.stringify(filteredMissingDeps)}
|
|
1110
|
-
`);
|
|
1111
|
-
}
|
|
1112
|
-
});
|
|
1113
|
-
}
|
|
1114
|
-
});
|
|
1115
|
-
|
|
1116
1029
|
// ../esbuild/src/tsup.ts
|
|
1117
1030
|
import { build as tsup } from "tsup";
|
|
1118
1031
|
async function executeTsup(context) {
|
|
@@ -1153,32 +1066,6 @@ async function reportResults(context) {
|
|
|
1153
1066
|
);
|
|
1154
1067
|
}
|
|
1155
1068
|
}
|
|
1156
|
-
async function dependencyCheck(options) {
|
|
1157
|
-
if (process.env.DEV === "true") {
|
|
1158
|
-
return void 0;
|
|
1159
|
-
}
|
|
1160
|
-
if (process.env.CI && !process.env.BUILDKITE) {
|
|
1161
|
-
return void 0;
|
|
1162
|
-
}
|
|
1163
|
-
const buildPromise = esbuild.build({
|
|
1164
|
-
entryPoints: globbySync("**/*.{j,t}s", {
|
|
1165
|
-
// We don't check dependencies in ecosystem tests because tests are isolated from the build.
|
|
1166
|
-
ignore: ["./src/__tests__/**/*", "./tests/e2e/**/*", "./dist/**/*"],
|
|
1167
|
-
gitignore: true
|
|
1168
|
-
}),
|
|
1169
|
-
logLevel: "silent",
|
|
1170
|
-
// there will be errors
|
|
1171
|
-
bundle: true,
|
|
1172
|
-
// we bundle to get everything
|
|
1173
|
-
write: false,
|
|
1174
|
-
// no need to write for analysis
|
|
1175
|
-
outdir: "out",
|
|
1176
|
-
plugins: [depsCheckPlugin(options.bundle)]
|
|
1177
|
-
});
|
|
1178
|
-
await buildPromise.catch(() => {
|
|
1179
|
-
});
|
|
1180
|
-
return void 0;
|
|
1181
|
-
}
|
|
1182
1069
|
async function cleanOutputPath(context) {
|
|
1183
1070
|
if (context.clean !== false && context.outputPath) {
|
|
1184
1071
|
writeDebug(
|
|
@@ -1191,7 +1078,7 @@ async function cleanOutputPath(context) {
|
|
|
1191
1078
|
}
|
|
1192
1079
|
return context;
|
|
1193
1080
|
}
|
|
1194
|
-
async function
|
|
1081
|
+
async function build(options) {
|
|
1195
1082
|
writeDebug(` \u26A1 Executing Storm ESBuild pipeline`);
|
|
1196
1083
|
const stopwatch = getStopwatch("ESBuild pipeline");
|
|
1197
1084
|
try {
|
|
@@ -1202,7 +1089,7 @@ async function build2(options) {
|
|
|
1202
1089
|
const context = await resolveContext(options);
|
|
1203
1090
|
await cleanOutputPath(context);
|
|
1204
1091
|
await Promise.all([
|
|
1205
|
-
dependencyCheck(context.options),
|
|
1092
|
+
// dependencyCheck(context.options),
|
|
1206
1093
|
generatePackageJson(context),
|
|
1207
1094
|
copyBuildAssets(context),
|
|
1208
1095
|
executeTsup(context)
|
|
@@ -1227,7 +1114,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
1227
1114
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
1228
1115
|
);
|
|
1229
1116
|
}
|
|
1230
|
-
await
|
|
1117
|
+
await build({
|
|
1231
1118
|
...options,
|
|
1232
1119
|
projectRoot: context.projectsConfigurations.projects?.[context.projectName].root,
|
|
1233
1120
|
name: context.projectName,
|
|
@@ -2119,7 +2006,7 @@ import {
|
|
|
2119
2006
|
joinPathFragments as joinPathFragments4,
|
|
2120
2007
|
updateJson as updateJson2
|
|
2121
2008
|
} from "@nx/devkit";
|
|
2122
|
-
import * as
|
|
2009
|
+
import * as path2 from "node:path";
|
|
2123
2010
|
async function presetGeneratorFn(tree, options) {
|
|
2124
2011
|
const projectRoot = ".";
|
|
2125
2012
|
options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
|
|
@@ -2267,7 +2154,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
2267
2154
|
};
|
|
2268
2155
|
return json;
|
|
2269
2156
|
});
|
|
2270
|
-
generateFiles4(tree,
|
|
2157
|
+
generateFiles4(tree, path2.join(__dirname, "files"), projectRoot, {
|
|
2271
2158
|
...options,
|
|
2272
2159
|
pnpmVersion,
|
|
2273
2160
|
nodeVersion
|