@storm-software/unbuild 0.37.16 → 0.37.18

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
  import {
2
2
  writeInfo
3
- } from "./chunk-MCSJC6ZH.js";
3
+ } from "./chunk-7AM5XAIN.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-3GQAWCBQ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeTrace
3
- } from "./chunk-MCSJC6ZH.js";
3
+ } from "./chunk-7AM5XAIN.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-3GQAWCBQ.js";
@@ -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 _chunkOGMYQNDMcjs = require('./chunk-OGMYQNDM.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
+ _chunkOGMYQNDMcjs.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
+ _chunkOGMYQNDMcjs.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);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-MCSJC6ZH.js";
4
+ } from "./chunk-7AM5XAIN.js";
5
5
  import {
6
6
  __name
7
7
  } from "./chunk-3GQAWCBQ.js";
@@ -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 _chunkOGMYQNDMcjs = require('./chunk-OGMYQNDM.cjs');
4
4
 
5
5
 
6
6
  var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
@@ -25,7 +25,7 @@ var analyzePlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (optio
25
25
  renderChunk(source, chunk) {
26
26
  const sourceBytes = formatBytes(source.length);
27
27
  const fileName = chunk.fileName;
28
- _chunkRGZ72JHNcjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
28
+ _chunkOGMYQNDMcjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
29
29
  }
30
30
  };
31
31
  }, "analyzePlugin");
@@ -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 _chunkRGZ72JHNcjs = require('./chunk-RGZ72JHN.cjs');
3
+ var _chunkOGMYQNDMcjs = require('./chunk-OGMYQNDM.cjs');
4
4
 
5
5
 
6
6
  var _chunkBGYQAVKQcjs = require('./chunk-BGYQAVKQ.cjs');
@@ -32,7 +32,7 @@ async function createTsCompilerOptions(config, tsConfigPath, projectRoot, depend
32
32
  declaration: true,
33
33
  paths: _buildablelibsutils.computeCompilerOptionsPaths.call(void 0, tsConfig, _nullishCoalesce(dependencies, () => ( [])))
34
34
  };
35
- _chunkRGZ72JHNcjs.writeTrace.call(void 0, compilerOptions, config);
35
+ _chunkOGMYQNDMcjs.writeTrace.call(void 0, compilerOptions, config);
36
36
  return compilerOptions;
37
37
  }
38
38
  _chunkBGYQAVKQcjs.__name.call(void 0, createTsCompilerOptions, "createTsCompilerOptions");
@@ -213,6 +213,14 @@ var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
213
213
  var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
214
214
  var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
215
215
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
216
+ var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/logo-banner.png";
217
+ var STORM_DEFAULT_RELEASE_FOOTER = `
218
+ [Storm Software](https://stormsoftware.com) is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
219
+
220
+ Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team, receive release notifications, ask questions, and get involved.
221
+
222
+ If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](https://stormsoftware.com/contact) or join our [Slack](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA) channel!
223
+ `;
216
224
 
217
225
  // ../config/src/schema.ts
218
226
  var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
@@ -303,6 +311,11 @@ var WorkspaceBotConfigSchema = _zod2.default.object({
303
311
  name: _zod2.default.string().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
304
312
  email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
305
313
  }).describe("The workspace's bot user's config used to automated various operations tasks");
