@storm-software/unbuild 0.49.44 → 0.49.46
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 +15 -14
- package/bin/unbuild.js +15 -14
- package/dist/build.cjs +7 -7
- package/dist/build.js +6 -6
- package/dist/{chunk-JTL64DIV.cjs → chunk-3WPI2LUL.cjs} +105 -105
- package/dist/{chunk-IX57XUC6.js → chunk-A344TKTC.js} +1 -1
- package/dist/{chunk-XNEAB4RQ.cjs → chunk-A4MFYPJN.cjs} +3 -3
- package/dist/{chunk-WLUG56XM.cjs → chunk-AS3CHHHX.cjs} +15 -14
- package/dist/{chunk-TPCOWOWK.js → chunk-FWLSKHOW.js} +15 -14
- package/dist/{chunk-5LIOQAOY.cjs → chunk-GYTRVRQJ.cjs} +2 -2
- package/dist/{chunk-6ZKWJ5VK.js → chunk-HUPRNKOU.js} +1 -1
- package/dist/{chunk-VT6DJF6W.js → chunk-NLH4D6OZ.js} +5 -5
- package/dist/{chunk-DGJFFRFH.cjs → chunk-WSPD5TWC.cjs} +3 -3
- package/dist/{chunk-ILCF5AV5.js → chunk-WUSF3WE6.js} +1 -1
- package/dist/{chunk-TWJO45XW.js → chunk-X5NCLQHD.js} +1 -1
- package/dist/{chunk-SGP6BUJQ.cjs → chunk-YODGKUIC.cjs} +2 -2
- 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
|
@@ -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 z = __toESM(require("zod
|
|
26
|
+
var z = __toESM(require("zod"), 1);
|
|
27
27
|
|
|
28
28
|
// ../config/src/constants.ts
|
|
29
29
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
@@ -113,7 +113,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
113
113
|
positive: PositiveColorSchema,
|
|
114
114
|
negative: NegativeColorSchema
|
|
115
115
|
});
|
|
116
|
-
var RegistryUrlConfigSchema = z.
|
|
116
|
+
var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
117
117
|
var RegistryConfigSchema = z.object({
|
|
118
118
|
github: RegistryUrlConfigSchema,
|
|
119
119
|
npm: RegistryUrlConfigSchema,
|
|
@@ -140,7 +140,7 @@ var WorkspaceBotConfigSchema = z.object({
|
|
|
140
140
|
name: z.string().trim().default("stormie-bot").describe(
|
|
141
141
|
"The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
142
142
|
),
|
|
143
|
-
email: z.
|
|
143
|
+
email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
144
144
|
}).describe(
|
|
145
145
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
146
146
|
);
|
|
@@ -183,19 +183,20 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
183
183
|
);
|
|
184
184
|
var errorConfigSchema = z.object({
|
|
185
185
|
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
186
|
-
url: z.
|
|
186
|
+
url: z.url().optional().describe(
|
|
187
187
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
188
188
|
)
|
|
189
189
|
}).describe("The workspace's error config used during the error process");
|
|
190
190
|
var organizationConfigSchema = z.object({
|
|
191
191
|
name: z.string().trim().describe("The name of the organization"),
|
|
192
192
|
description: z.string().trim().optional().describe("A description of the organization"),
|
|
193
|
-
logo: z.
|
|
194
|
-
icon: z.
|
|
195
|
-
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(
|
|
196
196
|
"A URL to a page that provides more information about the organization"
|
|
197
197
|
)
|
|
198
198
|
}).describe("The workspace's organization details");
|
|
199
|
+
var MODE_OPTIONS = ["development", "staging", "production"];
|
|
199
200
|
var stormWorkspaceConfigSchema = z.object({
|
|
200
201
|
$schema: z.string().trim().default(
|
|
201
202
|
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
@@ -212,12 +213,12 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
212
213
|
),
|
|
213
214
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
214
215
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
215
|
-
homepage: z.
|
|
216
|
-
docs: z.
|
|
217
|
-
portal: z.
|
|
218
|
-
licensing: z.
|
|
219
|
-
contact: z.
|
|
220
|
-
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(
|
|
221
222
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
222
223
|
),
|
|
223
224
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
@@ -227,7 +228,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
227
228
|
release: WorkspaceReleaseConfigSchema,
|
|
228
229
|
socials: WorkspaceSocialsConfigSchema,
|
|
229
230
|
error: errorConfigSchema,
|
|
230
|
-
mode: z.enum(
|
|
231
|
+
mode: z.enum(MODE_OPTIONS).prefault("production").describe("The current runtime environment mode for the package"),
|
|
231
232
|
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
232
233
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
233
234
|
directories: WorkspaceDirectoryConfigSchema,
|
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 * as z from "zod
|
|
4
|
+
import * as z from "zod";
|
|
5
5
|
|
|
6
6
|
// ../config/src/constants.ts
|
|
7
7
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
@@ -91,7 +91,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
91
91
|
positive: PositiveColorSchema,
|
|
92
92
|
negative: NegativeColorSchema
|
|
93
93
|
});
|
|
94
|
-
var RegistryUrlConfigSchema = z.
|
|
94
|
+
var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
95
95
|
var RegistryConfigSchema = z.object({
|
|
96
96
|
github: RegistryUrlConfigSchema,
|
|
97
97
|
npm: RegistryUrlConfigSchema,
|
|
@@ -118,7 +118,7 @@ var WorkspaceBotConfigSchema = z.object({
|
|
|
118
118
|
name: z.string().trim().default("stormie-bot").describe(
|
|
119
119
|
"The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
120
120
|
),
|
|
121
|
-
email: z.
|
|
121
|
+
email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
122
122
|
}).describe(
|
|
123
123
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
124
124
|
);
|
|
@@ -161,19 +161,20 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
161
161
|
);
|
|
162
162
|
var errorConfigSchema = z.object({
|
|
163
163
|
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
164
|
-
url: z.
|
|
164
|
+
url: z.url().optional().describe(
|
|
165
165
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
166
166
|
)
|
|
167
167
|
}).describe("The workspace's error config used during the error process");
|
|
168
168
|
var organizationConfigSchema = z.object({
|
|
169
169
|
name: z.string().trim().describe("The name of the organization"),
|
|
170
170
|
description: z.string().trim().optional().describe("A description of the organization"),
|
|
171
|
-
logo: z.
|
|
172
|
-
icon: z.
|
|
173
|
-
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(
|
|
174
174
|
"A URL to a page that provides more information about the organization"
|
|
175
175
|
)
|
|
176
176
|
}).describe("The workspace's organization details");
|
|
177
|
+
var MODE_OPTIONS = ["development", "staging", "production"];
|
|
177
178
|
var stormWorkspaceConfigSchema = z.object({
|
|
178
179
|
$schema: z.string().trim().default(
|
|
179
180
|
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
@@ -190,12 +191,12 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
190
191
|
),
|
|
191
192
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
192
193
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
193
|
-
homepage: z.
|
|
194
|
-
docs: z.
|
|
195
|
-
portal: z.
|
|
196
|
-
licensing: z.
|
|
197
|
-
contact: z.
|
|
198
|
-
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(
|
|
199
200
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
200
201
|
),
|
|
201
202
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
@@ -205,7 +206,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
205
206
|
release: WorkspaceReleaseConfigSchema,
|
|
206
207
|
socials: WorkspaceSocialsConfigSchema,
|
|
207
208
|
error: errorConfigSchema,
|
|
208
|
-
mode: z.enum(
|
|
209
|
+
mode: z.enum(MODE_OPTIONS).prefault("production").describe("The current runtime environment mode for the package"),
|
|
209
210
|
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
210
211
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
211
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 _chunk3WPI2LULcjs = require('./chunk-3WPI2LUL.cjs');
|
|
9
|
+
require('./chunk-WSPD5TWC.cjs');
|
|
10
|
+
require('./chunk-GYTRVRQJ.cjs');
|
|
11
|
+
require('./chunk-A4MFYPJN.cjs');
|
|
12
|
+
require('./chunk-YODGKUIC.cjs');
|
|
13
|
+
require('./chunk-AS3CHHHX.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 = _chunk3WPI2LULcjs.build; exports.cleanOutputPath = _chunk3WPI2LULcjs.cleanOutputPath; exports.copyBuildAssets = _chunk3WPI2LULcjs.copyBuildAssets; exports.executeUnbuild = _chunk3WPI2LULcjs.executeUnbuild; exports.generatePackageJson = _chunk3WPI2LULcjs.generatePackageJson; exports.resolveOptions = _chunk3WPI2LULcjs.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-NLH4D6OZ.js";
|
|
9
|
+
import "./chunk-WUSF3WE6.js";
|
|
10
|
+
import "./chunk-HUPRNKOU.js";
|
|
11
|
+
import "./chunk-A344TKTC.js";
|
|
12
|
+
import "./chunk-X5NCLQHD.js";
|
|
13
|
+
import "./chunk-FWLSKHOW.js";
|
|
14
14
|
import "./chunk-3RG5ZIWI.js";
|
|
15
15
|
export {
|
|
16
16
|
build,
|