@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVHYQF3I6cjs = require('./chunk-VHYQF3I6.cjs');
|
|
4
4
|
|
|
5
5
|
// src/plugins/analyze.ts
|
|
6
6
|
var formatBytes = (bytes) => {
|
|
@@ -17,7 +17,7 @@ var analyzePlugin = (options) => {
|
|
|
17
17
|
renderChunk(source, chunk) {
|
|
18
18
|
const sourceBytes = formatBytes(source.length);
|
|
19
19
|
const fileName = chunk.fileName;
|
|
20
|
-
|
|
20
|
+
_chunkVHYQF3I6cjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVHYQF3I6cjs = require('./chunk-VHYQF3I6.cjs');
|
|
5
5
|
|
|
6
6
|
// src/clean.ts
|
|
7
7
|
var _promises = require('fs/promises');
|
|
8
8
|
async function clean(name = "Unbuild", directory, config) {
|
|
9
|
-
|
|
10
|
-
const stopwatch =
|
|
9
|
+
_chunkVHYQF3I6cjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
10
|
+
const stopwatch = _chunkVHYQF3I6cjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
11
11
|
await cleanDirectories(name, directory, config);
|
|
12
12
|
stopwatch();
|
|
13
13
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVHYQF3I6cjs = require('./chunk-VHYQF3I6.cjs');
|
|
4
4
|
|
|
5
5
|
// src/plugins/on-error.ts
|
|
6
6
|
var onErrorPlugin = (options) => ({
|
|
7
7
|
name: "storm:on-error",
|
|
8
8
|
buildEnd(error) {
|
|
9
9
|
if (error) {
|
|
10
|
-
|
|
10
|
+
_chunkVHYQF3I6cjs.writeError.call(void 0,
|
|
11
11
|
`The following errors occurred during the build:
|
|
12
12
|
${error ? error.message : "Unknown build error"}
|
|
13
13
|
|
|
@@ -18,7 +18,7 @@ ${error ? error.message : "Unknown build error"}
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
renderError(error) {
|
|
21
|
-
|
|
21
|
+
_chunkVHYQF3I6cjs.writeError.call(void 0,
|
|
22
22
|
`The following errors occurred during the build:
|
|
23
23
|
${error ? error.message : "Unknown build error"}
|
|
24
24
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVHYQF3I6cjs = require('./chunk-VHYQF3I6.cjs');
|
|
4
4
|
|
|
5
5
|
// src/plugins/tsc.ts
|
|
6
6
|
|
|
@@ -45,7 +45,7 @@ async function createTsCompilerOptions(config, tsConfigPath, projectRoot, depend
|
|
|
45
45
|
declaration: true,
|
|
46
46
|
paths: _buildablelibsutils.computeCompilerOptionsPaths.call(void 0, tsConfig, _nullishCoalesce(dependencies, () => ( [])))
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
_chunkVHYQF3I6cjs.writeTrace.call(void 0, compilerOptions, config);
|
|
49
49
|
return compilerOptions;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; }// ../config-tools/src/types.ts
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; }// ../config-tools/src/types.ts
|
|
2
2
|
var LogLevel = {
|
|
3
3
|
SILENT: 0,
|
|
4
4
|
FATAL: 10,
|
|
@@ -225,22 +225,22 @@ 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
|
-
var
|
|
229
|
-
var DarkColorSchema =
|
|
230
|
-
var LightColorSchema =
|
|
231
|
-
var BrandColorSchema =
|
|
232
|
-
var AlternateColorSchema =
|
|
233
|
-
var AccentColorSchema =
|
|
234
|
-
var LinkColorSchema =
|
|
235
|
-
var HelpColorSchema =
|
|
236
|
-
var SuccessColorSchema =
|
|
237
|
-
var InfoColorSchema =
|
|
238
|
-
var WarningColorSchema =
|
|
239
|
-
var DangerColorSchema =
|
|
240
|
-
var FatalColorSchema =
|
|
241
|
-
var PositiveColorSchema =
|
|
242
|
-
var NegativeColorSchema =
|
|
243
|
-
var DarkThemeColorConfigSchema =
|
|
228
|
+
var _v4 = require('zod/v4'); var z = _interopRequireWildcard(_v4);
|
|
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
|
+
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
|
+
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");
|
|
232
|
+
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");
|
|
233
|
+
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");
|
|
234
|
+
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");
|
|
235
|
+
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");
|
|
236
|
+
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");
|
|
237
|
+
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");
|
|
238
|
+
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");
|
|
239
|
+
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");
|
|
240
|
+
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
241
|
+
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");
|
|
242
|
+
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");
|
|
243
|
+
var DarkThemeColorConfigSchema = z.object({
|
|
244
244
|
foreground: LightColorSchema,
|
|
245
245
|
background: DarkColorSchema,
|
|
246
246
|
brand: BrandColorSchema,
|
|
@@ -256,7 +256,7 @@ var DarkThemeColorConfigSchema = _zod2.default.object({
|
|
|
256
256
|
positive: PositiveColorSchema,
|
|
257
257
|
negative: NegativeColorSchema
|
|
258
258
|
});
|
|
259
|
-
var LightThemeColorConfigSchema =
|
|
259
|
+
var LightThemeColorConfigSchema = z.object({
|
|
260
260
|
foreground: DarkColorSchema,
|
|
261
261
|
background: LightColorSchema,
|
|
262
262
|
brand: BrandColorSchema,
|
|
@@ -272,11 +272,11 @@ var LightThemeColorConfigSchema = _zod2.default.object({
|
|
|
272
272
|
positive: PositiveColorSchema,
|
|
273
273
|
negative: NegativeColorSchema
|
|
274
274
|
});
|
|
275
|
-
var MultiThemeColorConfigSchema =
|
|
275
|
+
var MultiThemeColorConfigSchema = z.object({
|
|
276
276
|
dark: DarkThemeColorConfigSchema,
|
|
277
277
|
light: LightThemeColorConfigSchema
|
|
278
278
|
});
|
|
279
|
-
var SingleThemeColorConfigSchema =
|
|
279
|
+
var SingleThemeColorConfigSchema = z.object({
|
|
280
280
|
dark: DarkColorSchema,
|
|
281
281
|
light: LightColorSchema,
|
|
282
282
|
brand: BrandColorSchema,
|
|
@@ -292,8 +292,8 @@ var SingleThemeColorConfigSchema = _zod2.default.object({
|
|
|
292
292
|
positive: PositiveColorSchema,
|
|
293
293
|
negative: NegativeColorSchema
|
|
294
294
|
});
|
|
295
|
-
var RegistryUrlConfigSchema =
|
|
296
|
-
var RegistryConfigSchema =
|
|
295
|
+
var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
296
|
+
var RegistryConfigSchema = z.object({
|
|
297
297
|
github: RegistryUrlConfigSchema,
|
|
298
298
|
npm: RegistryUrlConfigSchema,
|
|
299
299
|
cargo: RegistryUrlConfigSchema,
|
|
@@ -303,111 +303,122 @@ var RegistryConfigSchema = _zod2.default.object({
|
|
|
303
303
|
var ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
304
304
|
MultiThemeColorConfigSchema
|
|
305
305
|
).describe("Colors used for various workspace elements");
|
|
306
|
-
var ColorConfigMapSchema =
|
|
307
|
-
|
|
308
|
-
|
|
306
|
+
var ColorConfigMapSchema = z.union([
|
|
307
|
+
z.object({ base: ColorConfigSchema }),
|
|
308
|
+
z.record(z.string(), ColorConfigSchema)
|
|
309
309
|
]);
|
|
310
|
-
var ExtendsItemSchema =
|
|
310
|
+
var ExtendsItemSchema = z.string().trim().describe(
|
|
311
311
|
"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."
|
|
312
312
|
);
|
|
313
313
|
var ExtendsSchema = ExtendsItemSchema.or(
|
|
314
|
-
|
|
314
|
+
z.array(ExtendsItemSchema)
|
|
315
315
|
).describe(
|
|
316
316
|
"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."
|
|
317
317
|
);
|
|
318
|
-
var WorkspaceBotConfigSchema =
|
|
319
|
-
name:
|
|
318
|
+
var WorkspaceBotConfigSchema = z.object({
|
|
319
|
+
name: z.string().trim().default("stormie-bot").describe(
|
|
320
320
|
"The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
321
321
|
),
|
|
322
|
-
email:
|
|
322
|
+
email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
323
323
|
}).describe(
|
|
324
324
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
325
325
|
);
|
|
326
|
-
var WorkspaceReleaseConfigSchema =
|
|
327
|
-
banner:
|
|
326
|
+
var WorkspaceReleaseConfigSchema = z.object({
|
|
327
|
+
banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
|
|
328
328
|
"A URL to a banner image used to display the workspace's release"
|
|
329
329
|
),
|
|
330
|
-
header:
|
|
330
|
+
header: z.string().trim().optional().describe(
|
|
331
331
|
"A header message appended to the start of the workspace's release notes"
|
|
332
332
|
),
|
|
333
|
-
footer:
|
|
333
|
+
footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
|
|
334
334
|
"A footer message appended to the end of the workspace's release notes"
|
|
335
335
|
)
|
|
336
336
|
}).describe("The workspace's release config used during the release process");
|
|
337
|
-
var WorkspaceAccountConfigSchema =
|
|
338
|
-
twitter:
|
|
339
|
-
discord:
|
|
340
|
-
telegram:
|
|
341
|
-
slack:
|
|
342
|
-
medium:
|
|
343
|
-
github:
|
|
337
|
+
var WorkspaceAccountConfigSchema = z.object({
|
|
338
|
+
twitter: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
|
|
339
|
+
discord: z.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
|
|
340
|
+
telegram: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
|
|
341
|
+
slack: z.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
|
|
342
|
+
medium: z.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
|
|
343
|
+
github: z.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
|
|
344
344
|
}).describe(
|
|
345
345
|
"The workspace's account config used to store various social media links"
|
|
346
346
|
);
|
|
347
|
-
var WorkspaceDirectoryConfigSchema =
|
|
348
|
-
cache:
|
|
347
|
+
var WorkspaceDirectoryConfigSchema = z.object({
|
|
348
|
+
cache: z.string().trim().optional().describe(
|
|
349
349
|
"The directory used to store the environment's cached file data"
|
|
350
350
|
),
|
|
351
|
-
data:
|
|
352
|
-
config:
|
|
351
|
+
data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
352
|
+
config: z.string().trim().optional().describe(
|
|
353
353
|
"The directory used to store the environment's configuration files"
|
|
354
354
|
),
|
|
355
|
-
temp:
|
|
356
|
-
log:
|
|
357
|
-
build:
|
|
355
|
+
temp: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
356
|
+
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
357
|
+
build: z.string().trim().default("dist").describe(
|
|
358
358
|
"The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
|
|
359
359
|
)
|
|
360
360
|
}).describe(
|
|
361
361
|
"Various directories used by the workspace to store data, cache, and configuration files"
|
|
362
362
|
);
|
|
363
|
-
var errorConfigSchema =
|
|
364
|
-
codesFile:
|
|
365
|
-
url:
|
|
363
|
+
var errorConfigSchema = z.object({
|
|
364
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
365
|
+
url: z.string().trim().url().optional().describe(
|
|
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
|
|
370
|
-
|
|
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");
|
|
378
|
+
var stormWorkspaceConfigSchema = z.object({
|
|
379
|
+
$schema: z.string().trim().default(
|
|
371
380
|
"https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
|
|
372
381
|
).optional().nullish().describe(
|
|
373
382
|
"The URL to the JSON schema file that describes the Storm configuration file"
|
|
374
383
|
),
|
|
375
384
|
extends: ExtendsSchema.optional(),
|
|
376
|
-
name:
|
|
385
|
+
name: z.string().trim().toLowerCase().optional().describe(
|
|
377
386
|
"The name of the service/package/scope using this configuration"
|
|
378
387
|
),
|
|
379
|
-
namespace:
|
|
380
|
-
organization:
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
388
|
+
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
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
|
+
),
|
|
392
|
+
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
393
|
+
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
394
|
+
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
395
|
+
docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
396
|
+
portal: z.string().trim().url().optional().describe("The development portal site for the workspace"),
|
|
397
|
+
licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
398
|
+
contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
399
|
+
support: z.string().trim().url().optional().describe(
|
|
389
400
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
390
401
|
),
|
|
391
|
-
branch:
|
|
392
|
-
preid:
|
|
393
|
-
owner:
|
|
402
|
+
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
403
|
+
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
404
|
+
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
394
405
|
bot: WorkspaceBotConfigSchema,
|
|
395
406
|
release: WorkspaceReleaseConfigSchema,
|
|
396
407
|
account: WorkspaceAccountConfigSchema,
|
|
397
408
|
error: errorConfigSchema,
|
|
398
|
-
mode:
|
|
399
|
-
workspaceRoot:
|
|
400
|
-
externalPackagePatterns:
|
|
409
|
+
mode: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
|
|
410
|
+
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
411
|
+
externalPackagePatterns: z.array(z.string()).default([]).describe(
|
|
401
412
|
"The build will use these package patterns to determine if they should be external to the bundle"
|
|
402
413
|
),
|
|
403
|
-
skipCache:
|
|
414
|
+
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
404
415
|
directories: WorkspaceDirectoryConfigSchema,
|
|
405
|
-
packageManager:
|
|
416
|
+
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
|
|
406
417
|
"The JavaScript/TypeScript package manager used by the repository"
|
|
407
418
|
),
|
|
408
|
-
timezone:
|
|
409
|
-
locale:
|
|
410
|
-
logLevel:
|
|
419
|
+
timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
420
|
+
locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
421
|
+
logLevel: z.enum([
|
|
411
422
|
"silent",
|
|
412
423
|
"fatal",
|
|
413
424
|
"error",
|
|
@@ -420,17 +431,17 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
420
431
|
]).default("info").describe(
|
|
421
432
|
"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`)."
|
|
422
433
|
),
|
|
423
|
-
skipConfigLogging:
|
|
434
|
+
skipConfigLogging: z.boolean().optional().describe(
|
|
424
435
|
"Should the logging of the current Storm Workspace configuration be skipped?"
|
|
425
436
|
),
|
|
426
437
|
registry: RegistryConfigSchema,
|
|
427
|
-
configFile:
|
|
438
|
+
configFile: z.string().trim().nullable().default(null).describe(
|
|
428
439
|
"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
429
440
|
),
|
|
430
441
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
431
442
|
"Storm theme config values used for styling various package elements"
|
|
432
443
|
),
|
|
433
|
-
extensions:
|
|
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
|
);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanDirectories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4FBSNAJ3.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-P463HKRZ.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SNFLBCOO.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfig,
|
|
12
12
|
tscPlugin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KVRCVCLC.js";
|
|
14
14
|
import {
|
|
15
15
|
COLOR_KEYS,
|
|
16
16
|
LogLevel,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
writeSuccess,
|
|
35
35
|
writeTrace,
|
|
36
36
|
writeWarning
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-2JQ6EMAG.js";
|
|
38
38
|
|
|
39
39
|
// src/build.ts
|
|
40
40
|
import {
|
|
@@ -402,7 +402,13 @@ var getConfigEnv = () => {
|
|
|
402
402
|
medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
|
|
403
403
|
github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
|
|
404
404
|
},
|
|
405
|
-
organization: process.env[`${prefix}ORGANIZATION`] ||
|
|
405
|
+
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`] ? {
|
|
406
|
+
name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
|
|
407
|
+
description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
|
|
408
|
+
url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
|
|
409
|
+
logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
|
|
410
|
+
icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
|
|
411
|
+
} : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
|
|
406
412
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
407
413
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
408
414
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
@@ -609,7 +615,33 @@ var setConfigEnv = (config) => {
|
|
|
609
615
|
}
|
|
610
616
|
}
|
|
611
617
|
if (config.organization) {
|
|
612
|
-
|
|
618
|
+
if (typeof config.organization === "string") {
|
|
619
|
+
process.env[`${prefix}ORG`] = config.organization;
|
|
620
|
+
process.env[`${prefix}ORG_NAME`] = config.organization;
|
|
621
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
622
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
|
|
623
|
+
} else {
|
|
624
|
+
process.env[`${prefix}ORG`] = config.organization.name;
|
|
625
|
+
process.env[`${prefix}ORG_NAME`] = config.organization.name;
|
|
626
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization.name;
|
|
627
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
|
|
628
|
+
if (config.organization.url) {
|
|
629
|
+
process.env[`${prefix}ORG_URL`] = config.organization.url;
|
|
630
|
+
process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
|
|
631
|
+
}
|
|
632
|
+
if (config.organization.description) {
|
|
633
|
+
process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
|
|
634
|
+
process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
|
|
635
|
+
}
|
|
636
|
+
if (config.organization.logo) {
|
|
637
|
+
process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
|
|
638
|
+
process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
|
|
639
|
+
}
|
|
640
|
+
if (config.organization.icon) {
|
|
641
|
+
process.env[`${prefix}ORG_ICON`] = config.organization.icon;
|
|
642
|
+
process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
613
645
|
}
|
|
614
646
|
if (config.packageManager) {
|
|
615
647
|
process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
|
package/dist/clean.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkDAT6NHMFcjs = require('./chunk-DAT6NHMF.cjs');
|
|
5
|
+
require('./chunk-VHYQF3I6.cjs');
|
|
6
6
|
require('./chunk-OBGZSXTJ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.clean =
|
|
10
|
+
exports.clean = _chunkDAT6NHMFcjs.clean; exports.cleanDirectories = _chunkDAT6NHMFcjs.cleanDirectories;
|
package/dist/clean.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk32TZN7CEcjs = require('./chunk-32TZN7CE.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkDAT6NHMFcjs = require('./chunk-DAT6NHMF.cjs');
|
|
13
13
|
require('./chunk-SFZRYJZ2.cjs');
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-67LS6ZEK.cjs');
|
|
15
|
+
require('./chunk-F53U4QNB.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
19
|
+
var _chunkFPQJTGP3cjs = require('./chunk-FPQJTGP3.cjs');
|
|
20
|
+
require('./chunk-VHYQF3I6.cjs');
|
|
21
21
|
require('./chunk-OBGZSXTJ.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
@@ -30,4 +30,4 @@ require('./chunk-OBGZSXTJ.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.build =
|
|
33
|
+
exports.build = _chunk32TZN7CEcjs.build; exports.clean = _chunkDAT6NHMFcjs.clean; exports.cleanDirectories = _chunkDAT6NHMFcjs.cleanDirectories; exports.cleanOutputPath = _chunk32TZN7CEcjs.cleanOutputPath; exports.copyBuildAssets = _chunk32TZN7CEcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkFPQJTGP3cjs.createTsCompilerOptions; exports.executeUnbuild = _chunk32TZN7CEcjs.executeUnbuild; exports.generatePackageJson = _chunk32TZN7CEcjs.generatePackageJson; exports.loadConfig = _chunkFPQJTGP3cjs.loadConfig; exports.resolveOptions = _chunk32TZN7CEcjs.resolveOptions;
|
package/dist/index.js
CHANGED
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
executeUnbuild,
|
|
6
6
|
generatePackageJson,
|
|
7
7
|
resolveOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XYNUJ3M6.js";
|
|
9
9
|
import {
|
|
10
10
|
clean,
|
|
11
11
|
cleanDirectories
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4FBSNAJ3.js";
|
|
13
13
|
import "./chunk-GGNOJ77I.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-P463HKRZ.js";
|
|
15
|
+
import "./chunk-SNFLBCOO.js";
|
|
16
16
|
import {
|
|
17
17
|
createTsCompilerOptions,
|
|
18
18
|
loadConfig
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-KVRCVCLC.js";
|
|
20
|
+
import "./chunk-2JQ6EMAG.js";
|
|
21
21
|
import "./chunk-3RG5ZIWI.js";
|
|
22
22
|
export {
|
|
23
23
|
build,
|
package/dist/plugins/analyze.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunk67LS6ZEKcjs = require('../chunk-67LS6ZEK.cjs');
|
|
4
|
+
require('../chunk-VHYQF3I6.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.analyzePlugin =
|
|
8
|
+
exports.analyzePlugin = _chunk67LS6ZEKcjs.analyzePlugin;
|
package/dist/plugins/analyze.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkF53U4QNBcjs = require('../chunk-F53U4QNB.cjs');
|
|
4
|
+
require('../chunk-VHYQF3I6.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.onErrorPlugin =
|
|
8
|
+
exports.onErrorPlugin = _chunkF53U4QNBcjs.onErrorPlugin;
|
package/dist/plugins/on-error.js
CHANGED
package/dist/plugins/tsc.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkFPQJTGP3cjs = require('../chunk-FPQJTGP3.cjs');
|
|
4
|
+
require('../chunk-VHYQF3I6.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.tscPlugin =
|
|
8
|
+
exports.tscPlugin = _chunkFPQJTGP3cjs.tscPlugin;
|