@storm-software/unbuild 0.38.14 → 0.38.15

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 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.38.13-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.38.14-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 -->
package/bin/unbuild.cjs CHANGED
@@ -2053,9 +2053,13 @@ async function build(options) {
2053
2053
  options.projectRoot = correctPaths(projectRoot);
2054
2054
  const resolvedOptions = await resolveOptions(options, config);
2055
2055
  await cleanOutputPath(resolvedOptions);
2056
- await generatePackageJson(resolvedOptions);
2056
+ if (options.buildOnly !== true) {
2057
+ await generatePackageJson(resolvedOptions);
2058
+ }
2057
2059
  await executeUnbuild(resolvedOptions);
2058
- await copyBuildAssets(resolvedOptions);
2060
+ if (options.buildOnly !== true) {
2061
+ await copyBuildAssets(resolvedOptions);
2062
+ }
2059
2063
  writeSuccess(` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, config);
2060
2064
  } catch (error) {
2061
2065
  writeFatal("Fatal errors that the build process could not recover from have occured. The build process has been terminated.", config);
package/bin/unbuild.js CHANGED
@@ -2032,9 +2032,13 @@ async function build(options) {
2032
2032
  options.projectRoot = correctPaths(projectRoot);
2033
2033
  const resolvedOptions = await resolveOptions(options, config);
2034
2034
  await cleanOutputPath(resolvedOptions);
2035
- await generatePackageJson(resolvedOptions);
2035
+ if (options.buildOnly !== true) {
2036
+ await generatePackageJson(resolvedOptions);
2037
+ }
2036
2038
  await executeUnbuild(resolvedOptions);
2037
- await copyBuildAssets(resolvedOptions);
2039
+ if (options.buildOnly !== true) {
2040
+ await copyBuildAssets(resolvedOptions);
2041
+ }
2038
2042
  writeSuccess(` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, config);
2039
2043
  } catch (error) {
2040
2044
  writeFatal("Fatal errors that the build process could not recover from have occured. The build process has been terminated.", config);
package/dist/build.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkPEHOCO5Tcjs = require('./chunk-PEHOCO5T.cjs');
8
+ var _chunkJO6ZZ4GMcjs = require('./chunk-JO6ZZ4GM.cjs');
9
9
  require('./chunk-E74YDPSV.cjs');
10
10
  require('./chunk-BN66ODNO.cjs');
11
11
  require('./chunk-WCQ3HMVK.cjs');
@@ -19,4 +19,4 @@ require('./chunk-BGYQAVKQ.cjs');
19
19
 
20
20
 
21
21
 
22
- exports.build = _chunkPEHOCO5Tcjs.build; exports.cleanOutputPath = _chunkPEHOCO5Tcjs.cleanOutputPath; exports.copyBuildAssets = _chunkPEHOCO5Tcjs.copyBuildAssets; exports.executeUnbuild = _chunkPEHOCO5Tcjs.executeUnbuild; exports.generatePackageJson = _chunkPEHOCO5Tcjs.generatePackageJson; exports.resolveOptions = _chunkPEHOCO5Tcjs.resolveOptions;
22
+ exports.build = _chunkJO6ZZ4GMcjs.build; exports.cleanOutputPath = _chunkJO6ZZ4GMcjs.cleanOutputPath; exports.copyBuildAssets = _chunkJO6ZZ4GMcjs.copyBuildAssets; exports.executeUnbuild = _chunkJO6ZZ4GMcjs.executeUnbuild; exports.generatePackageJson = _chunkJO6ZZ4GMcjs.generatePackageJson; exports.resolveOptions = _chunkJO6ZZ4GMcjs.resolveOptions;
package/dist/build.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-Q5VWBXHK.js";
8
+ } from "./chunk-WWZB544X.js";
9
9
  import "./chunk-ZL24I2TF.js";
10
10
  import "./chunk-KAJDWNIA.js";
11
11
  import "./chunk-J7FICDDC.js";
