@storm-software/unbuild 0.49.19 → 0.49.20
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 +46 -3
- package/bin/unbuild.js +46 -3
- package/dist/build.cjs +7 -7
- package/dist/build.js +6 -6
- package/dist/{chunk-ZFT5WRRG.cjs → chunk-5KSZPECX.cjs} +2 -2
- package/dist/{chunk-STWBC7PN.js → chunk-AYPPKQ5S.js} +1 -1
- package/dist/{chunk-ZUJYZNHE.js → chunk-BDV5MV3H.js} +39 -7
- package/dist/{chunk-YXBJUQUO.js → chunk-BFAVTD5J.js} +1 -1
- package/dist/{chunk-BEYMFCM7.cjs → chunk-BTDRKHZ7.cjs} +137 -105
- package/dist/{chunk-6XVL7IQT.cjs → chunk-EBK4LG6G.cjs} +3 -3
- package/dist/{chunk-KQH54774.js → chunk-F3GBAO3P.js} +12 -1
- package/dist/{chunk-OUDGDVMG.cjs → chunk-ITDJSVVD.cjs} +12 -1
- package/dist/{chunk-SE3LAWDV.cjs → chunk-RHWAAYTP.cjs} +2 -2
- package/dist/{chunk-I6UPBZJN.js → chunk-TYDZFEKV.js} +1 -1
- package/dist/{chunk-RDXDA3GH.cjs → chunk-WQRP7RFG.cjs} +3 -3
- package/dist/{chunk-WK7EB7IK.js → chunk-XCKBXSSE.js} +1 -1
- 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,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkITDJSVVDcjs = require('./chunk-ITDJSVVD.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
|
+
_chunkITDJSVVDcjs.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
|
+
_chunkITDJSVVDcjs.writeError.call(void 0,
|
|
22
22
|
`The following errors occurred during the build:
|
|
23
23
|
${error ? error.message : "Unknown build error"}
|
|
24
24
|
|
|
@@ -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"),
|
|
@@ -366,6 +366,15 @@ var errorConfigSchema = _zod2.default.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 = _zod2.default.object({
|
|
370
|
+
name: _zod2.default.string().trim().describe("The name of the organization"),
|
|
371
|
+
description: _zod2.default.string().trim().optional().describe("A description of the organization"),
|
|
372
|
+
logo: _zod2.default.string().trim().url().optional().describe("A URL to the organization's logo image"),
|
|
373
|
+
icon: _zod2.default.string().trim().url().optional().describe("A URL to the organization's icon image"),
|
|
374
|
+
url: _zod2.default.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 = _zod2.default.object({
|
|
370
379
|
$schema: _zod2.default.string().trim().default(
|
|
371
380
|
"https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
|
|
@@ -377,7 +386,9 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
377
386
|
"The name of the service/package/scope using this configuration"
|
|
378
387
|
),
|
|
379
388
|
namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
380
|
-
organization: _zod2.default.string().trim().
|
|
389
|
+
organization: organizationConfigSchema.or(_zod2.default.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: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
382
393
|
license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
383
394
|
homepage: _zod2.default.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
@@ -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 _chunkITDJSVVDcjs = require('./chunk-ITDJSVVD.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
|
+
_chunkITDJSVVDcjs.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 _chunkITDJSVVDcjs = require('./chunk-ITDJSVVD.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
|
+
_chunkITDJSVVDcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
10
|
+
const stopwatch = _chunkITDJSVVDcjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
11
11
|
await cleanDirectories(name, directory, config);
|
|
12
12
|
stopwatch();
|
|
13
13
|
}
|
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 _chunkWQRP7RFGcjs = require('./chunk-WQRP7RFG.cjs');
|
|
5
|
+
require('./chunk-ITDJSVVD.cjs');
|
|
6
6
|
require('./chunk-OBGZSXTJ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.clean =
|
|
10
|
+
exports.clean = _chunkWQRP7RFGcjs.clean; exports.cleanDirectories = _chunkWQRP7RFGcjs.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 _chunkBTDRKHZ7cjs = require('./chunk-BTDRKHZ7.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkWQRP7RFGcjs = require('./chunk-WQRP7RFG.cjs');
|
|
13
13
|
require('./chunk-SFZRYJZ2.cjs');
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-5KSZPECX.cjs');
|
|
15
|
+
require('./chunk-EBK4LG6G.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
19
|
+
var _chunkRHWAAYTPcjs = require('./chunk-RHWAAYTP.cjs');
|
|
20
|
+
require('./chunk-ITDJSVVD.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 = _chunkBTDRKHZ7cjs.build; exports.clean = _chunkWQRP7RFGcjs.clean; exports.cleanDirectories = _chunkWQRP7RFGcjs.cleanDirectories; exports.cleanOutputPath = _chunkBTDRKHZ7cjs.cleanOutputPath; exports.copyBuildAssets = _chunkBTDRKHZ7cjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkRHWAAYTPcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkBTDRKHZ7cjs.executeUnbuild; exports.generatePackageJson = _chunkBTDRKHZ7cjs.generatePackageJson; exports.loadConfig = _chunkRHWAAYTPcjs.loadConfig; exports.resolveOptions = _chunkBTDRKHZ7cjs.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-BDV5MV3H.js";
|
|
9
9
|
import {
|
|
10
10
|
clean,
|
|
11
11
|
cleanDirectories
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XCKBXSSE.js";
|
|
13
13
|
import "./chunk-GGNOJ77I.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-BFAVTD5J.js";
|
|
15
|
+
import "./chunk-TYDZFEKV.js";
|
|
16
16
|
import {
|
|
17
17
|
createTsCompilerOptions,
|
|
18
18
|
loadConfig
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-AYPPKQ5S.js";
|
|
20
|
+
import "./chunk-F3GBAO3P.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 _chunk5KSZPECXcjs = require('../chunk-5KSZPECX.cjs');
|
|
4
|
+
require('../chunk-ITDJSVVD.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.analyzePlugin =
|
|
8
|
+
exports.analyzePlugin = _chunk5KSZPECXcjs.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 _chunkEBK4LG6Gcjs = require('../chunk-EBK4LG6G.cjs');
|
|
4
|
+
require('../chunk-ITDJSVVD.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.onErrorPlugin =
|
|
8
|
+
exports.onErrorPlugin = _chunkEBK4LG6Gcjs.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 _chunkRHWAAYTPcjs = require('../chunk-RHWAAYTP.cjs');
|
|
4
|
+
require('../chunk-ITDJSVVD.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.tscPlugin =
|
|
8
|
+
exports.tscPlugin = _chunkRHWAAYTPcjs.tscPlugin;
|
package/dist/plugins/tsc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/unbuild",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -147,9 +147,9 @@
|
|
|
147
147
|
"typescript": { "optional": false }
|
|
148
148
|
},
|
|
149
149
|
"dependencies": {
|
|
150
|
-
"@storm-software/build-tools": "^0.151.
|
|
151
|
-
"@storm-software/config": "^1.
|
|
152
|
-
"@storm-software/config-tools": "^1.
|
|
150
|
+
"@storm-software/build-tools": "^0.151.8",
|
|
151
|
+
"@storm-software/config": "^1.123.0",
|
|
152
|
+
"@storm-software/config-tools": "^1.174.0",
|
|
153
153
|
"commander": "^12.1.0",
|
|
154
154
|
"defu": "6.1.4",
|
|
155
155
|
"esbuild": "^0.25.0",
|