@storm-software/unbuild 0.21.0 → 0.23.0

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.20.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)
24
+ [![Version](https://img.shields.io/badge/version-0.22.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.js CHANGED
@@ -651,7 +651,7 @@ var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, opti
651
651
  envName: fileName?.toUpperCase(),
652
652
  jitiOptions: {
653
653
  debug: false,
654
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
654
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
655
655
  },
656
656
  ...options
657
657
  });
@@ -663,7 +663,7 @@ var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, opti
663
663
  envName: fileName?.toUpperCase(),
664
664
  jitiOptions: {
665
665
  debug: false,
666
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
666
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
667
667
  },
668
668
  configFile: fileName,
669
669
  ...options
@@ -1383,11 +1383,11 @@ var import_create_task_graph = require("nx/src/tasks-runner/create-task-graph");
1383
1383
 
1384
1384
  // src/build.ts
1385
1385
  var import_defu3 = __toESM(require("defu"));
1386
+ var import_jiti = require("jiti");
1386
1387
  var import_node_fs6 = require("fs");
1387
1388
  var import_promises5 = require("fs/promises");
1388
1389
  var import_node_path6 = require("path");
1389
1390
  var import_find_workspace_root5 = require("nx/src/utils/find-workspace-root");
1390
- var import_unbuild = require("unbuild");
1391
1391
 
1392
1392
  // src/clean.ts
1393
1393
  var import_promises4 = require("fs/promises");
@@ -15013,6 +15013,11 @@ async function resolveOptions(options) {
15013
15013
  dependencies = dependencies.filter((deps) => deps.name !== tsLibDependency.name);
15014
15014
  dependencies.push(tsLibDependency);
15015
15015
  }
