@storm-software/unbuild 0.37.15 → 0.37.17

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,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkRGZ72JHNcjs = require('./chunk-RGZ72JHN.cjs');
3
+ var _chunkLC3URRVGcjs = require('./chunk-LC3URRVG.cjs');
4
4
 
5
5
 
6
6
  var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
@@ -10,7 +10,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (optio
10
10
  name: "storm:on-error",
11
11
  buildEnd(error) {
12
12
  if (error) {
13
- _chunkRGZ72JHNcjs.writeError.call(void 0, `The following errors occurred during the build:
13
+ _chunkLC3URRVGcjs.writeError.call(void 0, `The following errors occurred during the build:
14
14
  ${error ? error.message : "Unknown build error"}
15
15
 
16
16
  `, options.config);
@@ -18,7 +18,7 @@ ${error ? error.message : "Unknown build error"}
18
18
  }
19
19
  },
20
20
  renderError(error) {
21
- _chunkRGZ72JHNcjs.writeError.call(void 0, `The following errors occurred during the build:
21
+ _chunkLC3URRVGcjs.writeError.call(void 0, `The following errors occurred during the build:
22
22
  ${error ? error.message : "Unknown build error"}
23
23
 
24
24
  `, options.config);
@@ -3,17 +3,17 @@ import {
3
3
  } from "./chunk-RBYYB7X2.js";
4
4
  import {
5
5
  cleanDirectories
6
- } from "./chunk-Y2RJXSMQ.js";
6
+ } from "./chunk-DE7LC4AM.js";
7
7
  import {
8
8
  analyzePlugin
9
- } from "./chunk-W5OXMTPE.js";
9
+ } from "./chunk-FAMMFENI.js";
10
10
  import {
11
11
  onErrorPlugin
12
- } from "./chunk-WCG32SVT.js";
12
+ } from "./chunk-7CXLOA6P.js";
13
13
  import {
14
14
  loadConfig,
15
15
  tscPlugin
16
- } from "./chunk-UNH7U3EZ.js";
16
+ } from "./chunk-JMK7ICRX.js";
17
17
  import {
18
18
  COLOR_KEYS,
19
19
  LogLevel,
@@ -36,7 +36,7 @@ import {
36
36
  writeSuccess,
37
37
  writeTrace,
38
38
  writeWarning
39
- } from "./chunk-MCSJC6ZH.js";
39
+ } from "./chunk-EUO7BJ7F.js";
40
40
  import {
41
41
  __name
42
42
  } from "./chunk-3GQAWCBQ.js";
@@ -124,7 +124,7 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projec
124
124
  const projectGraph = readCachedProjectGraph();
125
125
  const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
126
126
  const localPackages = [];
127
- for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
127
+ for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data?.root !== projectRoot && dep.node.data?.root !== workspaceRoot)) {
128
128
  const projectNode = project.node;
129
129
  if (projectNode.data.root) {
130
130
  const projectPackageJsonPath = joinPaths(workspaceRoot, projectNode.data.root, "package.json");
@@ -309,6 +309,11 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
309
309
  name: process.env[`${prefix}BOT_NAME`] || void 0,
310
310
  email: process.env[`${prefix}BOT_EMAIL`] || void 0
311
311
  },
312
+ release: {
313
+ banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
314
+ header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
315
+ footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
316
+ },
312
317
  organization: process.env[`${prefix}ORGANIZATION`] || void 0,
313
318
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
314
319
  license: process.env[`${prefix}LICENSE`] || void 0,
@@ -473,6 +478,11 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
473
478
  process.env[`${prefix}BOT_NAME`] = config.bot.name;
474
479
  process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
475
480
  }
481
+ if (config.release) {
482
+ process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
483
+ process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
484
+ process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
485
+ }
476
486
  if (config.organization) {
477
487
  process.env[`${prefix}ORGANIZATION`] = config.organization;
478
488
  }
@@ -589,7 +599,9 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
589
599
  }
590
600
  process.env[`${prefix}CONFIG`] = JSON.stringify(config);
591
601
  for (const key of Object.keys(config.extensions ?? {})) {
592
- config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
602
+ if (config.extensions[key] && Object.keys(config.extensions[key])) {
603
+ setExtensionEnv(key, config.extensions[key]);
604
+ }
593
605
  }
594
606
  }, "setConfigEnv");
