@storm-software/cloudflare-tools 0.63.18 → 0.63.20
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-OL65RB72.js → chunk-46LEVY35.js} +48 -44
- package/dist/{chunk-CLLH7VQR.mjs → chunk-4E7CQJWL.mjs} +1 -1
- package/dist/{chunk-BCGXRI3A.js → chunk-4N3ZMAXN.js} +12 -12
- package/dist/{chunk-SQUJ3SXL.js → chunk-5ENKRUAU.js} +1 -0
- package/dist/{chunk-2HJQOPBD.js → chunk-DTL2T3BP.js} +3 -3
- package/dist/{chunk-GOL5LHR6.mjs → chunk-E2ZPWAPC.mjs} +1 -0
- package/dist/{chunk-5M3ADTI2.mjs → chunk-EPBMBQ4K.mjs} +3 -3
- package/dist/{chunk-6XLZW53F.js → chunk-HKXGZZ4U.js} +117 -117
- package/dist/{chunk-7H2K6PT4.mjs → chunk-IPQFZI7C.mjs} +6 -2
- package/dist/{chunk-4HGNUVBV.mjs → chunk-MIAKQA3Y.mjs} +1 -1
- package/dist/{chunk-MEMSFPH7.js → chunk-NMIFO3EO.js} +2 -2
- package/dist/{chunk-R6VL7HNO.mjs → chunk-QU3IUQ3W.mjs} +4 -4
- package/dist/{chunk-JHXH6ZN3.mjs → chunk-SJE3AZ5R.mjs} +1 -1
- package/dist/{chunk-Q6WFFOSW.js → chunk-VI7OHBFH.js} +16 -16
- package/dist/{chunk-Z3BGN32E.mjs → chunk-XUF2GGAM.mjs} +3 -3
- package/dist/{chunk-2D6E5WHF.mjs → chunk-ZRULUFIZ.mjs} +3 -3
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +7 -7
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +5 -5
- package/dist/index.js +8 -8
- package/dist/index.mjs +9 -9
- package/dist/src/executors/cloudflare-publish/executor.js +3 -3
- package/dist/src/executors/cloudflare-publish/executor.mjs +5 -5
- package/dist/src/executors/r2-upload-publish/executor.js +5 -5
- package/dist/src/executors/r2-upload-publish/executor.mjs +5 -5
- package/dist/src/executors/serve/executor.js +4 -4
- package/dist/src/executors/serve/executor.mjs +4 -4
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +2 -2
- package/dist/src/generators/worker/generator.js +5 -5
- package/dist/src/generators/worker/generator.mjs +5 -5
- package/dist/src/utils/index.js +3 -3
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/r2-bucket-helpers.js +3 -3
- package/dist/src/utils/r2-bucket-helpers.mjs +3 -3
- package/dist/tsup.config.mjs +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.63.19](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.19) (2025-06-08)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
|
|
11
|
+
## [0.63.18](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.18) (2025-06-06)
|
|
12
|
+
|
|
13
|
+
### Miscellaneous
|
|
14
|
+
|
|
15
|
+
- **monorepo:** Regenerate README markdown files
|
|
16
|
+
|
|
5
17
|
## [0.63.17](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.17) (2025-06-06)
|
|
6
18
|
|
|
7
19
|
### 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 -->
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk5ENKRUAUjs = require('./chunk-5ENKRUAU.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 || _chunk5ENKRUAUjs.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 : _chunk5ENKRUAUjs.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 : _chunk5ENKRUAUjs.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 : _chunk5ENKRUAUjs.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
|
+
_chunk5ENKRUAUjs.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
|
+
_chunk5ENKRUAUjs.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"
|
|
@@ -144,20 +144,21 @@ var getConfigEnv = () => {
|
|
|
144
144
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
145
145
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
146
146
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
147
|
+
portal: process.env[`${prefix}PORTAL`] || void 0,
|
|
147
148
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
148
149
|
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
149
150
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
150
151
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
151
152
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
152
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
153
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
153
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunk5ENKRUAUjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
154
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunk5ENKRUAUjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
154
155
|
directories: {
|
|
155
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
156
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
157
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
158
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
159
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
160
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
156
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunk5ENKRUAUjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunk5ENKRUAUjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
157
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunk5ENKRUAUjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunk5ENKRUAUjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
158
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunk5ENKRUAUjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunk5ENKRUAUjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
159
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunk5ENKRUAUjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunk5ENKRUAUjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
160
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunk5ENKRUAUjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunk5ENKRUAUjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
161
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunk5ENKRUAUjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunk5ENKRUAUjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
161
162
|
},
|
|
162
163
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
163
164
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -182,13 +183,13 @@ var getConfigEnv = () => {
|
|
|
182
183
|
},
|
|
183
184
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
184
185
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
185
|
-
) ?
|
|
186
|
+
) ? _chunk5ENKRUAUjs.getLogLevelLabel.call(void 0,
|
|
186
187
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
187
188
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
188
189
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
189
190
|
};
|
|
190
191
|
const themeNames = Object.keys(process.env).filter(
|
|
191
|
-
(envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
192
|
+
(envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunk5ENKRUAUjs.COLOR_KEYS.every(
|
|
192
193
|
(colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
|
|
193
194
|
)
|
|
194
195
|
);
|
|
@@ -199,16 +200,16 @@ var getConfigEnv = () => {
|
|
|
199
200
|
},
|
|
200
201
|
{}
|
|
201
202
|
) : getThemeColorConfigEnv(prefix);
|
|
202
|
-
if (config.docs ===
|
|
203
|
-
if (config.homepage ===
|
|
204
|
-
config.docs = `${
|
|
203
|
+
if (config.docs === _chunk5ENKRUAUjs.STORM_DEFAULT_DOCS) {
|
|
204
|
+
if (config.homepage === _chunk5ENKRUAUjs.STORM_DEFAULT_HOMEPAGE) {
|
|
205
|
+
config.docs = `${_chunk5ENKRUAUjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
205
206
|
} else {
|
|
206
207
|
config.docs = `${config.homepage}/docs`;
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
|
-
if (config.licensing ===
|
|
210
|
-
if (config.homepage ===
|
|
211
|
-
config.licensing = `${
|
|
210
|
+
if (config.licensing === _chunk5ENKRUAUjs.STORM_DEFAULT_LICENSING) {
|
|
211
|
+
if (config.homepage === _chunk5ENKRUAUjs.STORM_DEFAULT_HOMEPAGE) {
|
|
212
|
+
config.licensing = `${_chunk5ENKRUAUjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
212
213
|
} else {
|
|
213
214
|
config.licensing = `${config.homepage}/docs`;
|
|
214
215
|
}
|
|
@@ -359,6 +360,9 @@ var setConfigEnv = (config) => {
|
|
|
359
360
|
if (config.docs) {
|
|
360
361
|
process.env[`${prefix}DOCS`] = config.docs;
|
|
361
362
|
}
|
|
363
|
+
if (config.portal) {
|
|
364
|
+
process.env[`${prefix}PORTAL`] = config.portal;
|
|
365
|
+
}
|
|
362
366
|
if (config.licensing) {
|
|
363
367
|
process.env[`${prefix}LICENSING`] = config.licensing;
|
|
364
368
|
}
|
|
@@ -380,40 +384,40 @@ var setConfigEnv = (config) => {
|
|
|
380
384
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
381
385
|
}
|
|
382
386
|
if (config.configFile) {
|
|
383
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
387
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunk5ENKRUAUjs.correctPaths.call(void 0, config.configFile);
|
|
384
388
|
}
|
|
385
389
|
if (config.workspaceRoot) {
|
|
386
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
387
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
388
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
390
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunk5ENKRUAUjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
391
|
+
process.env.NX_WORKSPACE_ROOT = _chunk5ENKRUAUjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
392
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunk5ENKRUAUjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
389
393
|
}
|
|
390
394
|
if (config.directories) {
|
|
391
395
|
if (!config.skipCache && config.directories.cache) {
|
|
392
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
396
|
+
process.env[`${prefix}CACHE_DIR`] = _chunk5ENKRUAUjs.correctPaths.call(void 0,
|
|
393
397
|
config.directories.cache
|
|
394
398
|
);
|
|
395
399
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
396
400
|
}
|
|
397
401
|
if (config.directories.data) {
|
|
398
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
402
|
+
process.env[`${prefix}DATA_DIR`] = _chunk5ENKRUAUjs.correctPaths.call(void 0, config.directories.data);
|
|
399
403
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
400
404
|
}
|
|
401
405
|
if (config.directories.config) {
|
|
402
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
406
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunk5ENKRUAUjs.correctPaths.call(void 0,
|
|
403
407
|
config.directories.config
|
|
404
408
|
);
|
|
405
409
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
406
410
|
}
|
|
407
411
|
if (config.directories.temp) {
|
|
408
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
412
|
+
process.env[`${prefix}TEMP_DIR`] = _chunk5ENKRUAUjs.correctPaths.call(void 0, config.directories.temp);
|
|
409
413
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
410
414
|
}
|
|
411
415
|
if (config.directories.log) {
|
|
412
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
416
|
+
process.env[`${prefix}LOG_DIR`] = _chunk5ENKRUAUjs.correctPaths.call(void 0, config.directories.log);
|
|
413
417
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
414
418
|
}
|
|
415
419
|
if (config.directories.build) {
|
|
416
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
420
|
+
process.env[`${prefix}BUILD_DIR`] = _chunk5ENKRUAUjs.correctPaths.call(void 0,
|
|
417
421
|
config.directories.build
|
|
418
422
|
);
|
|
419
423
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -480,9 +484,9 @@ var setConfigEnv = (config) => {
|
|
|
480
484
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
481
485
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
482
486
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
483
|
-
|
|
487
|
+
_chunk5ENKRUAUjs.getLogLevel.call(void 0, config.logLevel) >= _chunk5ENKRUAUjs.LogLevel.DEBUG ? true : false
|
|
484
488
|
);
|
|
485
|
-
process.env.RUST_BACKTRACE =
|
|
489
|
+
process.env.RUST_BACKTRACE = _chunk5ENKRUAUjs.getLogLevel.call(void 0, config.logLevel) >= _chunk5ENKRUAUjs.LogLevel.DEBUG ? "full" : "none";
|
|
486
490
|
}
|
|
487
491
|
if (config.skipConfigLogging !== void 0) {
|
|
488
492
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -602,13 +606,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
602
606
|
if (!_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) || !_optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
603
607
|
let _workspaceRoot = workspaceRoot;
|
|
604
608
|
if (!_workspaceRoot) {
|
|
605
|
-
_workspaceRoot =
|
|
609
|
+
_workspaceRoot = _chunk5ENKRUAUjs.findWorkspaceRoot.call(void 0, );
|
|
606
610
|
}
|
|
607
611
|
const configEnv = getConfigEnv();
|
|
608
612
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
609
613
|
if (!configFile) {
|
|
610
614
|
if (!skipLogs) {
|
|
611
|
-
|
|
615
|
+
_chunk5ENKRUAUjs.writeWarning.call(void 0,
|
|
612
616
|
"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",
|
|
613
617
|
{ logLevel: "all" }
|
|
614
618
|
);
|
|
@@ -617,9 +621,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
617
621
|
return void 0;
|
|
618
622
|
}
|
|
619
623
|
}
|
|
620
|
-
const defaultConfig = await
|
|
621
|
-
result =
|
|
622
|
-
await
|
|
624
|
+
const defaultConfig = await _chunk5ENKRUAUjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
|
|
625
|
+
result = _chunk5ENKRUAUjs.applyDefaultConfig.call(void 0,
|
|
626
|
+
await _chunk5ENKRUAUjs.stormWorkspaceConfigSchema.parseAsync(
|
|
623
627
|
_defu2.default.call(void 0, configEnv, configFile, defaultConfig)
|
|
624
628
|
)
|
|
625
629
|
);
|
|
@@ -661,9 +665,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
661
665
|
);
|
|
662
666
|
setConfigEnv(config);
|
|
663
667
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
664
|
-
|
|
668
|
+
_chunk5ENKRUAUjs.writeTrace.call(void 0,
|
|
665
669
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
666
|
-
${
|
|
670
|
+
${_chunk5ENKRUAUjs.formatLogMessage.call(void 0, config)}`,
|
|
667
671
|
config
|
|
668
672
|
);
|
|
669
673
|
}
|
|
@@ -674,10 +678,10 @@ ${_chunkSQUJ3SXLjs.formatLogMessage.call(void 0, config)}`,
|
|
|
674
678
|
var getConfig = (workspaceRoot, skipLogs = false) => {
|
|
675
679
|
return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
|
|
676
680
|
};
|
|
677
|
-
var getWorkspaceConfig = (skipLogs =
|
|
681
|
+
var getWorkspaceConfig = (skipLogs = true, options = {}) => {
|
|
678
682
|
let workspaceRoot = options.workspaceRoot;
|
|
679
683
|
if (!workspaceRoot) {
|
|
680
|
-
workspaceRoot =
|
|
684
|
+
workspaceRoot = _chunk5ENKRUAUjs.findWorkspaceRoot.call(void 0, options.cwd);
|
|
681
685
|
}
|
|
682
686
|
return getConfig(workspaceRoot, skipLogs);
|
|
683
687
|
};
|
|
@@ -9,7 +9,7 @@ var __commonJS = (cb, mod) => function __require2() {
|
|
|
9
9
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
12
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__deccc012ca3d76a488bb648f108085a9/node_modules/tsup/assets/esm_shims.js
|
|
13
13
|
import { fileURLToPath } from "url";
|
|
14
14
|
import path from "path";
|
|
15
15
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkNMIFO3EOjs = require('./chunk-NMIFO3EO.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk46LEVY35js = require('./chunk-46LEVY35.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ var _chunkOL65RB72js = require('./chunk-OL65RB72.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk5ENKRUAUjs = require('./chunk-5ENKRUAU.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 = _chunk5ENKRUAUjs.getStopwatch.call(void 0, "Storm Worker generator");
|
|
49
49
|
let config;
|
|
50
50
|
try {
|
|
51
|
-
|
|
51
|
+
_chunk5ENKRUAUjs.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
|
|
52
52
|
|
|
53
53
|
`, config);
|
|
54
|
-
const workspaceRoot =
|
|
55
|
-
|
|
54
|
+
const workspaceRoot = _chunk5ENKRUAUjs.findWorkspaceRoot.call(void 0, );
|
|
55
|
+
_chunk5ENKRUAUjs.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 _chunk46LEVY35js.getConfig.call(void 0, workspaceRoot);
|
|
61
|
+
_chunk5ENKRUAUjs.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 _chunkNMIFO3EOjs.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
|
+
_chunk5ENKRUAUjs.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
|
+
_chunk5ENKRUAUjs.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}`,
|
|
@@ -422,6 +422,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
422
422
|
license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
423
423
|
homepage: _zod2.default.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
424
424
|
docs: _zod2.default.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
425
|
+
portal: _zod2.default.string().trim().url().optional().describe("The development portal site for the workspace"),
|
|
425
426
|
licensing: _zod2.default.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
426
427
|
contact: _zod2.default.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
427
428
|
support: _zod2.default.string().trim().url().optional().describe(
|
|
@@ -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 _chunk5ENKRUAUjs = require('./chunk-5ENKRUAU.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
|
+
_chunk5ENKRUAUjs.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
|
+
_chunk5ENKRUAUjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
var getInternalDependencies = (projectName, graph) => {
|
|
@@ -422,6 +422,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
422
422
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
423
423
|
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
424
424
|
docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
425
|
+
portal: z.string().trim().url().optional().describe("The development portal site for the workspace"),
|
|
425
426
|
licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
426
427
|
contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
427
428
|
support: z.string().trim().url().optional().describe(
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getInternalDependencies,
|
|
3
3
|
r2UploadFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SJE3AZ5R.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCliOptions,
|
|
7
7
|
getPackageInfo
|
|
8
8
|
} from "./chunk-RH2IXKSC.mjs";
|
|
9
9
|
import {
|
|
10
10
|
getConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IPQFZI7C.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-E2ZPWAPC.mjs";
|
|
19
19
|
|
|
20
20
|
// src/executors/r2-upload-publish/executor.ts
|
|
21
21
|
import { S3 } from "@aws-sdk/client-s3";
|