314
+ var WorkspaceReleaseConfigSchema = _zod2.default.object({
315
+ banner: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("A URL to a banner image used to display the workspace's release"),
316
+ header: _zod2.default.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
317
+ footer: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
318
+ }).describe("The workspace's release config used during the release process");
306
319
  var WorkspaceDirectoryConfigSchema = _zod2.default.object({
307
320
  cache: _zod2.default.string().trim().optional().describe("The directory used to store the environment's cached file data"),
308
321
  data: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
@@ -326,6 +339,7 @@ var StormConfigSchema = _zod2.default.object({
326
339
  preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
327
340
  owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
328
341
  bot: WorkspaceBotConfigSchema,
342
+ release: WorkspaceReleaseConfigSchema,
329
343
  mode: _zod2.default.enum([
330
344
  "development",
331
345
  "staging",
@@ -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-GNWDG3BC.js";
7
7
  import {
8
8
  analyzePlugin
9
- } from "./chunk-W5OXMTPE.js";
9
+ } from "./chunk-AD5M2WQK.js";
10
10
  import {
11
11
  onErrorPlugin
12
- } from "./chunk-WCG32SVT.js";
12
+ } from "./chunk-6W4BKEOJ.js";
13
13
  import {
14
14
  loadConfig,
15
15
  tscPlugin
16
- } from "./chunk-UNH7U3EZ.js";
16
+ } from "./chunk-C6CJ25UC.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-7AM5XAIN.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 _chunk3LF6BMSNcjs = require('./chunk-3LF6BMSN.cjs');
5
+ require('./chunk-OGMYQNDM.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 = _chunk3LF6BMSNcjs.clean; exports.cleanDirectories = _chunk3LF6BMSNcjs.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-GNWDG3BC.js";
5
+ import "./chunk-7AM5XAIN.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 _chunk7VZ5DKNYcjs = require('./chunk-7VZ5DKNY.cjs');
9
9
  require('./chunk-OD3ULBE3.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunk72UMCYVTcjs = require('./chunk-72UMCYVT.cjs');
13
+ var _chunk3LF6BMSNcjs = require('./chunk-3LF6BMSN.cjs');
14
14
  require('./chunk-ORA4UQMU.cjs');
15
- require('./chunk-XFGV6VMY.cjs');
16
- require('./chunk-QCZV56KW.cjs');
15
+ require('./chunk-KMW24CQZ.cjs');
16
+ require('./chunk-DTNFTCIE.cjs');
17
17
 
18
18
 
19
19
 
20
- var _chunkSZEXG5I5cjs = require('./chunk-SZEXG5I5.cjs');
21
- require('./chunk-RGZ72JHN.cjs');
20
+ var _chunkKYBJAKNRcjs = require('./chunk-KYBJAKNR.cjs');
21
+ require('./chunk-OGMYQNDM.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 = _chunk7VZ5DKNYcjs.build; exports.clean = _chunk3LF6BMSNcjs.clean; exports.cleanDirectories = _chunk3LF6BMSNcjs.cleanDirectories; exports.cleanOutputPath = _chunk7VZ5DKNYcjs.cleanOutputPath; exports.copyBuildAssets = _chunk7VZ5DKNYcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkKYBJAKNRcjs.createTsCompilerOptions; exports.executeUnbuild = _chunk7VZ5DKNYcjs.executeUnbuild; exports.generatePackageJson = _chunk7VZ5DKNYcjs.generatePackageJson; exports.loadConfig = _chunkKYBJAKNRcjs.loadConfig; exports.resolveOptions = _chunk7VZ5DKNYcjs.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-WPNQQP7F.js";
9
9
  import "./chunk-RBYYB7X2.js";
10
10
  import {
11
11
  clean,
12
12
  cleanDirectories
13
- } from "./chunk-Y2RJXSMQ.js";
13
+ } from "./chunk-GNWDG3BC.js";
14
14
  import "./chunk-OULCUN6I.js";
15
- import "./chunk-W5OXMTPE.js";
16
- import "./chunk-WCG32SVT.js";
15
+ import "./chunk-AD5M2WQK.js";
16
+ import "./chunk-6W4BKEOJ.js";
17
17
  import {
18
18
  createTsCompilerOptions,
19
19
  loadConfig
20
- } from "./chunk-UNH7U3EZ.js";
21
- import "./chunk-MCSJC6ZH.js";
20
+ } from "./chunk-C6CJ25UC.js";
21
+ import "./chunk-7AM5XAIN.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 _chunkKMW24CQZcjs = require('../chunk-KMW24CQZ.cjs');
4
+ require('../chunk-OGMYQNDM.cjs');
5
5
  require('../chunk-BGYQAVKQ.cjs');
6
6
 
7
7
 
8
- exports.analyzePlugin = _chunkXFGV6VMYcjs.analyzePlugin;
8
+ exports.analyzePlugin = _chunkKMW24CQZcjs.analyzePlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  analyzePlugin
3
- } from "../chunk-W5OXMTPE.js";
4
- import "../chunk-MCSJC6ZH.js";
3
+ } from "../chunk-AD5M2WQK.js";
4
+ import "../chunk-7AM5XAIN.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 _chunkDTNFTCIEcjs = require('../chunk-DTNFTCIE.cjs');
4
+ require('../chunk-OGMYQNDM.cjs');
5
5
  require('../chunk-BGYQAVKQ.cjs');
6
6
 
7
7
 
8
- exports.onErrorPlugin = _chunkQCZV56KWcjs.onErrorPlugin;
8
+ exports.onErrorPlugin = _chunkDTNFTCIEcjs.onErrorPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  onErrorPlugin
3
- } from "../chunk-WCG32SVT.js";
4
- import "../chunk-MCSJC6ZH.js";
3
+ } from "../chunk-6W4BKEOJ.js";
4
+ import "../chunk-7AM5XAIN.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 _chunkKYBJAKNRcjs = require('../chunk-KYBJAKNR.cjs');
4
+ require('../chunk-OGMYQNDM.cjs');
5
5
  require('../chunk-BGYQAVKQ.cjs');
6
6
 
7
7
 
8
- exports.tscPlugin = _chunkSZEXG5I5cjs.tscPlugin;
8
+ exports.tscPlugin = _chunkKYBJAKNRcjs.tscPlugin;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  tscPlugin
3
- } from "../chunk-UNH7U3EZ.js";
4
- import "../chunk-MCSJC6ZH.js";
3
+ } from "../chunk-C6CJ25UC.js";
4
+ import "../chunk-7AM5XAIN.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.16",
3
+ "version": "0.37.18",
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
  },