595
607
  var setThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
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 _chunk72UMCYVTcjs = require('./chunk-72UMCYVT.cjs');
5
- require('./chunk-RGZ72JHN.cjs');
4
+ var _chunkKPTADQKRcjs = require('./chunk-KPTADQKR.cjs');
5
+ require('./chunk-LC3URRVG.cjs');
6
6
  require('./chunk-BGYQAVKQ.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.clean = _chunk72UMCYVTcjs.clean; exports.cleanDirectories = _chunk72UMCYVTcjs.cleanDirectories;
10
+ exports.clean = _chunkKPTADQKRcjs.clean; exports.cleanDirectories = _chunkKPTADQKRcjs.cleanDirectories;
package/dist/clean.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clean,
3
3
  cleanDirectories
4
- } from "./chunk-Y2RJXSMQ.js";
5
- import "./chunk-MCSJC6ZH.js";
4
+ } from "./chunk-DE7LC4AM.js";
5
+ import "./chunk-EUO7BJ7F.js";
6
6
  import "./chunk-3GQAWCBQ.js";
7
7
  export {
8
8
  clean,
package/dist/index.cjs CHANGED
@@ -5,20 +5,20 @@
5
5
 
6
6
 
7
7
 
8
- var _chunk2J4W3I3Fcjs = require('./chunk-2J4W3I3F.cjs');
8
+ var _chunkQGOT7WGScjs = require('./chunk-QGOT7WGS.cjs');
9
9
  require('./chunk-OD3ULBE3.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunk72UMCYVTcjs = require('./chunk-72UMCYVT.cjs');
13
+ var _chunkKPTADQKRcjs = require('./chunk-KPTADQKR.cjs');
14
14
  require('./chunk-ORA4UQMU.cjs');
15
- require('./chunk-XFGV6VMY.cjs');
16
- require('./chunk-QCZV56KW.cjs');
15
+ require('./chunk-JYA6JCRL.cjs');
16
+ require('./chunk-QVPMLUN5.cjs');
17
17
 
18
18
 
19
19
 
20
- var _chunkSZEXG5I5cjs = require('./chunk-SZEXG5I5.cjs');
21
- require('./chunk-RGZ72JHN.cjs');
20
+ var _chunk4BHCESVFcjs = require('./chunk-4BHCESVF.cjs');
21
+ require('./chunk-LC3URRVG.cjs');
22
22
  require('./chunk-BGYQAVKQ.cjs');
23
23
 
24
24
 
@@ -31,4 +31,4 @@ require('./chunk-BGYQAVKQ.cjs');
31
31
 
32
32
 
33
33
 
34
- exports.build = _chunk2J4W3I3Fcjs.build; exports.clean = _chunk72UMCYVTcjs.clean; exports.cleanDirectories = _chunk72UMCYVTcjs.cleanDirectories; exports.cleanOutputPath = _chunk2J4W3I3Fcjs.cleanOutputPath; exports.copyBuildAssets = _chunk2J4W3I3Fcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkSZEXG5I5cjs.createTsCompilerOptions; exports.executeUnbuild = _chunk2J4W3I3Fcjs.executeUnbuild; exports.generatePackageJson = _chunk2J4W3I3Fcjs.generatePackageJson; exports.loadConfig = _chunkSZEXG5I5cjs.loadConfig; exports.resolveOptions = _chunk2J4W3I3Fcjs.resolveOptions;
34
+ exports.build = _chunkQGOT7WGScjs.build; exports.clean = _chunkKPTADQKRcjs.clean; exports.cleanDirectories = _chunkKPTADQKRcjs.cleanDirectories; exports.cleanOutputPath = _chunkQGOT7WGScjs.cleanOutputPath; exports.copyBuildAssets = _chunkQGOT7WGScjs.copyBuildAssets; exports.createTsCompilerOptions = _chunk4BHCESVFcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkQGOT7WGScjs.executeUnbuild; exports.generatePackageJson = _chunkQGOT7WGScjs.generatePackageJson; exports.loadConfig = _chunk4BHCESVFcjs.loadConfig; exports.resolveOptions = _chunkQGOT7WGScjs.resolveOptions;
package/dist/index.js CHANGED
@@ -5,20 +5,20 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-A6EYKSQX.js";
8
+ } from "./chunk-UL4V5CAD.js";
9
9
  import "./chunk-RBYYB7X2.js";
10
10
  import {
11
11
  clean,
12
12
  cleanDirectories
13
- } from "./chunk-Y2RJXSMQ.js";
13
+ } from "./chunk-DE7LC4AM.js";
14
14
  import "./chunk-OULCUN6I.js";
