@storm-software/unbuild 0.38.0 → 0.38.1

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.37.19-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.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)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/bin/unbuild.cjs CHANGED
@@ -1713,7 +1713,10 @@ async function resolveOptions(options, config) {
1713
1713
  const packageJson = JSON.parse(packageJsonContent);
1714
1714
  let tsconfig = options.tsconfig;
1715
1715
  if (!tsconfig) {
1716
- tsconfig = joinPaths(config.workspaceRoot, options.projectRoot, "tsconfig.json");
1716
+ tsconfig = joinPaths(options.projectRoot, "tsconfig.json");
1717
+ }
1718
+ if (!tsconfig.startsWith(config.workspaceRoot)) {
1719
+ tsconfig = joinPaths(config.workspaceRoot, tsconfig);
1717
1720
  }
1718
1721
  if (!(0, import_node_fs6.existsSync)(tsconfig)) {
1719
1722
  throw new Error("Cannot find tsconfig.json configuration");
package/bin/unbuild.js CHANGED
@@ -1692,7 +1692,10 @@ async function resolveOptions(options, config) {
1692
1692
  const packageJson = JSON.parse(packageJsonContent);
1693
1693
  let tsconfig = options.tsconfig;
1694
1694
  if (!tsconfig) {
1695
- tsconfig = joinPaths(config.workspaceRoot, options.projectRoot, "tsconfig.json");
1695
+ tsconfig = joinPaths(options.projectRoot, "tsconfig.json");
1696
+ }
1697
+ if (!tsconfig.startsWith(config.workspaceRoot)) {
1698
+ tsconfig = joinPaths(config.workspaceRoot, tsconfig);
1696
1699
  }
1697
1700
  if (!existsSync5(tsconfig)) {
1698
1701
  throw new Error("Cannot find tsconfig.json configuration");
package/dist/build.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkEGE6IZNJcjs = require('./chunk-EGE6IZNJ.cjs');
8
+ var _chunkYUFE3NLGcjs = require('./chunk-YUFE3NLG.cjs');
9
9
  require('./chunk-WGGER7UI.cjs');
10
10
  require('./chunk-OOFPXPRC.cjs');
11
11
  require('./chunk-X25DCA4T.cjs');
@@ -19,4 +19,4 @@ require('./chunk-BGYQAVKQ.cjs');
19
19
 
20
20
 
21
21
 
22
- exports.build = _chunkEGE6IZNJcjs.build; exports.cleanOutputPath = _chunkEGE6IZNJcjs.cleanOutputPath; exports.copyBuildAssets = _chunkEGE6IZNJcjs.copyBuildAssets; exports.executeUnbuild = _chunkEGE6IZNJcjs.executeUnbuild; exports.generatePackageJson = _chunkEGE6IZNJcjs.generatePackageJson; exports.resolveOptions = _chunkEGE6IZNJcjs.resolveOptions;
22
+ exports.build = _chunkYUFE3NLGcjs.build; exports.cleanOutputPath = _chunkYUFE3NLGcjs.cleanOutputPath; exports.copyBuildAssets = _chunkYUFE3NLGcjs.copyBuildAssets; exports.executeUnbuild = _chunkYUFE3NLGcjs.executeUnbuild; exports.generatePackageJson = _chunkYUFE3NLGcjs.generatePackageJson; exports.resolveOptions = _chunkYUFE3NLGcjs.resolveOptions;
package/dist/build.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-ZXW56XVQ.js";
8
+ } from "./chunk-HIBMLCH5.js";
9
9
  import "./chunk-JLKMLDBA.js";
10
10
  import "./chunk-5XTPDLOE.js";
11
11
  import "./chunk-2FX3WQNK.js";
@@ -840,7 +840,10 @@ async function resolveOptions(options, config) {
840
840
  const packageJson = JSON.parse(packageJsonContent);
841
841
  let tsconfig = options.tsconfig;
842
842
  if (!tsconfig) {
843
- tsconfig = joinPaths(config.workspaceRoot, options.projectRoot, "tsconfig.json");
843
+ tsconfig = joinPaths(options.projectRoot, "tsconfig.json");
844
+ }
845
+ if (!tsconfig.startsWith(config.workspaceRoot)) {
846
+ tsconfig = joinPaths(config.workspaceRoot, tsconfig);
844
847
  }
845
848
  if (!existsSync3(tsconfig)) {
846
849
  throw new Error("Cannot find tsconfig.json configuration");
@@ -840,7 +840,10 @@ async function resolveOptions(options, config) {
840
840
  const packageJson = JSON.parse(packageJsonContent);
841
841
  let tsconfig = options.tsconfig;
842
842
  if (!tsconfig) {
843
- tsconfig = _chunkK5SEKFQAcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot, "tsconfig.json");
843
+ tsconfig = _chunkK5SEKFQAcjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json");
844
+ }
845
+ if (!tsconfig.startsWith(config.workspaceRoot)) {
846
+ tsconfig = _chunkK5SEKFQAcjs.joinPaths.call(void 0, config.workspaceRoot, tsconfig);
844
847
  }
845
848
  if (!_fs.existsSync.call(void 0, tsconfig)) {
846
849
  throw new Error("Cannot find tsconfig.json configuration");
package/dist/index.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkEGE6IZNJcjs = require('./chunk-EGE6IZNJ.cjs');
8
+ var _chunkYUFE3NLGcjs = require('./chunk-YUFE3NLG.cjs');
9
9
 
10
10
 
11
11
 
@@ -30,4 +30,4 @@ require('./chunk-BGYQAVKQ.cjs');
30
30
 
31
31
 
32
32
 
33
- exports.build = _chunkEGE6IZNJcjs.build; exports.clean = _chunkWGGER7UIcjs.clean; exports.cleanDirectories = _chunkWGGER7UIcjs.cleanDirectories; exports.cleanOutputPath = _chunkEGE6IZNJcjs.cleanOutputPath; exports.copyBuildAssets = _chunkEGE6IZNJcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkVPCO2H3Gcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkEGE6IZNJcjs.executeUnbuild; exports.generatePackageJson = _chunkEGE6IZNJcjs.generatePackageJson; exports.loadConfig = _chunkVPCO2H3Gcjs.loadConfig; exports.resolveOptions = _chunkEGE6IZNJcjs.resolveOptions;
33
+ exports.build = _chunkYUFE3NLGcjs.build; exports.clean = _chunkWGGER7UIcjs.clean; exports.cleanDirectories = _chunkWGGER7UIcjs.cleanDirectories; exports.cleanOutputPath = _chunkYUFE3NLGcjs.cleanOutputPath; exports.copyBuildAssets = _chunkYUFE3NLGcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkVPCO2H3Gcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkYUFE3NLGcjs.executeUnbuild; exports.generatePackageJson = _chunkYUFE3NLGcjs.generatePackageJson; exports.loadConfig = _chunkVPCO2H3Gcjs.loadConfig; exports.resolveOptions = _chunkYUFE3NLGcjs.resolveOptions;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-ZXW56XVQ.js";
8
+ } from "./chunk-HIBMLCH5.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.38.0",
3
+ "version": "0.38.1",
4
4
  "type": "module",
5
5
  "description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {