@storm-software/unbuild 0.49.19 → 0.49.21
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/README.md +1 -1
- package/bin/unbuild.cjs +122 -79
- package/bin/unbuild.js +48 -5
- package/dist/build.cjs +7 -7
- package/dist/build.js +6 -6
- package/dist/{chunk-KQH54774.js → chunk-2JQ6EMAG.js} +14 -3
- package/dist/{chunk-BEYMFCM7.cjs → chunk-32TZN7CE.cjs} +137 -105
- package/dist/{chunk-WK7EB7IK.js → chunk-4FBSNAJ3.js} +1 -1
- package/dist/{chunk-ZFT5WRRG.cjs → chunk-67LS6ZEK.cjs} +2 -2
- package/dist/{chunk-RDXDA3GH.cjs → chunk-DAT6NHMF.cjs} +3 -3
- package/dist/{chunk-6XVL7IQT.cjs → chunk-F53U4QNB.cjs} +3 -3
- package/dist/{chunk-SE3LAWDV.cjs → chunk-FPQJTGP3.cjs} +2 -2
- package/dist/{chunk-STWBC7PN.js → chunk-KVRCVCLC.js} +1 -1
- package/dist/{chunk-YXBJUQUO.js → chunk-P463HKRZ.js} +1 -1
- package/dist/{chunk-I6UPBZJN.js → chunk-SNFLBCOO.js} +1 -1
- package/dist/{chunk-OUDGDVMG.cjs → chunk-VHYQF3I6.cjs} +89 -78
- package/dist/{chunk-ZUJYZNHE.js → chunk-XYNUJ3M6.js} +39 -7
- package/dist/clean.cjs +3 -3
- package/dist/clean.js +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.js +6 -6
- package/dist/plugins/analyze.cjs +3 -3
- package/dist/plugins/analyze.js +2 -2
- package/dist/plugins/on-error.cjs +3 -3
- package/dist/plugins/on-error.js +2 -2
- package/dist/plugins/tsc.cjs +3 -3
- package/dist/plugins/tsc.js +2 -2
- package/package.json +4 -4
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 -->
|
package/bin/unbuild.cjs
CHANGED
|
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
));
|
|
24
24
|
|
|
25
25
|
// ../config/src/schema.ts
|
|
26
|
-
var
|
|
26
|
+
var z = __toESM(require("zod/v4"), 1);
|
|
27
27
|
|
|
28
28
|
// ../config/src/constants.ts
|
|
29
29
|
var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
|
|
@@ -48,21 +48,21 @@ If this sounds interesting, and you would like to help us in creating the next g
|
|
|
48
48
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
49
49
|
|
|
50
50
|
// ../config/src/schema.ts
|
|
51
|
-
var DarkColorSchema =
|
|
52
|
-
var LightColorSchema =
|
|
53
|
-
var BrandColorSchema =
|
|
54
|
-
var AlternateColorSchema =
|
|
55
|
-
var AccentColorSchema =
|
|
56
|
-
var LinkColorSchema =
|
|
57
|
-
var HelpColorSchema =
|
|
58
|
-
var SuccessColorSchema =
|
|
59
|
-
var InfoColorSchema =
|
|
60
|
-
var WarningColorSchema =
|
|
61
|
-
var DangerColorSchema =
|
|
62
|
-
var FatalColorSchema =
|
|
63
|
-
var PositiveColorSchema =
|
|
64
|
-
var NegativeColorSchema =
|
|
65
|
-
var DarkThemeColorConfigSchema =
|
|
51
|
+
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");
|
|
52
|
+
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");
|
|
53
|
+
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");
|
|
54
|
+
var AlternateColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
|
|
55
|
+
var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
56
|
+
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
|
|
57
|
+
var HelpColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
58
|
+
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
|
|
59
|
+
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
|
|
60
|
+
var WarningColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
61
|
+
var DangerColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
|
|
62
|
+
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
63
|
+
var PositiveColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
|
|
64
|
+
var NegativeColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
|
|
65
|
+
var DarkThemeColorConfigSchema = z.object({
|
|
66
66
|
foreground: LightColorSchema,
|
|
67
67
|
background: DarkColorSchema,
|
|
68
68
|
brand: BrandColorSchema,
|
|
@@ -78,7 +78,7 @@ var DarkThemeColorConfigSchema = import_zod.default.object({
|
|
|
78
78
|
positive: PositiveColorSchema,
|
|
79
79
|
negative: NegativeColorSchema
|
|
80
80
|
});
|
|
81
|
-
var LightThemeColorConfigSchema =
|
|
81
|
+
var LightThemeColorConfigSchema = z.object({
|
|
82
82
|
foreground: DarkColorSchema,
|
|
83
83
|
background: LightColorSchema,
|
|
84
84
|
brand: BrandColorSchema,
|
|
@@ -94,11 +94,11 @@ var LightThemeColorConfigSchema = import_zod.default.object({
|
|
|
94
94
|
positive: PositiveColorSchema,
|
|
95
95
|
negative: NegativeColorSchema
|
|
96
96
|
});
|
|
97
|
-
var MultiThemeColorConfigSchema =
|
|
97
|
+
var MultiThemeColorConfigSchema = z.object({
|
|
98
98
|
dark: DarkThemeColorConfigSchema,
|
|
99
99
|
light: LightThemeColorConfigSchema
|
|
100
100
|
});
|
|
101
|
-
var SingleThemeColorConfigSchema =
|
|
101
|
+
var SingleThemeColorConfigSchema = z.object({
|
|
102
102
|
dark: DarkColorSchema,
|
|
103
103
|
light: LightColorSchema,
|
|
104
104
|
brand: BrandColorSchema,
|
|
@@ -114,8 +114,8 @@ var SingleThemeColorConfigSchema = import_zod.default.object({
|
|
|
114
114
|
positive: PositiveColorSchema,
|
|
115
115
|
negative: NegativeColorSchema
|
|
116
116
|
});
|
|
117
|
-
var RegistryUrlConfigSchema =
|
|
118
|
-
var RegistryConfigSchema =
|
|
117
|
+
var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
118
|
+
var RegistryConfigSchema = z.object({
|
|
119
119
|
github: RegistryUrlConfigSchema,
|
|
120
120
|
npm: RegistryUrlConfigSchema,
|
|
121
121
|
cargo: RegistryUrlConfigSchema,
|
|
@@ -125,111 +125,122 @@ var RegistryConfigSchema = import_zod.default.object({
|
|
|
125
125
|
var ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
126
126
|
MultiThemeColorConfigSchema
|
|
127
127
|
).describe("Colors used for various workspace elements");
|
|
128
|
-
var ColorConfigMapSchema =
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
var ColorConfigMapSchema = z.union([
|
|
129
|
+
z.object({ base: ColorConfigSchema }),
|
|
130
|
+
z.record(z.string(), ColorConfigSchema)
|
|
131
131
|
]);
|
|
132
|
-
var ExtendsItemSchema =
|
|
132
|
+
var ExtendsItemSchema = z.string().trim().describe(
|
|
133
133
|
"The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
|
|
134
134
|
);
|
|
135
135
|
var ExtendsSchema = ExtendsItemSchema.or(
|
|
136
|
-
|
|
136
|
+
z.array(ExtendsItemSchema)
|
|
137
137
|
).describe(
|
|
138
138
|
"The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
|
|
139
139
|
);
|
|
140
|
-
var WorkspaceBotConfigSchema =
|
|
141
|
-
name:
|
|
140
|
+
var WorkspaceBotConfigSchema = z.object({
|
|
141
|
+
name: z.string().trim().default("stormie-bot").describe(
|
|
142
142
|
"The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
143
143
|
),
|
|
144
|
-
email:
|
|
144
|
+
email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
145
145
|
}).describe(
|
|
146
146
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
147
147
|
);
|
|
148
|
-
var WorkspaceReleaseConfigSchema =
|
|
149
|
-
banner:
|
|
148
|
+
var WorkspaceReleaseConfigSchema = z.object({
|
|
149
|
+
banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
|
|
150
150
|
"A URL to a banner image used to display the workspace's release"
|
|
151
151
|
),
|
|
152
|
-
header:
|
|
152
|
+
header: z.string().trim().optional().describe(
|
|
153
153
|
"A header message appended to the start of the workspace's release notes"
|
|
154
154
|
),
|
|
155
|
-
footer:
|
|
155
|
+
footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
|
|
156
156
|
"A footer message appended to the end of the workspace's release notes"
|
|
157
157
|
)
|
|
158
158
|
}).describe("The workspace's release config used during the release process");
|
|
159
|
-
var WorkspaceAccountConfigSchema =
|
|
160
|
-
twitter:
|
|
161
|
-
discord:
|
|
162
|
-
telegram:
|
|
163
|
-
slack:
|
|
164
|
-
medium:
|
|
165
|
-
github:
|
|
159
|
+
var WorkspaceAccountConfigSchema = z.object({
|
|
160
|
+
twitter: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
|
|
161
|
+
discord: z.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
|
|
162
|
+
telegram: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
|
|
163
|
+
slack: z.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
|
|
164
|
+
medium: z.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
|
|
165
|
+
github: z.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
|
|
166
166
|
}).describe(
|
|
167
167
|
"The workspace's account config used to store various social media links"
|
|
168
168
|
);
|
|
169
|
-
var WorkspaceDirectoryConfigSchema =
|
|
170
|
-
cache:
|
|
169
|
+
var WorkspaceDirectoryConfigSchema = z.object({
|
|
170
|
+
cache: z.string().trim().optional().describe(
|
|
171
171
|
"The directory used to store the environment's cached file data"
|
|
172
172
|
),
|
|
173
|
-
data:
|
|
174
|
-
config:
|
|
173
|
+
data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
174
|
+
config: z.string().trim().optional().describe(
|
|
175
175
|
"The directory used to store the environment's configuration files"
|
|
176
176
|
),
|
|
177
|
-
temp:
|
|
178
|
-
log:
|
|
179
|
-
build:
|
|
177
|
+
temp: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
178
|
+
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
179
|
+
build: z.string().trim().default("dist").describe(
|
|
180
180
|
"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
|
|
181
181
|
)
|
|
182
182
|
}).describe(
|
|
183
183
|
"Various directories used by the workspace to store data, cache, and configuration files"
|
|
184
184
|
);
|
|
185
|
-
var errorConfigSchema =
|
|
186
|
-
codesFile:
|
|
187
|
-
url:
|
|
185
|
+
var errorConfigSchema = z.object({
|
|
186
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
187
|
+
url: z.string().trim().url().optional().describe(
|
|
188
188
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
189
189
|
)
|
|
190
190
|
}).describe("The workspace's error config used during the error process");
|
|
191
|
-
var
|
|
192
|
-
|
|
191
|
+
var organizationConfigSchema = z.object({
|
|
192
|
+
name: z.string().trim().describe("The name of the organization"),
|
|
193
|
+
description: z.string().trim().optional().describe("A description of the organization"),
|
|
194
|
+
logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
|
|
195
|
+
icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
|
|
196
|
+
url: z.string().trim().url().optional().describe(
|
|
197
|
+
"A URL to a page that provides more information about the organization"
|
|
198
|
+
)
|
|
199
|
+
}).describe("The workspace's organization details");
|
|
200
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
201
|
+
$schema: z.string().trim().default(
|
|
193
202
|
"https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
|
|
194
203
|
).optional().nullish().describe(
|
|
195
204
|
"The URL to the JSON schema file that describes the Storm configuration file"
|
|
196
205
|
),
|
|
197
206
|
extends: ExtendsSchema.optional(),
|
|
198
|
-
name:
|
|
207
|
+
name: z.string().trim().toLowerCase().optional().describe(
|
|
199
208
|
"The name of the service/package/scope using this configuration"
|
|
200
209
|
),
|
|
201
|
-
namespace:
|
|
202
|
-
organization:
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
210
|
+
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
211
|
+
organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
|
|
212
|
+
"The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
213
|
+
),
|
|
214
|
+
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
215
|
+
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
216
|
+
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
217
|
+
docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
218
|
+
portal: z.string().trim().url().optional().describe("The development portal site for the workspace"),
|
|
219
|
+
licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
220
|
+
contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
221
|
+
support: z.string().trim().url().optional().describe(
|
|
211
222
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
212
223
|
),
|
|
213
|
-
branch:
|
|
214
|
-
preid:
|
|
215
|
-
owner:
|
|
224
|
+
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
225
|
+
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
226
|
+
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
216
227
|
bot: WorkspaceBotConfigSchema,
|
|
217
228
|
release: WorkspaceReleaseConfigSchema,
|
|
218
229
|
account: WorkspaceAccountConfigSchema,
|
|
219
230
|
error: errorConfigSchema,
|
|
220
|
-
mode:
|
|
221
|
-
workspaceRoot:
|
|
222
|
-
externalPackagePatterns:
|
|
231
|
+
mode: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
|
|
232
|
+
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
233
|
+
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
223
234
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
224
235
|
),
|
|
225
|
-
skipCache:
|
|
236
|
+
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
226
237
|
directories: WorkspaceDirectoryConfigSchema,
|
|
227
|
-
packageManager:
|
|
238
|
+
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
228
239
|
"The JavaScript/TypeScript package manager used by the repository"
|
|
229
240
|
),
|
|
230
|
-
timezone:
|
|
231
|
-
locale:
|
|
232
|
-
logLevel:
|
|
241
|
+
timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
242
|
+
locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
243
|
+
logLevel: z.enum([
|
|
233
244
|
"silent",
|
|
234
245
|
"fatal",
|
|
235
246
|
"error",
|
|
@@ -242,17 +253,17 @@ var stormWorkspaceConfigSchema = import_zod.default.object({
|
|
|
242
253
|
]).default("info").describe(
|
|
243
254
|
"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
|
|
244
255
|
),
|
|
245
|
-
skipConfigLogging:
|
|
256
|
+
skipConfigLogging: z.boolean().optional().describe(
|
|
246
257
|
"Should the logging of the current Storm Workspace configuration be skipped?"
|
|
247
258
|
),
|
|
248
259
|
registry: RegistryConfigSchema,
|
|
249
|
-
configFile:
|
|
260
|
+
configFile: z.string().trim().nullable().default(null).describe(
|
|
250
261
|
"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
251
262
|
),
|
|
252
263
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
253
264
|
"Storm theme config values used for styling various package elements"
|
|
254
265
|
),
|
|
255
|
-
extensions:
|
|
266
|
+
extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
256
267
|
}).describe(
|
|
257
268
|
"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
258
269
|
);
|
|
@@ -1041,7 +1052,13 @@ var getConfigEnv = () => {
|
|
|
1041
1052
|
medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
|
|
1042
1053
|
github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
|
|
1043
1054
|
},
|
|
1044
|
-
organization: process.env[`${prefix}ORGANIZATION`] ||
|
|
1055
|
+
organization: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] ? process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] ? {
|
|
1056
|
+
name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
|
|
1057
|
+
description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
|
|
1058
|
+
url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
|
|
1059
|
+
logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
|
|
1060
|
+
icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
|
|
1061
|
+
} : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
|
|
1045
1062
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
1046
1063
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
1047
1064
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
@@ -1248,7 +1265,33 @@ var setConfigEnv = (config) => {
|
|
|
1248
1265
|
}
|
|
1249
1266
|
}
|
|
1250
1267
|
if (config.organization) {
|
|
1251
|
-
|
|
1268
|
+
if (typeof config.organization === "string") {
|
|
1269
|
+
process.env[`${prefix}ORG`] = config.organization;
|
|
1270
|
+
process.env[`${prefix}ORG_NAME`] = config.organization;
|
|
1271
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
1272
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
|
|
1273
|
+
} else {
|
|
1274
|
+
process.env[`${prefix}ORG`] = config.organization.name;
|
|
1275
|
+
process.env[`${prefix}ORG_NAME`] = config.organization.name;
|
|
1276
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization.name;
|
|
1277
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
|
|
1278
|
+
if (config.organization.url) {
|
|
1279
|
+
process.env[`${prefix}ORG_URL`] = config.organization.url;
|
|
1280
|
+
process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
|
|
1281
|
+
}
|
|
1282
|
+
if (config.organization.description) {
|
|
1283
|
+
process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
|
|
1284
|
+
process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
|
|
1285
|
+
}
|
|
1286
|
+
if (config.organization.logo) {
|
|
1287
|
+
process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
|
|
1288
|
+
process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
|
|
1289
|
+
}
|
|
1290
|
+
if (config.organization.icon) {
|
|
1291
|
+
process.env[`${prefix}ORG_ICON`] = config.organization.icon;
|
|
1292
|
+
process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1252
1295
|
}
|
|
1253
1296
|
if (config.packageManager) {
|
|
1254
1297
|
process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
|
package/bin/unbuild.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// ../config/src/schema.ts
|
|
4
|
-
import z from "zod";
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
5
|
|
|
6
6
|
// ../config/src/constants.ts
|
|
7
7
|
var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
|
|
@@ -166,6 +166,15 @@ var errorConfigSchema = z.object({
|
|
|
166
166
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
167
167
|
)
|
|
168
168
|
}).describe("The workspace's error config used during the error process");
|
|
169
|
+
var organizationConfigSchema = z.object({
|
|
170
|
+
name: z.string().trim().describe("The name of the organization"),
|
|
171
|
+
description: z.string().trim().optional().describe("A description of the organization"),
|
|
172
|
+
logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
|
|
173
|
+
icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
|
|
174
|
+
url: z.string().trim().url().optional().describe(
|
|
175
|
+
"A URL to a page that provides more information about the organization"
|
|
176
|
+
)
|
|
177
|
+
}).describe("The workspace's organization details");
|
|
169
178
|
var stormWorkspaceConfigSchema = z.object({
|
|
170
179
|
$schema: z.string().trim().default(
|
|
171
180
|
"https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
|
|
@@ -177,7 +186,9 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
177
186
|
"The name of the service/package/scope using this configuration"
|
|
178
187
|
),
|
|
179
188
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
180
|
-
organization: z.string().trim().
|
|
189
|
+
organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
|
|
190
|
+
"The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
191
|
+
),
|
|
181
192
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
182
193
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
183
194
|
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
@@ -230,7 +241,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
230
241
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
231
242
|
"Storm theme config values used for styling various package elements"
|
|
232
243
|
),
|
|
233
|
-
extensions: z.record(z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
244
|
+
extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
234
245
|
}).describe(
|
|
235
246
|
"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
236
247
|
);
|
|
@@ -1019,7 +1030,13 @@ var getConfigEnv = () => {
|
|
|
1019
1030
|
medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
|
|
1020
1031
|
github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
|
|
1021
1032
|
},
|
|
1022
|
-
organization: process.env[`${prefix}ORGANIZATION`] ||
|
|
1033
|
+
organization: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] ? process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] ? {
|
|
1034
|
+
name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
|
|
1035
|
+
description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
|
|
1036
|
+
url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
|
|
1037
|
+
logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
|
|
1038
|
+
icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
|
|
1039
|
+
} : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
|
|
1023
1040
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
1024
1041
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
1025
1042
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
@@ -1226,7 +1243,33 @@ var setConfigEnv = (config) => {
|
|
|
1226
1243
|
}
|
|
1227
1244
|
}
|
|
1228
1245
|
if (config.organization) {
|
|
1229
|
-
|
|
1246
|
+
if (typeof config.organization === "string") {
|
|
1247
|
+
process.env[`${prefix}ORG`] = config.organization;
|
|
1248
|
+
process.env[`${prefix}ORG_NAME`] = config.organization;
|
|
1249
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
1250
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
|
|
1251
|
+
} else {
|
|
1252
|
+
process.env[`${prefix}ORG`] = config.organization.name;
|
|
1253
|
+
process.env[`${prefix}ORG_NAME`] = config.organization.name;
|
|
1254
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization.name;
|
|
1255
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
|
|
1256
|
+
if (config.organization.url) {
|
|
1257
|
+
process.env[`${prefix}ORG_URL`] = config.organization.url;
|
|
1258
|
+
process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
|
|
1259
|
+
}
|
|
1260
|
+
if (config.organization.description) {
|
|
1261
|
+
process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
|
|
1262
|
+
process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
|
|
1263
|
+
}
|
|
1264
|
+
if (config.organization.logo) {
|
|
1265
|
+
process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
|
|
1266
|
+
process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
|
|
1267
|
+
}
|
|
1268
|
+
if (config.organization.icon) {
|
|
1269
|
+
process.env[`${prefix}ORG_ICON`] = config.organization.icon;
|
|
1270
|
+
process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1230
1273
|
}
|
|
1231
1274
|
if (config.packageManager) {
|
|
1232
1275
|
process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
|
package/dist/build.cjs
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
8
|
+
var _chunk32TZN7CEcjs = require('./chunk-32TZN7CE.cjs');
|
|
9
|
+
require('./chunk-DAT6NHMF.cjs');
|
|
10
|
+
require('./chunk-67LS6ZEK.cjs');
|
|
11
|
+
require('./chunk-F53U4QNB.cjs');
|
|
12
|
+
require('./chunk-FPQJTGP3.cjs');
|
|
13
|
+
require('./chunk-VHYQF3I6.cjs');
|
|
14
14
|
require('./chunk-OBGZSXTJ.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
@@ -19,4 +19,4 @@ require('./chunk-OBGZSXTJ.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.build =
|
|
22
|
+
exports.build = _chunk32TZN7CEcjs.build; exports.cleanOutputPath = _chunk32TZN7CEcjs.cleanOutputPath; exports.copyBuildAssets = _chunk32TZN7CEcjs.copyBuildAssets; exports.executeUnbuild = _chunk32TZN7CEcjs.executeUnbuild; exports.generatePackageJson = _chunk32TZN7CEcjs.generatePackageJson; exports.resolveOptions = _chunk32TZN7CEcjs.resolveOptions;
|
package/dist/build.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
executeUnbuild,
|
|
6
6
|
generatePackageJson,
|
|
7
7
|
resolveOptions
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-XYNUJ3M6.js";
|
|
9
|
+
import "./chunk-4FBSNAJ3.js";
|
|
10
|
+
import "./chunk-P463HKRZ.js";
|
|
11
|
+
import "./chunk-SNFLBCOO.js";
|
|
12
|
+
import "./chunk-KVRCVCLC.js";
|
|
13
|
+
import "./chunk-2JQ6EMAG.js";
|
|
14
14
|
import "./chunk-3RG5ZIWI.js";
|
|
15
15
|
export {
|
|
16
16
|
build,
|
|
@@ -225,7 +225,7 @@ If this sounds interesting, and you would like to help us in creating the next g
|
|
|
225
225
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
226
226
|
|
|
227
227
|
// ../config/src/schema.ts
|
|
228
|
-
import z from "zod";
|
|
228
|
+
import * as z from "zod/v4";
|
|
229
229
|
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");
|
|
230
230
|
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");
|
|
231
231
|
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");
|
|
@@ -366,6 +366,15 @@ var errorConfigSchema = z.object({
|
|
|
366
366
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
367
367
|
)
|
|
368
368
|
}).describe("The workspace's error config used during the error process");
|
|
369
|
+
var organizationConfigSchema = z.object({
|
|
370
|
+
name: z.string().trim().describe("The name of the organization"),
|
|
371
|
+
description: z.string().trim().optional().describe("A description of the organization"),
|
|
372
|
+
logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
|
|
373
|
+
icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
|
|
374
|
+
url: z.string().trim().url().optional().describe(
|
|
375
|
+
"A URL to a page that provides more information about the organization"
|
|
376
|
+
)
|
|
377
|
+
}).describe("The workspace's organization details");
|
|
369
378
|
var stormWorkspaceConfigSchema = z.object({
|
|
370
379
|
$schema: z.string().trim().default(
|
|
371
380
|
"https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
|
|
@@ -377,7 +386,9 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
377
386
|
"The name of the service/package/scope using this configuration"
|
|
378
387
|
),
|
|
379
388
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
380
|
-
organization: z.string().trim().
|
|
389
|
+
organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
|
|
390
|
+
"The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
391
|
+
),
|
|
381
392
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
382
393
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
383
394
|
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
@@ -430,7 +441,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
430
441
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
431
442
|
"Storm theme config values used for styling various package elements"
|
|
432
443
|
),
|
|
433
|
-
extensions: z.record(z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
444
|
+
extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
434
445
|
}).describe(
|
|
435
446
|
"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
436
447
|
);
|