@storm-software/unbuild 0.49.43 → 0.49.45
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 +16 -16
- package/bin/unbuild.js +16 -16
- package/dist/build.cjs +7 -7
- package/dist/build.js +6 -6
- package/dist/{chunk-DBA3KANT.cjs → chunk-3VPYTMTW.cjs} +2 -2
- package/dist/{chunk-5XOAK534.js → chunk-53SRQU7L.js} +1 -1
- package/dist/{chunk-BOURL2AF.cjs → chunk-54EG7SKF.cjs} +3 -3
- package/dist/{chunk-PN4YHJFZ.js → chunk-5XUMKFT5.js} +16 -16
- package/dist/{chunk-IZRYGG3N.js → chunk-A7SWPWEN.js} +5 -5
- package/dist/{chunk-7CTYKC3M.cjs → chunk-BZNI2S2Q.cjs} +3 -3
- package/dist/{chunk-NE22YS5A.js → chunk-H5FYDIRN.js} +1 -1
- package/dist/{chunk-SFZ4V2LD.js → chunk-IY4HAK7O.js} +1 -1
- package/dist/{chunk-HPUTMCFR.js → chunk-ODWQ5IQY.js} +1 -1
- package/dist/{chunk-5KAGDMCA.cjs → chunk-PCQ64N2Q.cjs} +2 -2
- package/dist/{chunk-7PQTY6BQ.cjs → chunk-X4VXBY3D.cjs} +105 -105
- package/dist/{chunk-FMIGI6JG.cjs → chunk-ZT6C6XEL.cjs} +16 -16
- 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 +5 -5
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
|
@@ -31,7 +31,6 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
|
31
31
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
32
32
|
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
33
33
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
34
|
-
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
35
34
|
var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
|
|
36
35
|
var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
37
36
|
var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
|
|
@@ -114,7 +113,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
114
113
|
positive: PositiveColorSchema,
|
|
115
114
|
negative: NegativeColorSchema
|
|
116
115
|
});
|
|
117
|
-
var RegistryUrlConfigSchema = z.
|
|
116
|
+
var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
118
117
|
var RegistryConfigSchema = z.object({
|
|
119
118
|
github: RegistryUrlConfigSchema,
|
|
120
119
|
npm: RegistryUrlConfigSchema,
|
|
@@ -141,18 +140,18 @@ var WorkspaceBotConfigSchema = z.object({
|
|
|
141
140
|
name: z.string().trim().default("stormie-bot").describe(
|
|
142
141
|
"The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
143
142
|
),
|
|
144
|
-
email: z.
|
|
143
|
+
email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
145
144
|
}).describe(
|
|
146
145
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
147
146
|
);
|
|
148
147
|
var WorkspaceReleaseConfigSchema = z.object({
|
|
149
|
-
banner: z.string().trim().
|
|
148
|
+
banner: z.string().trim().optional().describe(
|
|
150
149
|
"A URL to a banner image used to display the workspace's release"
|
|
151
150
|
),
|
|
152
151
|
header: z.string().trim().optional().describe(
|
|
153
152
|
"A header message appended to the start of the workspace's release notes"
|
|
154
153
|
),
|
|
155
|
-
footer: z.string().trim().
|
|
154
|
+
footer: z.string().trim().optional().describe(
|
|
156
155
|
"A footer message appended to the end of the workspace's release notes"
|
|
157
156
|
)
|
|
158
157
|
}).describe("The workspace's release config used during the release process");
|
|
@@ -184,19 +183,20 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
184
183
|
);
|
|
185
184
|
var errorConfigSchema = z.object({
|
|
186
185
|
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
187
|
-
url: z.
|
|
186
|
+
url: z.url().optional().describe(
|
|
188
187
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
189
188
|
)
|
|
190
189
|
}).describe("The workspace's error config used during the error process");
|
|
191
190
|
var organizationConfigSchema = z.object({
|
|
192
191
|
name: z.string().trim().describe("The name of the organization"),
|
|
193
192
|
description: z.string().trim().optional().describe("A description of the organization"),
|
|
194
|
-
logo: z.
|
|
195
|
-
icon: z.
|
|
196
|
-
url: z.
|
|
193
|
+
logo: z.url().optional().describe("A URL to the organization's logo image"),
|
|
194
|
+
icon: z.url().optional().describe("A URL to the organization's icon image"),
|
|
195
|
+
url: z.url().optional().describe(
|
|
197
196
|
"A URL to a page that provides more information about the organization"
|
|
198
197
|
)
|
|
199
198
|
}).describe("The workspace's organization details");
|
|
199
|
+
var MODE_OPTIONS = ["development", "staging", "production"];
|
|
200
200
|
var stormWorkspaceConfigSchema = z.object({
|
|
201
201
|
$schema: z.string().trim().default(
|
|
202
202
|
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
@@ -213,12 +213,12 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
213
213
|
),
|
|
214
214
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
215
215
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
216
|
-
homepage: z.
|
|
217
|
-
docs: z.
|
|
218
|
-
portal: z.
|
|
219
|
-
licensing: z.
|
|
220
|
-
contact: z.
|
|
221
|
-
support: z.
|
|
216
|
+
homepage: z.url().optional().describe("The homepage of the workspace"),
|
|
217
|
+
docs: z.url().optional().describe("The documentation site for the workspace"),
|
|
218
|
+
portal: z.url().optional().describe("The development portal site for the workspace"),
|
|
219
|
+
licensing: z.url().optional().describe("The licensing site for the workspace"),
|
|
220
|
+
contact: z.url().optional().describe("The contact site for the workspace"),
|
|
221
|
+
support: z.url().optional().describe(
|
|
222
222
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
223
223
|
),
|
|
224
224
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
@@ -228,7 +228,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
228
228
|
release: WorkspaceReleaseConfigSchema,
|
|
229
229
|
socials: WorkspaceSocialsConfigSchema,
|
|
230
230
|
error: errorConfigSchema,
|
|
231
|
-
mode: z.enum(
|
|
231
|
+
mode: z.enum(MODE_OPTIONS).prefault("production").describe("The current runtime environment mode for the package"),
|
|
232
232
|
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
233
233
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
234
234
|
directories: WorkspaceDirectoryConfigSchema,
|
package/bin/unbuild.js
CHANGED
|
@@ -9,7 +9,6 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
|
9
9
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
10
10
|
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
11
11
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
12
|
-
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
13
12
|
var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
|
|
14
13
|
var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
15
14
|
var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
|
|
@@ -92,7 +91,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
92
91
|
positive: PositiveColorSchema,
|
|
93
92
|
negative: NegativeColorSchema
|
|
94
93
|
});
|
|
95
|
-
var RegistryUrlConfigSchema = z.
|
|
94
|
+
var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
96
95
|
var RegistryConfigSchema = z.object({
|
|
97
96
|
github: RegistryUrlConfigSchema,
|
|
98
97
|
npm: RegistryUrlConfigSchema,
|
|
@@ -119,18 +118,18 @@ var WorkspaceBotConfigSchema = z.object({
|
|
|
119
118
|
name: z.string().trim().default("stormie-bot").describe(
|
|
120
119
|
"The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
121
120
|
),
|
|
122
|
-
email: z.
|
|
121
|
+
email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
123
122
|
}).describe(
|
|
124
123
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
125
124
|
);
|
|
126
125
|
var WorkspaceReleaseConfigSchema = z.object({
|
|
127
|
-
banner: z.string().trim().
|
|
126
|
+
banner: z.string().trim().optional().describe(
|
|
128
127
|
"A URL to a banner image used to display the workspace's release"
|
|
129
128
|
),
|
|
130
129
|
header: z.string().trim().optional().describe(
|
|
131
130
|
"A header message appended to the start of the workspace's release notes"
|
|
132
131
|
),
|
|
133
|
-
footer: z.string().trim().
|
|
132
|
+
footer: z.string().trim().optional().describe(
|
|
134
133
|
"A footer message appended to the end of the workspace's release notes"
|
|
135
134
|
)
|
|
136
135
|
}).describe("The workspace's release config used during the release process");
|
|
@@ -162,19 +161,20 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
162
161
|
);
|
|
163
162
|
var errorConfigSchema = z.object({
|
|
164
163
|
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
165
|
-
url: z.
|
|
164
|
+
url: z.url().optional().describe(
|
|
166
165
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
167
166
|
)
|
|
168
167
|
}).describe("The workspace's error config used during the error process");
|
|
169
168
|
var organizationConfigSchema = z.object({
|
|
170
169
|
name: z.string().trim().describe("The name of the organization"),
|
|
171
170
|
description: z.string().trim().optional().describe("A description of the organization"),
|
|
172
|
-
logo: z.
|
|
173
|
-
icon: z.
|
|
174
|
-
url: z.
|
|
171
|
+
logo: z.url().optional().describe("A URL to the organization's logo image"),
|
|
172
|
+
icon: z.url().optional().describe("A URL to the organization's icon image"),
|
|
173
|
+
url: z.url().optional().describe(
|
|
175
174
|
"A URL to a page that provides more information about the organization"
|
|
176
175
|
)
|
|
177
176
|
}).describe("The workspace's organization details");
|
|
177
|
+
var MODE_OPTIONS = ["development", "staging", "production"];
|
|
178
178
|
var stormWorkspaceConfigSchema = z.object({
|
|
179
179
|
$schema: z.string().trim().default(
|
|
180
180
|
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
@@ -191,12 +191,12 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
191
191
|
),
|
|
192
192
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
193
193
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
194
|
-
homepage: z.
|
|
195
|
-
docs: z.
|
|
196
|
-
portal: z.
|
|
197
|
-
licensing: z.
|
|
198
|
-
contact: z.
|
|
199
|
-
support: z.
|
|
194
|
+
homepage: z.url().optional().describe("The homepage of the workspace"),
|
|
195
|
+
docs: z.url().optional().describe("The documentation site for the workspace"),
|
|
196
|
+
portal: z.url().optional().describe("The development portal site for the workspace"),
|
|
197
|
+
licensing: z.url().optional().describe("The licensing site for the workspace"),
|
|
198
|
+
contact: z.url().optional().describe("The contact site for the workspace"),
|
|
199
|
+
support: z.url().optional().describe(
|
|
200
200
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
201
201
|
),
|
|
202
202
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
@@ -206,7 +206,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
206
206
|
release: WorkspaceReleaseConfigSchema,
|
|
207
207
|
socials: WorkspaceSocialsConfigSchema,
|
|
208
208
|
error: errorConfigSchema,
|
|
209
|
-
mode: z.enum(
|
|
209
|
+
mode: z.enum(MODE_OPTIONS).prefault("production").describe("The current runtime environment mode for the package"),
|
|
210
210
|
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
211
211
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
212
212
|
directories: WorkspaceDirectoryConfigSchema,
|
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 _chunkX4VXBY3Dcjs = require('./chunk-X4VXBY3D.cjs');
|
|
9
|
+
require('./chunk-54EG7SKF.cjs');
|
|
10
|
+
require('./chunk-PCQ64N2Q.cjs');
|
|
11
|
+
require('./chunk-BZNI2S2Q.cjs');
|
|
12
|
+
require('./chunk-3VPYTMTW.cjs');
|
|
13
|
+
require('./chunk-ZT6C6XEL.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 = _chunkX4VXBY3Dcjs.build; exports.cleanOutputPath = _chunkX4VXBY3Dcjs.cleanOutputPath; exports.copyBuildAssets = _chunkX4VXBY3Dcjs.copyBuildAssets; exports.executeUnbuild = _chunkX4VXBY3Dcjs.executeUnbuild; exports.generatePackageJson = _chunkX4VXBY3Dcjs.generatePackageJson; exports.resolveOptions = _chunkX4VXBY3Dcjs.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-A7SWPWEN.js";
|
|
9
|
+
import "./chunk-H5FYDIRN.js";
|
|
10
|
+
import "./chunk-ODWQ5IQY.js";
|
|
11
|
+
import "./chunk-IY4HAK7O.js";
|
|
12
|
+
import "./chunk-53SRQU7L.js";
|
|
13
|
+
import "./chunk-5XUMKFT5.js";
|
|
14
14
|
import "./chunk-3RG5ZIWI.js";
|
|
15
15
|
export {
|
|
16
16
|
build,
|
|
@@ -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 _chunkZT6C6XELcjs = require('./chunk-ZT6C6XEL.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
|
+
_chunkZT6C6XELcjs.writeTrace.call(void 0, compilerOptions, config);
|
|
49
49
|
return compilerOptions;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZT6C6XELcjs = require('./chunk-ZT6C6XEL.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
|
+
_chunkZT6C6XELcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
10
|
+
const stopwatch = _chunkZT6C6XELcjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
11
11
|
await cleanDirectories(name, directory, config);
|
|
12
12
|
stopwatch();
|
|
13
13
|
}
|
|
@@ -208,7 +208,6 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
|
208
208
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
209
209
|
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
210
210
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
211
|
-
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
212
211
|
var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
|
|
213
212
|
var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
214
213
|
var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
|
|
@@ -292,7 +291,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
292
291
|
positive: PositiveColorSchema,
|
|
293
292
|
negative: NegativeColorSchema
|
|
294
293
|
});
|
|
295
|
-
var RegistryUrlConfigSchema = z.
|
|
294
|
+
var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
296
295
|
var RegistryConfigSchema = z.object({
|
|
297
296
|
github: RegistryUrlConfigSchema,
|
|
298
297
|
npm: RegistryUrlConfigSchema,
|
|
@@ -319,18 +318,18 @@ var WorkspaceBotConfigSchema = z.object({
|
|
|
319
318
|
name: z.string().trim().default("stormie-bot").describe(
|
|
320
319
|
"The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
321
320
|
),
|
|
322
|
-
email: z.
|
|
321
|
+
email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
323
322
|
}).describe(
|
|
324
323
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
325
324
|
);
|
|
326
325
|
var WorkspaceReleaseConfigSchema = z.object({
|
|
327
|
-
banner: z.string().trim().
|
|
326
|
+
banner: z.string().trim().optional().describe(
|
|
328
327
|
"A URL to a banner image used to display the workspace's release"
|
|
329
328
|
),
|
|
330
329
|
header: z.string().trim().optional().describe(
|
|
331
330
|
"A header message appended to the start of the workspace's release notes"
|
|
332
331
|
),
|
|
333
|
-
footer: z.string().trim().
|
|
332
|
+
footer: z.string().trim().optional().describe(
|
|
334
333
|
"A footer message appended to the end of the workspace's release notes"
|
|
335
334
|
)
|
|
336
335
|
}).describe("The workspace's release config used during the release process");
|
|
@@ -362,19 +361,20 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
362
361
|
);
|
|
363
362
|
var errorConfigSchema = z.object({
|
|
364
363
|
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
365
|
-
url: z.
|
|
364
|
+
url: z.url().optional().describe(
|
|
366
365
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
367
366
|
)
|
|
368
367
|
}).describe("The workspace's error config used during the error process");
|
|
369
368
|
var organizationConfigSchema = z.object({
|
|
370
369
|
name: z.string().trim().describe("The name of the organization"),
|
|
371
370
|
description: z.string().trim().optional().describe("A description of the organization"),
|
|
372
|
-
logo: z.
|
|
373
|
-
icon: z.
|
|
374
|
-
url: z.
|
|
371
|
+
logo: z.url().optional().describe("A URL to the organization's logo image"),
|
|
372
|
+
icon: z.url().optional().describe("A URL to the organization's icon image"),
|
|
373
|
+
url: z.url().optional().describe(
|
|
375
374
|
"A URL to a page that provides more information about the organization"
|
|
376
375
|
)
|
|
377
376
|
}).describe("The workspace's organization details");
|
|
377
|
+
var MODE_OPTIONS = ["development", "staging", "production"];
|
|
378
378
|
var stormWorkspaceConfigSchema = z.object({
|
|
379
379
|
$schema: z.string().trim().default(
|
|
380
380
|
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
@@ -391,12 +391,12 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
391
391
|
),
|
|
392
392
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
393
393
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
394
|
-
homepage: z.
|
|
395
|
-
docs: z.
|
|
396
|
-
portal: z.
|
|
397
|
-
licensing: z.
|
|
398
|
-
contact: z.
|
|
399
|
-
support: z.
|
|
394
|
+
homepage: z.url().optional().describe("The homepage of the workspace"),
|
|
395
|
+
docs: z.url().optional().describe("The documentation site for the workspace"),
|
|
396
|
+
portal: z.url().optional().describe("The development portal site for the workspace"),
|
|
397
|
+
licensing: z.url().optional().describe("The licensing site for the workspace"),
|
|
398
|
+
contact: z.url().optional().describe("The contact site for the workspace"),
|
|
399
|
+
support: z.url().optional().describe(
|
|
400
400
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
401
401
|
),
|
|
402
402
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
@@ -406,7 +406,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
406
406
|
release: WorkspaceReleaseConfigSchema,
|
|
407
407
|
socials: WorkspaceSocialsConfigSchema,
|
|
408
408
|
error: errorConfigSchema,
|
|
409
|
-
mode: z.enum(
|
|
409
|
+
mode: z.enum(MODE_OPTIONS).prefault("production").describe("The current runtime environment mode for the package"),
|
|
410
410
|
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
411
411
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
412
412
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanDirectories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H5FYDIRN.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ODWQ5IQY.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IY4HAK7O.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfig,
|
|
12
12
|
tscPlugin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-53SRQU7L.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-5XUMKFT5.js";
|
|
38
38
|
|
|
39
39
|
// src/build.ts
|
|
40
40
|
import {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZT6C6XELcjs = require('./chunk-ZT6C6XEL.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
|
+
_chunkZT6C6XELcjs.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
|
+
_chunkZT6C6XELcjs.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});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZT6C6XELcjs = require('./chunk-ZT6C6XEL.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
|
+
_chunkZT6C6XELcjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
};
|