@storm-software/cloudflare-tools 0.71.40 → 0.71.41
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/dist/{chunk-52VIMULT.js → chunk-APKXT2II.js} +34 -34
- package/dist/{chunk-R5QM35JD.mjs → chunk-B3DTG4AE.mjs} +3 -3
- package/dist/{chunk-JBDAUHY2.mjs → chunk-CET7FSBB.mjs} +1 -1
- package/dist/{chunk-RIOIN7EX.mjs → chunk-D2C4YN2P.mjs} +1 -1
- package/dist/{chunk-XA3YT5XO.js → chunk-ENJ4VPTU.js} +12 -12
- package/dist/{chunk-3AVA7WBV.mjs → chunk-F62R4VXI.mjs} +2 -2
- package/dist/{chunk-24LHZDRM.js → chunk-J756GE67.js} +1 -1
- package/dist/{chunk-EHQFNZDX.mjs → chunk-JC5YYXOF.mjs} +3 -3
- package/dist/{chunk-R7ZJ4P5G.mjs → chunk-NFHONUD4.mjs} +3 -3
- package/dist/{chunk-7UJIMNJJ.js → chunk-OVTCUMRN.js} +18 -18
- package/dist/{chunk-LATQZLNM.js → chunk-QJJBMXLH.js} +3 -3
- package/dist/{chunk-T2W5AJQE.js → chunk-UIJO3L53.js} +165 -165
- package/dist/{chunk-GWK4ATXM.js → chunk-WRQN6TUO.js} +5 -5
- package/dist/{chunk-YG2UFXE2.mjs → chunk-ZNZEZZQ3.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.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 +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.71.40](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.40) (01/14/2026)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **workspace-tools** to **v1.294.25**
|
|
10
|
+
- Updated **config-tools** to **v1.188.79**
|
|
11
|
+
|
|
5
12
|
## [0.71.39](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.39) (01/14/2026)
|
|
6
13
|
|
|
7
14
|
### Updated Dependencies
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkJ756GE67js = require('./chunk-J756GE67.js');
|
|
11
11
|
|
|
12
12
|
// ../config-tools/src/utilities/find-up.ts
|
|
13
13
|
var _fs = require('fs');
|
|
@@ -76,11 +76,11 @@ var rootDirectories = [
|
|
|
76
76
|
];
|
|
77
77
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
78
78
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
79
|
-
return
|
|
79
|
+
return _chunkJ756GE67js.correctPaths.call(void 0,
|
|
80
80
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
81
81
|
);
|
|
82
82
|
}
|
|
83
|
-
return
|
|
83
|
+
return _chunkJ756GE67js.correctPaths.call(void 0,
|
|
84
84
|
findFolderUp(
|
|
85
85
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
86
86
|
rootFiles,
|
|
@@ -724,7 +724,7 @@ async function getPackageJsonConfig(root) {
|
|
|
724
724
|
const workspaceRoot = findWorkspaceRoot(root);
|
|
725
725
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
|
|
726
726
|
const file = await _promises.readFile.call(void 0,
|
|
727
|
-
|
|
727
|
+
_chunkJ756GE67js.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
728
728
|
"utf8"
|
|
729
729
|
);
|
|
730
730
|
if (file) {
|
|
@@ -808,7 +808,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
808
808
|
envName: _optionalChain([fileName, 'optionalAccess', _5 => _5.toUpperCase, 'call', _6 => _6()]),
|
|
809
809
|
jitiOptions: {
|
|
810
810
|
debug: false,
|
|
811
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
811
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkJ756GE67js.joinPaths.call(void 0,
|
|
812
812
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
813
813
|
"jiti"
|
|
814
814
|
)
|
|
@@ -822,7 +822,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
822
822
|
envName: _optionalChain([fileName, 'optionalAccess', _7 => _7.toUpperCase, 'call', _8 => _8()]),
|
|
823
823
|
jitiOptions: {
|
|
824
824
|
debug: false,
|
|
825
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
825
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkJ756GE67js.joinPaths.call(void 0,
|
|
826
826
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
827
827
|
"jiti"
|
|
828
828
|
)
|
|
@@ -839,7 +839,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
839
839
|
let config = result.config;
|
|
840
840
|
const configFile = result.configFile;
|
|
841
841
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
842
|
-
|
|
842
|
+
_chunkJ756GE67js.writeTrace.call(void 0,
|
|
843
843
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
844
844
|
{
|
|
845
845
|
logLevel: "all"
|
|
@@ -855,7 +855,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
855
855
|
for (const result2 of results) {
|
|
856
856
|
if (_optionalChain([result2, 'optionalAccess', _9 => _9.config]) && _optionalChain([result2, 'optionalAccess', _10 => _10.configFile]) && Object.keys(result2.config).length > 0) {
|
|
857
857
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
858
|
-
|
|
858
|
+
_chunkJ756GE67js.writeTrace.call(void 0,
|
|
859
859
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
860
860
|
{
|
|
861
861
|
logLevel: "all"
|
|
@@ -935,15 +935,15 @@ var getConfigEnv = () => {
|
|
|
935
935
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
936
936
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
937
937
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
938
|
-
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ?
|
|
939
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
938
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkJ756GE67js.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
939
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkJ756GE67js.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
940
940
|
directories: {
|
|
941
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
942
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
943
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
944
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
945
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
946
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
941
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkJ756GE67js.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkJ756GE67js.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
942
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkJ756GE67js.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkJ756GE67js.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
943
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkJ756GE67js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkJ756GE67js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
944
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkJ756GE67js.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkJ756GE67js.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
945
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkJ756GE67js.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkJ756GE67js.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
946
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkJ756GE67js.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkJ756GE67js.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
947
947
|
},
|
|
948
948
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
949
949
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -967,7 +967,7 @@ var getConfigEnv = () => {
|
|
|
967
967
|
},
|
|
968
968
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
969
969
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
970
|
-
) ?
|
|
970
|
+
) ? _chunkJ756GE67js.getLogLevelLabel.call(void 0,
|
|
971
971
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
972
972
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
973
973
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
@@ -1235,42 +1235,42 @@ var setConfigEnv = (config) => {
|
|
|
1235
1235
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1236
1236
|
}
|
|
1237
1237
|
if (config.configFile) {
|
|
1238
|
-
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] =
|
|
1238
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkJ756GE67js.correctPaths.call(void 0,
|
|
1239
1239
|
config.configFile
|
|
1240
1240
|
);
|
|
1241
1241
|
}
|
|
1242
1242
|
if (config.workspaceRoot) {
|
|
1243
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1244
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1245
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1243
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkJ756GE67js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1244
|
+
process.env.NX_WORKSPACE_ROOT = _chunkJ756GE67js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1245
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkJ756GE67js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1246
1246
|
}
|
|
1247
1247
|
if (config.directories) {
|
|
1248
1248
|
if (!config.skipCache && config.directories.cache) {
|
|
1249
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1249
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkJ756GE67js.correctPaths.call(void 0,
|
|
1250
1250
|
config.directories.cache
|
|
1251
1251
|
);
|
|
1252
1252
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1253
1253
|
}
|
|
1254
1254
|
if (config.directories.data) {
|
|
1255
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1255
|
+
process.env[`${prefix}DATA_DIR`] = _chunkJ756GE67js.correctPaths.call(void 0, config.directories.data);
|
|
1256
1256
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1257
1257
|
}
|
|
1258
1258
|
if (config.directories.config) {
|
|
1259
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1259
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkJ756GE67js.correctPaths.call(void 0,
|
|
1260
1260
|
config.directories.config
|
|
1261
1261
|
);
|
|
1262
1262
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1263
1263
|
}
|
|
1264
1264
|
if (config.directories.temp) {
|
|
1265
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1265
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkJ756GE67js.correctPaths.call(void 0, config.directories.temp);
|
|
1266
1266
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1267
1267
|
}
|
|
1268
1268
|
if (config.directories.log) {
|
|
1269
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1269
|
+
process.env[`${prefix}LOG_DIR`] = _chunkJ756GE67js.correctPaths.call(void 0, config.directories.log);
|
|
1270
1270
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1271
1271
|
}
|
|
1272
1272
|
if (config.directories.build) {
|
|
1273
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1273
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkJ756GE67js.correctPaths.call(void 0,
|
|
1274
1274
|
config.directories.build
|
|
1275
1275
|
);
|
|
1276
1276
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -1332,9 +1332,9 @@ var setConfigEnv = (config) => {
|
|
|
1332
1332
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1333
1333
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1334
1334
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1335
|
-
|
|
1335
|
+
_chunkJ756GE67js.getLogLevel.call(void 0, config.logLevel) >= _chunkJ756GE67js.LogLevel.DEBUG ? true : false
|
|
1336
1336
|
);
|
|
1337
|
-
process.env.RUST_BACKTRACE =
|
|
1337
|
+
process.env.RUST_BACKTRACE = _chunkJ756GE67js.getLogLevel.call(void 0, config.logLevel) >= _chunkJ756GE67js.LogLevel.DEBUG ? "full" : "none";
|
|
1338
1338
|
}
|
|
1339
1339
|
if (config.skipConfigLogging !== void 0) {
|
|
1340
1340
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -1476,7 +1476,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1476
1476
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1477
1477
|
if (!configFile) {
|
|
1478
1478
|
if (!skipLogs) {
|
|
1479
|
-
|
|
1479
|
+
_chunkJ756GE67js.writeWarning.call(void 0,
|
|
1480
1480
|
"No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
|
|
1481
1481
|
{ logLevel: "all" }
|
|
1482
1482
|
);
|
|
@@ -1492,7 +1492,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1492
1492
|
defaultConfig
|
|
1493
1493
|
);
|
|
1494
1494
|
if (!configInput.variant) {
|
|
1495
|
-
configInput.variant = _fs.existsSync.call(void 0,
|
|
1495
|
+
configInput.variant = _fs.existsSync.call(void 0, _chunkJ756GE67js.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkJ756GE67js.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkJ756GE67js.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkJ756GE67js.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
1496
1496
|
}
|
|
1497
1497
|
try {
|
|
1498
1498
|
result = applyDefaultConfig(
|
|
@@ -1503,7 +1503,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1503
1503
|
throw new Error(
|
|
1504
1504
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _35 => _35.message]) ? `: ${error.message}` : ""}
|
|
1505
1505
|
|
|
1506
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1506
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkJ756GE67js.formatLogMessage.call(void 0,
|
|
1507
1507
|
configInput
|
|
1508
1508
|
)}`,
|
|
1509
1509
|
{
|
|
@@ -1548,9 +1548,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1548
1548
|
);
|
|
1549
1549
|
setConfigEnv(config);
|
|
1550
1550
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1551
|
-
|
|
1551
|
+
_chunkJ756GE67js.writeTrace.call(void 0,
|
|
1552
1552
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1553
|
-
${
|
|
1553
|
+
${_chunkJ756GE67js.formatLogMessage.call(void 0, config)}`,
|
|
1554
1554
|
config
|
|
1555
1555
|
);
|
|
1556
1556
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NFHONUD4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
findWorkspaceRoot,
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZNZEZZQ3.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getStopwatch,
|
|
10
10
|
writeDebug,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
writeFatal,
|
|
13
13
|
writeInfo,
|
|
14
14
|
writeTrace
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CET7FSBB.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__dirname
|
|
18
18
|
} from "./chunk-N5UXWPB6.mjs";
|
|
@@ -111,7 +111,7 @@ function isUnicodeSupported() {
|
|
|
111
111
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
112
112
|
var CONSOLE_ICONS = {
|
|
113
113
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
114
|
-
[LogLevelLabel.FATAL]: useIcon("\
|
|
114
|
+
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
115
115
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
116
116
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
117
117
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQJJBMXLHjs = require('./chunk-QJJBMXLH.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAPKXT2IIjs = require('./chunk-APKXT2II.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ var _chunk52VIMULTjs = require('./chunk-52VIMULT.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkJ756GE67js = require('./chunk-J756GE67.js');
|
|
16
16
|
|
|
17
17
|
// src/generators/worker/generator.ts
|
|
18
18
|
|
|
@@ -45,20 +45,20 @@ var vitestScript = `"test": "vitest run"`;
|
|
|
45
45
|
|
|
46
46
|
// src/generators/worker/generator.ts
|
|
47
47
|
async function applicationGenerator(tree, schema) {
|
|
48
|
-
const stopwatch =
|
|
48
|
+
const stopwatch = _chunkJ756GE67js.getStopwatch.call(void 0, "Storm Worker generator");
|
|
49
49
|
let config;
|
|
50
50
|
try {
|
|
51
|
-
|
|
51
|
+
_chunkJ756GE67js.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
|
|
52
52
|
|
|
53
53
|
`, config);
|
|
54
|
-
const workspaceRoot =
|
|
55
|
-
|
|
54
|
+
const workspaceRoot = _chunkAPKXT2IIjs.findWorkspaceRoot.call(void 0, );
|
|
55
|
+
_chunkJ756GE67js.writeDebug.call(void 0,
|
|
56
56
|
`Loading the Storm Config from environment variables and storm.json file...
|
|
57
57
|
- workspaceRoot: ${workspaceRoot}`,
|
|
58
58
|
config
|
|
59
59
|
);
|
|
60
|
-
config = await
|
|
61
|
-
|
|
60
|
+
config = await _chunkAPKXT2IIjs.getConfig.call(void 0, workspaceRoot);
|
|
61
|
+
_chunkJ756GE67js.writeTrace.call(void 0,
|
|
62
62
|
`Loaded Storm config into env:
|
|
63
63
|
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`,
|
|
64
64
|
config
|
|
@@ -66,7 +66,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
66
66
|
const options = await normalizeOptions(tree, schema, config);
|
|
67
67
|
const tasks = [];
|
|
68
68
|
tasks.push(
|
|
69
|
-
await
|
|
69
|
+
await _chunkQJJBMXLHjs.generator_default.call(void 0, tree, {
|
|
70
70
|
...options,
|
|
71
71
|
skipFormat: true
|
|
72
72
|
})
|
|
@@ -134,11 +134,11 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
134
134
|
return _devkit.runTasksInSerial.call(void 0, ...tasks);
|
|
135
135
|
} catch (error) {
|
|
136
136
|
return () => {
|
|
137
|
-
|
|
137
|
+
_chunkJ756GE67js.writeFatal.call(void 0,
|
|
138
138
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
139
139
|
config
|
|
140
140
|
);
|
|
141
|
-
|
|
141
|
+
_chunkJ756GE67js.writeError.call(void 0,
|
|
142
142
|
`An exception was thrown in the generator's process
|
|
143
143
|
- Details: ${error.message}
|
|
144
144
|
- Stacktrace: ${error.stack}`,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getWorkspaceConfig,
|
|
9
9
|
schemaRegistry,
|
|
10
10
|
workspaceConfigSchema
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZNZEZZQ3.mjs";
|
|
12
12
|
import {
|
|
13
13
|
correctPaths,
|
|
14
14
|
formatLogMessage,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
writeSuccess,
|
|
24
24
|
writeTrace,
|
|
25
25
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CET7FSBB.mjs";
|
|
27
27
|
import {
|
|
28
28
|
__dirname
|
|
29
29
|
} from "./chunk-N5UXWPB6.mjs";
|
|
@@ -111,7 +111,7 @@ function isUnicodeSupported() {
|
|
|
111
111
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
112
112
|
var CONSOLE_ICONS = {
|
|
113
113
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
114
|
-
[LogLevelLabel.FATAL]: useIcon("\
|
|
114
|
+
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
115
115
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
116
116
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
117
117
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getEncoding,
|
|
6
6
|
getInternalDependencies,
|
|
7
7
|
uploadFile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-D2C4YN2P.mjs";
|
|
9
9
|
import {
|
|
10
10
|
createCliOptions,
|
|
11
11
|
getPackageInfo
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
findWorkspaceRoot,
|
|
15
15
|
getConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZNZEZZQ3.mjs";
|
|
17
17
|
import {
|
|
18
18
|
correctPaths,
|
|
19
19
|
joinPaths,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
writeSuccess,
|
|
22
22
|
writeTrace,
|
|
23
23
|
writeWarning
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CET7FSBB.mjs";
|
|
25
25
|
|
|
26
26
|
// src/executors/r2-upload-publish/executor.ts
|
|
27
27
|
import {
|
|
@@ -7,7 +7,7 @@ var require_package = __commonJS({
|
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.71.
|
|
10
|
+
version: "0.71.40",
|
|
11
11
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
12
12
|
repository: {
|
|
13
13
|
type: "github",
|
|
@@ -137,8 +137,8 @@ var require_package = __commonJS({
|
|
|
137
137
|
"@nx/node": "catalog:",
|
|
138
138
|
"@nx/web": "catalog:",
|
|
139
139
|
"@storm-software/config": "1.135.0",
|
|
140
|
-
"@storm-software/config-tools": "1.188.
|
|
141
|
-
"@storm-software/workspace-tools": "1.294.
|
|
140
|
+
"@storm-software/config-tools": "1.188.79",
|
|
141
|
+
"@storm-software/workspace-tools": "1.294.25",
|
|
142
142
|
nx: "catalog:",
|
|
143
143
|
tsup: "catalog:",
|
|
144
144
|
wrangler: ">=3.58.0"
|
|
@@ -5,7 +5,7 @@ var _chunkKUGEZPUOjs = require('./chunk-KUGEZPUO.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkWRQN6TUOjs = require('./chunk-WRQN6TUO.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ var _chunkN7FW365Qjs = require('./chunk-N7FW365Q.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkAPKXT2IIjs = require('./chunk-APKXT2II.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ var _chunk52VIMULTjs = require('./chunk-52VIMULT.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkJ756GE67js = require('./chunk-J756GE67.js');
|
|
25
25
|
|
|
26
26
|
// src/executors/r2-upload-publish/executor.ts
|
|
27
27
|
|
|
@@ -53,8 +53,8 @@ async function runExecutor(options, context) {
|
|
|
53
53
|
throw new Error("The executor requires projectsConfigurations.");
|
|
54
54
|
}
|
|
55
55
|
try {
|
|
56
|
-
const workspaceRoot =
|
|
57
|
-
const config = await
|
|
56
|
+
const workspaceRoot = _chunkAPKXT2IIjs.findWorkspaceRoot.call(void 0, );
|
|
57
|
+
const config = await _chunkAPKXT2IIjs.getConfig.call(void 0, workspaceRoot);
|
|
58
58
|
const projectName = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.name]), () => ( context.projectName));
|
|
59
59
|
const projectDetails = _chunkN7FW365Qjs.getPackageInfo.call(void 0,
|
|
60
60
|
context.projectsConfigurations.projects[context.projectName]
|
|
@@ -92,7 +92,7 @@ async function runExecutor(options, context) {
|
|
|
92
92
|
"The executor failed because the project graph is not available. Please run the build command again."
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
_chunkJ756GE67js.writeDebug.call(void 0,
|
|
96
96
|
`Publishing ${context.projectName} to the ${bucketId} R2 Bucket (at ${registry})`
|
|
97
97
|
);
|
|
98
98
|
const client = new (0, _clients3.S3Client)({
|
|
@@ -108,13 +108,13 @@ async function runExecutor(options, context) {
|
|
|
108
108
|
});
|
|
109
109
|
const version = _optionalChain([projectDetails, 'optionalAccess', _13 => _13.content, 'optionalAccess', _14 => _14.version]);
|
|
110
110
|
if (version) {
|
|
111
|
-
|
|
111
|
+
_chunkJ756GE67js.writeDebug.call(void 0, `Starting upload version ${version}`);
|
|
112
112
|
}
|
|
113
113
|
const basePath = options.path;
|
|
114
|
-
const files = await _glob.glob.call(void 0,
|
|
114
|
+
const files = await _glob.glob.call(void 0, _chunkJ756GE67js.joinPaths.call(void 0, basePath, "**/*"), {
|
|
115
115
|
ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
|
|
116
116
|
});
|
|
117
|
-
const internalDependencies = await
|
|
117
|
+
const internalDependencies = await _chunkWRQN6TUOjs.getInternalDependencies.call(void 0,
|
|
118
118
|
context.projectName,
|
|
119
119
|
projectGraph
|
|
120
120
|
);
|
|
@@ -128,7 +128,7 @@ async function runExecutor(options, context) {
|
|
|
128
128
|
}, _nullishCoalesce(_optionalChain([projectDetails, 'optionalAccess', _15 => _15.content, 'access', _16 => _16.dependencies]), () => ( {})));
|
|
129
129
|
const release = _nullishCoalesce(options.tag, () => ( _child_process.execSync.call(void 0, "npm config get tag").toString().trim()));
|
|
130
130
|
if (options.clean === true) {
|
|
131
|
-
|
|
131
|
+
_chunkJ756GE67js.writeDebug.call(void 0, `Clearing out existing items in ${bucketPath}`);
|
|
132
132
|
if (!isDryRun) {
|
|
133
133
|
const response = await client.send(
|
|
134
134
|
new (0, _clients3.ListObjectsCommand)({
|
|
@@ -137,7 +137,7 @@ async function runExecutor(options, context) {
|
|
|
137
137
|
})
|
|
138
138
|
);
|
|
139
139
|
if (_optionalChain([response, 'optionalAccess', _17 => _17.Contents]) && response.Contents.length > 0) {
|
|
140
|
-
|
|
140
|
+
_chunkJ756GE67js.writeTrace.call(void 0,
|
|
141
141
|
`Deleting the following existing items from the R2 bucket path ${bucketPath}: ${response.Contents.map((item) => item.Key).join(", ")}`
|
|
142
142
|
);
|
|
143
143
|
await client.send(
|
|
@@ -152,12 +152,12 @@ async function runExecutor(options, context) {
|
|
|
152
152
|
})
|
|
153
153
|
);
|
|
154
154
|
} else {
|
|
155
|
-
|
|
155
|
+
_chunkJ756GE67js.writeDebug.call(void 0,
|
|
156
156
|
`No existing items to delete in the R2 bucket path ${bucketPath}`
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
159
|
} else {
|
|
160
|
-
|
|
160
|
+
_chunkJ756GE67js.writeWarning.call(void 0, "[Dry run]: Skipping R2 bucket clean.");
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
if (options.writeMetaJson === true) {
|
|
@@ -178,7 +178,7 @@ async function runExecutor(options, context) {
|
|
|
178
178
|
if (_optionalChain([projectDetails, 'optionalAccess', _22 => _22.type]) === "package.json") {
|
|
179
179
|
meta.devDependencies = _optionalChain([projectDetails, 'optionalAccess', _23 => _23.content, 'optionalAccess', _24 => _24.devDependencies]);
|
|
180
180
|
}
|
|
181
|
-
await
|
|
181
|
+
await _chunkWRQN6TUOjs.uploadFile.call(void 0,
|
|
182
182
|
client,
|
|
183
183
|
bucketId,
|
|
184
184
|
bucketPath,
|
|
@@ -194,22 +194,22 @@ async function runExecutor(options, context) {
|
|
|
194
194
|
if (_optionalChain([_fs.statSync.call(void 0, file, {
|
|
195
195
|
throwIfNoEntry: false
|
|
196
196
|
}), 'optionalAccess', _25 => _25.isFile, 'call', _26 => _26()])) {
|
|
197
|
-
const name =
|
|
197
|
+
const name = _chunkJ756GE67js.correctPaths.call(void 0, file).replace(_chunkJ756GE67js.correctPaths.call(void 0, basePath), "");
|
|
198
198
|
const type = _mimetypes2.default.lookup(name) || "application/octet-stream";
|
|
199
|
-
await
|
|
199
|
+
await _chunkWRQN6TUOjs.uploadFile.call(void 0,
|
|
200
200
|
client,
|
|
201
201
|
bucketId,
|
|
202
202
|
bucketPath,
|
|
203
203
|
name,
|
|
204
204
|
version,
|
|
205
|
-
await _promises.readFile.call(void 0, file,
|
|
205
|
+
await _promises.readFile.call(void 0, file, _chunkWRQN6TUOjs.getEncoding.call(void 0, type)),
|
|
206
206
|
type,
|
|
207
207
|
isDryRun
|
|
208
208
|
);
|
|
209
209
|
}
|
|
210
210
|
})
|
|
211
211
|
);
|
|
212
|
-
|
|
212
|
+
_chunkJ756GE67js.writeSuccess.call(void 0,
|
|
213
213
|
`Successfully uploaded the ${projectName} project to the Cloudflare R2 bucket.`,
|
|
214
214
|
config
|
|
215
215
|
);
|
|
@@ -7,7 +7,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.71.
|
|
10
|
+
version: "0.71.40",
|
|
11
11
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
12
12
|
repository: {
|
|
13
13
|
type: "github",
|
|
@@ -137,8 +137,8 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
137
137
|
"@nx/node": "catalog:",
|
|
138
138
|
"@nx/web": "catalog:",
|
|
139
139
|
"@storm-software/config": "1.135.0",
|
|
140
|
-
"@storm-software/config-tools": "1.188.
|
|
141
|
-
"@storm-software/workspace-tools": "1.294.
|
|
140
|
+
"@storm-software/config-tools": "1.188.79",
|
|
141
|
+
"@storm-software/workspace-tools": "1.294.25",
|
|
142
142
|
nx: "catalog:",
|
|
143
143
|
tsup: "catalog:",
|
|
144
144
|
wrangler: ">=3.58.0"
|