@storm-software/cloudflare-tools 0.55.26 → 0.55.29
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 +23 -0
- package/README.md +1 -1
- package/dist/{chunk-GNKRSWX6.mjs → chunk-5OCPVWBL.mjs} +3 -3
- package/dist/{chunk-X64HH4GP.mjs → chunk-HWRWRM5W.mjs} +1 -1
- package/dist/{chunk-E7YOJ4JG.js → chunk-HZON5W3G.js} +25 -25
- package/dist/{chunk-6GDCEDJO.js → chunk-I6XBWBZN.js} +3 -3
- package/dist/{chunk-BCL7PY4I.js → chunk-KLCTLDIH.js} +41 -41
- package/dist/{chunk-AHT3CRUF.mjs → chunk-MBAVTLIK.mjs} +32 -33
- package/dist/{chunk-SOJGUDFD.js → chunk-MVGAJ7Q4.js} +16 -16
- package/dist/{chunk-32FESOT6.mjs → chunk-O25TYSYC.mjs} +1 -1
- package/dist/{chunk-2XPNANI7.js → chunk-P4LFDEKT.js} +1 -1
- package/dist/{chunk-ZV2BVSPZ.mjs → chunk-QD7ZKWKB.mjs} +25 -25
- package/dist/{chunk-KXSJMDJH.mjs → chunk-VAVNPHSE.mjs} +1 -1
- package/dist/{chunk-JD2WQIFA.mjs → chunk-X2QBRYIY.mjs} +3 -3
- package/dist/{chunk-VLH6PJOP.js → chunk-XFUY3RDQ.js} +12 -12
- package/dist/{chunk-T4YFTNGO.js → chunk-XYJVYVYX.js} +190 -191
- 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/generators/worker/schema.d.ts +1 -1
- 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,26 @@
|
|
|
1
|
+
## 0.55.29 (2025-02-04)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous
|
|
4
|
+
|
|
5
|
+
- **monorepo:** Regenerate README markdown files ([5295557c6](https://github.com/storm-software/storm-ops/commit/5295557c6))
|
|
6
|
+
|
|
7
|
+
## 0.55.28 (2025-02-04)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **monorepo:** Resolve issue with inconsistent `chalk` versions ([e20742ea0](https://github.com/storm-software/storm-ops/commit/e20742ea0))
|
|
12
|
+
|
|
13
|
+
## 0.55.27 (2025-02-04)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- **monorepo:** Resolved issue with invalid `prettier` config used in hooks ([34974919d](https://github.com/storm-software/storm-ops/commit/34974919d))
|
|
18
|
+
|
|
19
|
+
### Miscellaneous
|
|
20
|
+
|
|
21
|
+
- **monorepo:** Reformat the repo's files ([f33b07626](https://github.com/storm-software/storm-ops/commit/f33b07626))
|
|
22
|
+
- **monorepo:** Regenerate README markdown files ([d147539be](https://github.com/storm-software/storm-ops/commit/d147539be))
|
|
23
|
+
|
|
1
24
|
## 0.55.26 (2025-02-03)
|
|
2
25
|
|
|
3
26
|
### 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-HWRWRM5W.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCliOptions,
|
|
7
7
|
getPackageInfo
|
|
8
8
|
} from "./chunk-KFNKJP2U.mjs";
|
|
9
9
|
import {
|
|
10
10
|
getConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VAVNPHSE.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-QD7ZKWKB.mjs";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-Y3XZCCPP.mjs";
|
|
@@ -320,7 +320,7 @@ var RegistryConfigSchema = _zod2.default.object({
|
|
|
320
320
|
var ColorConfigSchema = SingleThemeColorConfigSchema.or(MultiThemeColorConfigSchema).describe("Colors used for various workspace elements");
|
|
321
321
|
var ColorConfigMapSchema = _zod2.default.union([
|
|
322
322
|
_zod2.default.object({
|
|
323
|
-
|
|
323
|
+
base: ColorConfigSchema
|
|
324
324
|
}),
|
|
325
325
|
_zod2.default.record(_zod2.default.string(), ColorConfigSchema)
|
|
326
326
|
]);
|
|
@@ -412,31 +412,31 @@ var COLOR_KEYS = [
|
|
|
412
412
|
var _promises = require('fs/promises');
|
|
413
413
|
|
|
414
414
|
var DEFAULT_COLOR_CONFIG = {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
415
|
+
light: {
|
|
416
|
+
background: "#fafafa",
|
|
417
|
+
foreground: "#1d1e22",
|
|
418
|
+
brand: "#1fb2a6",
|
|
419
|
+
alternate: "#db2777",
|
|
420
|
+
help: "#5C4EE5",
|
|
421
|
+
success: "#087f5b",
|
|
422
|
+
info: "#0550ae",
|
|
423
|
+
warning: "#e3b341",
|
|
424
|
+
danger: "#D8314A",
|
|
425
|
+
positive: "#22c55e",
|
|
426
|
+
negative: "#dc2626"
|
|
427
427
|
},
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
428
|
+
dark: {
|
|
429
|
+
background: "#1d1e22",
|
|
430
|
+
foreground: "#cbd5e1",
|
|
431
|
+
brand: "#2dd4bf",
|
|
432
|
+
alternate: "#db2777",
|
|
433
|
+
help: "#818cf8",
|
|
434
|
+
success: "#10b981",
|
|
435
|
+
info: "#58a6ff",
|
|
436
|
+
warning: "#f3d371",
|
|
437
|
+
danger: "#D8314A",
|
|
438
|
+
positive: "#22c55e",
|
|
439
|
+
negative: "#dc2626"
|
|
440
440
|
}
|
|
441
441
|
};
|
|
442
442
|
var getDefaultConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (root) => {
|
|
@@ -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 _chunkHZON5W3Gjs = require('./chunk-HZON5W3G.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
|
+
_chunkHZON5W3Gjs.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
|
+
_chunkHZON5W3Gjs.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) => {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkHZON5W3Gjs = require('./chunk-HZON5W3G.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkJ5SB6L2Ljs = require('./chunk-J5SB6L2L.js');
|
|
@@ -26,7 +26,7 @@ var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
|
26
26
|
var _c12 = require('c12');
|
|
27
27
|
|
|
28
28
|
var getConfigFileByName = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
29
|
-
const workspacePath = filePath ||
|
|
29
|
+
const workspacePath = filePath || _chunkHZON5W3Gjs.findWorkspaceRoot.call(void 0, filePath);
|
|
30
30
|
const configs = await Promise.all([
|
|
31
31
|
_c12.loadConfig.call(void 0, {
|
|
32
32
|
cwd: workspacePath,
|
|
@@ -35,7 +35,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, a
|
|
|
35
35
|
envName: _optionalChain([fileName, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]),
|
|
36
36
|
jitiOptions: {
|
|
37
37
|
debug: false,
|
|
38
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
38
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkHZON5W3Gjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
39
39
|
},
|
|
40
40
|
...options
|
|
41
41
|
}),
|
|
@@ -46,7 +46,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, a
|
|
|
46
46
|
envName: _optionalChain([fileName, 'optionalAccess', _3 => _3.toUpperCase, 'call', _4 => _4()]),
|
|
47
47
|
jitiOptions: {
|
|
48
48
|
debug: false,
|
|
49
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
49
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkHZON5W3Gjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
50
50
|
},
|
|
51
51
|
configFile: fileName,
|
|
52
52
|
...options
|
|
@@ -55,12 +55,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, a
|
|
|
55
55
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
56
56
|
}, "getConfigFileByName");
|
|
57
57
|
var getConfigFile = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
58
|
-
const workspacePath = filePath ? filePath :
|
|
58
|
+
const workspacePath = filePath ? filePath : _chunkHZON5W3Gjs.findWorkspaceRoot.call(void 0, filePath);
|
|
59
59
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
60
60
|
let config = result.config;
|
|
61
61
|
const configFile = result.configFile;
|
|
62
62
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
63
|
-
|
|
63
|
+
_chunkHZON5W3Gjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
64
64
|
logLevel: "all"
|
|
65
65
|
});
|
|
66
66
|
}
|
|
@@ -69,7 +69,7 @@ var getConfigFile = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async (
|
|
|
69
69
|
for (const result2 of results) {
|
|
70
70
|
if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
|
|
71
71
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
72
|
-
|
|
72
|
+
_chunkHZON5W3Gjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
73
73
|
logLevel: "all"
|
|
74
74
|
});
|
|
75
75
|
}
|
|
@@ -114,15 +114,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, () => {
|
|
|
114
114
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
115
115
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
116
116
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
117
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
118
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
117
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkHZON5W3Gjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
118
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkHZON5W3Gjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
119
119
|
directories: {
|
|
120
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
121
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
122
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
123
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
124
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
125
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
120
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkHZON5W3Gjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
121
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkHZON5W3Gjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
122
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkHZON5W3Gjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
123
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkHZON5W3Gjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
124
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkHZON5W3Gjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
125
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkHZON5W3Gjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
126
126
|
},
|
|
127
127
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
128
128
|
env: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}ENV`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -145,24 +145,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, () => {
|
|
|
145
145
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
146
146
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
147
147
|
},
|
|
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`])) ?
|
|
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`])) ? _chunkHZON5W3Gjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
149
149
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
150
150
|
};
|
|
151
|
-
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
151
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkHZON5W3Gjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
152
152
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
153
153
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
154
154
|
return ret;
|
|
155
155
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
156
|
-
if (config.docs ===
|
|
157
|
-
if (config.homepage ===
|
|
158
|
-
config.docs = `${
|
|
156
|
+
if (config.docs === _chunkHZON5W3Gjs.STORM_DEFAULT_DOCS) {
|
|
157
|
+
if (config.homepage === _chunkHZON5W3Gjs.STORM_DEFAULT_HOMEPAGE) {
|
|
158
|
+
config.docs = `${_chunkHZON5W3Gjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
159
159
|
} else {
|
|
160
160
|
config.docs = `${config.homepage}/docs`;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
if (config.licensing ===
|
|
164
|
-
if (config.homepage ===
|
|
165
|
-
config.licensing = `${
|
|
163
|
+
if (config.licensing === _chunkHZON5W3Gjs.STORM_DEFAULT_LICENSING) {
|
|
164
|
+
if (config.homepage === _chunkHZON5W3Gjs.STORM_DEFAULT_HOMEPAGE) {
|
|
165
|
+
config.licensing = `${_chunkHZON5W3Gjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
166
166
|
} else {
|
|
167
167
|
config.licensing = `${config.homepage}/docs`;
|
|
168
168
|
}
|
|
@@ -300,31 +300,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (config)
|
|
|
300
300
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
301
301
|
}
|
|
302
302
|
if (config.configFile) {
|
|
303
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
303
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkHZON5W3Gjs.correctPaths.call(void 0, config.configFile);
|
|
304
304
|
}
|
|
305
305
|
if (config.workspaceRoot) {
|
|
306
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
307
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
308
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
306
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkHZON5W3Gjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
307
|
+
process.env.NX_WORKSPACE_ROOT = _chunkHZON5W3Gjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
308
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkHZON5W3Gjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
309
309
|
}
|
|
310
310
|
if (config.directories) {
|
|
311
311
|
if (!config.skipCache && config.directories.cache) {
|
|
312
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
312
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkHZON5W3Gjs.correctPaths.call(void 0, config.directories.cache);
|
|
313
313
|
}
|
|
314
314
|
if (config.directories.data) {
|
|
315
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
315
|
+
process.env[`${prefix}DATA_DIR`] = _chunkHZON5W3Gjs.correctPaths.call(void 0, config.directories.data);
|
|
316
316
|
}
|
|
317
317
|
if (config.directories.config) {
|
|
318
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
318
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkHZON5W3Gjs.correctPaths.call(void 0, config.directories.config);
|
|
319
319
|
}
|
|
320
320
|
if (config.directories.temp) {
|
|
321
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
321
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkHZON5W3Gjs.correctPaths.call(void 0, config.directories.temp);
|
|
322
322
|
}
|
|
323
323
|
if (config.directories.log) {
|
|
324
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
324
|
+
process.env[`${prefix}LOG_DIR`] = _chunkHZON5W3Gjs.correctPaths.call(void 0, config.directories.log);
|
|
325
325
|
}
|
|
326
326
|
if (config.directories.build) {
|
|
327
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
327
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkHZON5W3Gjs.correctPaths.call(void 0, config.directories.build);
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
if (config.skipCache !== void 0) {
|
|
@@ -378,8 +378,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (config)
|
|
|
378
378
|
if (config.logLevel) {
|
|
379
379
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
380
380
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
381
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
382
|
-
process.env.RUST_BACKTRACE =
|
|
381
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunkHZON5W3Gjs.getLogLevel.call(void 0, config.logLevel) >= _chunkHZON5W3Gjs.LogLevel.DEBUG ? true : false);
|
|
382
|
+
process.env.RUST_BACKTRACE = _chunkHZON5W3Gjs.getLogLevel.call(void 0, config.logLevel) >= _chunkHZON5W3Gjs.LogLevel.DEBUG ? "full" : "none";
|
|
383
383
|
}
|
|
384
384
|
if (config.skipConfigLogging !== void 0) {
|
|
385
385
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
@@ -495,17 +495,17 @@ var createStormConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, asy
|
|
|
495
495
|
if (!_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) || !_optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
496
496
|
let _workspaceRoot = workspaceRoot;
|
|
497
497
|
if (!_workspaceRoot) {
|
|
498
|
-
_workspaceRoot =
|
|
498
|
+
_workspaceRoot = _chunkHZON5W3Gjs.findWorkspaceRoot.call(void 0, );
|
|
499
499
|
}
|
|
500
500
|
const configEnv = getConfigEnv();
|
|
501
|
-
const defaultConfig = await
|
|
501
|
+
const defaultConfig = await _chunkHZON5W3Gjs.getDefaultConfig.call(void 0, _workspaceRoot);
|
|
502
502
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
503
503
|
if (!configFile && !skipLogs) {
|
|
504
|
-
|
|
504
|
+
_chunkHZON5W3Gjs.writeWarning.call(void 0, "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", {
|
|
505
505
|
logLevel: "all"
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
|
-
result = await
|
|
508
|
+
result = await _chunkHZON5W3Gjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
|
|
509
509
|
result.workspaceRoot ??= _workspaceRoot;
|
|
510
510
|
} else {
|
|
511
511
|
result = _static_cache.data;
|
|
@@ -540,8 +540,8 @@ var loadStormConfig = /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, async
|
|
|
540
540
|
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
541
541
|
setConfigEnv(config);
|
|
542
542
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
543
|
-
|
|
544
|
-
${
|
|
543
|
+
_chunkHZON5W3Gjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
|
|
544
|
+
${_chunkHZON5W3Gjs.formatLogMessage.call(void 0, config)}`, config);
|
|
545
545
|
}
|
|
546
546
|
return config;
|
|
547
547
|
}, "loadStormConfig");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-KFNKJP2U.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VAVNPHSE.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-QD7ZKWKB.mjs";
|
|
24
24
|
import {
|
|
25
25
|
__dirname,
|
|
26
26
|
__name,
|
|
@@ -615,17 +615,17 @@ var addPackageJsonExport = /* @__PURE__ */ __name((file, type = "module", source
|
|
|
615
615
|
entry = entry.replace(sourceRoot, "");
|
|
616
616
|
}
|
|
617
617
|
return {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
618
|
+
import: {
|
|
619
|
+
types: `./dist/${entry}.d.${type === "module" ? "ts" : "mts"}`,
|
|
620
|
+
default: `./dist/${entry}.${type === "module" ? "js" : "mjs"}`
|
|
621
621
|
},
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
622
|
+
require: {
|
|
623
|
+
types: `./dist/${entry}.d.${type === "commonjs" ? "ts" : "cts"}`,
|
|
624
|
+
default: `./dist/${entry}.${type === "commonjs" ? "js" : "cjs"}`
|
|
625
625
|
},
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
626
|
+
default: {
|
|
627
|
+
types: `./dist/${entry}.d.ts`,
|
|
628
|
+
default: `./dist/${entry}.js`
|
|
629
629
|
}
|
|
630
630
|
};
|
|
631
631
|
}, "addPackageJsonExport");
|
|
@@ -1079,7 +1079,6 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
1079
1079
|
overrideTsconfig: {
|
|
1080
1080
|
compilerOptions: {
|
|
1081
1081
|
paths: {}
|
|
1082
|
-
// bug with api extract + paths
|
|
1083
1082
|
}
|
|
1084
1083
|
}
|
|
1085
1084
|
},
|
|
@@ -2747,14 +2746,14 @@ async function presetGeneratorFn(tree, options) {
|
|
|
2747
2746
|
};
|
|
2748
2747
|
json.maintainers ??= [
|
|
2749
2748
|
{
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2749
|
+
name: "Storm Software",
|
|
2750
|
+
email: "contact@stormsoftware.com",
|
|
2751
|
+
url: "https://stormsoftware.com"
|
|
2753
2752
|
},
|
|
2754
2753
|
{
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2754
|
+
name: "Pat Sullivan",
|
|
2755
|
+
email: "admin@stormsoftware.com",
|
|
2756
|
+
url: "https://patsullivan.org"
|
|
2758
2757
|
}
|
|
2759
2758
|
];
|
|
2760
2759
|
json.funding ??= {
|
|
@@ -2770,12 +2769,12 @@ async function presetGeneratorFn(tree, options) {
|
|
|
2770
2769
|
};
|
|
2771
2770
|
json.packageManager ??= "pnpm@9.15.2";
|
|
2772
2771
|
json.engines ??= {
|
|
2773
|
-
|
|
2774
|
-
|
|
2772
|
+
node: ">=20.11.0",
|
|
2773
|
+
pnpm: ">=9.15.2"
|
|
2775
2774
|
};
|
|
2776
2775
|
json.prettier = "@storm-software/prettier/config.json";
|
|
2777
2776
|
json.nx ??= {
|
|
2778
|
-
|
|
2777
|
+
includedScripts: [
|
|
2779
2778
|
"lint-sherif",
|
|
2780
2779
|
"lint-knip",
|
|
2781
2780
|
"lint-ls",
|
|
@@ -2869,22 +2868,22 @@ async function presetGeneratorFn(tree, options) {
|
|
|
2869
2868
|
"@storm-software/prettier": "latest",
|
|
2870
2869
|
"@taplo/cli": "0.7.0",
|
|
2871
2870
|
"@types/node": "^20.14.10",
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2871
|
+
copyfiles: "2.4.1",
|
|
2872
|
+
eslint: "9.5.0",
|
|
2873
|
+
jest: "29.7.0",
|
|
2875
2874
|
"jest-environment-node": "29.7.0",
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2875
|
+
knip: "5.25.2",
|
|
2876
|
+
lefthook: "1.6.18",
|
|
2877
|
+
nx: "^20.2.2",
|
|
2878
|
+
prettier: "3.3.2",
|
|
2880
2879
|
"prettier-plugin-prisma": "5.0.0",
|
|
2881
|
-
|
|
2882
|
-
|
|
2880
|
+
rimraf: "5.0.7",
|
|
2881
|
+
sherif: "0.10.0",
|
|
2883
2882
|
"ts-jest": "29.1.5",
|
|
2884
2883
|
"ts-node": "10.9.2",
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2884
|
+
tslib: "2.6.3",
|
|
2885
|
+
typescript: "5.5.3",
|
|
2886
|
+
verdaccio: "5.31.1"
|
|
2888
2887
|
};
|
|
2889
2888
|
if (options.includeApps) {
|
|
2890
2889
|
dependencies = {
|
|
@@ -1,21 +1,21 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkI6XBWBZNjs = require('./chunk-I6XBWBZN.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkVTHBMY4Bjs = require('./chunk-VTHBMY4B.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkKLCTLDIHjs = require('./chunk-KLCTLDIH.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkHZON5W3Gjs = require('./chunk-HZON5W3G.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunkJ5SB6L2Ljs = require('./chunk-J5SB6L2L.js');
|
|
@@ -36,8 +36,8 @@ async function runExecutor(options, context) {
|
|
|
36
36
|
throw new Error("The executor requires projectsConfigurations.");
|
|
37
37
|
}
|
|
38
38
|
try {
|
|
39
|
-
const workspaceRoot =
|
|
40
|
-
const config = await
|
|
39
|
+
const workspaceRoot = _chunkHZON5W3Gjs.findWorkspaceRoot.call(void 0, );
|
|
40
|
+
const config = await _chunkKLCTLDIHjs.getConfig.call(void 0, workspaceRoot);
|
|
41
41
|
const sourceRoot = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.sourceRoot]), () => ( workspaceRoot));
|
|
42
42
|
const projectName = _nullishCoalesce(_optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.name]), () => ( context.projectName));
|
|
43
43
|
const projectDetails = _chunkVTHBMY4Bjs.getPackageInfo.call(void 0, context.projectsConfigurations.projects[context.projectName]);
|
|
@@ -62,7 +62,7 @@ async function runExecutor(options, context) {
|
|
|
62
62
|
if (!projectGraph) {
|
|
63
63
|
throw new Error("No project graph found in cache");
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
_chunkHZON5W3Gjs.writeInfo.call(void 0, `Publishing ${context.projectName} to the Storm Registry at ${endpoint}`);
|
|
66
66
|
const s3Client = new (0, _clients3.S3)({
|
|
67
67
|
region: "auto",
|
|
68
68
|
endpoint,
|
|
@@ -72,12 +72,12 @@ async function runExecutor(options, context) {
|
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
const version = _optionalChain([projectDetails, 'access', _18 => _18.content, 'optionalAccess', _19 => _19.version]);
|
|
75
|
-
|
|
75
|
+
_chunkHZON5W3Gjs.writeInfo.call(void 0, `Generated component version: ${version}`);
|
|
76
76
|
const files = await _glob.glob.call(void 0, _devkit.joinPathFragments.call(void 0, sourceRoot, "**/*"), {
|
|
77
77
|
ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
|
|
78
78
|
});
|
|
79
79
|
const projectPath = `registry/${context.projectName}`;
|
|
80
|
-
const internalDependencies = await
|
|
80
|
+
const internalDependencies = await _chunkI6XBWBZNjs.getInternalDependencies.call(void 0, context.projectName, projectGraph);
|
|
81
81
|
const dependencies = internalDependencies.filter((projectNode) => !projectNode.data.tags || projectNode.data.tags.every((tag) => tag.toLowerCase() !== "component")).reduce((ret, dep) => {
|
|
82
82
|
if (!ret[dep.name]) {
|
|
83
83
|
ret[dep.name] = "latest";
|
|
@@ -85,14 +85,14 @@ async function runExecutor(options, context) {
|
|
|
85
85
|
return ret;
|
|
86
86
|
}, _nullishCoalesce(projectDetails.content.dependencies, () => ( {})));
|
|
87
87
|
const release = _nullishCoalesce(options.tag, () => ( _child_process.execSync.call(void 0, "npm config get tag").toString().trim()));
|
|
88
|
-
|
|
88
|
+
_chunkHZON5W3Gjs.writeInfo.call(void 0, `Clearing out existing items in ${projectPath}`);
|
|
89
89
|
if (!isDryRun) {
|
|
90
90
|
const response = await s3Client.listObjects({
|
|
91
91
|
Bucket: options.bucketId,
|
|
92
92
|
Prefix: projectPath
|
|
93
93
|
});
|
|
94
94
|
if (_optionalChain([response, 'optionalAccess', _20 => _20.Contents]) && response.Contents.length > 0) {
|
|
95
|
-
|
|
95
|
+
_chunkHZON5W3Gjs.writeDebug.call(void 0, `Deleting the following existing items from the component registry: ${response.Contents.map((item) => item.Key).join(", ")}`);
|
|
96
96
|
await Promise.all(response.Contents.map((item) => s3Client.deleteObjects({
|
|
97
97
|
Bucket: options.bucketId,
|
|
98
98
|
Delete: {
|
|
@@ -105,10 +105,10 @@ async function runExecutor(options, context) {
|
|
|
105
105
|
}
|
|
106
106
|
})));
|
|
107
107
|
} else {
|
|
108
|
-
|
|
108
|
+
_chunkHZON5W3Gjs.writeDebug.call(void 0, `No existing items to delete in the component registry path ${projectPath}`);
|
|
109
109
|
}
|
|
110
110
|
} else {
|
|
111
|
-
|
|
111
|
+
_chunkHZON5W3Gjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
|
|
112
112
|
}
|
|
113
113
|
const meta = {
|
|
114
114
|
name: context.projectName,
|
|
@@ -124,16 +124,16 @@ async function runExecutor(options, context) {
|
|
|
124
124
|
meta.devDependencies = projectDetails.content.devDependencies;
|
|
125
125
|
}
|
|
126
126
|
const metaJson = JSON.stringify(meta);
|
|
127
|
-
|
|
127
|
+
_chunkHZON5W3Gjs.writeInfo.call(void 0, `Generating meta.json file:
|
|
128
128
|
${metaJson}`);
|
|
129
|
-
await
|
|
129
|
+
await _chunkI6XBWBZNjs.r2UploadFile.call(void 0, s3Client, options.bucketId, projectPath, "meta.json", version, metaJson, "application/json", isDryRun);
|
|
130
130
|
await Promise.all(files.map((file) => {
|
|
131
131
|
const fileName = file.replaceAll("\\", "/").replace(sourceRoot.replaceAll("\\", "/"), "");
|
|
132
132
|
return _promises.readFile.call(void 0, file, {
|
|
133
133
|
encoding: "utf8"
|
|
134
|
-
}).then((fileContent) =>
|
|
134
|
+
}).then((fileContent) => _chunkI6XBWBZNjs.r2UploadFile.call(void 0, s3Client, options.bucketId, projectPath, fileName, version, fileContent, "text/plain", isDryRun));
|
|
135
135
|
}));
|
|
136
|
-
|
|
136
|
+
_chunkHZON5W3Gjs.writeSuccess.call(void 0, `Successfully uploaded the ${projectName} component to the Cyclone Registry`, config);
|
|
137
137
|
return {
|
|
138
138
|
success: true
|
|
139
139
|
};
|
|
@@ -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.55.
|
|
11
|
+
version: "0.55.29",
|
|
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",
|
|
@@ -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.29",
|
|
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",
|