@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.
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOUDGDVMGcjs = require('./chunk-OUDGDVMG.cjs');
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
- _chunkOUDGDVMGcjs.writeError.call(void 0,
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
- _chunkOUDGDVMGcjs.writeError.call(void 0,
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().default("storm-software").describe("The organization of the workspace"),
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().default("storm-software").describe("The organization of the workspace"),
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 _chunkOUDGDVMGcjs = require('./chunk-OUDGDVMG.cjs');
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
- _chunkOUDGDVMGcjs.writeTrace.call(void 0, compilerOptions, config);
48
+ _chunkITDJSVVDcjs.writeTrace.call(void 0, compilerOptions, config);
49
49
  return compilerOptions;
50
50
  }
51
51
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeError
3
- } from "./chunk-KQH54774.js";
3
+ } from "./chunk-F3GBAO3P.js";
4
4
 
5
5
  // src/plugins/on-error.ts
6
6
  var onErrorPlugin = (options) => ({
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOUDGDVMGcjs = require('./chunk-OUDGDVMG.cjs');
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
- _chunkOUDGDVMGcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
10
- const stopwatch = _chunkOUDGDVMGcjs.getStopwatch.call(void 0, `${name} output clean`);
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
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-KQH54774.js";
4
+ } from "./chunk-F3GBAO3P.js";
5
5
 
6
6
  // src/clean.ts
7
7
  import { rm } from "node:fs/promises";
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 _chunkRDXDA3GHcjs = require('./chunk-RDXDA3GH.cjs');
5
- require('./chunk-OUDGDVMG.cjs');
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 = _chunkRDXDA3GHcjs.clean; exports.cleanDirectories = _chunkRDXDA3GHcjs.cleanDirectories;
10
+ exports.clean = _chunkWQRP7RFGcjs.clean; exports.cleanDirectories = _chunkWQRP7RFGcjs.cleanDirectories;
package/dist/clean.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-WK7EB7IK.js";
5
- import "./chunk-KQH54774.js";
4
+ } from "./chunk-XCKBXSSE.js";
5
+ import "./chunk-F3GBAO3P.js";
6
6
  import "./chunk-3RG5ZIWI.js";
7
7
  export {
8
8
  clean,
package/dist/index.cjs CHANGED
@@ -5,19 +5,19 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkBEYMFCM7cjs = require('./chunk-BEYMFCM7.cjs');
8
+ var _chunkBTDRKHZ7cjs = require('./chunk-BTDRKHZ7.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkRDXDA3GHcjs = require('./chunk-RDXDA3GH.cjs');
12
+ var _chunkWQRP7RFGcjs = require('./chunk-WQRP7RFG.cjs');
13
13
  require('./chunk-SFZRYJZ2.cjs');
14
- require('./chunk-ZFT5WRRG.cjs');
15
- require('./chunk-6XVL7IQT.cjs');
14
+ require('./chunk-5KSZPECX.cjs');
15
+ require('./chunk-EBK4LG6G.cjs');
16
16
 
17
17
 
18
18
 
19
- var _chunkSE3LAWDVcjs = require('./chunk-SE3LAWDV.cjs');
20
- require('./chunk-OUDGDVMG.cjs');
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 = _chunkBEYMFCM7cjs.build; exports.clean = _chunkRDXDA3GHcjs.clean; exports.cleanDirectories = _chunkRDXDA3GHcjs.cleanDirectories; exports.cleanOutputPath = _chunkBEYMFCM7cjs.cleanOutputPath; exports.copyBuildAssets = _chunkBEYMFCM7cjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkSE3LAWDVcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkBEYMFCM7cjs.executeUnbuild; exports.generatePackageJson = _chunkBEYMFCM7cjs.generatePackageJson; exports.loadConfig = _chunkSE3LAWDVcjs.loadConfig; exports.resolveOptions = _chunkBEYMFCM7cjs.resolveOptions;
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-ZUJYZNHE.js";
8
+ } from "./chunk-BDV5MV3H.js";
9
9
  import {
10
10
  clean,
11
11
  cleanDirectories
12
- } from "./chunk-WK7EB7IK.js";
12
+ } from "./chunk-XCKBXSSE.js";
13
13
  import "./chunk-GGNOJ77I.js";
14
- import "./chunk-YXBJUQUO.js";
15
- import "./chunk-I6UPBZJN.js";
14
+ import "./chunk-BFAVTD5J.js";
15
+ import "./chunk-TYDZFEKV.js";
16
16
  import {
17
17
  createTsCompilerOptions,
18
18
  loadConfig
19
- } from "./chunk-STWBC7PN.js";
20
- import "./chunk-KQH54774.js";
19
+ } from "./chunk-AYPPKQ5S.js";
20
+ import "./chunk-F3GBAO3P.js";
21
21
  import "./chunk-3RG5ZIWI.js";
22
22
  export {
23
23
  build,
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZFT5WRRGcjs = require('../chunk-ZFT5WRRG.cjs');
4
- require('../chunk-OUDGDVMG.cjs');
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 = _chunkZFT5WRRGcjs.analyzePlugin;
8
+ exports.analyzePlugin = _chunk5KSZPECXcjs.analyzePlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  analyzePlugin
3
- } from "../chunk-YXBJUQUO.js";
4
- import "../chunk-KQH54774.js";
3
+ } from "../chunk-BFAVTD5J.js";
4
+ import "../chunk-F3GBAO3P.js";
5
5
  import "../chunk-3RG5ZIWI.js";
6
6
  export {
7
7
  analyzePlugin
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk6XVL7IQTcjs = require('../chunk-6XVL7IQT.cjs');
4
- require('../chunk-OUDGDVMG.cjs');
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 = _chunk6XVL7IQTcjs.onErrorPlugin;
8
+ exports.onErrorPlugin = _chunkEBK4LG6Gcjs.onErrorPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  onErrorPlugin
3
- } from "../chunk-I6UPBZJN.js";
4
- import "../chunk-KQH54774.js";
3
+ } from "../chunk-TYDZFEKV.js";
4
+ import "../chunk-F3GBAO3P.js";
5
5
  import "../chunk-3RG5ZIWI.js";
6
6
  export {
7
7
  onErrorPlugin
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSE3LAWDVcjs = require('../chunk-SE3LAWDV.cjs');
4
- require('../chunk-OUDGDVMG.cjs');
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 = _chunkSE3LAWDVcjs.tscPlugin;
8
+ exports.tscPlugin = _chunkRHWAAYTPcjs.tscPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  tscPlugin
3
- } from "../chunk-STWBC7PN.js";
4
- import "../chunk-KQH54774.js";
3
+ } from "../chunk-AYPPKQ5S.js";
4
+ import "../chunk-F3GBAO3P.js";
5
5
  import "../chunk-3RG5ZIWI.js";
6
6
  export {
7
7
  tscPlugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/unbuild",
3
- "version": "0.49.19",
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.7",
151
- "@storm-software/config": "^1.122.8",
152
- "@storm-software/config-tools": "^1.173.9",
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",