@storm-software/cloudflare-tools 0.63.54 → 0.63.56
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 +20 -0
- package/README.md +1 -1
- package/dist/{chunk-Q5XL7K7Z.mjs → chunk-3RVDSW7L.mjs} +3 -3
- package/dist/{chunk-UOEUE2GI.js → chunk-7WEYLNBH.js} +44 -44
- package/dist/{chunk-MB54NXKO.mjs → chunk-BFUEHGS2.mjs} +5 -3
- package/dist/{chunk-WHCHUEBF.js → chunk-CEU4SBPN.js} +1 -1
- package/dist/{chunk-ADVG6LVE.mjs → chunk-EXI6FHST.mjs} +1 -1
- package/dist/{chunk-X2ML265T.js → chunk-EXLUVOJF.js} +16 -16
- package/dist/{chunk-KOOLEJS3.mjs → chunk-KTDBYRR3.mjs} +1 -1
- package/dist/{chunk-F2YOIYQ7.mjs → chunk-LBLGJWO6.mjs} +3 -3
- package/dist/{chunk-BRPTGDS4.mjs → chunk-METIXHAV.mjs} +1 -1
- package/dist/{chunk-AZSS2TUS.mjs → chunk-UHK467WZ.mjs} +0 -1
- package/dist/{chunk-57WTY3UY.js → chunk-V6CT3Z4V.js} +3 -3
- package/dist/{chunk-KDRIR55G.js → chunk-VVEUVVMG.js} +0 -1
- package/dist/{chunk-E5CC3JCL.js → chunk-Y7RSVEHM.js} +12 -12
- package/dist/{chunk-AOAXSMD4.js → chunk-YMG3LPOW.js} +120 -118
- 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 +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.63.55](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.55) (2025-08-02)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **git-tools:** Resolve issue with missing external dependencies
|
|
10
|
+
([d47adff14](https://github.com/storm-software/storm-ops/commit/d47adff14))
|
|
11
|
+
|
|
12
|
+
### Miscellaneous
|
|
13
|
+
|
|
14
|
+
- **monorepo:** Regenerate README markdown files
|
|
15
|
+
([b867380ec](https://github.com/storm-software/storm-ops/commit/b867380ec))
|
|
16
|
+
|
|
17
|
+
## [0.63.54](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.54) (2025-08-01)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- **git-tools:** Update `package.json` to ensure external dependencies are
|
|
22
|
+
installed
|
|
23
|
+
([506a0cf30](https://github.com/storm-software/storm-ops/commit/506a0cf30))
|
|
24
|
+
|
|
5
25
|
## [0.63.53](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.53) (2025-08-01)
|
|
6
26
|
|
|
7
27
|
### 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-METIXHAV.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCliOptions,
|
|
7
7
|
getPackageInfo
|
|
8
8
|
} from "./chunk-PH3DHY4Q.mjs";
|
|
9
9
|
import {
|
|
10
10
|
getConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EXI6FHST.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-UHK467WZ.mjs";
|
|
19
19
|
|
|
20
20
|
// src/executors/r2-upload-publish/executor.ts
|
|
21
21
|
import { S3 } from "@aws-sdk/client-s3";
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkVVEUVVMGjs = require('./chunk-VVEUVVMG.js');
|
|
19
19
|
|
|
20
20
|
// ../config-tools/src/create-storm-config.ts
|
|
21
21
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
@@ -24,7 +24,7 @@ var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
|
24
24
|
var _c12 = require('c12');
|
|
25
25
|
|
|
26
26
|
var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
27
|
-
const workspacePath = filePath ||
|
|
27
|
+
const workspacePath = filePath || _chunkVVEUVVMGjs.findWorkspaceRoot.call(void 0, filePath);
|
|
28
28
|
const configs = await Promise.all([
|
|
29
29
|
_c12.loadConfig.call(void 0, {
|
|
30
30
|
cwd: workspacePath,
|
|
@@ -33,7 +33,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
33
33
|
envName: _optionalChain([fileName, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]),
|
|
34
34
|
jitiOptions: {
|
|
35
35
|
debug: false,
|
|
36
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
36
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkVVEUVVMGjs.joinPaths.call(void 0,
|
|
37
37
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
38
38
|
"jiti"
|
|
39
39
|
)
|
|
@@ -47,7 +47,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
47
47
|
envName: _optionalChain([fileName, 'optionalAccess', _3 => _3.toUpperCase, 'call', _4 => _4()]),
|
|
48
48
|
jitiOptions: {
|
|
49
49
|
debug: false,
|
|
50
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
50
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkVVEUVVMGjs.joinPaths.call(void 0,
|
|
51
51
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
52
52
|
"jiti"
|
|
53
53
|
)
|
|
@@ -59,12 +59,12 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
59
59
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
60
60
|
};
|
|
61
61
|
var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
62
|
-
const workspacePath = filePath ? filePath :
|
|
62
|
+
const workspacePath = filePath ? filePath : _chunkVVEUVVMGjs.findWorkspaceRoot.call(void 0, filePath);
|
|
63
63
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
64
64
|
let config = result.config;
|
|
65
65
|
const configFile = result.configFile;
|
|
66
66
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
67
|
-
|
|
67
|
+
_chunkVVEUVVMGjs.writeTrace.call(void 0,
|
|
68
68
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
69
69
|
{
|
|
70
70
|
logLevel: "all"
|
|
@@ -80,7 +80,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
80
80
|
for (const result2 of results) {
|
|
81
81
|
if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
|
|
82
82
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
83
|
-
|
|
83
|
+
_chunkVVEUVVMGjs.writeTrace.call(void 0,
|
|
84
84
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
85
85
|
{
|
|
86
86
|
logLevel: "all"
|
|
@@ -156,15 +156,15 @@ var getConfigEnv = () => {
|
|
|
156
156
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
157
157
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
158
158
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
159
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
160
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
159
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkVVEUVVMGjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
160
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkVVEUVVMGjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
161
161
|
directories: {
|
|
162
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
163
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
164
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
165
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
166
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
167
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
162
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkVVEUVVMGjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkVVEUVVMGjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
163
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkVVEUVVMGjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkVVEUVVMGjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
164
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkVVEUVVMGjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkVVEUVVMGjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
165
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkVVEUVVMGjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkVVEUVVMGjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
166
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkVVEUVVMGjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkVVEUVVMGjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
167
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkVVEUVVMGjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkVVEUVVMGjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
168
168
|
},
|
|
169
169
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
170
170
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -188,13 +188,13 @@ var getConfigEnv = () => {
|
|
|
188
188
|
},
|
|
189
189
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
190
190
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
191
|
-
) ?
|
|
191
|
+
) ? _chunkVVEUVVMGjs.getLogLevelLabel.call(void 0,
|
|
192
192
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
193
193
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
194
194
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
195
195
|
};
|
|
196
196
|
const themeNames = Object.keys(process.env).filter(
|
|
197
|
-
(envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
197
|
+
(envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkVVEUVVMGjs.COLOR_KEYS.every(
|
|
198
198
|
(colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
|
|
199
199
|
)
|
|
200
200
|
);
|
|
@@ -205,16 +205,16 @@ var getConfigEnv = () => {
|
|
|
205
205
|
},
|
|
206
206
|
{}
|
|
207
207
|
) : getThemeColorConfigEnv(prefix);
|
|
208
|
-
if (config.docs ===
|
|
209
|
-
if (config.homepage ===
|
|
210
|
-
config.docs = `${
|
|
208
|
+
if (config.docs === _chunkVVEUVVMGjs.STORM_DEFAULT_DOCS) {
|
|
209
|
+
if (config.homepage === _chunkVVEUVVMGjs.STORM_DEFAULT_HOMEPAGE) {
|
|
210
|
+
config.docs = `${_chunkVVEUVVMGjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
211
211
|
} else {
|
|
212
212
|
config.docs = `${config.homepage}/docs`;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
if (config.licensing ===
|
|
216
|
-
if (config.homepage ===
|
|
217
|
-
config.licensing = `${
|
|
215
|
+
if (config.licensing === _chunkVVEUVVMGjs.STORM_DEFAULT_LICENSING) {
|
|
216
|
+
if (config.homepage === _chunkVVEUVVMGjs.STORM_DEFAULT_HOMEPAGE) {
|
|
217
|
+
config.licensing = `${_chunkVVEUVVMGjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
218
218
|
} else {
|
|
219
219
|
config.licensing = `${config.homepage}/docs`;
|
|
220
220
|
}
|
|
@@ -415,40 +415,40 @@ var setConfigEnv = (config) => {
|
|
|
415
415
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
416
416
|
}
|
|
417
417
|
if (config.configFile) {
|
|
418
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
418
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkVVEUVVMGjs.correctPaths.call(void 0, config.configFile);
|
|
419
419
|
}
|
|
420
420
|
if (config.workspaceRoot) {
|
|
421
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
422
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
423
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
421
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkVVEUVVMGjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
422
|
+
process.env.NX_WORKSPACE_ROOT = _chunkVVEUVVMGjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
423
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkVVEUVVMGjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
424
424
|
}
|
|
425
425
|
if (config.directories) {
|
|
426
426
|
if (!config.skipCache && config.directories.cache) {
|
|
427
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
427
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkVVEUVVMGjs.correctPaths.call(void 0,
|
|
428
428
|
config.directories.cache
|
|
429
429
|
);
|
|
430
430
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
431
431
|
}
|
|
432
432
|
if (config.directories.data) {
|
|
433
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
433
|
+
process.env[`${prefix}DATA_DIR`] = _chunkVVEUVVMGjs.correctPaths.call(void 0, config.directories.data);
|
|
434
434
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
435
435
|
}
|
|
436
436
|
if (config.directories.config) {
|
|
437
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
437
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkVVEUVVMGjs.correctPaths.call(void 0,
|
|
438
438
|
config.directories.config
|
|
439
439
|
);
|
|
440
440
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
441
441
|
}
|
|
442
442
|
if (config.directories.temp) {
|
|
443
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
443
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkVVEUVVMGjs.correctPaths.call(void 0, config.directories.temp);
|
|
444
444
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
445
445
|
}
|
|
446
446
|
if (config.directories.log) {
|
|
447
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
447
|
+
process.env[`${prefix}LOG_DIR`] = _chunkVVEUVVMGjs.correctPaths.call(void 0, config.directories.log);
|
|
448
448
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
449
449
|
}
|
|
450
450
|
if (config.directories.build) {
|
|
451
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
451
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkVVEUVVMGjs.correctPaths.call(void 0,
|
|
452
452
|
config.directories.build
|
|
453
453
|
);
|
|
454
454
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -510,9 +510,9 @@ var setConfigEnv = (config) => {
|
|
|
510
510
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
511
511
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
512
512
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
513
|
-
|
|
513
|
+
_chunkVVEUVVMGjs.getLogLevel.call(void 0, config.logLevel) >= _chunkVVEUVVMGjs.LogLevel.DEBUG ? true : false
|
|
514
514
|
);
|
|
515
|
-
process.env.RUST_BACKTRACE =
|
|
515
|
+
process.env.RUST_BACKTRACE = _chunkVVEUVVMGjs.getLogLevel.call(void 0, config.logLevel) >= _chunkVVEUVVMGjs.LogLevel.DEBUG ? "full" : "none";
|
|
516
516
|
}
|
|
517
517
|
if (config.skipConfigLogging !== void 0) {
|
|
518
518
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -632,13 +632,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
632
632
|
if (!_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) || !_optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
633
633
|
let _workspaceRoot = workspaceRoot;
|
|
634
634
|
if (!_workspaceRoot) {
|
|
635
|
-
_workspaceRoot =
|
|
635
|
+
_workspaceRoot = _chunkVVEUVVMGjs.findWorkspaceRoot.call(void 0, );
|
|
636
636
|
}
|
|
637
637
|
const configEnv = getConfigEnv();
|
|
638
638
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
639
639
|
if (!configFile) {
|
|
640
640
|
if (!skipLogs) {
|
|
641
|
-
|
|
641
|
+
_chunkVVEUVVMGjs.writeWarning.call(void 0,
|
|
642
642
|
"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",
|
|
643
643
|
{ logLevel: "all" }
|
|
644
644
|
);
|
|
@@ -647,22 +647,22 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
647
647
|
return void 0;
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
|
-
const defaultConfig = await
|
|
650
|
+
const defaultConfig = await _chunkVVEUVVMGjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
|
|
651
651
|
const configInput = _defu2.default.call(void 0,
|
|
652
652
|
configEnv,
|
|
653
653
|
configFile,
|
|
654
654
|
defaultConfig
|
|
655
655
|
);
|
|
656
656
|
try {
|
|
657
|
-
result =
|
|
658
|
-
await
|
|
657
|
+
result = _chunkVVEUVVMGjs.applyDefaultConfig.call(void 0,
|
|
658
|
+
await _chunkVVEUVVMGjs.stormWorkspaceConfigSchema.parseAsync(configInput)
|
|
659
659
|
);
|
|
660
660
|
result.workspaceRoot ??= _workspaceRoot;
|
|
661
661
|
} catch (error) {
|
|
662
662
|
throw new Error(
|
|
663
663
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _31 => _31.message]) ? `: ${error.message}` : ""}
|
|
664
664
|
|
|
665
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
665
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkVVEUVVMGjs.formatLogMessage.call(void 0,
|
|
666
666
|
configInput
|
|
667
667
|
)}`,
|
|
668
668
|
{
|
|
@@ -707,9 +707,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
707
707
|
);
|
|
708
708
|
setConfigEnv(config);
|
|
709
709
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
710
|
-
|
|
710
|
+
_chunkVVEUVVMGjs.writeTrace.call(void 0,
|
|
711
711
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
712
|
-
${
|
|
712
|
+
${_chunkVVEUVVMGjs.formatLogMessage.call(void 0, config)}`,
|
|
713
713
|
config
|
|
714
714
|
);
|
|
715
715
|
}
|
|
@@ -723,7 +723,7 @@ var getConfig = (workspaceRoot, skipLogs = false) => {
|
|
|
723
723
|
var getWorkspaceConfig = (skipLogs = true, options = {}) => {
|
|
724
724
|
let workspaceRoot = options.workspaceRoot;
|
|
725
725
|
if (!workspaceRoot) {
|
|
726
|
-
workspaceRoot =
|
|
726
|
+
workspaceRoot = _chunkVVEUVVMGjs.findWorkspaceRoot.call(void 0, options.cwd);
|
|
727
727
|
}
|
|
728
728
|
return getConfig(workspaceRoot, skipLogs);
|
|
729
729
|
};
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
getConfig,
|
|
7
7
|
getWorkspaceConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EXI6FHST.mjs";
|
|
9
9
|
import {
|
|
10
10
|
findWorkspaceRoot,
|
|
11
11
|
formatLogMessage,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
writeSuccess,
|
|
20
20
|
writeTrace,
|
|
21
21
|
writeWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UHK467WZ.mjs";
|
|
23
23
|
import {
|
|
24
24
|
__dirname,
|
|
25
25
|
__require
|
|
@@ -2970,7 +2970,9 @@ var NPM_LOCK_PATH = join2(workspaceRoot2, NPM_LOCK_FILE);
|
|
|
2970
2970
|
var PNPM_LOCK_PATH = join2(workspaceRoot2, PNPM_LOCK_FILE);
|
|
2971
2971
|
|
|
2972
2972
|
// ../workspace-tools/src/utils/plugin-helpers.ts
|
|
2973
|
-
import {
|
|
2973
|
+
import {
|
|
2974
|
+
readJsonFile as readJsonFile2
|
|
2975
|
+
} from "@nx/devkit";
|
|
2974
2976
|
import defu4 from "defu";
|
|
2975
2977
|
import { existsSync as existsSync7 } from "node:fs";
|
|
2976
2978
|
import { dirname, join as join3 } from "node:path";
|
|
@@ -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.63.
|
|
10
|
+
version: "0.63.55",
|
|
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",
|
|
@@ -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 _chunkV6CT3Z4Vjs = require('./chunk-V6CT3Z4V.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk7WEYLNBHjs = require('./chunk-7WEYLNBH.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkVVEUVVMGjs = require('./chunk-VVEUVVMG.js');
|
|
19
19
|
|
|
20
20
|
// src/executors/r2-upload-publish/executor.ts
|
|
21
21
|
var _clients3 = require('@aws-sdk/client-s3');
|
|
@@ -39,8 +39,8 @@ async function runExecutor(options, context) {
|
|
|
39
39
|
throw new Error("The executor requires projectsConfigurations.");
|
|
40
40
|
}
|
|
41
41
|
try {
|
|
42
|
-
const workspaceRoot =
|
|
43
|
-
const config = await
|
|
42
|
+
const workspaceRoot = _chunkVVEUVVMGjs.findWorkspaceRoot.call(void 0, );
|
|
43
|
+
const config = await _chunk7WEYLNBHjs.getConfig.call(void 0, workspaceRoot);
|
|
44
44
|
const sourceRoot = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.sourceRoot]), () => ( workspaceRoot));
|
|
45
45
|
const projectName = _nullishCoalesce(_optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.name]), () => ( context.projectName));
|
|
46
46
|
const projectDetails = _chunkNU34IEWNjs.getPackageInfo.call(void 0,
|
|
@@ -79,7 +79,7 @@ async function runExecutor(options, context) {
|
|
|
79
79
|
"The executor failed because the project graph is not available. Please run the build command again."
|
|
80
80
|
);
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
_chunkVVEUVVMGjs.writeInfo.call(void 0,
|
|
83
83
|
`Publishing ${context.projectName} to the Storm Registry at ${endpoint}`
|
|
84
84
|
);
|
|
85
85
|
const s3Client = new (0, _clients3.S3)({
|
|
@@ -91,12 +91,12 @@ async function runExecutor(options, context) {
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
const version = _optionalChain([projectDetails, 'access', _18 => _18.content, 'optionalAccess', _19 => _19.version]);
|
|
94
|
-
|
|
94
|
+
_chunkVVEUVVMGjs.writeInfo.call(void 0, `Generated component version: ${version}`);
|
|
95
95
|
const files = await _glob.glob.call(void 0, _devkit.joinPathFragments.call(void 0, sourceRoot, "**/*"), {
|
|
96
96
|
ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
|
|
97
97
|
});
|
|
98
98
|
const projectPath = `registry/${context.projectName}`;
|
|
99
|
-
const internalDependencies = await
|
|
99
|
+
const internalDependencies = await _chunkV6CT3Z4Vjs.getInternalDependencies.call(void 0,
|
|
100
100
|
context.projectName,
|
|
101
101
|
projectGraph
|
|
102
102
|
);
|
|
@@ -109,14 +109,14 @@ async function runExecutor(options, context) {
|
|
|
109
109
|
return ret;
|
|
110
110
|
}, _nullishCoalesce(projectDetails.content.dependencies, () => ( {})));
|
|
111
111
|
const release = _nullishCoalesce(options.tag, () => ( _child_process.execSync.call(void 0, "npm config get tag").toString().trim()));
|
|
112
|
-
|
|
112
|
+
_chunkVVEUVVMGjs.writeInfo.call(void 0, `Clearing out existing items in ${projectPath}`);
|
|
113
113
|
if (!isDryRun) {
|
|
114
114
|
const response = await s3Client.listObjects({
|
|
115
115
|
Bucket: options.bucketId,
|
|
116
116
|
Prefix: projectPath
|
|
117
117
|
});
|
|
118
118
|
if (_optionalChain([response, 'optionalAccess', _20 => _20.Contents]) && response.Contents.length > 0) {
|
|
119
|
-
|
|
119
|
+
_chunkVVEUVVMGjs.writeDebug.call(void 0,
|
|
120
120
|
`Deleting the following existing items from the component registry: ${response.Contents.map((item) => item.Key).join(", ")}`
|
|
121
121
|
);
|
|
122
122
|
await Promise.all(
|
|
@@ -135,12 +135,12 @@ async function runExecutor(options, context) {
|
|
|
135
135
|
)
|
|
136
136
|
);
|
|
137
137
|
} else {
|
|
138
|
-
|
|
138
|
+
_chunkVVEUVVMGjs.writeDebug.call(void 0,
|
|
139
139
|
`No existing items to delete in the component registry path ${projectPath}`
|
|
140
140
|
);
|
|
141
141
|
}
|
|
142
142
|
} else {
|
|
143
|
-
|
|
143
|
+
_chunkVVEUVVMGjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
|
|
144
144
|
}
|
|
145
145
|
const meta = {
|
|
146
146
|
name: context.projectName,
|
|
@@ -158,9 +158,9 @@ async function runExecutor(options, context) {
|
|
|
158
158
|
meta.devDependencies = projectDetails.content.devDependencies;
|
|
159
159
|
}
|
|
160
160
|
const metaJson = JSON.stringify(meta);
|
|
161
|
-
|
|
161
|
+
_chunkVVEUVVMGjs.writeInfo.call(void 0, `Generating meta.json file:
|
|
162
162
|
${metaJson}`);
|
|
163
|
-
await
|
|
163
|
+
await _chunkV6CT3Z4Vjs.r2UploadFile.call(void 0,
|
|
164
164
|
s3Client,
|
|
165
165
|
options.bucketId,
|
|
166
166
|
projectPath,
|
|
@@ -174,7 +174,7 @@ ${metaJson}`);
|
|
|
174
174
|
files.map((file) => {
|
|
175
175
|
const fileName = file.replaceAll("\\", "/").replace(sourceRoot.replaceAll("\\", "/"), "");
|
|
176
176
|
return _promises.readFile.call(void 0, file, { encoding: "utf8" }).then(
|
|
177
|
-
(fileContent) =>
|
|
177
|
+
(fileContent) => _chunkV6CT3Z4Vjs.r2UploadFile.call(void 0,
|
|
178
178
|
s3Client,
|
|
179
179
|
options.bucketId,
|
|
180
180
|
projectPath,
|
|
@@ -187,7 +187,7 @@ ${metaJson}`);
|
|
|
187
187
|
);
|
|
188
188
|
})
|
|
189
189
|
);
|
|
190
|
-
|
|
190
|
+
_chunkVVEUVVMGjs.writeSuccess.call(void 0,
|
|
191
191
|
`Successfully uploaded the ${projectName} component to the Cyclone Registry`,
|
|
192
192
|
config
|
|
193
193
|
);
|
|
@@ -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.63.
|
|
10
|
+
version: "0.63.55",
|
|
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",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KTDBYRR3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EXI6FHST.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-UHK467WZ.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__dirname
|
|
18
18
|
} from "./chunk-ZJLCWNVH.mjs";
|
|
@@ -149,7 +149,6 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
149
149
|
|
|
150
150
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
151
151
|
var rootFiles = [
|
|
152
|
-
"storm-workspace.json",
|
|
153
152
|
"storm-workspace.json",
|
|
154
153
|
"storm-workspace.yaml",
|
|
155
154
|
"storm-workspace.yml",
|
|
@@ -1,14 +1,14 @@
|
|
|
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 _chunkVVEUVVMGjs = require('./chunk-VVEUVVMG.js');
|
|
5
5
|
|
|
6
6
|
// src/utils/r2-bucket-helpers.ts
|
|
7
7
|
var _crypto = require('crypto');
|
|
8
8
|
var r2UploadFile = async (client, bucketName, projectPath, fileName, version, fileContent, contentType = "text/plain", isDryRun = false) => {
|
|
9
9
|
const checksum = _crypto.createHash.call(void 0, "sha256").update(fileContent).digest("base64");
|
|
10
10
|
const fileKey = `${projectPath}/${fileName.startsWith("/") ? fileName.substring(1) : fileName}`;
|
|
11
|
-
|
|
11
|
+
_chunkVVEUVVMGjs.writeDebug.call(void 0, `Uploading file: ${fileKey}`);
|
|
12
12
|
if (!isDryRun) {
|
|
13
13
|
await client.putObject({
|
|
14
14
|
Bucket: bucketName,
|
|
@@ -21,7 +21,7 @@ var r2UploadFile = async (client, bucketName, projectPath, fileName, version, fi
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
} else {
|
|
24
|
-
|
|
24
|
+
_chunkVVEUVVMGjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
var getInternalDependencies = (projectName, graph) => {
|
|
@@ -149,7 +149,6 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
149
149
|
|
|
150
150
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
151
151
|
var rootFiles = [
|
|
152
|
-
"storm-workspace.json",
|
|
153
152
|
"storm-workspace.json",
|
|
154
153
|
"storm-workspace.yaml",
|
|
155
154
|
"storm-workspace.yml",
|