@@ -1172,9 +1172,13 @@ async function build(options) {
1172
1172
  options.projectRoot = _chunk4D3WT42Ncjs.correctPaths.call(void 0, projectRoot);
1173
1173
  const resolvedOptions = await resolveOptions(options, config);
1174
1174
  await cleanOutputPath(resolvedOptions);
1175
- await generatePackageJson(resolvedOptions);
1175
+ if (options.buildOnly !== true) {
1176
+ await generatePackageJson(resolvedOptions);
1177
+ }
1176
1178
  await executeUnbuild(resolvedOptions);
1177
- await copyBuildAssets(resolvedOptions);
1179
+ if (options.buildOnly !== true) {
1180
+ await copyBuildAssets(resolvedOptions);
1181
+ }
1178
1182
  _chunk4D3WT42Ncjs.writeSuccess.call(void 0, ` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, config);
1179
1183
  } catch (error) {
1180
1184
  _chunk4D3WT42Ncjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.", config);
@@ -1172,9 +1172,13 @@ async function build(options) {
1172
1172
  options.projectRoot = correctPaths(projectRoot);
1173
1173
  const resolvedOptions = await resolveOptions(options, config);
1174
1174
  await cleanOutputPath(resolvedOptions);
1175
- await generatePackageJson(resolvedOptions);
1175
+ if (options.buildOnly !== true) {
1176
+ await generatePackageJson(resolvedOptions);
1177
+ }
1176
1178
  await executeUnbuild(resolvedOptions);
1177
- await copyBuildAssets(resolvedOptions);
1179
+ if (options.buildOnly !== true) {
1180
+ await copyBuildAssets(resolvedOptions);
1181
+ }
1178
1182
  writeSuccess(` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, config);
1179
1183
  } catch (error) {
1180
1184
  writeFatal("Fatal errors that the build process could not recover from have occured. The build process has been terminated.", config);
package/dist/index.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkPEHOCO5Tcjs = require('./chunk-PEHOCO5T.cjs');
8
+ var _chunkJO6ZZ4GMcjs = require('./chunk-JO6ZZ4GM.cjs');
9
9
 
10
10
 
11
11
 
@@ -30,4 +30,4 @@ require('./chunk-BGYQAVKQ.cjs');
30
30
 
31
31
 
32
32
 
33
- exports.build = _chunkPEHOCO5Tcjs.build; exports.clean = _chunkE74YDPSVcjs.clean; exports.cleanDirectories = _chunkE74YDPSVcjs.cleanDirectories; exports.cleanOutputPath = _chunkPEHOCO5Tcjs.cleanOutputPath; exports.copyBuildAssets = _chunkPEHOCO5Tcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkKV76QDPTcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkPEHOCO5Tcjs.executeUnbuild; exports.generatePackageJson = _chunkPEHOCO5Tcjs.generatePackageJson; exports.loadConfig = _chunkKV76QDPTcjs.loadConfig; exports.resolveOptions = _chunkPEHOCO5Tcjs.resolveOptions;
33
+ exports.build = _chunkJO6ZZ4GMcjs.build; exports.clean = _chunkE74YDPSVcjs.clean; exports.cleanDirectories = _chunkE74YDPSVcjs.cleanDirectories; exports.cleanOutputPath = _chunkJO6ZZ4GMcjs.cleanOutputPath; exports.copyBuildAssets = _chunkJO6ZZ4GMcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkKV76QDPTcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkJO6ZZ4GMcjs.executeUnbuild; exports.generatePackageJson = _chunkJO6ZZ4GMcjs.generatePackageJson; exports.loadConfig = _chunkKV76QDPTcjs.loadConfig; exports.resolveOptions = _chunkJO6ZZ4GMcjs.resolveOptions;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-Q5VWBXHK.js";
8
+ } from "./chunk-WWZB544X.js";
9
9
  import {
10
10
  clean,
11
11
  cleanDirectories
package/dist/types.d.cts CHANGED
@@ -61,6 +61,12 @@ type UnbuildOptions = Omit<Partial<BuildOptions>, "entries" | "rootDir" | "exter
61
61
  * @defaultValue `true`
62
62
  */
63
63
  emitTypes?: boolean;
64
+ /**
65
+ * Should the build process skip generating a package.json and copying assets
66
+ *
67
+ * @defaultValue `false`
68
+ */
69
+ buildOnly?: boolean;
64
70
  /**
65
71
  * Override the loader options used in the build process
66
72
  */
@@ -71,6 +77,12 @@ type UnbuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "entryPoints"
71
77
  * Path to a rollup configuration file relative to the project root
72
78
  */
73
79
  rollup: DeepPartial<RollupBuildOptions>;
80
+ /**
81
+ * Should the build process skip generating a package.json and copying assets
82
+ *
83
+ * @defaultValue `false`
84
+ */
85
+ buildOnly?: boolean;
74
86
  outDir: string;
75
87
  externals: string[];
76
88
  entries: BuildOptions["entries"];
package/dist/types.d.ts CHANGED
@@ -61,6 +61,12 @@ type UnbuildOptions = Omit<Partial<BuildOptions>, "entries" | "rootDir" | "exter
61
61
  * @defaultValue `true`
62
62
  */
63
63
  emitTypes?: boolean;
64
+ /**
65
+ * Should the build process skip generating a package.json and copying assets
66
+ *
67
+ * @defaultValue `false`
68
+ */
69
+ buildOnly?: boolean;
64
70
  /**
65
71
  * Override the loader options used in the build process
66
72
  */
@@ -71,6 +77,12 @@ type UnbuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "entryPoints"
71
77
  * Path to a rollup configuration file relative to the project root
72
78
  */
73
79
  rollup: DeepPartial<RollupBuildOptions>;
80
+ /**
81
+ * Should the build process skip generating a package.json and copying assets
82
+ *
83
+ * @defaultValue `false`
84
+ */
85
+ buildOnly?: boolean;
74
86
  outDir: string;
75
87
  externals: string[];
76
88
  entries: BuildOptions["entries"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/unbuild",
3
- "version": "0.38.14",
3
+ "version": "0.38.15",
4
4
  "type": "module",
5
5
  "description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {