@storm-software/unbuild 0.30.1 → 0.30.2

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.30.0-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.30.1-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
@@ -2989,24 +2989,25 @@ async function resolveOptions(options, config) {
2989
2989
  tsconfig,
2990
2990
  clean: false,
2991
2991
  entries: entries.reduce((ret, entry) => {
2992
- let entryPath = (0, import_node_path6.dirname)(entry.replace(options.projectRoot, ""));
2992
+ let entryPath = entry.replace(options.projectRoot, "");
2993
2993
  if (entryPath.startsWith(".")) {
2994
2994
  entryPath = entryPath.substring(1);
2995
2995
  }
2996
2996
  if (entryPath.startsWith("/")) {
2997
2997
  entryPath = entryPath.substring(1);
2998
2998
  }
2999
+ const outDir = joinPaths((0, import_node_path6.relative)(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist");
2999
3000
  ret.push({
3000
3001
  builder: "mkdist",
3001
3002
  input: `./${entryPath}`,
3002
- outDir: joinPaths((0, import_node_path6.relative)(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist"),
3003
+ outDir,
3003
3004
  declaration: options.emitTypes !== false ? "compatible" : false,
3004
3005
  format: "esm"
3005
3006
  });
3006
3007
  ret.push({
3007
3008
  builder: "mkdist",
3008
3009
  input: `./${entryPath}`,
3009
- outDir: joinPaths((0, import_node_path6.relative)(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist"),
3010
+ outDir,
3010
3011
  declaration: options.emitTypes !== false ? "compatible" : false,
3011
3012
  format: "cjs",
3012
3013
  ext: "cjs"
package/bin/unbuild.js CHANGED
@@ -1319,7 +1319,7 @@ import defu4 from "defu";
1319
1319
  import { Glob as Glob2 } from "glob";
1320
1320
  import { existsSync as existsSync6 } from "node:fs";
1321
1321
  import { readFile as readFile4 } from "node:fs/promises";
1322
- import { dirname as dirname3, relative as relative4 } from "node:path";
1322
+ import { relative as relative4 } from "node:path";
1323
1323
  import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
1324
1324
 
1325
1325
  // ../../node_modules/.pnpm/unbuild@3.3.1_sass@1.83.4_typescript@5.7.3/node_modules/unbuild/dist/shared/unbuild.B2_7OVir.mjs
@@ -2964,24 +2964,25 @@ async function resolveOptions(options, config) {
2964
2964
  tsconfig,
2965
2965
  clean: false,
2966
2966
  entries: entries.reduce((ret, entry) => {
2967
- let entryPath = dirname3(entry.replace(options.projectRoot, ""));
2967
+ let entryPath = entry.replace(options.projectRoot, "");
2968
2968
  if (entryPath.startsWith(".")) {
2969
2969
  entryPath = entryPath.substring(1);
2970
2970
  }
2971
2971
  if (entryPath.startsWith("/")) {
2972
2972
  entryPath = entryPath.substring(1);
2973
2973
  }
2974
+ const outDir = joinPaths(relative4(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist");
2974
2975
  ret.push({
2975
2976
  builder: "mkdist",
2976
2977
  input: `./${entryPath}`,
2977
- outDir: joinPaths(relative4(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist"),
2978
+ outDir,
2978
2979
  declaration: options.emitTypes !== false ? "compatible" : false,
2979
2980
  format: "esm"
2980
2981
  });
2981
2982
  ret.push({
2982
2983
  builder: "mkdist",
2983
2984
  input: `./${entryPath}`,
2984
- outDir: joinPaths(relative4(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist"),
2985
+ outDir,
2985
2986
  declaration: options.emitTypes !== false ? "compatible" : false,
2986
2987
  format: "cjs",
2987
2988
  ext: "cjs"
package/dist/build.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkQBOQBJ36cjs = require('./chunk-QBOQBJ36.cjs');
8
+ var _chunkP7LBAA5Ocjs = require('./chunk-P7LBAA5O.cjs');
9
9
  require('./chunk-5E3NJ26L.cjs');
10
10
  require('./chunk-Y2DOCJBE.cjs');
11
11
  require('./chunk-V627S7QU.cjs');
@@ -21,4 +21,4 @@ require('./chunk-YDYGZTJK.cjs');
21
21
 
22
22
 
23
23
 
24
- exports.build = _chunkQBOQBJ36cjs.build; exports.cleanOutputPath = _chunkQBOQBJ36cjs.cleanOutputPath; exports.copyBuildAssets = _chunkQBOQBJ36cjs.copyBuildAssets; exports.executeUnbuild = _chunkQBOQBJ36cjs.executeUnbuild; exports.generatePackageJson = _chunkQBOQBJ36cjs.generatePackageJson; exports.resolveOptions = _chunkQBOQBJ36cjs.resolveOptions;
24
+ exports.build = _chunkP7LBAA5Ocjs.build; exports.cleanOutputPath = _chunkP7LBAA5Ocjs.cleanOutputPath; exports.copyBuildAssets = _chunkP7LBAA5Ocjs.copyBuildAssets; exports.executeUnbuild = _chunkP7LBAA5Ocjs.executeUnbuild; exports.generatePackageJson = _chunkP7LBAA5Ocjs.generatePackageJson; exports.resolveOptions = _chunkP7LBAA5Ocjs.resolveOptions;
package/dist/build.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-ZE7ZBVLJ.js";
8
+ } from "./chunk-ZQVJCLMA.js";
9
9
  import "./chunk-VC7N2YVM.js";
10
10
  import "./chunk-K2D7TQ7G.js";
11
11
  import "./chunk-C5IHRWT3.js";
@@ -2222,24 +2222,25 @@ async function resolveOptions(options, config) {
2222
2222
  tsconfig,
2223
2223
  clean: false,
2224
2224
  entries: entries.reduce((ret, entry) => {
2225
- let entryPath = _path.dirname.call(void 0, entry.replace(options.projectRoot, ""));
2225
+ let entryPath = entry.replace(options.projectRoot, "");
2226
2226
  if (entryPath.startsWith(".")) {
2227
2227
  entryPath = entryPath.substring(1);
2228
2228
  }
2229
2229
  if (entryPath.startsWith("/")) {
2230
2230
  entryPath = entryPath.substring(1);
2231
2231
  }
2232
+ const outDir = _chunkFG6XQ26Mcjs.joinPaths.call(void 0, _path.relative.call(void 0, _chunkFG6XQ26Mcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist");
2232
2233
  ret.push({
2233
2234
  builder: "mkdist",
2234
2235
  input: `./${entryPath}`,
2235
- outDir: _chunkFG6XQ26Mcjs.joinPaths.call(void 0, _path.relative.call(void 0, _chunkFG6XQ26Mcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist"),
2236
+ outDir,
2236
2237
  declaration: options.emitTypes !== false ? "compatible" : false,
2237
2238
  format: "esm"
2238
2239
  });
2239
2240
  ret.push({
2240
2241
  builder: "mkdist",
2241
2242
  input: `./${entryPath}`,
2242
- outDir: _chunkFG6XQ26Mcjs.joinPaths.call(void 0, _path.relative.call(void 0, _chunkFG6XQ26Mcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist"),
2243
+ outDir,
2243
2244
  declaration: options.emitTypes !== false ? "compatible" : false,
2244
2245
  format: "cjs",
2245
2246
  ext: "cjs"
@@ -729,7 +729,7 @@ import defu4 from "defu";
729
729
  import { Glob as Glob2 } from "glob";
730
730
  import { existsSync as existsSync4 } from "node:fs";
731
731
  import { readFile as readFile4 } from "node:fs/promises";
732
- import { dirname as dirname2, relative as relative3 } from "node:path";
732
+ import { relative as relative3 } from "node:path";
733
733
  import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
734
734
 
735
735
  // ../../node_modules/.pnpm/unbuild@3.3.1_sass@1.83.4_typescript@5.7.3/node_modules/unbuild/dist/shared/unbuild.B2_7OVir.mjs
@@ -2221,24 +2221,25 @@ async function resolveOptions(options, config) {
2221
2221
  tsconfig,
2222
2222
  clean: false,
2223
2223
  entries: entries.reduce((ret, entry) => {
2224
- let entryPath = dirname2(entry.replace(options.projectRoot, ""));
2224
+ let entryPath = entry.replace(options.projectRoot, "");
2225
2225
  if (entryPath.startsWith(".")) {
2226
2226
  entryPath = entryPath.substring(1);
2227
2227
  }
2228
2228
  if (entryPath.startsWith("/")) {
2229
2229
  entryPath = entryPath.substring(1);
2230
2230
  }
2231
+ const outDir = joinPaths(relative3(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist");
2231
2232
  ret.push({
2232
2233
  builder: "mkdist",
2233
2234
  input: `./${entryPath}`,
2234
- outDir: joinPaths(relative3(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist"),
2235
+ outDir,
2235
2236
  declaration: options.emitTypes !== false ? "compatible" : false,
2236
2237
  format: "esm"
2237
2238
  });
2238
2239
  ret.push({
2239
2240
  builder: "mkdist",
2240
2241
  input: `./${entryPath}`,
2241
- outDir: joinPaths(relative3(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist"),
2242
+ outDir,
2242
2243
  declaration: options.emitTypes !== false ? "compatible" : false,
2243
2244
  format: "cjs",
2244
2245
  ext: "cjs"
package/dist/index.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkQBOQBJ36cjs = require('./chunk-QBOQBJ36.cjs');
8
+ var _chunkP7LBAA5Ocjs = require('./chunk-P7LBAA5O.cjs');
9
9
 
10
10
 
11
11
 
@@ -35,4 +35,4 @@ require('./chunk-YDYGZTJK.cjs');
35
35
 
36
36
 
37
37
 
38
- exports.build = _chunkQBOQBJ36cjs.build; exports.clean = _chunk5E3NJ26Lcjs.clean; exports.cleanDirectories = _chunk5E3NJ26Lcjs.cleanDirectories; exports.cleanOutputPath = _chunkQBOQBJ36cjs.cleanOutputPath; exports.copyBuildAssets = _chunkQBOQBJ36cjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkV627S7QUcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkQBOQBJ36cjs.executeUnbuild; exports.generatePackageJson = _chunkQBOQBJ36cjs.generatePackageJson; exports.getDefaultBuildPlugins = _chunkY2DOCJBEcjs.getDefaultBuildPlugins; exports.loadConfig = _chunkV627S7QUcjs.loadConfig; exports.resolveOptions = _chunkQBOQBJ36cjs.resolveOptions;
38
+ exports.build = _chunkP7LBAA5Ocjs.build; exports.clean = _chunk5E3NJ26Lcjs.clean; exports.cleanDirectories = _chunk5E3NJ26Lcjs.cleanDirectories; exports.cleanOutputPath = _chunkP7LBAA5Ocjs.cleanOutputPath; exports.copyBuildAssets = _chunkP7LBAA5Ocjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkV627S7QUcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkP7LBAA5Ocjs.executeUnbuild; exports.generatePackageJson = _chunkP7LBAA5Ocjs.generatePackageJson; exports.getDefaultBuildPlugins = _chunkY2DOCJBEcjs.getDefaultBuildPlugins; exports.loadConfig = _chunkV627S7QUcjs.loadConfig; exports.resolveOptions = _chunkP7LBAA5Ocjs.resolveOptions;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-ZE7ZBVLJ.js";
8
+ } from "./chunk-ZQVJCLMA.js";
9
9
  import {
10
10
  clean,
11
11
  cleanDirectories
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/unbuild",
3
- "version": "0.30.1",
3
+ "version": "0.30.2",
4
4
  "type": "module",
5
5
  "description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -171,9 +171,9 @@
171
171
  "@nx/devkit": "^20.3.1",
172
172
  "@nx/js": "^20.3.1",
173
173
  "@rollup/pluginutils": "^5.1.4",
174
- "@storm-software/build-tools": "0.135.1",
175
- "@storm-software/config": "1.98.0",
176
- "@storm-software/config-tools": "1.141.1",
174
+ "@storm-software/build-tools": "0.135.2",
175
+ "@storm-software/config": "1.98.1",
176
+ "@storm-software/config-tools": "1.141.2",
177
177
  "@swc/core": "1.7.26",
178
178
  "@types/node": "^22.10.2",
179
179
  "commander": "^12.1.0",