@storm-software/cloudflare-tools 0.63.31 → 0.63.33
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 +14 -0
- package/README.md +1 -1
- package/dist/{chunk-Z4HK3FW2.js → chunk-3ABSELN3.js} +43 -43
- package/dist/{chunk-IJR65XVT.js → chunk-4XXUCUVI.js} +3 -3
- package/dist/{chunk-MP7QLAVL.mjs → chunk-6H6MKZQ7.mjs} +4 -4
- package/dist/{chunk-JGI2NCZG.mjs → chunk-7CXH5XWJ.mjs} +1 -1
- package/dist/{chunk-FQ6CFCZ4.js → chunk-7MM6WLI6.js} +117 -117
- package/dist/{chunk-A6CYPN2F.js → chunk-B4PXKLXT.js} +1 -1
- package/dist/{chunk-G7PYIAIC.js → chunk-FAIKXYDC.js} +16 -16
- package/dist/{chunk-KE6LNIF6.mjs → chunk-FL6L3SDK.mjs} +1 -1
- package/dist/{chunk-LKGAK575.mjs → chunk-GL2G4SRT.mjs} +3 -3
- package/dist/{chunk-QI5SVNM3.mjs → chunk-NELBCV2E.mjs} +2 -2
- package/dist/{chunk-WMN2C3TD.mjs → chunk-POEVQ725.mjs} +3 -3
- package/dist/{chunk-SKLIA2UT.mjs → chunk-QFA6RHCR.mjs} +3 -3
- package/dist/{chunk-GI4E6554.mjs → chunk-WYGILGLB.mjs} +1 -1
- package/dist/{chunk-VCDWXATZ.js → chunk-X7RDEX3N.js} +12 -12
- package/dist/{chunk-CDTGH4KA.js → chunk-XMF3FE4S.js} +3 -3
- package/dist/{chunk-AUICIV5D.mjs → chunk-YRYNQ5UK.mjs} +1 -1
- 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,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.63.32](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.32) (2025-06-27)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerated README markdown files
|
|
10
|
+
([e86c0228b](https://github.com/storm-software/storm-ops/commit/e86c0228b))
|
|
11
|
+
|
|
12
|
+
## [0.63.31](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.31) (2025-06-27)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Regenerate README markdown files
|
|
17
|
+
([6358bee04](https://github.com/storm-software/storm-ops/commit/6358bee04))
|
|
18
|
+
|
|
5
19
|
## [0.63.30](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.30) (2025-06-26)
|
|
6
20
|
|
|
7
21
|
### 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 _chunkXMF3FE4Sjs = require('./chunk-XMF3FE4S.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 || _chunkXMF3FE4Sjs.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 : _chunkXMF3FE4Sjs.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 : _chunkXMF3FE4Sjs.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 : _chunkXMF3FE4Sjs.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
|
+
_chunkXMF3FE4Sjs.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
|
+
_chunkXMF3FE4Sjs.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`] ? _chunkXMF3FE4Sjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
160
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkXMF3FE4Sjs.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`] ? _chunkXMF3FE4Sjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkXMF3FE4Sjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
163
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkXMF3FE4Sjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkXMF3FE4Sjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
164
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkXMF3FE4Sjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkXMF3FE4Sjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
165
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkXMF3FE4Sjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkXMF3FE4Sjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
166
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkXMF3FE4Sjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkXMF3FE4Sjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
167
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkXMF3FE4Sjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkXMF3FE4Sjs.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,
|
|
@@ -189,13 +189,13 @@ var getConfigEnv = () => {
|
|
|
189
189
|
},
|
|
190
190
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
191
191
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
192
|
-
) ?
|
|
192
|
+
) ? _chunkXMF3FE4Sjs.getLogLevelLabel.call(void 0,
|
|
193
193
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
194
194
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
195
195
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
196
196
|
};
|
|
197
197
|
const themeNames = Object.keys(process.env).filter(
|
|
198
|
-
(envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
198
|
+
(envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkXMF3FE4Sjs.COLOR_KEYS.every(
|
|
199
199
|
(colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
|
|
200
200
|
)
|
|
201
201
|
);
|
|
@@ -206,16 +206,16 @@ var getConfigEnv = () => {
|
|
|
206
206
|
},
|
|
207
207
|
{}
|
|
208
208
|
) : getThemeColorConfigEnv(prefix);
|
|
209
|
-
if (config.docs ===
|
|
210
|
-
if (config.homepage ===
|
|
211
|
-
config.docs = `${
|
|
209
|
+
if (config.docs === _chunkXMF3FE4Sjs.STORM_DEFAULT_DOCS) {
|
|
210
|
+
if (config.homepage === _chunkXMF3FE4Sjs.STORM_DEFAULT_HOMEPAGE) {
|
|
211
|
+
config.docs = `${_chunkXMF3FE4Sjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
212
212
|
} else {
|
|
213
213
|
config.docs = `${config.homepage}/docs`;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
if (config.licensing ===
|
|
217
|
-
if (config.homepage ===
|
|
218
|
-
config.licensing = `${
|
|
216
|
+
if (config.licensing === _chunkXMF3FE4Sjs.STORM_DEFAULT_LICENSING) {
|
|
217
|
+
if (config.homepage === _chunkXMF3FE4Sjs.STORM_DEFAULT_HOMEPAGE) {
|
|
218
|
+
config.licensing = `${_chunkXMF3FE4Sjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
219
219
|
} else {
|
|
220
220
|
config.licensing = `${config.homepage}/docs`;
|
|
221
221
|
}
|
|
@@ -416,40 +416,40 @@ var setConfigEnv = (config) => {
|
|
|
416
416
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
417
417
|
}
|
|
418
418
|
if (config.configFile) {
|
|
419
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
419
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkXMF3FE4Sjs.correctPaths.call(void 0, config.configFile);
|
|
420
420
|
}
|
|
421
421
|
if (config.workspaceRoot) {
|
|
422
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
423
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
424
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
422
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkXMF3FE4Sjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
423
|
+
process.env.NX_WORKSPACE_ROOT = _chunkXMF3FE4Sjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
424
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkXMF3FE4Sjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
425
425
|
}
|
|
426
426
|
if (config.directories) {
|
|
427
427
|
if (!config.skipCache && config.directories.cache) {
|
|
428
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
428
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkXMF3FE4Sjs.correctPaths.call(void 0,
|
|
429
429
|
config.directories.cache
|
|
430
430
|
);
|
|
431
431
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
432
432
|
}
|
|
433
433
|
if (config.directories.data) {
|
|
434
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
434
|
+
process.env[`${prefix}DATA_DIR`] = _chunkXMF3FE4Sjs.correctPaths.call(void 0, config.directories.data);
|
|
435
435
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
436
436
|
}
|
|
437
437
|
if (config.directories.config) {
|
|
438
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
438
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkXMF3FE4Sjs.correctPaths.call(void 0,
|
|
439
439
|
config.directories.config
|
|
440
440
|
);
|
|
441
441
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
442
442
|
}
|
|
443
443
|
if (config.directories.temp) {
|
|
444
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
444
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkXMF3FE4Sjs.correctPaths.call(void 0, config.directories.temp);
|
|
445
445
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
446
446
|
}
|
|
447
447
|
if (config.directories.log) {
|
|
448
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
448
|
+
process.env[`${prefix}LOG_DIR`] = _chunkXMF3FE4Sjs.correctPaths.call(void 0, config.directories.log);
|
|
449
449
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
450
450
|
}
|
|
451
451
|
if (config.directories.build) {
|
|
452
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
452
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkXMF3FE4Sjs.correctPaths.call(void 0,
|
|
453
453
|
config.directories.build
|
|
454
454
|
);
|
|
455
455
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -516,9 +516,9 @@ var setConfigEnv = (config) => {
|
|
|
516
516
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
517
517
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
518
518
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
519
|
-
|
|
519
|
+
_chunkXMF3FE4Sjs.getLogLevel.call(void 0, config.logLevel) >= _chunkXMF3FE4Sjs.LogLevel.DEBUG ? true : false
|
|
520
520
|
);
|
|
521
|
-
process.env.RUST_BACKTRACE =
|
|
521
|
+
process.env.RUST_BACKTRACE = _chunkXMF3FE4Sjs.getLogLevel.call(void 0, config.logLevel) >= _chunkXMF3FE4Sjs.LogLevel.DEBUG ? "full" : "none";
|
|
522
522
|
}
|
|
523
523
|
if (config.skipConfigLogging !== void 0) {
|
|
524
524
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -638,13 +638,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
638
638
|
if (!_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) || !_optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
639
639
|
let _workspaceRoot = workspaceRoot;
|
|
640
640
|
if (!_workspaceRoot) {
|
|
641
|
-
_workspaceRoot =
|
|
641
|
+
_workspaceRoot = _chunkXMF3FE4Sjs.findWorkspaceRoot.call(void 0, );
|
|
642
642
|
}
|
|
643
643
|
const configEnv = getConfigEnv();
|
|
644
644
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
645
645
|
if (!configFile) {
|
|
646
646
|
if (!skipLogs) {
|
|
647
|
-
|
|
647
|
+
_chunkXMF3FE4Sjs.writeWarning.call(void 0,
|
|
648
648
|
"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",
|
|
649
649
|
{ logLevel: "all" }
|
|
650
650
|
);
|
|
@@ -653,9 +653,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
653
653
|
return void 0;
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
const defaultConfig = await
|
|
657
|
-
result =
|
|
658
|
-
await
|
|
656
|
+
const defaultConfig = await _chunkXMF3FE4Sjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
|
|
657
|
+
result = _chunkXMF3FE4Sjs.applyDefaultConfig.call(void 0,
|
|
658
|
+
await _chunkXMF3FE4Sjs.stormWorkspaceConfigSchema.parseAsync(
|
|
659
659
|
_defu2.default.call(void 0, configEnv, configFile, defaultConfig)
|
|
660
660
|
)
|
|
661
661
|
);
|
|
@@ -697,9 +697,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
697
697
|
);
|
|
698
698
|
setConfigEnv(config);
|
|
699
699
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
700
|
-
|
|
700
|
+
_chunkXMF3FE4Sjs.writeTrace.call(void 0,
|
|
701
701
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
702
|
-
${
|
|
702
|
+
${_chunkXMF3FE4Sjs.formatLogMessage.call(void 0, config)}`,
|
|
703
703
|
config
|
|
704
704
|
);
|
|
705
705
|
}
|
|
@@ -713,7 +713,7 @@ var getConfig = (workspaceRoot, skipLogs = false) => {
|
|
|
713
713
|
var getWorkspaceConfig = (skipLogs = true, options = {}) => {
|
|
714
714
|
let workspaceRoot = options.workspaceRoot;
|
|
715
715
|
if (!workspaceRoot) {
|
|
716
|
-
workspaceRoot =
|
|
716
|
+
workspaceRoot = _chunkXMF3FE4Sjs.findWorkspaceRoot.call(void 0, options.cwd);
|
|
717
717
|
}
|
|
718
718
|
return getConfig(workspaceRoot, skipLogs);
|
|
719
719
|
};
|
|
@@ -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 _chunkXMF3FE4Sjs = require('./chunk-XMF3FE4S.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
|
+
_chunkXMF3FE4Sjs.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
|
+
_chunkXMF3FE4Sjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
var getInternalDependencies = (projectName, graph) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NELBCV2E.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7CXH5XWJ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot,
|
|
9
9
|
getStopwatch,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
writeFatal,
|
|
13
13
|
writeInfo,
|
|
14
14
|
writeTrace
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QFA6RHCR.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__dirname
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FL6L3SDK.mjs";
|
|
19
19
|
|
|
20
20
|
// src/generators/worker/generator.ts
|
|
21
21
|
import {
|