@storm-software/cloudflare-tools 0.71.39 → 0.71.40
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 +7 -0
- package/dist/{chunk-VXBGUJBD.js → chunk-24LHZDRM.js} +41 -11
- package/dist/{chunk-LCOEW472.mjs → chunk-3AVA7WBV.mjs} +2 -2
- package/dist/{chunk-UZODNPP7.js → chunk-52VIMULT.js} +34 -34
- package/dist/{chunk-4UDXVHCG.js → chunk-7UJIMNJJ.js} +18 -18
- package/dist/{chunk-MA3DKCNU.mjs → chunk-EHQFNZDX.mjs} +3 -3
- package/dist/{chunk-I5SWGAWE.js → chunk-GWK4ATXM.js} +5 -5
- package/dist/{chunk-Q5YIARCL.mjs → chunk-JBDAUHY2.mjs} +41 -11
- package/dist/{chunk-7YSJQ3QY.js → chunk-LATQZLNM.js} +3 -3
- package/dist/{chunk-E3ASASDB.mjs → chunk-R5QM35JD.mjs} +3 -3
- package/dist/{chunk-KRWY2PQY.mjs → chunk-R7ZJ4P5G.mjs} +3 -3
- package/dist/{chunk-QR2JEXGR.mjs → chunk-RIOIN7EX.mjs} +1 -1
- package/dist/{chunk-SBZF6GML.js → chunk-T2W5AJQE.js} +165 -165
- package/dist/{chunk-EHGAIWWE.js → chunk-XA3YT5XO.js} +12 -12
- package/dist/{chunk-SNMJDKDN.mjs → chunk-YG2UFXE2.mjs} +1 -1
- 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 +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.71.39](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.39) (01/14/2026)
|
|
6
|
+
|
|
7
|
+
### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated **workspace-tools** to **v1.294.24**
|
|
10
|
+
- Updated **config-tools** to **v1.188.78**
|
|
11
|
+
|
|
5
12
|
## [0.71.38](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.38) (01/14/2026)
|
|
6
13
|
|
|
7
14
|
### Updated Dependencies
|
|
@@ -111,9 +111,9 @@ function isUnicodeSupported() {
|
|
|
111
111
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
112
112
|
var CONSOLE_ICONS = {
|
|
113
113
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
114
|
-
[LogLevelLabel.FATAL]: useIcon("\
|
|
114
|
+
[LogLevelLabel.FATAL]: useIcon("\u2622", "\xD7"),
|
|
115
115
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
116
|
-
[LogLevelLabel.INFO]: useIcon("\
|
|
116
|
+
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
117
117
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
118
118
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
119
119
|
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
@@ -188,7 +188,11 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
|
188
188
|
return (message) => {
|
|
189
189
|
console.error(
|
|
190
190
|
`
|
|
191
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
191
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
192
|
+
_nullishCoalesce(colors.fatal, () => ( DEFAULT_COLOR_CONFIG.dark.fatal))
|
|
193
|
+
)(
|
|
194
|
+
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
195
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
192
196
|
`
|
|
193
197
|
);
|
|
194
198
|
};
|
|
@@ -197,7 +201,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, ()
|
|
|
197
201
|
return (message) => {
|
|
198
202
|
console.error(
|
|
199
203
|
`
|
|
200
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
204
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
205
|
+
_nullishCoalesce(colors.danger, () => ( DEFAULT_COLOR_CONFIG.dark.danger))
|
|
206
|
+
)(
|
|
207
|
+
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
208
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
201
209
|
`
|
|
202
210
|
);
|
|
203
211
|
};
|
|
@@ -206,7 +214,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, (
|
|
|
206
214
|
return (message) => {
|
|
207
215
|
console.warn(
|
|
208
216
|
`
|
|
209
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
217
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
218
|
+
_nullishCoalesce(colors.warning, () => ( DEFAULT_COLOR_CONFIG.dark.warning))
|
|
219
|
+
)(
|
|
220
|
+
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
221
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
210
222
|
`
|
|
211
223
|
);
|
|
212
224
|
};
|
|
@@ -215,7 +227,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning,
|
|
|
215
227
|
return (message) => {
|
|
216
228
|
console.info(
|
|
217
229
|
`
|
|
218
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
230
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
231
|
+
_nullishCoalesce(colors.success, () => ( DEFAULT_COLOR_CONFIG.dark.success))
|
|
232
|
+
)(
|
|
233
|
+
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
234
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
219
235
|
`
|
|
220
236
|
);
|
|
221
237
|
};
|
|
@@ -224,7 +240,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success,
|
|
|
224
240
|
return (message) => {
|
|
225
241
|
console.info(
|
|
226
242
|
`
|
|
227
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
243
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
244
|
+
_nullishCoalesce(colors.info, () => ( DEFAULT_COLOR_CONFIG.dark.info))
|
|
245
|
+
)(
|
|
246
|
+
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
247
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
228
248
|
`
|
|
229
249
|
);
|
|
230
250
|
};
|
|
@@ -233,7 +253,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, ()
|
|
|
233
253
|
return (message) => {
|
|
234
254
|
console.debug(
|
|
235
255
|
`
|
|
236
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
256
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
257
|
+
_nullishCoalesce(colors.debug, () => ( DEFAULT_COLOR_CONFIG.dark.debug))
|
|
258
|
+
)(
|
|
259
|
+
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
260
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
237
261
|
`
|
|
238
262
|
);
|
|
239
263
|
};
|
|
@@ -242,7 +266,9 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.debug, ()
|
|
|
242
266
|
return (message) => {
|
|
243
267
|
console.debug(
|
|
244
268
|
`
|
|
245
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
269
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
270
|
+
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
271
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
246
272
|
`
|
|
247
273
|
);
|
|
248
274
|
};
|
|
@@ -250,7 +276,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(`[${CONSOLE_ICONS[LogL
|
|
|
250
276
|
return (message) => {
|
|
251
277
|
console.log(
|
|
252
278
|
`
|
|
253
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
279
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
280
|
+
_nullishCoalesce(colors.brand, () => ( DEFAULT_COLOR_CONFIG.dark.brand))
|
|
281
|
+
)(
|
|
282
|
+
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
283
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
254
284
|
`
|
|
255
285
|
);
|
|
256
286
|
};
|
|
@@ -274,7 +304,7 @@ var getStopwatch = (name) => {
|
|
|
274
304
|
);
|
|
275
305
|
};
|
|
276
306
|
};
|
|
277
|
-
var MAX_DEPTH =
|
|
307
|
+
var MAX_DEPTH = 6;
|
|
278
308
|
var formatLogMessage = (message, options = {}, depth = 0) => {
|
|
279
309
|
if (depth > MAX_DEPTH) {
|
|
280
310
|
return "<max depth>";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getWorkspaceConfig,
|
|
9
9
|
schemaRegistry,
|
|
10
10
|
workspaceConfigSchema
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YG2UFXE2.mjs";
|
|
12
12
|
import {
|
|
13
13
|
correctPaths,
|
|
14
14
|
formatLogMessage,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
writeSuccess,
|
|
24
24
|
writeTrace,
|
|
25
25
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JBDAUHY2.mjs";
|
|
27
27
|
import {
|
|
28
28
|
__dirname
|
|
29
29
|
} from "./chunk-N5UXWPB6.mjs";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk24LHZDRMjs = require('./chunk-24LHZDRM.js');
|
|
11
11
|
|
|
12
12
|
// ../config-tools/src/utilities/find-up.ts
|
|
13
13
|
var _fs = require('fs');
|
|
@@ -76,11 +76,11 @@ var rootDirectories = [
|
|
|
76
76
|
];
|
|
77
77
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
78
78
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
79
|
-
return
|
|
79
|
+
return _chunk24LHZDRMjs.correctPaths.call(void 0,
|
|
80
80
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
81
81
|
);
|
|
82
82
|
}
|
|
83
|
-
return
|
|
83
|
+
return _chunk24LHZDRMjs.correctPaths.call(void 0,
|
|
84
84
|
findFolderUp(
|
|
85
85
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
86
86
|
rootFiles,
|
|
@@ -724,7 +724,7 @@ async function getPackageJsonConfig(root) {
|
|
|
724
724
|
const workspaceRoot = findWorkspaceRoot(root);
|
|
725
725
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
|
|
726
726
|
const file = await _promises.readFile.call(void 0,
|
|
727
|
-
|
|
727
|
+
_chunk24LHZDRMjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
728
728
|
"utf8"
|
|
729
729
|
);
|
|
730
730
|
if (file) {
|
|
@@ -808,7 +808,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
808
808
|
envName: _optionalChain([fileName, 'optionalAccess', _5 => _5.toUpperCase, 'call', _6 => _6()]),
|
|
809
809
|
jitiOptions: {
|
|
810
810
|
debug: false,
|
|
811
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
811
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk24LHZDRMjs.joinPaths.call(void 0,
|
|
812
812
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
813
813
|
"jiti"
|
|
814
814
|
)
|
|
@@ -822,7 +822,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
822
822
|
envName: _optionalChain([fileName, 'optionalAccess', _7 => _7.toUpperCase, 'call', _8 => _8()]),
|
|
823
823
|
jitiOptions: {
|
|
824
824
|
debug: false,
|
|
825
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
825
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk24LHZDRMjs.joinPaths.call(void 0,
|
|
826
826
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
827
827
|
"jiti"
|
|
828
828
|
)
|
|
@@ -839,7 +839,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
839
839
|
let config = result.config;
|
|
840
840
|
const configFile = result.configFile;
|
|
841
841
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
842
|
-
|
|
842
|
+
_chunk24LHZDRMjs.writeTrace.call(void 0,
|
|
843
843
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
844
844
|
{
|
|
845
845
|
logLevel: "all"
|
|
@@ -855,7 +855,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
855
855
|
for (const result2 of results) {
|
|
856
856
|
if (_optionalChain([result2, 'optionalAccess', _9 => _9.config]) && _optionalChain([result2, 'optionalAccess', _10 => _10.configFile]) && Object.keys(result2.config).length > 0) {
|
|
857
857
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
858
|
-
|
|
858
|
+
_chunk24LHZDRMjs.writeTrace.call(void 0,
|
|
859
859
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
860
860
|
{
|
|
861
861
|
logLevel: "all"
|
|
@@ -935,15 +935,15 @@ var getConfigEnv = () => {
|
|
|
935
935
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
936
936
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
937
937
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
938
|
-
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ?
|
|
939
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
938
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunk24LHZDRMjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
939
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunk24LHZDRMjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
940
940
|
directories: {
|
|
941
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
942
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
943
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
944
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
945
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
946
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
941
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunk24LHZDRMjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunk24LHZDRMjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
942
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunk24LHZDRMjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunk24LHZDRMjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
943
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunk24LHZDRMjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunk24LHZDRMjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
944
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunk24LHZDRMjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunk24LHZDRMjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
945
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunk24LHZDRMjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunk24LHZDRMjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
946
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunk24LHZDRMjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunk24LHZDRMjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
947
947
|
},
|
|
948
948
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
949
949
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -967,7 +967,7 @@ var getConfigEnv = () => {
|
|
|
967
967
|
},
|
|
968
968
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
969
969
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
970
|
-
) ?
|
|
970
|
+
) ? _chunk24LHZDRMjs.getLogLevelLabel.call(void 0,
|
|
971
971
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
972
972
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
973
973
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
@@ -1235,42 +1235,42 @@ var setConfigEnv = (config) => {
|
|
|
1235
1235
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1236
1236
|
}
|
|
1237
1237
|
if (config.configFile) {
|
|
1238
|
-
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] =
|
|
1238
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunk24LHZDRMjs.correctPaths.call(void 0,
|
|
1239
1239
|
config.configFile
|
|
1240
1240
|
);
|
|
1241
1241
|
}
|
|
1242
1242
|
if (config.workspaceRoot) {
|
|
1243
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1244
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1245
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1243
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunk24LHZDRMjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1244
|
+
process.env.NX_WORKSPACE_ROOT = _chunk24LHZDRMjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1245
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunk24LHZDRMjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1246
1246
|
}
|
|
1247
1247
|
if (config.directories) {
|
|
1248
1248
|
if (!config.skipCache && config.directories.cache) {
|
|
1249
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1249
|
+
process.env[`${prefix}CACHE_DIR`] = _chunk24LHZDRMjs.correctPaths.call(void 0,
|
|
1250
1250
|
config.directories.cache
|
|
1251
1251
|
);
|
|
1252
1252
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1253
1253
|
}
|
|
1254
1254
|
if (config.directories.data) {
|
|
1255
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1255
|
+
process.env[`${prefix}DATA_DIR`] = _chunk24LHZDRMjs.correctPaths.call(void 0, config.directories.data);
|
|
1256
1256
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1257
1257
|
}
|
|
1258
1258
|
if (config.directories.config) {
|
|
1259
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1259
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunk24LHZDRMjs.correctPaths.call(void 0,
|
|
1260
1260
|
config.directories.config
|
|
1261
1261
|
);
|
|
1262
1262
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1263
1263
|
}
|
|
1264
1264
|
if (config.directories.temp) {
|
|
1265
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1265
|
+
process.env[`${prefix}TEMP_DIR`] = _chunk24LHZDRMjs.correctPaths.call(void 0, config.directories.temp);
|
|
1266
1266
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1267
1267
|
}
|
|
1268
1268
|
if (config.directories.log) {
|
|
1269
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1269
|
+
process.env[`${prefix}LOG_DIR`] = _chunk24LHZDRMjs.correctPaths.call(void 0, config.directories.log);
|
|
1270
1270
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1271
1271
|
}
|
|
1272
1272
|
if (config.directories.build) {
|
|
1273
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1273
|
+
process.env[`${prefix}BUILD_DIR`] = _chunk24LHZDRMjs.correctPaths.call(void 0,
|
|
1274
1274
|
config.directories.build
|
|
1275
1275
|
);
|
|
1276
1276
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -1332,9 +1332,9 @@ var setConfigEnv = (config) => {
|
|
|
1332
1332
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1333
1333
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1334
1334
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1335
|
-
|
|
1335
|
+
_chunk24LHZDRMjs.getLogLevel.call(void 0, config.logLevel) >= _chunk24LHZDRMjs.LogLevel.DEBUG ? true : false
|
|
1336
1336
|
);
|
|
1337
|
-
process.env.RUST_BACKTRACE =
|
|
1337
|
+
process.env.RUST_BACKTRACE = _chunk24LHZDRMjs.getLogLevel.call(void 0, config.logLevel) >= _chunk24LHZDRMjs.LogLevel.DEBUG ? "full" : "none";
|
|
1338
1338
|
}
|
|
1339
1339
|
if (config.skipConfigLogging !== void 0) {
|
|
1340
1340
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -1476,7 +1476,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1476
1476
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1477
1477
|
if (!configFile) {
|
|
1478
1478
|
if (!skipLogs) {
|
|
1479
|
-
|
|
1479
|
+
_chunk24LHZDRMjs.writeWarning.call(void 0,
|
|
1480
1480
|
"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",
|
|
1481
1481
|
{ logLevel: "all" }
|
|
1482
1482
|
);
|
|
@@ -1492,7 +1492,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1492
1492
|
defaultConfig
|
|
1493
1493
|
);
|
|
1494
1494
|
if (!configInput.variant) {
|
|
1495
|
-
configInput.variant = _fs.existsSync.call(void 0,
|
|
1495
|
+
configInput.variant = _fs.existsSync.call(void 0, _chunk24LHZDRMjs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunk24LHZDRMjs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunk24LHZDRMjs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunk24LHZDRMjs.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
1496
1496
|
}
|
|
1497
1497
|
try {
|
|
1498
1498
|
result = applyDefaultConfig(
|
|
@@ -1503,7 +1503,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1503
1503
|
throw new Error(
|
|
1504
1504
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _35 => _35.message]) ? `: ${error.message}` : ""}
|
|
1505
1505
|
|
|
1506
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1506
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunk24LHZDRMjs.formatLogMessage.call(void 0,
|
|
1507
1507
|
configInput
|
|
1508
1508
|
)}`,
|
|
1509
1509
|
{
|
|
@@ -1548,9 +1548,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1548
1548
|
);
|
|
1549
1549
|
setConfigEnv(config);
|
|
1550
1550
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1551
|
-
|
|
1551
|
+
_chunk24LHZDRMjs.writeTrace.call(void 0,
|
|
1552
1552
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1553
|
-
${
|
|
1553
|
+
${_chunk24LHZDRMjs.formatLogMessage.call(void 0, config)}`,
|
|
1554
1554
|
config
|
|
1555
1555
|
);
|
|
1556
1556
|
}
|
|
@@ -5,7 +5,7 @@ var _chunkKUGEZPUOjs = require('./chunk-KUGEZPUO.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkGWK4ATXMjs = require('./chunk-GWK4ATXM.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ var _chunkN7FW365Qjs = require('./chunk-N7FW365Q.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk52VIMULTjs = require('./chunk-52VIMULT.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ var _chunkUZODNPP7js = require('./chunk-UZODNPP7.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk24LHZDRMjs = require('./chunk-24LHZDRM.js');
|
|
25
25
|
|
|
26
26
|
// src/executors/r2-upload-publish/executor.ts
|
|
27
27
|
|
|
@@ -53,8 +53,8 @@ async function runExecutor(options, context) {
|
|
|
53
53
|
throw new Error("The executor requires projectsConfigurations.");
|
|
54
54
|
}
|
|
55
55
|
try {
|
|
56
|
-
const workspaceRoot =
|
|
57
|
-
const config = await
|
|
56
|
+
const workspaceRoot = _chunk52VIMULTjs.findWorkspaceRoot.call(void 0, );
|
|
57
|
+
const config = await _chunk52VIMULTjs.getConfig.call(void 0, workspaceRoot);
|
|
58
58
|
const projectName = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.name]), () => ( context.projectName));
|
|
59
59
|
const projectDetails = _chunkN7FW365Qjs.getPackageInfo.call(void 0,
|
|
60
60
|
context.projectsConfigurations.projects[context.projectName]
|
|
@@ -92,7 +92,7 @@ async function runExecutor(options, context) {
|
|
|
92
92
|
"The executor failed because the project graph is not available. Please run the build command again."
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
_chunk24LHZDRMjs.writeDebug.call(void 0,
|
|
96
96
|
`Publishing ${context.projectName} to the ${bucketId} R2 Bucket (at ${registry})`
|
|
97
97
|
);
|
|
98
98
|
const client = new (0, _clients3.S3Client)({
|
|
@@ -108,13 +108,13 @@ async function runExecutor(options, context) {
|
|
|
108
108
|
});
|
|
109
109
|
const version = _optionalChain([projectDetails, 'optionalAccess', _13 => _13.content, 'optionalAccess', _14 => _14.version]);
|
|
110
110
|
if (version) {
|
|
111
|
-
|
|
111
|
+
_chunk24LHZDRMjs.writeDebug.call(void 0, `Starting upload version ${version}`);
|
|
112
112
|
}
|
|
113
113
|
const basePath = options.path;
|
|
114
|
-
const files = await _glob.glob.call(void 0,
|
|
114
|
+
const files = await _glob.glob.call(void 0, _chunk24LHZDRMjs.joinPaths.call(void 0, basePath, "**/*"), {
|
|
115
115
|
ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
|
|
116
116
|
});
|
|
117
|
-
const internalDependencies = await
|
|
117
|
+
const internalDependencies = await _chunkGWK4ATXMjs.getInternalDependencies.call(void 0,
|
|
118
118
|
context.projectName,
|
|
119
119
|
projectGraph
|
|
120
120
|
);
|
|
@@ -128,7 +128,7 @@ async function runExecutor(options, context) {
|
|
|
128
128
|
}, _nullishCoalesce(_optionalChain([projectDetails, 'optionalAccess', _15 => _15.content, 'access', _16 => _16.dependencies]), () => ( {})));
|
|
129
129
|
const release = _nullishCoalesce(options.tag, () => ( _child_process.execSync.call(void 0, "npm config get tag").toString().trim()));
|
|
130
130
|
if (options.clean === true) {
|
|
131
|
-
|
|
131
|
+
_chunk24LHZDRMjs.writeDebug.call(void 0, `Clearing out existing items in ${bucketPath}`);
|
|
132
132
|
if (!isDryRun) {
|
|
133
133
|
const response = await client.send(
|
|
134
134
|
new (0, _clients3.ListObjectsCommand)({
|
|
@@ -137,7 +137,7 @@ async function runExecutor(options, context) {
|
|
|
137
137
|
})
|
|
138
138
|
);
|
|
139
139
|
if (_optionalChain([response, 'optionalAccess', _17 => _17.Contents]) && response.Contents.length > 0) {
|
|
140
|
-
|
|
140
|
+
_chunk24LHZDRMjs.writeTrace.call(void 0,
|
|
141
141
|
`Deleting the following existing items from the R2 bucket path ${bucketPath}: ${response.Contents.map((item) => item.Key).join(", ")}`
|
|
142
142
|
);
|
|
143
143
|
await client.send(
|
|
@@ -152,12 +152,12 @@ async function runExecutor(options, context) {
|
|
|
152
152
|
})
|
|
153
153
|
);
|
|
154
154
|
} else {
|
|
155
|
-
|
|
155
|
+
_chunk24LHZDRMjs.writeDebug.call(void 0,
|
|
156
156
|
`No existing items to delete in the R2 bucket path ${bucketPath}`
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
159
|
} else {
|
|
160
|
-
|
|
160
|
+
_chunk24LHZDRMjs.writeWarning.call(void 0, "[Dry run]: Skipping R2 bucket clean.");
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
if (options.writeMetaJson === true) {
|
|
@@ -178,7 +178,7 @@ async function runExecutor(options, context) {
|
|
|
178
178
|
if (_optionalChain([projectDetails, 'optionalAccess', _22 => _22.type]) === "package.json") {
|
|
179
179
|
meta.devDependencies = _optionalChain([projectDetails, 'optionalAccess', _23 => _23.content, 'optionalAccess', _24 => _24.devDependencies]);
|
|
180
180
|
}
|
|
181
|
-
await
|
|
181
|
+
await _chunkGWK4ATXMjs.uploadFile.call(void 0,
|
|
182
182
|
client,
|
|
183
183
|
bucketId,
|
|
184
184
|
bucketPath,
|
|
@@ -194,22 +194,22 @@ async function runExecutor(options, context) {
|
|
|
194
194
|
if (_optionalChain([_fs.statSync.call(void 0, file, {
|
|
195
195
|
throwIfNoEntry: false
|
|
196
196
|
}), 'optionalAccess', _25 => _25.isFile, 'call', _26 => _26()])) {
|
|
197
|
-
const name =
|
|
197
|
+
const name = _chunk24LHZDRMjs.correctPaths.call(void 0, file).replace(_chunk24LHZDRMjs.correctPaths.call(void 0, basePath), "");
|
|
198
198
|
const type = _mimetypes2.default.lookup(name) || "application/octet-stream";
|
|
199
|
-
await
|
|
199
|
+
await _chunkGWK4ATXMjs.uploadFile.call(void 0,
|
|
200
200
|
client,
|
|
201
201
|
bucketId,
|
|
202
202
|
bucketPath,
|
|
203
203
|
name,
|
|
204
204
|
version,
|
|
205
|
-
await _promises.readFile.call(void 0, file,
|
|
205
|
+
await _promises.readFile.call(void 0, file, _chunkGWK4ATXMjs.getEncoding.call(void 0, type)),
|
|
206
206
|
type,
|
|
207
207
|
isDryRun
|
|
208
208
|
);
|
|
209
209
|
}
|
|
210
210
|
})
|
|
211
211
|
);
|
|
212
|
-
|
|
212
|
+
_chunk24LHZDRMjs.writeSuccess.call(void 0,
|
|
213
213
|
`Successfully uploaded the ${projectName} project to the Cloudflare R2 bucket.`,
|
|
214
214
|
config
|
|
215
215
|
);
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getEncoding,
|
|
6
6
|
getInternalDependencies,
|
|
7
7
|
uploadFile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RIOIN7EX.mjs";
|
|
9
9
|
import {
|
|
10
10
|
createCliOptions,
|
|
11
11
|
getPackageInfo
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
findWorkspaceRoot,
|
|
15
15
|
getConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YG2UFXE2.mjs";
|
|
17
17
|
import {
|
|
18
18
|
correctPaths,
|
|
19
19
|
joinPaths,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
writeSuccess,
|
|
22
22
|
writeTrace,
|
|
23
23
|
writeWarning
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JBDAUHY2.mjs";
|
|
25
25
|
|
|
26
26
|
// src/executors/r2-upload-publish/executor.ts
|
|
27
27
|
import {
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk24LHZDRMjs = require('./chunk-24LHZDRM.js');
|
|
7
7
|
|
|
8
8
|
// src/utils/r2-bucket-helpers.ts
|
|
9
9
|
var _libstorage = require('@aws-sdk/lib-storage');
|
|
10
10
|
var _crypto = require('crypto');
|
|
11
11
|
var _prettybytes = require('pretty-bytes'); var _prettybytes2 = _interopRequireDefault(_prettybytes);
|
|
12
12
|
async function uploadFile(client, bucketName, bucketPath, fileName, version, fileContent, contentType = "application/octet-stream", isDryRun = false) {
|
|
13
|
-
const key = _optionalChain([(!_optionalChain([bucketPath, 'optionalAccess', _ => _.trim, 'call', _2 => _2()]) || _optionalChain([bucketPath, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) === "/" ? fileName :
|
|
14
|
-
|
|
13
|
+
const key = _optionalChain([(!_optionalChain([bucketPath, 'optionalAccess', _ => _.trim, 'call', _2 => _2()]) || _optionalChain([bucketPath, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) === "/" ? fileName : _chunk24LHZDRMjs.joinPaths.call(void 0, bucketPath.trim(), fileName)), 'optionalAccess', _5 => _5.replace, 'call', _6 => _6(/^\/+/g, "")]) || "";
|
|
14
|
+
_chunk24LHZDRMjs.writeDebug.call(void 0,
|
|
15
15
|
`Uploading ${key} (content-type: ${contentType}, size: ${_prettybytes2.default.call(void 0,
|
|
16
16
|
Buffer.byteLength(fileContent, getEncoding(contentType))
|
|
17
17
|
)}) to the ${bucketName} R2 bucket`
|
|
@@ -33,10 +33,10 @@ async function uploadFile(client, bucketName, bucketPath, fileName, version, fil
|
|
|
33
33
|
});
|
|
34
34
|
await upload.done();
|
|
35
35
|
} else {
|
|
36
|
-
|
|
36
|
+
_chunk24LHZDRMjs.writeWarning.call(void 0, "[Dry run]: Skipping upload to the R2 bucket.");
|
|
37
37
|
}
|
|
38
38
|
} catch (error) {
|
|
39
|
-
|
|
39
|
+
_chunk24LHZDRMjs.writeError.call(void 0, `Failed to upload ${key} to the ${bucketName} R2 bucket.`);
|
|
40
40
|
throw error;
|
|
41
41
|
}
|
|
42
42
|
}
|