@storm-software/cloudflare-tools 0.55.17 → 0.55.19
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-CH4HU3UC.mjs → chunk-2NMEF6LP.mjs} +16 -10
- package/dist/{chunk-ECM7NILS.js → chunk-3GBUWFDY.js} +1 -1
- package/dist/{chunk-TWSVFCGJ.js → chunk-AOQHEVKD.js} +158 -158
- package/dist/{chunk-OO2KFXL5.js → chunk-BRNE2OJC.js} +52 -46
- package/dist/{chunk-LFOKGJV3.mjs → chunk-DEAG3BRL.mjs} +1 -1
- package/dist/{chunk-7GVMKVE6.mjs → chunk-HXUMSWIK.mjs} +1 -1
- package/dist/{chunk-EY654AX3.mjs → chunk-MMV7N7QY.mjs} +26 -15
- package/dist/{chunk-23PVXPM6.js → chunk-MUNYIY4Y.js} +16 -16
- package/dist/{chunk-SI2PJVZV.mjs → chunk-NB2S3V4K.mjs} +3 -3
- package/dist/{chunk-UYVVVI5O.mjs → chunk-NU6KVH6M.mjs} +4 -4
- package/dist/{chunk-57JETFC4.js → chunk-T4IWTHDS.js} +3 -3
- package/dist/{chunk-YIVJLSPZ.js → chunk-WQCCOPHE.js} +12 -12
- package/dist/{chunk-FNE7DP2D.js → chunk-X6VJDRKI.js} +26 -15
- package/dist/{chunk-JYGVCUHY.mjs → chunk-ZPZYYSN3.mjs} +3 -3
- 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 +9 -9
- package/dist/index.mjs +8 -8
- 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 +3 -0
- package/dist/src/executors/serve/executor.d.ts +3 -0
- 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.55.19 (2025-01-29)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous
|
|
4
|
+
|
|
5
|
+
- **monorepo:** Regenerate README markdown files ([a1b6717d](https://github.com/storm-software/storm-ops/commit/a1b6717d))
|
|
6
|
+
|
|
7
|
+
## 0.55.18 (2025-01-29)
|
|
8
|
+
|
|
9
|
+
### Miscellaneous
|
|
10
|
+
|
|
11
|
+
- **monorepo:** Regenerate README markdown files ([5e0520b1](https://github.com/storm-software/storm-ops/commit/5e0520b1))
|
|
12
|
+
|
|
1
13
|
## 0.55.17 (2025-01-29)
|
|
2
14
|
|
|
3
15
|
### 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 -->
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
joinPaths,
|
|
15
15
|
writeTrace,
|
|
16
16
|
writeWarning
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MMV7N7QY.mjs";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-A7FFSBE6.mjs";
|
|
@@ -56,10 +56,10 @@ var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, opti
|
|
|
56
56
|
}, "getConfigFileByName");
|
|
57
57
|
var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames = []) => {
|
|
58
58
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
59
|
-
const result = await getConfigFileByName("storm", workspacePath);
|
|
59
|
+
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
60
60
|
let config = result.config;
|
|
61
61
|
const configFile = result.configFile;
|
|
62
|
-
if (config && configFile && Object.keys(config).length > 0) {
|
|
62
|
+
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
63
63
|
writeTrace(`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
64
64
|
logLevel: "all"
|
|
65
65
|
});
|
|
@@ -68,9 +68,11 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
|
|
|
68
68
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
69
69
|
for (const result2 of results) {
|
|
70
70
|
if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
72
|
+
writeTrace(`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
73
|
+
logLevel: "all"
|
|
74
|
+
});
|
|
75
|
+
}
|
|
74
76
|
config = defu(result2.config ?? {}, config ?? {});
|
|
75
77
|
}
|
|
76
78
|
}
|
|
@@ -143,7 +145,8 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
143
145
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
144
146
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
145
147
|
},
|
|
146
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
148
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
149
|
+
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
147
150
|
};
|
|
148
151
|
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
149
152
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
@@ -378,6 +381,9 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
378
381
|
process.env.NX_VERBOSE_LOGGING = String(getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false);
|
|
379
382
|
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
380
383
|
}
|
|
384
|
+
if (config.skipConfigLogging !== void 0) {
|
|
385
|
+
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
386
|
+
}
|
|
381
387
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
382
388
|
for (const key of Object.keys(config.extensions ?? {})) {
|
|
383
389
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
@@ -495,7 +501,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
|
|
|
495
501
|
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
496
502
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
497
503
|
if (!configFile && !skipLogs) {
|
|
498
|
-
writeWarning("No Storm
|
|
504
|
+
writeWarning("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", {
|
|
499
505
|
logLevel: "all"
|
|
500
506
|
});
|
|
501
507
|
}
|
|
@@ -533,8 +539,8 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
533
539
|
var loadStormConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
534
540
|
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
535
541
|
setConfigEnv(config);
|
|
536
|
-
if (!skipLogs) {
|
|
537
|
-
writeTrace(`\u2699\uFE0F Using Storm configuration:
|
|
542
|
+
if (!skipLogs && !config.skipConfigLogging) {
|
|
543
|
+
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
538
544
|
${formatLogMessage(config)}`, config);
|
|
539
545
|
}
|
|
540
546
|
return config;
|
|
@@ -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.19",
|
|
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",
|