@storm-software/cloudflare-tools 0.63.28 → 0.63.30
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-6TGFIMO5.js → chunk-2EUSZYH5.js} +2 -2
- package/dist/{chunk-DMJM3W36.js → chunk-7MAPPPBJ.js} +12 -12
- package/dist/{chunk-YKB65IP2.mjs → chunk-AUICIV5D.mjs} +2 -2
- package/dist/{chunk-IATTWS2I.js → chunk-CDTGH4KA.js} +4 -4
- package/dist/{chunk-PJGFLSPV.js → chunk-FQ6CFCZ4.js} +121 -121
- package/dist/{chunk-GL7JLG36.js → chunk-G7PYIAIC.js} +19 -19
- package/dist/{chunk-DW5K6TQT.mjs → chunk-GI4E6554.mjs} +1 -1
- package/dist/{chunk-J6WBZNBT.js → chunk-IJR65XVT.js} +3 -3
- package/dist/{chunk-T2OGA6MB.js → chunk-IRORGRVZ.js} +2 -2
- package/dist/{chunk-I5P7M77J.mjs → chunk-JGI2NCZG.mjs} +1 -1
- package/dist/{chunk-B7N6WOYD.mjs → chunk-KE6LNIF6.mjs} +1 -1
- package/dist/{chunk-ZHQVMJQB.mjs → chunk-LKGAK575.mjs} +4 -4
- package/dist/{chunk-AOLWFHH5.mjs → chunk-M66N7IMM.mjs} +4 -4
- package/dist/{chunk-KTFMIXUN.js → chunk-NU34IEWN.js} +27 -23
- package/dist/{chunk-RH2IXKSC.mjs → chunk-PH3DHY4Q.mjs} +26 -22
- package/dist/{chunk-LVQQJNPK.mjs → chunk-SKLIA2UT.mjs} +4 -4
- package/dist/{chunk-QTMO3CXB.mjs → chunk-UKV5HDN7.mjs} +3 -3
- package/dist/{chunk-D5YG7CU5.mjs → chunk-WMN2C3TD.mjs} +4 -4
- package/dist/{chunk-YMATJZEA.js → chunk-Z4HK3FW2.js} +43 -43
- package/dist/executors.js +7 -7
- package/dist/executors.mjs +8 -8
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +5 -5
- package/dist/index.js +18 -18
- package/dist/index.mjs +10 -10
- package/dist/src/executors/cloudflare-publish/executor.js +6 -6
- package/dist/src/executors/cloudflare-publish/executor.mjs +6 -6
- package/dist/src/executors/r2-upload-publish/executor.js +6 -6
- package/dist/src/executors/r2-upload-publish/executor.mjs +6 -6
- package/dist/src/executors/serve/executor.js +6 -6
- package/dist/src/executors/serve/executor.mjs +5 -5
- 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 +4 -3
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkCDTGH4KAjs = require('./chunk-CDTGH4KA.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 || _chunkCDTGH4KAjs.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 : _chunkCDTGH4KAjs.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 : _chunkCDTGH4KAjs.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 : _chunkCDTGH4KAjs.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
|
+
_chunkCDTGH4KAjs.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
|
+
_chunkCDTGH4KAjs.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`] ? _chunkCDTGH4KAjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
160
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkCDTGH4KAjs.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`] ? _chunkCDTGH4KAjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkCDTGH4KAjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
163
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkCDTGH4KAjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkCDTGH4KAjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
164
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkCDTGH4KAjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkCDTGH4KAjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
165
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkCDTGH4KAjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkCDTGH4KAjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
166
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkCDTGH4KAjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkCDTGH4KAjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
167
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkCDTGH4KAjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkCDTGH4KAjs.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
|
+
) ? _chunkCDTGH4KAjs.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_`) && _chunkCDTGH4KAjs.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 === _chunkCDTGH4KAjs.STORM_DEFAULT_DOCS) {
|
|
210
|
+
if (config.homepage === _chunkCDTGH4KAjs.STORM_DEFAULT_HOMEPAGE) {
|
|
211
|
+
config.docs = `${_chunkCDTGH4KAjs.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 === _chunkCDTGH4KAjs.STORM_DEFAULT_LICENSING) {
|
|
217
|
+
if (config.homepage === _chunkCDTGH4KAjs.STORM_DEFAULT_HOMEPAGE) {
|
|
218
|
+
config.licensing = `${_chunkCDTGH4KAjs.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`] = _chunkCDTGH4KAjs.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`] = _chunkCDTGH4KAjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
423
|
+
process.env.NX_WORKSPACE_ROOT = _chunkCDTGH4KAjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
424
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkCDTGH4KAjs.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`] = _chunkCDTGH4KAjs.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`] = _chunkCDTGH4KAjs.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`] = _chunkCDTGH4KAjs.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`] = _chunkCDTGH4KAjs.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`] = _chunkCDTGH4KAjs.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`] = _chunkCDTGH4KAjs.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
|
+
_chunkCDTGH4KAjs.getLogLevel.call(void 0, config.logLevel) >= _chunkCDTGH4KAjs.LogLevel.DEBUG ? true : false
|
|
520
520
|
);
|
|
521
|
-
process.env.RUST_BACKTRACE =
|
|
521
|
+
process.env.RUST_BACKTRACE = _chunkCDTGH4KAjs.getLogLevel.call(void 0, config.logLevel) >= _chunkCDTGH4KAjs.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 = _chunkCDTGH4KAjs.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
|
+
_chunkCDTGH4KAjs.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 _chunkCDTGH4KAjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
|
|
657
|
+
result = _chunkCDTGH4KAjs.applyDefaultConfig.call(void 0,
|
|
658
|
+
await _chunkCDTGH4KAjs.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
|
+
_chunkCDTGH4KAjs.writeTrace.call(void 0,
|
|
701
701
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
702
|
-
${
|
|
702
|
+
${_chunkCDTGH4KAjs.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 = _chunkCDTGH4KAjs.findWorkspaceRoot.call(void 0, options.cwd);
|
|
717
717
|
}
|
|
718
718
|
return getConfig(workspaceRoot, skipLogs);
|
|
719
719
|
};
|
package/dist/executors.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";require('./chunk-XO66D74Z.js');
|
|
2
|
-
require('./chunk-
|
|
3
|
-
require('./chunk-
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
2
|
+
require('./chunk-IRORGRVZ.js');
|
|
3
|
+
require('./chunk-FQ6CFCZ4.js');
|
|
4
|
+
require('./chunk-G7PYIAIC.js');
|
|
5
|
+
require('./chunk-IJR65XVT.js');
|
|
6
|
+
require('./chunk-NU34IEWN.js');
|
|
7
|
+
require('./chunk-Z4HK3FW2.js');
|
|
8
|
+
require('./chunk-CDTGH4KA.js');
|
|
9
9
|
require('./chunk-MCKGQKYU.js');
|
package/dist/executors.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./chunk-YSCEY447.mjs";
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-AUICIV5D.mjs";
|
|
3
|
+
import "./chunk-LKGAK575.mjs";
|
|
4
|
+
import "./chunk-WMN2C3TD.mjs";
|
|
5
|
+
import "./chunk-GI4E6554.mjs";
|
|
6
|
+
import "./chunk-PH3DHY4Q.mjs";
|
|
7
|
+
import "./chunk-JGI2NCZG.mjs";
|
|
8
|
+
import "./chunk-SKLIA2UT.mjs";
|
|
9
|
+
import "./chunk-KE6LNIF6.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk7MAPPPBJjs = require('./chunk-7MAPPPBJ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
9
|
+
var _chunk2EUSZYH5js = require('./chunk-2EUSZYH5.js');
|
|
10
|
+
require('./chunk-Z4HK3FW2.js');
|
|
11
|
+
require('./chunk-CDTGH4KA.js');
|
|
12
12
|
require('./chunk-MCKGQKYU.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.applicationGenerator =
|
|
18
|
+
exports.applicationGenerator = _chunk7MAPPPBJjs.applicationGenerator; exports.applicationSchematic = _chunk7MAPPPBJjs.applicationSchematic; exports.initGenerator = _chunk2EUSZYH5js.initGenerator; exports.initSchematic = _chunk2EUSZYH5js.initSchematic;
|
package/dist/generators.mjs
CHANGED
|
@@ -2,14 +2,14 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
applicationGenerator,
|
|
4
4
|
applicationSchematic
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-M66N7IMM.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator,
|
|
8
8
|
initSchematic
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-UKV5HDN7.mjs";
|
|
10
|
+
import "./chunk-JGI2NCZG.mjs";
|
|
11
|
+
import "./chunk-SKLIA2UT.mjs";
|
|
12
|
+
import "./chunk-KE6LNIF6.mjs";
|
|
13
13
|
export {
|
|
14
14
|
applicationGenerator,
|
|
15
15
|
applicationSchematic,
|
package/dist/index.js
CHANGED
|
@@ -3,25 +3,25 @@ require('./chunk-DHBG5ASJ.js');
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7MAPPPBJjs = require('./chunk-7MAPPPBJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk2EUSZYH5js = require('./chunk-2EUSZYH5.js');
|
|
11
11
|
require('./chunk-CVGPWUNP.js');
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-IRORGRVZ.js');
|
|
13
|
+
require('./chunk-FQ6CFCZ4.js');
|
|
14
|
+
require('./chunk-G7PYIAIC.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkIJR65XVTjs = require('./chunk-IJR65XVT.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
23
|
-
require('./chunk-
|
|
24
|
-
require('./chunk-
|
|
22
|
+
var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
|
|
23
|
+
require('./chunk-Z4HK3FW2.js');
|
|
24
|
+
require('./chunk-CDTGH4KA.js');
|
|
25
25
|
require('./chunk-MCKGQKYU.js');
|
|
26
26
|
|
|
27
27
|
// src/plugins/index.ts
|
|
@@ -84,21 +84,21 @@ var createNodesV2 = [
|
|
|
84
84
|
executor: "@storm-software/cloudflare-tools:cloudflare-publish",
|
|
85
85
|
options: {}
|
|
86
86
|
};
|
|
87
|
-
|
|
87
|
+
_chunkNU34IEWNjs.addProjectTag.call(void 0,
|
|
88
88
|
project,
|
|
89
|
-
|
|
90
|
-
project.projectType === "application" ?
|
|
89
|
+
_chunkNU34IEWNjs.ProjectTagConstants.ProjectType.TAG_ID,
|
|
90
|
+
project.projectType === "application" ? _chunkNU34IEWNjs.ProjectTagConstants.ProjectType.APPLICATION : _chunkNU34IEWNjs.ProjectTagConstants.ProjectType.LIBRARY,
|
|
91
91
|
{ overwrite: true }
|
|
92
92
|
);
|
|
93
|
-
|
|
93
|
+
_chunkNU34IEWNjs.addProjectTag.call(void 0,
|
|
94
94
|
project,
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
_chunkNU34IEWNjs.ProjectTagConstants.DistStyle.TAG_ID,
|
|
96
|
+
_chunkNU34IEWNjs.ProjectTagConstants.DistStyle.CLEAN,
|
|
97
97
|
{ overwrite: true }
|
|
98
98
|
);
|
|
99
|
-
|
|
99
|
+
_chunkNU34IEWNjs.addProjectTag.call(void 0,
|
|
100
100
|
project,
|
|
101
|
-
|
|
101
|
+
_chunkNU34IEWNjs.ProjectTagConstants.Provider.TAG_ID,
|
|
102
102
|
"cloudflare",
|
|
103
103
|
{
|
|
104
104
|
overwrite: true
|
|
@@ -162,4 +162,4 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
|
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
|
|
165
|
-
exports.applicationGenerator =
|
|
165
|
+
exports.applicationGenerator = _chunk7MAPPPBJjs.applicationGenerator; exports.applicationSchematic = _chunk7MAPPPBJjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkIJR65XVTjs.getInternalDependencies; exports.initGenerator = _chunk2EUSZYH5js.initGenerator; exports.initSchematic = _chunk2EUSZYH5js.initSchematic; exports.name = name; exports.r2UploadFile = _chunkIJR65XVTjs.r2UploadFile;
|
package/dist/index.mjs
CHANGED
|
@@ -3,26 +3,26 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
applicationGenerator,
|
|
5
5
|
applicationSchematic
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M66N7IMM.mjs";
|
|
7
7
|
import {
|
|
8
8
|
initGenerator,
|
|
9
9
|
initSchematic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UKV5HDN7.mjs";
|
|
11
11
|
import "./chunk-7Z5PILRU.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-AUICIV5D.mjs";
|
|
13
|
+
import "./chunk-LKGAK575.mjs";
|
|
14
|
+
import "./chunk-WMN2C3TD.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getInternalDependencies,
|
|
17
17
|
r2UploadFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GI4E6554.mjs";
|
|
19
19
|
import {
|
|
20
20
|
ProjectTagConstants,
|
|
21
21
|
addProjectTag
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-PH3DHY4Q.mjs";
|
|
23
|
+
import "./chunk-JGI2NCZG.mjs";
|
|
24
|
+
import "./chunk-SKLIA2UT.mjs";
|
|
25
|
+
import "./chunk-KE6LNIF6.mjs";
|
|
26
26
|
|
|
27
27
|
// src/plugins/index.ts
|
|
28
28
|
import {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
require('../../../chunk-
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
3
|
+
var _chunkIRORGRVZjs = require('../../../chunk-IRORGRVZ.js');
|
|
4
|
+
require('../../../chunk-FQ6CFCZ4.js');
|
|
5
|
+
require('../../../chunk-NU34IEWN.js');
|
|
6
|
+
require('../../../chunk-Z4HK3FW2.js');
|
|
7
|
+
require('../../../chunk-CDTGH4KA.js');
|
|
8
8
|
require('../../../chunk-MCKGQKYU.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkIRORGRVZjs.runExecutor;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-AUICIV5D.mjs";
|
|
4
|
+
import "../../../chunk-LKGAK575.mjs";
|
|
5
|
+
import "../../../chunk-PH3DHY4Q.mjs";
|
|
6
|
+
import "../../../chunk-JGI2NCZG.mjs";
|
|
7
|
+
import "../../../chunk-SKLIA2UT.mjs";
|
|
8
|
+
import "../../../chunk-KE6LNIF6.mjs";
|
|
9
9
|
export {
|
|
10
10
|
runExecutor as default
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
require('../../../chunk-
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
3
|
+
var _chunkG7PYIAICjs = require('../../../chunk-G7PYIAIC.js');
|
|
4
|
+
require('../../../chunk-IJR65XVT.js');
|
|
5
|
+
require('../../../chunk-NU34IEWN.js');
|
|
6
|
+
require('../../../chunk-Z4HK3FW2.js');
|
|
7
|
+
require('../../../chunk-CDTGH4KA.js');
|
|
8
8
|
require('../../../chunk-MCKGQKYU.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkG7PYIAICjs.runExecutor;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-WMN2C3TD.mjs";
|
|
4
|
+
import "../../../chunk-GI4E6554.mjs";
|
|
5
|
+
import "../../../chunk-PH3DHY4Q.mjs";
|
|
6
|
+
import "../../../chunk-JGI2NCZG.mjs";
|
|
7
|
+
import "../../../chunk-SKLIA2UT.mjs";
|
|
8
|
+
import "../../../chunk-KE6LNIF6.mjs";
|
|
9
9
|
export {
|
|
10
10
|
runExecutor as default
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
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 _chunkFQ6CFCZ4js = require('../../../chunk-FQ6CFCZ4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('../../../chunk-
|
|
8
|
-
require('../../../chunk-
|
|
6
|
+
var _chunkNU34IEWNjs = require('../../../chunk-NU34IEWN.js');
|
|
7
|
+
require('../../../chunk-Z4HK3FW2.js');
|
|
8
|
+
require('../../../chunk-CDTGH4KA.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkMCKGQKYUjs = require('../../../chunk-MCKGQKYU.js');
|
|
@@ -19,7 +19,7 @@ async function* serveExecutor(options, context, config) {
|
|
|
19
19
|
throw new Error("Nx executor context was invalid");
|
|
20
20
|
}
|
|
21
21
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
22
|
-
const wranglerOptions =
|
|
22
|
+
const wranglerOptions = _chunkNU34IEWNjs.createCliOptions.call(void 0, { ...options });
|
|
23
23
|
const wranglerBin = _chunkMCKGQKYUjs.__require.resolve("wrangler/bin/wrangler");
|
|
24
24
|
yield* _asynciterable.createAsyncIterable.call(void 0,
|
|
25
25
|
async ({ done, next, error }) => {
|
|
@@ -55,7 +55,7 @@ async function* serveExecutor(options, context, config) {
|
|
|
55
55
|
success: true
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
var executor_default =
|
|
58
|
+
var executor_default = _chunkFQ6CFCZ4js.withRunExecutor.call(void 0,
|
|
59
59
|
"Cloudflare Serve executor",
|
|
60
60
|
serveExecutor,
|
|
61
61
|
{
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-LKGAK575.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createCliOptions
|
|
6
|
-
} from "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
6
|
+
} from "../../../chunk-PH3DHY4Q.mjs";
|
|
7
|
+
import "../../../chunk-JGI2NCZG.mjs";
|
|
8
|
+
import "../../../chunk-SKLIA2UT.mjs";
|
|
9
9
|
import {
|
|
10
10
|
__require
|
|
11
|
-
} from "../../../chunk-
|
|
11
|
+
} from "../../../chunk-KE6LNIF6.mjs";
|
|
12
12
|
|
|
13
13
|
// src/executors/serve/executor.ts
|
|
14
14
|
import { createAsyncIterable } from "@nx/devkit/src/utils/async-iterable";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk2EUSZYH5js = require('../../../chunk-2EUSZYH5.js');
|
|
6
6
|
require('../../../chunk-MCKGQKYU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunk2EUSZYH5js.generator_default; exports.initGenerator = _chunk2EUSZYH5js.initGenerator; exports.initSchematic = _chunk2EUSZYH5js.initSchematic;
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
generator_default,
|
|
3
3
|
initGenerator,
|
|
4
4
|
initSchematic
|
|
5
|
-
} from "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
5
|
+
} from "../../../chunk-UKV5HDN7.mjs";
|
|
6
|
+
import "../../../chunk-KE6LNIF6.mjs";
|
|
7
7
|
export {
|
|
8
8
|
generator_default as default,
|
|
9
9
|
initGenerator,
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
8
|
-
require('../../../chunk-
|
|
5
|
+
var _chunk7MAPPPBJjs = require('../../../chunk-7MAPPPBJ.js');
|
|
6
|
+
require('../../../chunk-2EUSZYH5.js');
|
|
7
|
+
require('../../../chunk-Z4HK3FW2.js');
|
|
8
|
+
require('../../../chunk-CDTGH4KA.js');
|
|
9
9
|
require('../../../chunk-MCKGQKYU.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.applicationGenerator =
|
|
14
|
+
exports.applicationGenerator = _chunk7MAPPPBJjs.applicationGenerator; exports.applicationSchematic = _chunk7MAPPPBJjs.applicationSchematic; exports.default = _chunk7MAPPPBJjs.generator_default;
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
applicationGenerator,
|
|
3
3
|
applicationSchematic,
|
|
4
4
|
generator_default
|
|
5
|
-
} from "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
5
|
+
} from "../../../chunk-M66N7IMM.mjs";
|
|
6
|
+
import "../../../chunk-UKV5HDN7.mjs";
|
|
7
|
+
import "../../../chunk-JGI2NCZG.mjs";
|
|
8
|
+
import "../../../chunk-SKLIA2UT.mjs";
|
|
9
|
+
import "../../../chunk-KE6LNIF6.mjs";
|
|
10
10
|
export {
|
|
11
11
|
applicationGenerator,
|
|
12
12
|
applicationSchematic,
|