@storm-software/cloudflare-tools 0.55.26 → 0.55.29
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 +23 -0
- package/README.md +1 -1
- package/dist/{chunk-GNKRSWX6.mjs → chunk-5OCPVWBL.mjs} +3 -3
- package/dist/{chunk-X64HH4GP.mjs → chunk-HWRWRM5W.mjs} +1 -1
- package/dist/{chunk-E7YOJ4JG.js → chunk-HZON5W3G.js} +25 -25
- package/dist/{chunk-6GDCEDJO.js → chunk-I6XBWBZN.js} +3 -3
- package/dist/{chunk-BCL7PY4I.js → chunk-KLCTLDIH.js} +41 -41
- package/dist/{chunk-AHT3CRUF.mjs → chunk-MBAVTLIK.mjs} +32 -33
- package/dist/{chunk-SOJGUDFD.js → chunk-MVGAJ7Q4.js} +16 -16
- package/dist/{chunk-32FESOT6.mjs → chunk-O25TYSYC.mjs} +1 -1
- package/dist/{chunk-2XPNANI7.js → chunk-P4LFDEKT.js} +1 -1
- package/dist/{chunk-ZV2BVSPZ.mjs → chunk-QD7ZKWKB.mjs} +25 -25
- package/dist/{chunk-KXSJMDJH.mjs → chunk-VAVNPHSE.mjs} +1 -1
- package/dist/{chunk-JD2WQIFA.mjs → chunk-X2QBRYIY.mjs} +3 -3
- package/dist/{chunk-VLH6PJOP.js → chunk-XFUY3RDQ.js} +12 -12
- package/dist/{chunk-T4YFTNGO.js → chunk-XYJVYVYX.js} +190 -191
- 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/generators/worker/schema.d.ts +1 -1
- 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 +1 -1
|
@@ -320,7 +320,7 @@ var RegistryConfigSchema = z.object({
|
|
|
320
320
|
var ColorConfigSchema = SingleThemeColorConfigSchema.or(MultiThemeColorConfigSchema).describe("Colors used for various workspace elements");
|
|
321
321
|
var ColorConfigMapSchema = z.union([
|
|
322
322
|
z.object({
|
|
323
|
-
|
|
323
|
+
base: ColorConfigSchema
|
|
324
324
|
}),
|
|
325
325
|
z.record(z.string(), ColorConfigSchema)
|
|
326
326
|
]);
|
|
@@ -412,31 +412,31 @@ import { existsSync as existsSync2 } from "node:fs";
|
|
|
412
412
|
import { readFile } from "node:fs/promises";
|
|
413
413
|
import { join as join2 } from "node:path";
|
|
414
414
|
var DEFAULT_COLOR_CONFIG = {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
415
|
+
light: {
|
|
416
|
+
background: "#fafafa",
|
|
417
|
+
foreground: "#1d1e22",
|
|
418
|
+
brand: "#1fb2a6",
|
|
419
|
+
alternate: "#db2777",
|
|
420
|
+
help: "#5C4EE5",
|
|
421
|
+
success: "#087f5b",
|
|
422
|
+
info: "#0550ae",
|
|
423
|
+
warning: "#e3b341",
|
|
424
|
+
danger: "#D8314A",
|
|
425
|
+
positive: "#22c55e",
|
|
426
|
+
negative: "#dc2626"
|
|
427
427
|
},
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
428
|
+
dark: {
|
|
429
|
+
background: "#1d1e22",
|
|
430
|
+
foreground: "#cbd5e1",
|
|
431
|
+
brand: "#2dd4bf",
|
|
432
|
+
alternate: "#db2777",
|
|
433
|
+
help: "#818cf8",
|
|
434
|
+
success: "#10b981",
|
|
435
|
+
info: "#58a6ff",
|
|
436
|
+
warning: "#f3d371",
|
|
437
|
+
danger: "#D8314A",
|
|
438
|
+
positive: "#22c55e",
|
|
439
|
+
negative: "#dc2626"
|
|
440
440
|
}
|
|
441
441
|
};
|
|
442
442
|
var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O25TYSYC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VAVNPHSE.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot,
|
|
9
9
|
getStopwatch,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
writeFatal,
|
|
13
13
|
writeInfo,
|
|
14
14
|
writeTrace
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QD7ZKWKB.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__dirname,
|
|
18
18
|
__name
|
|
@@ -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 _chunkP4LFDEKTjs = require('./chunk-P4LFDEKT.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkKLCTLDIHjs = require('./chunk-KLCTLDIH.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ var _chunkBCL7PY4Ijs = require('./chunk-BCL7PY4I.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkHZON5W3Gjs = require('./chunk-HZON5W3G.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkJ5SB6L2Ljs = require('./chunk-J5SB6L2L.js');
|
|
@@ -38,21 +38,21 @@ var vitestScript = `"test": "vitest run"`;
|
|
|
38
38
|
|
|
39
39
|
// src/generators/worker/generator.ts
|
|
40
40
|
async function applicationGenerator(tree, schema) {
|
|
41
|
-
const stopwatch =
|
|
41
|
+
const stopwatch = _chunkHZON5W3Gjs.getStopwatch.call(void 0, "Storm Worker generator");
|
|
42
42
|
let config;
|
|
43
43
|
try {
|
|
44
|
-
|
|
44
|
+
_chunkHZON5W3Gjs.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
|
|
45
45
|
|
|
46
46
|
`, config);
|
|
47
|
-
const workspaceRoot =
|
|
48
|
-
|
|
47
|
+
const workspaceRoot = _chunkHZON5W3Gjs.findWorkspaceRoot.call(void 0, );
|
|
48
|
+
_chunkHZON5W3Gjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.json file...
|
|
49
49
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
50
|
-
config = await
|
|
51
|
-
|
|
50
|
+
config = await _chunkKLCTLDIHjs.getConfig.call(void 0, workspaceRoot);
|
|
51
|
+
_chunkHZON5W3Gjs.writeTrace.call(void 0, `Loaded Storm config into env:
|
|
52
52
|
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`, config);
|
|
53
53
|
const options = await normalizeOptions(tree, schema, config);
|
|
54
54
|
const tasks = [];
|
|
55
|
-
tasks.push(await
|
|
55
|
+
tasks.push(await _chunkP4LFDEKTjs.generator_default.call(void 0, tree, {
|
|
56
56
|
...options,
|
|
57
57
|
skipFormat: true
|
|
58
58
|
}));
|
|
@@ -107,8 +107,8 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
107
107
|
return _devkit.runTasksInSerial.call(void 0, ...tasks);
|
|
108
108
|
} catch (error) {
|
|
109
109
|
return () => {
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
_chunkHZON5W3Gjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
111
|
+
_chunkHZON5W3Gjs.writeError.call(void 0, `An exception was thrown in the generator's process
|
|
112
112
|
- Details: ${error.message}
|
|
113
113
|
- Stacktrace: ${error.stack}`, config);
|
|
114
114
|
};
|