@storm-software/cloudflare-tools 0.63.42 → 0.63.44
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-5CBAPSWU.mjs → chunk-34J43ATV.mjs} +3 -3
- package/dist/{chunk-OVVMIP6M.js → chunk-3ZJXUWIC.js} +44 -44
- package/dist/{chunk-5TSMUCK7.mjs → chunk-47UJA2KT.mjs} +1 -1
- package/dist/{chunk-P7GMTWQM.js → chunk-64KCJUHF.js} +16 -16
- package/dist/{chunk-UHJ6SPET.mjs → chunk-77UQJX7G.mjs} +3 -3
- package/dist/{chunk-6HO4SE5I.js → chunk-7T6FCEJ2.js} +1 -1
- package/dist/{chunk-35RTYQX5.mjs → chunk-ABNYQH3I.mjs} +15 -14
- package/dist/{chunk-X7OMWG6Z.js → chunk-ACMLK4HA.js} +12 -12
- package/dist/{chunk-JU6D63FQ.js → chunk-FTBPZGRQ.js} +15 -14
- package/dist/{chunk-XCADCGCM.mjs → chunk-IPZP75GA.mjs} +1 -1
- package/dist/{chunk-OZCZ4LBJ.js → chunk-IY32YNEH.js} +119 -119
- package/dist/{chunk-QCOL6VUC.mjs → chunk-ORPNTF5S.mjs} +3 -3
- package/dist/{chunk-MZMVYPGX.js → chunk-XCXVA72W.js} +3 -3
- package/dist/{chunk-QCZ2SDC7.mjs → chunk-YWK6SCFJ.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 +2 -2
|
@@ -264,7 +264,7 @@ If this sounds interesting, and you would like to help us in creating the next g
|
|
|
264
264
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
265
265
|
|
|
266
266
|
// ../config/src/schema.ts
|
|
267
|
-
var
|
|
267
|
+
var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
|
|
268
268
|
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
269
269
|
var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
270
270
|
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
@@ -331,7 +331,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
331
331
|
positive: PositiveColorSchema,
|
|
332
332
|
negative: NegativeColorSchema
|
|
333
333
|
});
|
|
334
|
-
var RegistryUrlConfigSchema = z.
|
|
334
|
+
var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
335
335
|
var RegistryConfigSchema = z.object({
|
|
336
336
|
github: RegistryUrlConfigSchema,
|
|
337
337
|
npm: RegistryUrlConfigSchema,
|
|
@@ -358,7 +358,7 @@ var WorkspaceBotConfigSchema = z.object({
|
|
|
358
358
|
name: z.string().trim().default("stormie-bot").describe(
|
|
359
359
|
"The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
360
360
|
),
|
|
361
|
-
email: z.
|
|
361
|
+
email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
362
362
|
}).describe(
|
|
363
363
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
364
364
|
);
|
|
@@ -401,19 +401,20 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
401
401
|
);
|
|
402
402
|
var errorConfigSchema = z.object({
|
|
403
403
|
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
404
|
-
url: z.
|
|
404
|
+
url: z.url().optional().describe(
|
|
405
405
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
406
406
|
)
|
|
407
407
|
}).describe("The workspace's error config used during the error process");
|
|
408
408
|
var organizationConfigSchema = z.object({
|
|
409
409
|
name: z.string().trim().describe("The name of the organization"),
|
|
410
410
|
description: z.string().trim().optional().describe("A description of the organization"),
|
|
411
|
-
logo: z.
|
|
412
|
-
icon: z.
|
|
413
|
-
url: z.
|
|
411
|
+
logo: z.url().optional().describe("A URL to the organization's logo image"),
|
|
412
|
+
icon: z.url().optional().describe("A URL to the organization's icon image"),
|
|
413
|
+
url: z.url().optional().describe(
|
|
414
414
|
"A URL to a page that provides more information about the organization"
|
|
415
415
|
)
|
|
416
416
|
}).describe("The workspace's organization details");
|
|
417
|
+
var MODE_OPTIONS = ["development", "staging", "production"];
|
|
417
418
|
var stormWorkspaceConfigSchema = z.object({
|
|
418
419
|
$schema: z.string().trim().default(
|
|
419
420
|
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
@@ -430,12 +431,12 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
430
431
|
),
|
|
431
432
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
432
433
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
433
|
-
homepage: z.
|
|
434
|
-
docs: z.
|
|
435
|
-
portal: z.
|
|
436
|
-
licensing: z.
|
|
437
|
-
contact: z.
|
|
438
|
-
support: z.
|
|
434
|
+
homepage: z.url().optional().describe("The homepage of the workspace"),
|
|
435
|
+
docs: z.url().optional().describe("The documentation site for the workspace"),
|
|
436
|
+
portal: z.url().optional().describe("The development portal site for the workspace"),
|
|
437
|
+
licensing: z.url().optional().describe("The licensing site for the workspace"),
|
|
438
|
+
contact: z.url().optional().describe("The contact site for the workspace"),
|
|
439
|
+
support: z.url().optional().describe(
|
|
439
440
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
440
441
|
),
|
|
441
442
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
@@ -445,7 +446,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
445
446
|
release: WorkspaceReleaseConfigSchema,
|
|
446
447
|
socials: WorkspaceSocialsConfigSchema,
|
|
447
448
|
error: errorConfigSchema,
|
|
448
|
-
mode: z.enum(
|
|
449
|
+
mode: z.enum(MODE_OPTIONS).prefault("production").describe("The current runtime environment mode for the package"),
|
|
449
450
|
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
450
451
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
451
452
|
directories: WorkspaceDirectoryConfigSchema,
|