15016
+ const jiti = (0, import_jiti.createJiti)(config.workspaceRoot, {
15017
+ cache: true,
15018
+ fsCache: config.skipCache ? false : joinPaths(config.directories.cache || "node_modules/.cache/storm", "jiti"),
15019
+ interopDefault: true
15020
+ });
15016
15021
  const resolvedOptions = {
15017
15022
  name: projectName,
15018
15023
  config,
@@ -15020,6 +15025,7 @@ async function resolveOptions(options) {
15020
15025
  sourceRoot,
15021
15026
  projectName,
15022
15027
  tsconfig,
15028
+ jiti,
15023
15029
  clean: false,
15024
15030
  entries: [
15025
15031
  {
@@ -15086,7 +15092,7 @@ async function resolveOptions(options) {
15086
15092
  ]
15087
15093
  },
15088
15094
  esbuild: {
15089
- minify: !!options.minify,
15095
+ minify: options.minify !== false,
15090
15096
  splitting: options.splitting !== false,
15091
15097
  treeShaking: options.treeShaking !== false,
15092
15098
  color: true,
@@ -15146,11 +15152,24 @@ async function generatePackageJson(options) {
15146
15152
  return options;
15147
15153
  }
15148
15154
  __name(generatePackageJson, "generatePackageJson");
15155
+ async function resolveUnbuild(options) {
15156
+ writeTrace(`Resolving Unbuild package with Jiti`, options.config);
15157
+ try {
15158
+ return options.jiti.import("unbuild");
15159
+ } catch (error) {
15160
+ writeError(" \u274C An error occurred while resolving the Unbuild package", options.config);
15161
+ throw new Error("An error occurred while resolving the Unbuild package", {
15162
+ cause: error
15163
+ });
15164
+ }
15165
+ }
15166
+ __name(resolveUnbuild, "resolveUnbuild");
15149
15167
  async function executeUnbuild(options) {
15150
15168
  writeDebug(` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
15151
15169
  const stopwatch = getStopwatch(`${options.name} (${options.projectRoot}) build`);
15152
15170
  try {
15153
- await (0, import_unbuild.build)(options.projectRoot, false, {
15171
+ const unbuild = await resolveUnbuild(options);
15172
+ await unbuild.build(options.projectRoot, false, {
15154
15173
  ...options,
15155
15174
  rootDir: options.projectRoot
15156
15175
  });
package/bin/unbuild.mjs CHANGED
@@ -636,7 +636,7 @@ var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, opti
636
636
  envName: fileName?.toUpperCase(),
637
637
  jitiOptions: {
638
638
  debug: false,
639
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
639
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
640
640
  },
641
641
  ...options
642
642
  });
@@ -648,7 +648,7 @@ var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, opti
648
648
  envName: fileName?.toUpperCase(),
649
649
  jitiOptions: {
650
650
  debug: false,
651
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
651
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
652
652
  },
653
653
  configFile: fileName,
654
654
  ...options
@@ -1368,11 +1368,11 @@ import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-r
1368
1368
 
1369
1369
  // src/build.ts
1370
1370
  import defu3 from "defu";
1371
+ import { createJiti } from "jiti";
1371
1372
  import { existsSync as existsSync6 } from "node:fs";
1372
1373
  import { readFile as readFile4 } from "node:fs/promises";
1373
1374
  import { relative as relative4 } from "node:path";
1374
1375
  import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
1375
- import { build as unbuild } from "unbuild";
1376
1376
 
1377
1377
  // src/clean.ts
1378
1378
  import { rm } from "node:fs/promises";
@@ -14998,6 +14998,11 @@ async function resolveOptions(options) {
14998
14998
  dependencies = dependencies.filter((deps) => deps.name !== tsLibDependency.name);
14999
14999
  dependencies.push(tsLibDependency);
15000
15000
  }
15001
+ const jiti = createJiti(config.workspaceRoot, {
15002
+ cache: true,
15003
+ fsCache: config.skipCache ? false : joinPaths(config.directories.cache || "node_modules/.cache/storm", "jiti"),
15004
+ interopDefault: true
15005
+ });
15001
15006
  const resolvedOptions = {
15002
15007
  name: projectName,
15003
15008
  config,
@@ -15005,6 +15010,7 @@ async function resolveOptions(options) {
15005
15010
  sourceRoot,
15006
15011
  projectName,
15007
15012
  tsconfig,
15013
+ jiti,
15008
15014
  clean: false,
15009
15015
  entries: [
15010
15016
  {
@@ -15071,7 +15077,7 @@ async function resolveOptions(options) {
15071
15077
  ]
15072
15078
  },
15073
15079
  esbuild: {
15074
- minify: !!options.minify,
15080
+ minify: options.minify !== false,
15075
15081
  splitting: options.splitting !== false,
15076
15082
  treeShaking: options.treeShaking !== false,
15077
15083
  color: true,
@@ -15131,11 +15137,24 @@ async function generatePackageJson(options) {
15131
15137
  return options;
15132
15138
  }
15133
15139
  __name(generatePackageJson, "generatePackageJson");
15140
+ async function resolveUnbuild(options) {
15141
+ writeTrace(`Resolving Unbuild package with Jiti`, options.config);
15142
+ try {
15143
+ return options.jiti.import("unbuild");
15144
+ } catch (error) {
15145
+ writeError(" \u274C An error occurred while resolving the Unbuild package", options.config);
15146
+ throw new Error("An error occurred while resolving the Unbuild package", {
15147
+ cause: error
15148
+ });
15149
+ }
15150
+ }
15151
+ __name(resolveUnbuild, "resolveUnbuild");
15134
15152
  async function executeUnbuild(options) {
15135
15153
  writeDebug(` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
15136
15154
  const stopwatch = getStopwatch(`${options.name} (${options.projectRoot}) build`);
15137
15155
  try {
15138
- await unbuild(options.projectRoot, false, {
15156
+ const unbuild = await resolveUnbuild(options);
15157
+ await unbuild.build(options.projectRoot, false, {
15139
15158
  ...options,
15140
15159
  rootDir: options.projectRoot
15141
15160
  });
package/dist/build.d.mts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { UnbuildOptions } from './types.mjs';
2
2
  import '@storm-software/build-tools';
3
+ import 'jiti';
3
4
  import 'unbuild';
4
5
 
5
6
  /**
package/dist/build.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { UnbuildOptions } from './types.js';
2
2
  import '@storm-software/build-tools';
3
+ import 'jiti';
3
4
  import 'unbuild';
4
5
 
5
6
  /**
package/dist/build.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3KCZOJ2Qjs = require('./chunk-3KCZOJ2Q.js');
3
+ var _chunkT2OTJN2Djs = require('./chunk-T2OTJN2D.js');
4
4
  require('./chunk-3OJD7CO4.js');
5
5
  require('./chunk-AYRYNROK.js');
6
6
  require('./chunk-DFIGNXGY.js');
@@ -11,4 +11,4 @@ require('./chunk-OQPSH7GE.js');
11
11
  require('./chunk-3GQAWCBQ.js');
12
12
 
13
13
 
14
- exports.build = _chunk3KCZOJ2Qjs.build;
14
+ exports.build = _chunkT2OTJN2Djs.build;
package/dist/build.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-AYFS4N2Z.mjs";
3
+ } from "./chunk-AW52DUNE.mjs";
4
4
  import "./chunk-IIVTCNH5.mjs";
5
5
  import "./chunk-T5NKX2EJ.mjs";
6
6
  import "./chunk-AICX43E6.mjs";
@@ -24,6 +24,7 @@ import {
24
24
  isVerbose,
25
25
  joinPaths,
26
26
  writeDebug,
27
+ writeError,
27
28
  writeFatal,
28
29
  writeSuccess,
29
30
  writeSystem,
@@ -70,7 +71,7 @@ var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, opti
70
71
  envName: fileName?.toUpperCase(),
71
72
  jitiOptions: {
72
73
  debug: false,
73
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
74
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
74
75
  },
75
76
  ...options
76
77
  });
@@ -82,7 +83,7 @@ var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, opti
82
83
  envName: fileName?.toUpperCase(),
83
84
  jitiOptions: {
84
85
  debug: false,
85
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
86
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
86
87
  },
87
88
  configFile: fileName,
88
89
  ...options
@@ -778,11 +779,11 @@ import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-r
778
779
 
779
780
  // src/build.ts
780
781
  import defu3 from "defu";
782
+ import { createJiti } from "jiti";
781
783
  import { existsSync as existsSync3 } from "node:fs";
782
784
  import { readFile as readFile4 } from "node:fs/promises";
783
785
  import { relative as relative2 } from "node:path";
784
786
  import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
785
- import { build as unbuild } from "unbuild";
786
787
  async function resolveOptions(options) {
787
788
  const projectRoot = options.projectRoot;
788
789
  if (!projectRoot) {
@@ -837,6 +838,11 @@ async function resolveOptions(options) {
837
838
  dependencies = dependencies.filter((deps) => deps.name !== tsLibDependency.name);
838
839
  dependencies.push(tsLibDependency);
839
840
  }
841
+ const jiti = createJiti(config.workspaceRoot, {
842
+ cache: true,
843
+ fsCache: config.skipCache ? false : joinPaths(config.directories.cache || "node_modules/.cache/storm", "jiti"),
844
+ interopDefault: true
845
+ });
840
846
  const resolvedOptions = {
841
847
  name: projectName,
842
848
  config,
@@ -844,6 +850,7 @@ async function resolveOptions(options) {
844
850
  sourceRoot,
845
851
  projectName,
846
852
  tsconfig,
853
+ jiti,
847
854
  clean: false,
848
855
  entries: [
849
856
  {
@@ -910,7 +917,7 @@ async function resolveOptions(options) {
910
917
  ]
911
918
  },
912
919
  esbuild: {
913
- minify: !!options.minify,
920
+ minify: options.minify !== false,
914
921
  splitting: options.splitting !== false,
915
922
  treeShaking: options.treeShaking !== false,
916
923
  color: true,
@@ -970,11 +977,24 @@ async function generatePackageJson(options) {
970
977
  return options;
971
978
  }
972
979
  __name(generatePackageJson, "generatePackageJson");
980
+ async function resolveUnbuild(options) {
981
+ writeTrace(`Resolving Unbuild package with Jiti`, options.config);
982
+ try {
983
+ return options.jiti.import("unbuild");
984
+ } catch (error) {
985
+ writeError(" \u274C An error occurred while resolving the Unbuild package", options.config);
986
+ throw new Error("An error occurred while resolving the Unbuild package", {
987
+ cause: error
988
+ });
989
+ }
990
+ }
991
+ __name(resolveUnbuild, "resolveUnbuild");
973
992
  async function executeUnbuild(options) {
974
993
  writeDebug(` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
975
994
  const stopwatch = getStopwatch(`${options.name} (${options.projectRoot}) build`);
976
995
  try {
977
- await unbuild(options.projectRoot, false, {
996
+ const unbuild = await resolveUnbuild(options);
997
+ await unbuild.build(options.projectRoot, false, {
978
998
  ...options,
979
999
  rootDir: options.projectRoot
980
1000
  });
@@ -27,6 +27,7 @@ var _chunkDFIGNXGYjs = require('./chunk-DFIGNXGY.js');
27
27
 
28
28
 
29
29
 
30
+
30
31
 
31
32
 
32
33
  var _chunkOQPSH7GEjs = require('./chunk-OQPSH7GE.js');
@@ -70,7 +71,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
70
71
  envName: _optionalChain([fileName, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]),
71
72
  jitiOptions: {
72
73
  debug: false,
73
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkOQPSH7GEjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
74
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkOQPSH7GEjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
74
75
  },
75
76
  ...options
76
77
  });
@@ -82,7 +83,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
82
83
  envName: _optionalChain([fileName, 'optionalAccess', _3 => _3.toUpperCase, 'call', _4 => _4()]),
83
84
  jitiOptions: {
84
85
  debug: false,
85
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkOQPSH7GEjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "config")
86
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkOQPSH7GEjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
86
87
  },
87
88
  configFile: fileName,
88
89
  ...options
@@ -778,11 +779,11 @@ var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
778
779
 
779
780
  // src/build.ts
780
781
 
782
+ var _jiti = require('jiti');
781
783
 
782
784
 
783
785
 
784
786
  var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
785
- var _unbuild = require('unbuild');
786
787
  async function resolveOptions(options) {
787
788
  const projectRoot = options.projectRoot;
788
789
  if (!projectRoot) {
@@ -837,6 +838,11 @@ async function resolveOptions(options) {
837
838
  dependencies = dependencies.filter((deps) => deps.name !== tsLibDependency.name);
838
839
  dependencies.push(tsLibDependency);
839
840
  }
841
+ const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
842
+ cache: true,
843
+ fsCache: config.skipCache ? false : _chunkOQPSH7GEjs.joinPaths.call(void 0, config.directories.cache || "node_modules/.cache/storm", "jiti"),
844
+ interopDefault: true
845
+ });
840
846
  const resolvedOptions = {
841
847
  name: projectName,
842
848
  config,
@@ -844,6 +850,7 @@ async function resolveOptions(options) {
844
850
  sourceRoot,
845
851
  projectName,
846
852
  tsconfig,
853
+ jiti,
847
854
  clean: false,
848
855
  entries: [
849
856
  {
@@ -910,7 +917,7 @@ async function resolveOptions(options) {
910
917
  ]
911
918
  },
912
919
  esbuild: {
913
- minify: !!options.minify,
920
+ minify: options.minify !== false,
914
921
  splitting: options.splitting !== false,
915
922
  treeShaking: options.treeShaking !== false,
916
923
  color: true,
@@ -970,11 +977,24 @@ async function generatePackageJson(options) {
970
977
  return options;
971
978
  }
972
979
  _chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
980
+ async function resolveUnbuild(options) {
981
+ _chunkOQPSH7GEjs.writeTrace.call(void 0, `Resolving Unbuild package with Jiti`, options.config);
982
+ try {
983
+ return options.jiti.import("unbuild");
984
+ } catch (error) {
985
+ _chunkOQPSH7GEjs.writeError.call(void 0, " \u274C An error occurred while resolving the Unbuild package", options.config);
986
+ throw new Error("An error occurred while resolving the Unbuild package", {
987
+ cause: error
988
+ });
989
+ }
990
+ }
991
+ _chunk3GQAWCBQjs.__name.call(void 0, resolveUnbuild, "resolveUnbuild");
973
992
  async function executeUnbuild(options) {
974
993
  _chunkOQPSH7GEjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
975
994
  const stopwatch = _chunkOQPSH7GEjs.getStopwatch.call(void 0, `${options.name} (${options.projectRoot}) build`);
976
995
  try {
977
- await _unbuild.build.call(void 0, options.projectRoot, false, {
996
+ const unbuild = await resolveUnbuild(options);
997
+ await unbuild.build(options.projectRoot, false, {
978
998
  ...options,
979
999
  rootDir: options.projectRoot
980
1000
  });
package/dist/clean.d.mts CHANGED
@@ -1,2 +1,12 @@
1
- export { c as clean } from './clean-DDbna8D4.mjs';
2
- import 'zod';
1
+ import { StormConfig } from '@storm-software/config';
2
+
3
+ /**
4
+ * Clean the Unbuild output path
5
+ *
6
+ * @param name - The name of the executor
7
+ * @param directory - The directory to clean
8
+ * @param config - The StormConfig object
9
+ */
10
+ declare function clean(name: string | undefined, directory: string, config?: StormConfig): Promise<void>;
11
+
12
+ export { clean };
package/dist/clean.d.ts CHANGED
@@ -1,2 +1,12 @@
1
- export { c as clean } from './clean-DDbna8D4.js';
2
- import 'zod';
1
+ import { StormConfig } from '@storm-software/config';
2
+
3
+ /**
4
+ * Clean the Unbuild output path
5
+ *
6
+ * @param name - The name of the executor
7
+ * @param directory - The directory to clean
8
+ * @param config - The StormConfig object
9
+ */
10
+ declare function clean(name: string | undefined, directory: string, config?: StormConfig): Promise<void>;
11
+
12
+ export { clean };
package/dist/config.d.mts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { InputPluginOption } from 'rollup';
2
2
  import { UnbuildOptions, UnbuildResolvedOptions } from './types.mjs';
3
3
  import '@storm-software/build-tools';
4
+ import 'jiti';
4
5
  import 'unbuild';
5
6
 
6
7
  declare const getDefaultBuildPlugins: (options: UnbuildOptions, resolvedOptions: UnbuildResolvedOptions) => Promise<InputPluginOption[]>;
package/dist/config.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { InputPluginOption } from 'rollup';
2
2
  import { UnbuildOptions, UnbuildResolvedOptions } from './types.js';
3
3
  import '@storm-software/build-tools';
4
+ import 'jiti';
4
5
  import 'unbuild';
5
6
 
6
7
  declare const getDefaultBuildPlugins: (options: UnbuildOptions, resolvedOptions: UnbuildResolvedOptions) => Promise<InputPluginOption[]>;
package/dist/index.d.mts CHANGED
@@ -1,14 +1,14 @@
1
1
  export { build } from './build.mjs';
2
- import { S as StormConfig } from './clean-DDbna8D4.mjs';
3
- export { c as clean } from './clean-DDbna8D4.mjs';
2
+ export { clean } from './clean.mjs';
4
3
  export { getDefaultBuildPlugins } from './config.mjs';
5
4
  export { DeepPartial, UnbuildCLIOptions, UnbuildOptions, UnbuildResolvedOptions } from './types.mjs';
6
5
  import { DependentBuildableProjectNode } from '@nx/js/src/utils/buildable-libs-utils';
6
+ import { StormConfig } from '@storm-software/config';
7
7
  import ts from 'typescript';
8
8
  import { RollupBuildOptions } from 'unbuild';
9
- import 'zod';
10
9
  import 'rollup';
11
10
  import '@storm-software/build-tools';
11
+ import 'jiti';
12
12
 
13
13
  /**
14
14
  * Load a rolldown configuration file
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  export { build } from './build.js';
2
- import { S as StormConfig } from './clean-DDbna8D4.js';
3
- export { c as clean } from './clean-DDbna8D4.js';
2
+ export { clean } from './clean.js';
4
3
  export { getDefaultBuildPlugins } from './config.js';
5
4
  export { DeepPartial, UnbuildCLIOptions, UnbuildOptions, UnbuildResolvedOptions } from './types.js';
6
5
  import { DependentBuildableProjectNode } from '@nx/js/src/utils/buildable-libs-utils';
6
+ import { StormConfig } from '@storm-software/config';
7
7
  import ts from 'typescript';
8
8
  import { RollupBuildOptions } from 'unbuild';
9
- import 'zod';
10
9
  import 'rollup';
11
10
  import '@storm-software/build-tools';
11
+ import 'jiti';
12
12
 
13
13
  /**
14
14
  * Load a rolldown configuration file
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3KCZOJ2Qjs = require('./chunk-3KCZOJ2Q.js');
3
+ var _chunkT2OTJN2Djs = require('./chunk-T2OTJN2D.js');
4
4
 
5
5
 
6
6
  var _chunk3OJD7CO4js = require('./chunk-3OJD7CO4.js');
@@ -23,4 +23,4 @@ require('./chunk-3GQAWCBQ.js');
23
23
 
24
24
 
25
25
 
26
- exports.build = _chunk3KCZOJ2Qjs.build; exports.clean = _chunk3OJD7CO4js.clean; exports.createTsCompilerOptions = _chunkDFIGNXGYjs.createTsCompilerOptions; exports.getDefaultBuildPlugins = _chunkAYRYNROKjs.getDefaultBuildPlugins; exports.loadConfig = _chunkDFIGNXGYjs.loadConfig;
26
+ exports.build = _chunkT2OTJN2Djs.build; exports.clean = _chunk3OJD7CO4js.clean; exports.createTsCompilerOptions = _chunkDFIGNXGYjs.createTsCompilerOptions; exports.getDefaultBuildPlugins = _chunkAYRYNROKjs.getDefaultBuildPlugins; exports.loadConfig = _chunkDFIGNXGYjs.loadConfig;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  build
3
- } from "./chunk-AYFS4N2Z.mjs";
3
+ } from "./chunk-AW52DUNE.mjs";
4
4
  import {
5
5
  clean
6
6
  } from "./chunk-IIVTCNH5.mjs";
package/dist/types.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { TypeScriptBuildOptions, TypeScriptBuildResolvedOptions, AdditionalCLIOptions } from '@storm-software/build-tools';
2
+ import { Jiti } from 'jiti';
2
3
  import { BuildOptions, RollupBuildOptions, BuildConfig } from 'unbuild';
3
4
 
4
5
  type DeepPartial<T> = T extends object ? {
@@ -24,6 +25,7 @@ type UnbuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "entryPoints"
24
25
  externals: string[];
25
26
  entries: BuildOptions["entries"];
26
27
  declaration: BuildOptions["declaration"];
28
+ jiti: Jiti;
27
29
  };
28
30
  type UnbuildCLIOptions = AdditionalCLIOptions & Pick<UnbuildOptions, "name" | "outputPath" | "platform" | "bundle" | "target" | "watch" | "clean" | "debug" | "banner" | "footer" | "splitting" | "treeShaking" | "generatePackageJson" | "metafile" | "minify" | "includeSrc" | "verbose" | "emitTypes">;
29
31
 
package/dist/types.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { TypeScriptBuildOptions, TypeScriptBuildResolvedOptions, AdditionalCLIOptions } from '@storm-software/build-tools';
2
+ import { Jiti } from 'jiti';
2
3
  import { BuildOptions, RollupBuildOptions, BuildConfig } from 'unbuild';
3
4
 
4
5
  type DeepPartial<T> = T extends object ? {
@@ -24,6 +25,7 @@ type UnbuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "entryPoints"
24
25
  externals: string[];
25
26
  entries: BuildOptions["entries"];
26
27
  declaration: BuildOptions["declaration"];
28
+ jiti: Jiti;
27
29
  };
28
30
  type UnbuildCLIOptions = AdditionalCLIOptions & Pick<UnbuildOptions, "name" | "outputPath" | "platform" | "bundle" | "target" | "watch" | "clean" | "debug" | "banner" | "footer" | "splitting" | "treeShaking" | "generatePackageJson" | "metafile" | "minify" | "includeSrc" | "verbose" | "emitTypes">;
29
31