@storm-software/projen 0.9.64 → 0.9.65

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  # Changelog for Storm Ops - Projen
4
4
 
5
+ ## [0.9.65](https://github.com/storm-software/storm-ops/releases/tag/projen%400.9.65) (2025-04-29)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Regenerate README markdown files
10
+ ([f2e5028dd](https://github.com/storm-software/storm-ops/commit/f2e5028dd))
11
+
5
12
  ## [0.9.64](https://github.com/storm-software/storm-ops/releases/tag/projen%400.9.64) (2025-04-29)
6
13
 
7
14
  ### Miscellaneous
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
- [![Version](https://img.shields.io/badge/version-0.9.63-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.9.64-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -1956,6 +1956,7 @@ var DEFAULT_BUILD_OPTIONS = {
1956
1956
  keepNames: true,
1957
1957
  metafile: false,
1958
1958
  treeshake: true,
1959
+ splitting: true,
1959
1960
  shims: false,
1960
1961
  watch: false,
1961
1962
  bundle: true,
@@ -2105,24 +2106,23 @@ async function resolveContext(userOptions) {
2105
2106
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
2106
2107
  }
2107
2108
  const options = defu4(userOptions, DEFAULT_BUILD_OPTIONS);
2109
+ options.name ??= projectName;
2108
2110
  const packageJsonPath = joinPaths(workspaceRoot3.dir, options.projectRoot, "package.json");
2109
2111
  if (!existsSync5(packageJsonPath)) {
2110
2112
  throw new Error("Cannot find package.json configuration");
2111
2113
  }
2112
2114
  const env = getEnv("esbuild", options);
2115
+ const define = defu4(options.define ?? {}, env ?? {});
2113
2116
  const resolvedOptions = {
2114
- name: projectName,
2115
2117
  ...options,
2116
2118
  tsconfig: joinPaths(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
2117
2119
  metafile: userOptions.mode === "development",
2118
2120
  clean: false,
2119
- splitting: options.format === "iife" ? false : options.treeshake === void 0 ? options.splitting : true,
2120
2121
  env,
2121
2122
  define: {
2122
2123
  STORM_FORMAT: JSON.stringify(options.format),
2123
- ...options.define,
2124
- ...Object.keys(env || {}).reduce((res, key) => {
2125
- const value = JSON.stringify(env[key]);
2124
+ ...Object.keys(define).filter((key) => define[key] !== void 0).reduce((res, key) => {
2125
+ const value = JSON.stringify(define[key]);
2126
2126
  const safeKey = key.replaceAll("(", "").replaceAll(")", "");
2127
2127
  return {
2128
2128
  ...res,
@@ -1955,6 +1955,7 @@ var DEFAULT_BUILD_OPTIONS = {
1955
1955
  keepNames: true,
1956
1956
  metafile: false,
1957
1957
  treeshake: true,
1958
+ splitting: true,
1958
1959
  shims: false,
1959
1960
  watch: false,
1960
1961
  bundle: true,
@@ -2104,24 +2105,23 @@ async function resolveContext(userOptions) {
2104
2105
  throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
2105
2106
  }
2106
2107
  const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
2108
+ options.name ??= projectName;
2107
2109
  const packageJsonPath = _chunkIND7PM3Ljs.joinPaths.call(void 0, workspaceRoot3.dir, options.projectRoot, "package.json");
2108
2110
  if (!_fs.existsSync.call(void 0, packageJsonPath)) {
2109
2111
  throw new Error("Cannot find package.json configuration");
2110
2112
  }
2111
2113
  const env = getEnv("esbuild", options);
2114
+ const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
2112
2115
  const resolvedOptions = {
2113
- name: projectName,
2114
2116
  ...options,
2115
2117
  tsconfig: _chunkIND7PM3Ljs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
2116
2118
  metafile: userOptions.mode === "development",
2117
2119
  clean: false,
2118
- splitting: options.format === "iife" ? false : options.treeshake === void 0 ? options.splitting : true,
2119
2120
  env,
2120
2121
  define: {
2121
2122
  STORM_FORMAT: JSON.stringify(options.format),
2122
- ...options.define,
2123
- ...Object.keys(env || {}).reduce((res, key) => {
2124
- const value = JSON.stringify(env[key]);
2123
+ ...Object.keys(define).filter((key) => define[key] !== void 0).reduce((res, key) => {
2124
+ const value = JSON.stringify(define[key]);
2125
2125
  const safeKey = key.replaceAll("(", "").replaceAll(")", "");
2126
2126
  return {
2127
2127
  ...res,
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-ZB4VUWHK.js');
2
2
 
3
3
 
4
- var _chunkJP4LDPQUjs = require('./chunk-JP4LDPQU.js');
4
+ var _chunkXINAL634js = require('./chunk-XINAL634.js');
5
5
  require('./chunk-IND7PM3L.js');
6
6
  require('./chunk-XIADWDXK.js');
7
7
 
8
8
 
9
- exports.initGeneratorFn = _chunkJP4LDPQUjs.initGeneratorFn;
9
+ exports.initGeneratorFn = _chunkXINAL634js.initGeneratorFn;
@@ -1,7 +1,7 @@
1
1
  import "./chunk-PTU4DA5S.mjs";
2
2
  import {
3
3
  initGeneratorFn
4
- } from "./chunk-5FBB3EXB.mjs";
4
+ } from "./chunk-VDVL2MW5.mjs";
5
5
  import "./chunk-ONCAPHTE.mjs";
6
6
  import "./chunk-IS6JH24X.mjs";
7
7
  export {
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  var _chunkO64Q2V3Cjs = require('./chunk-O64Q2V3C.js');
5
5
 
6
6
 
7
- var _chunkJP4LDPQUjs = require('./chunk-JP4LDPQU.js');
7
+ var _chunkXINAL634js = require('./chunk-XINAL634.js');
8
8
  require('./chunk-IND7PM3L.js');
9
9
 
10
10
 
@@ -16,10 +16,10 @@ var _chunkXIADWDXKjs = require('./chunk-XIADWDXK.js');
16
16
  // index.ts
17
17
  var index_exports = {};
18
18
  _chunkXIADWDXKjs.__export.call(void 0, index_exports, {
19
- initGeneratorFn: () => _chunkJP4LDPQUjs.initGeneratorFn
19
+ initGeneratorFn: () => _chunkXINAL634js.initGeneratorFn
20
20
  });
21
21
  _chunkXIADWDXKjs.init_cjs_shims.call(void 0, );
22
22
  _chunkXIADWDXKjs.__reExport.call(void 0, index_exports, _chunkXIADWDXKjs.__toESM.call(void 0, _chunkO64Q2V3Cjs.require_components.call(void 0, )));
23
23
 
24
24
 
25
- exports.initGeneratorFn = _chunkJP4LDPQUjs.initGeneratorFn;
25
+ exports.initGeneratorFn = _chunkXINAL634js.initGeneratorFn;
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-5IOW6E65.mjs";
5
5
  import {
6
6
  initGeneratorFn
7
- } from "./chunk-5FBB3EXB.mjs";
7
+ } from "./chunk-VDVL2MW5.mjs";
8
8
  import "./chunk-ONCAPHTE.mjs";
9
9
  import {
10
10
  __export,
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkJP4LDPQUjs = require('../../../chunk-JP4LDPQU.js');
4
+ var _chunkXINAL634js = require('../../../chunk-XINAL634.js');
5
5
  require('../../../chunk-IND7PM3L.js');
6
6
  require('../../../chunk-XIADWDXK.js');
7
7
 
8
8
 
9
9
 
10
- exports.default = _chunkJP4LDPQUjs.generator_default; exports.initGeneratorFn = _chunkJP4LDPQUjs.initGeneratorFn;
10
+ exports.default = _chunkXINAL634js.generator_default; exports.initGeneratorFn = _chunkXINAL634js.initGeneratorFn;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generator_default,
3
3
  initGeneratorFn
4
- } from "../../../chunk-5FBB3EXB.mjs";
4
+ } from "../../../chunk-VDVL2MW5.mjs";
5
5
  import "../../../chunk-ONCAPHTE.mjs";
6
6
  import "../../../chunk-IS6JH24X.mjs";
7
7
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/projen",
3
- "version": "0.9.64",
3
+ "version": "0.9.65",
4
4
  "type": "commonjs",
5
5
  "description": "Tools for managing Projen configuration automation within a Nx workspace.",
6
6
  "repository": {