15
- import "./chunk-W5OXMTPE.js";
16
- import "./chunk-WCG32SVT.js";
15
+ import "./chunk-FAMMFENI.js";
16
+ import "./chunk-7CXLOA6P.js";
17
17
  import {
18
18
  createTsCompilerOptions,
19
19
  loadConfig
20
- } from "./chunk-UNH7U3EZ.js";
21
- import "./chunk-MCSJC6ZH.js";
20
+ } from "./chunk-JMK7ICRX.js";
21
+ import "./chunk-EUO7BJ7F.js";
22
22
  import "./chunk-3GQAWCBQ.js";
23
23
  export {
24
24
  build,
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkXFGV6VMYcjs = require('../chunk-XFGV6VMY.cjs');
4
- require('../chunk-RGZ72JHN.cjs');
3
+ var _chunkJYA6JCRLcjs = require('../chunk-JYA6JCRL.cjs');
4
+ require('../chunk-LC3URRVG.cjs');
5
5
  require('../chunk-BGYQAVKQ.cjs');
6
6
 
7
7
 
8
- exports.analyzePlugin = _chunkXFGV6VMYcjs.analyzePlugin;
8
+ exports.analyzePlugin = _chunkJYA6JCRLcjs.analyzePlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  analyzePlugin
3
- } from "../chunk-W5OXMTPE.js";
4
- import "../chunk-MCSJC6ZH.js";
3
+ } from "../chunk-FAMMFENI.js";
4
+ import "../chunk-EUO7BJ7F.js";
5
5
  import "../chunk-3GQAWCBQ.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 _chunkQCZV56KWcjs = require('../chunk-QCZV56KW.cjs');
4
- require('../chunk-RGZ72JHN.cjs');
3
+ var _chunkQVPMLUN5cjs = require('../chunk-QVPMLUN5.cjs');
4
+ require('../chunk-LC3URRVG.cjs');
5
5
  require('../chunk-BGYQAVKQ.cjs');
6
6
 
7
7
 
8
- exports.onErrorPlugin = _chunkQCZV56KWcjs.onErrorPlugin;
8
+ exports.onErrorPlugin = _chunkQVPMLUN5cjs.onErrorPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  onErrorPlugin
3
- } from "../chunk-WCG32SVT.js";
4
- import "../chunk-MCSJC6ZH.js";
3
+ } from "../chunk-7CXLOA6P.js";
4
+ import "../chunk-EUO7BJ7F.js";
5
5
  import "../chunk-3GQAWCBQ.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 _chunkSZEXG5I5cjs = require('../chunk-SZEXG5I5.cjs');
4
- require('../chunk-RGZ72JHN.cjs');
3
+ var _chunk4BHCESVFcjs = require('../chunk-4BHCESVF.cjs');
4
+ require('../chunk-LC3URRVG.cjs');
5
5
  require('../chunk-BGYQAVKQ.cjs');
6
6
 
7
7
 
8
- exports.tscPlugin = _chunkSZEXG5I5cjs.tscPlugin;
8
+ exports.tscPlugin = _chunk4BHCESVFcjs.tscPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  tscPlugin
3
- } from "../chunk-UNH7U3EZ.js";
4
- import "../chunk-MCSJC6ZH.js";
3
+ } from "../chunk-JMK7ICRX.js";
4
+ import "../chunk-EUO7BJ7F.js";
5
5
  import "../chunk-3GQAWCBQ.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.37.15",
3
+ "version": "0.37.17",
4
4
  "type": "module",
5
5
  "description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -133,12 +133,12 @@
133
133
  "unbuild"
134
134
  ],
135
135
  "peerDependencies": {
136
- "@nx/devkit": "^20.3.1",
137
- "@nx/js": "^20.3.1",
136
+ "@nx/devkit": "20.6.0",
137
+ "@nx/js": "20.6.0",
138
138
  "@storm-software/build-tools": "workspace:*",
139
139
  "@storm-software/config": "workspace:*",
140
140
  "@storm-software/config-tools": "workspace:*",
141
- "nx": "^20.3.1",
141
+ "nx": "20.6.0",
142
142
  "rollup": "^4.29.1",
143
143
  "typescript": "^5.7.2"
144
144
  },
@@ -171,10 +171,10 @@
171
171
  "unbuild": "^3.2.0"
172
172
  },
173
173
  "devDependencies": {
174
- "@nx/devkit": "^20.3.1",
175
- "@nx/js": "^20.3.1",
174
+ "@nx/devkit": "20.6.0",
175
+ "@nx/js": "20.6.0",
176
176
  "@types/node": "^22.10.2",
177
- "nx": "^20.3.1",
177
+ "nx": "20.6.0",
178
178
  "tsup": "8.3.5",
179
179
  "typescript": "^5.7.2"
180
180
  },