@storm-software/unbuild 0.56.4 → 0.56.5

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.56.2-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.56.3-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
@@ -598,6 +598,7 @@ schemaRegistry.add(extensionsSchema, {
598
598
 
599
599
  // ../config-tools/src/create-storm-config.ts
600
600
  var import_defu2 = __toESM(require("defu"), 1);
601
+ var import_node_fs3 = require("fs");
601
602
 
602
603
  // ../config-tools/src/config-file/get-config-file.ts
603
604
  var import_c12 = require("c12");
@@ -1091,6 +1092,7 @@ var rootFiles = [
1091
1092
  var rootDirectories = [
1092
1093
  ".storm-workspace",
1093
1094
  ".nx",
1095
+ ".git",
1094
1096
  ".github",
1095
1097
  ".vscode",
1096
1098
  ".verdaccio"
@@ -1958,6 +1960,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1958
1960
  configFile,
1959
1961
  defaultConfig
1960
1962
  );
1963
+ if (!configInput.variant) {
1964
+ configInput.variant = (0, import_node_fs3.existsSync)(joinPaths(_workspaceRoot, "nx.json")) || (0, import_node_fs3.existsSync)(joinPaths(_workspaceRoot, ".nx")) || (0, import_node_fs3.existsSync)(joinPaths(_workspaceRoot, "lerna.json")) || (0, import_node_fs3.existsSync)(joinPaths(_workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
1965
+ }
1961
1966
  try {
1962
1967
  result = applyDefaultConfig(
1963
1968
  await workspaceConfigSchema.parseAsync(configInput)
@@ -2038,7 +2043,7 @@ var import_buildable_libs_utils4 = require("@nx/js/src/utils/buildable-libs-util
2038
2043
  var import_core = require("@swc/core");
2039
2044
 
2040
2045
  // ../build-tools/src/plugins/ts-resolve.ts
2041
- var import_node_fs3 = __toESM(require("fs"));
2046
+ var import_node_fs4 = __toESM(require("fs"));
2042
2047
  var import_node_module = require("module");
2043
2048
  var import_node_path3 = __toESM(require("path"));
2044
2049
  var import_resolve = __toESM(require("resolve"));
@@ -2122,7 +2127,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
2122
2127
  // ../build-tools/src/utilities/generate-package-json.ts
2123
2128
  var import_buildable_libs_utils = require("@nx/js/src/utils/buildable-libs-utils");
2124
2129
  var import_glob2 = require("glob");
2125
- var import_node_fs4 = require("fs");
2130
+ var import_node_fs5 = require("fs");
2126
2131
  var import_promises3 = require("fs/promises");
2127
2132
  var import_project_graph = require("nx/src/project-graph/project-graph");
2128
2133
  var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, packageJson) => {
@@ -2158,7 +2163,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
2158
2163
  projectNode.data.root,
2159
2164
  "package.json"
2160
2165
  );
2161
- if ((0, import_node_fs4.existsSync)(projectPackageJsonPath)) {
2166
+ if ((0, import_node_fs5.existsSync)(projectPackageJsonPath)) {
2162
2167
  const projectPackageJsonContent = await (0, import_promises3.readFile)(
2163
2168
  projectPackageJsonPath,
2164
2169
  "utf8"
@@ -2193,8 +2198,8 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
2193
2198
  projectConfigurations.projects[dep].root,
2194
2199
  "package.json"
2195
2200
  );
2196
- if ((0, import_node_fs4.existsSync)(depPackageJsonPath)) {
2197
- const depPackageJsonContent = (0, import_node_fs4.readFileSync)(
2201
+ if ((0, import_node_fs5.existsSync)(depPackageJsonPath)) {
2202
+ const depPackageJsonContent = (0, import_node_fs5.readFileSync)(
2198
2203
  depPackageJsonPath,
2199
2204
  "utf8"
2200
2205
  );
@@ -2270,7 +2275,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
2270
2275
  var import_glob3 = require("glob");
2271
2276
 
2272
2277
  // ../build-tools/src/utilities/read-nx-config.ts
2273
- var import_node_fs5 = require("fs");
2278
+ var import_node_fs6 = require("fs");
2274
2279
  var import_promises4 = require("fs/promises");
2275
2280
 
2276
2281
  // ../build-tools/src/utilities/task-graph.ts
@@ -2279,7 +2284,7 @@ var import_create_task_graph = require("nx/src/tasks-runner/create-task-graph");
2279
2284
  // src/build.ts
2280
2285
  var import_defu3 = __toESM(require("defu"), 1);
2281
2286
  var import_glob4 = require("glob");
2282
- var import_node_fs6 = require("fs");
2287
+ var import_node_fs7 = require("fs");
2283
2288
  var import_promises6 = require("fs/promises");
2284
2289
  var import_node_path5 = require("path");
2285
2290
  var import_find_workspace_root5 = require("nx/src/utils/find-workspace-root");
@@ -2461,7 +2466,7 @@ async function resolveOptions(options, config) {
2461
2466
  options.projectRoot,
2462
2467
  "project.json"
2463
2468
  );
2464
- if (!(0, import_node_fs6.existsSync)(projectJsonPath)) {
2469
+ if (!(0, import_node_fs7.existsSync)(projectJsonPath)) {
2465
2470
  throw new Error("Cannot find project.json configuration");
2466
2471
  }
2467
2472
  const projectJsonContent = await (0, import_promises6.readFile)(projectJsonPath, "utf8");
@@ -2472,7 +2477,7 @@ async function resolveOptions(options, config) {
2472
2477
  options.projectRoot,
2473
2478
  "package.json"
2474
2479
  );
2475
- if (!(0, import_node_fs6.existsSync)(packageJsonPath)) {
2480
+ if (!(0, import_node_fs7.existsSync)(packageJsonPath)) {
2476
2481
  throw new Error("Cannot find package.json configuration");
2477
2482
  }
2478
2483
  const packageJsonContent = await (0, import_promises6.readFile)(packageJsonPath, "utf8");
@@ -2484,14 +2489,14 @@ async function resolveOptions(options, config) {
2484
2489
  if (!tsconfig.startsWith(config.workspaceRoot)) {
2485
2490
  tsconfig = joinPaths(config.workspaceRoot, tsconfig);
2486
2491
  }
2487
- if (!(0, import_node_fs6.existsSync)(tsconfig)) {
2492
+ if (!(0, import_node_fs7.existsSync)(tsconfig)) {
2488
2493
  throw new Error("Cannot find tsconfig.json configuration");
2489
2494
  }
2490
2495
  let sourceRoot = projectJson.sourceRoot;
2491
2496
  if (!sourceRoot) {
2492
2497
  sourceRoot = joinPaths(options.projectRoot, "src");
2493
2498
  }
2494
- if (!(0, import_node_fs6.existsSync)(sourceRoot)) {
2499
+ if (!(0, import_node_fs7.existsSync)(sourceRoot)) {
2495
2500
  throw new Error("Cannot find sourceRoot directory");
2496
2501
  }
2497
2502
  const result = (0, import_buildable_libs_utils4.calculateProjectBuildableDependencies)(
@@ -2719,11 +2724,11 @@ var addPackageJsonExport = (file, type = "module", sourceRoot, projectRoot) => {
2719
2724
  };
2720
2725
  };
2721
2726
  async function generatePackageJson(options) {
2722
- if (options.generatePackageJson !== false && (0, import_node_fs6.existsSync)(joinPaths(options.projectRoot, "package.json"))) {
2727
+ if (options.generatePackageJson !== false && (0, import_node_fs7.existsSync)(joinPaths(options.projectRoot, "package.json"))) {
2723
2728
  writeDebug(" \u270D\uFE0F Writing package.json file", options.config);
2724
2729
  const stopwatch = getStopwatch("Write package.json file");
2725
2730
  const packageJsonPath = joinPaths(options.projectRoot, "project.json");
2726
- if (!(0, import_node_fs6.existsSync)(packageJsonPath)) {
2731
+ if (!(0, import_node_fs7.existsSync)(packageJsonPath)) {
2727
2732
  throw new Error("Cannot find package.json configuration");
2728
2733
  }
2729
2734
  const packageJsonContent = await (0, import_promises6.readFile)(
package/bin/unbuild.js CHANGED
@@ -576,6 +576,7 @@ schemaRegistry.add(extensionsSchema, {
576
576
 
577
577
  // ../config-tools/src/create-storm-config.ts
578
578
  import defu2 from "defu";
579
+ import { existsSync as existsSync3 } from "node:fs";
579
580
 
580
581
  // ../config-tools/src/config-file/get-config-file.ts
581
582
  import { loadConfig } from "c12";
@@ -1069,6 +1070,7 @@ var rootFiles = [
1069
1070
  var rootDirectories = [
1070
1071
  ".storm-workspace",
1071
1072
  ".nx",
1073
+ ".git",
1072
1074
  ".github",
1073
1075
  ".vscode",
1074
1076
  ".verdaccio"
@@ -1936,6 +1938,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1936
1938
  configFile,
1937
1939
  defaultConfig
1938
1940
  );
1941
+ if (!configInput.variant) {
1942
+ configInput.variant = existsSync3(joinPaths(_workspaceRoot, "nx.json")) || existsSync3(joinPaths(_workspaceRoot, ".nx")) || existsSync3(joinPaths(_workspaceRoot, "lerna.json")) || existsSync3(joinPaths(_workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
1943
+ }
1939
1944
  try {
1940
1945
  result = applyDefaultConfig(
1941
1946
  await workspaceConfigSchema.parseAsync(configInput)
@@ -2104,7 +2109,7 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
2104
2109
  // ../build-tools/src/utilities/generate-package-json.ts
2105
2110
  import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
2106
2111
  import { Glob } from "glob";
2107
- import { existsSync as existsSync3, readFileSync } from "node:fs";
2112
+ import { existsSync as existsSync4, readFileSync } from "node:fs";
2108
2113
  import { readFile as readFile3 } from "node:fs/promises";
2109
2114
  import {
2110
2115
  createProjectGraphAsync,
@@ -2144,7 +2149,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
2144
2149
  projectNode.data.root,
2145
2150
  "package.json"
2146
2151
  );
2147
- if (existsSync3(projectPackageJsonPath)) {
2152
+ if (existsSync4(projectPackageJsonPath)) {
2148
2153
  const projectPackageJsonContent = await readFile3(
2149
2154
  projectPackageJsonPath,
2150
2155
  "utf8"
@@ -2179,7 +2184,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
2179
2184
  projectConfigurations.projects[dep].root,
2180
2185
  "package.json"
2181
2186
  );
2182
- if (existsSync3(depPackageJsonPath)) {
2187
+ if (existsSync4(depPackageJsonPath)) {
2183
2188
  const depPackageJsonContent = readFileSync(
2184
2189
  depPackageJsonPath,
2185
2190
  "utf8"
@@ -2256,7 +2261,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
2256
2261
  import { glob as glob2 } from "glob";
2257
2262
 
2258
2263
  // ../build-tools/src/utilities/read-nx-config.ts
2259
- import { existsSync as existsSync4 } from "node:fs";
2264
+ import { existsSync as existsSync5 } from "node:fs";
2260
2265
  import { readFile as readFile4 } from "node:fs/promises";
2261
2266
 
2262
2267
  // ../build-tools/src/utilities/task-graph.ts
@@ -2268,7 +2273,7 @@ import {
2268
2273
  // src/build.ts
2269
2274
  import defu3 from "defu";
2270
2275
  import { Glob as Glob2 } from "glob";
2271
- import { existsSync as existsSync5 } from "node:fs";
2276
+ import { existsSync as existsSync6 } from "node:fs";
2272
2277
  import { readFile as readFile5 } from "node:fs/promises";
2273
2278
  import { relative as relative2 } from "node:path";
2274
2279
  import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
@@ -2460,7 +2465,7 @@ async function resolveOptions(options, config) {
2460
2465
  options.projectRoot,
2461
2466
  "project.json"
2462
2467
  );
2463
- if (!existsSync5(projectJsonPath)) {
2468
+ if (!existsSync6(projectJsonPath)) {
2464
2469
  throw new Error("Cannot find project.json configuration");
2465
2470
  }
2466
2471
  const projectJsonContent = await readFile5(projectJsonPath, "utf8");
@@ -2471,7 +2476,7 @@ async function resolveOptions(options, config) {
2471
2476
  options.projectRoot,
2472
2477
  "package.json"
2473
2478
  );
2474
- if (!existsSync5(packageJsonPath)) {
2479
+ if (!existsSync6(packageJsonPath)) {
2475
2480
  throw new Error("Cannot find package.json configuration");
2476
2481
  }
2477
2482
  const packageJsonContent = await readFile5(packageJsonPath, "utf8");
@@ -2483,14 +2488,14 @@ async function resolveOptions(options, config) {
2483
2488
  if (!tsconfig.startsWith(config.workspaceRoot)) {
2484
2489
  tsconfig = joinPaths(config.workspaceRoot, tsconfig);
2485
2490
  }
2486
- if (!existsSync5(tsconfig)) {
2491
+ if (!existsSync6(tsconfig)) {
2487
2492
  throw new Error("Cannot find tsconfig.json configuration");
2488
2493
  }
2489
2494
  let sourceRoot = projectJson.sourceRoot;
2490
2495
  if (!sourceRoot) {
2491
2496
  sourceRoot = joinPaths(options.projectRoot, "src");
2492
2497
  }
2493
- if (!existsSync5(sourceRoot)) {
2498
+ if (!existsSync6(sourceRoot)) {
2494
2499
  throw new Error("Cannot find sourceRoot directory");
2495
2500
  }
2496
2501
  const result = calculateProjectBuildableDependencies3(
@@ -2718,11 +2723,11 @@ var addPackageJsonExport = (file, type = "module", sourceRoot, projectRoot) => {
2718
2723
  };
2719
2724
  };
2720
2725
  async function generatePackageJson(options) {
2721
- if (options.generatePackageJson !== false && existsSync5(joinPaths(options.projectRoot, "package.json"))) {
2726
+ if (options.generatePackageJson !== false && existsSync6(joinPaths(options.projectRoot, "package.json"))) {
2722
2727
  writeDebug(" \u270D\uFE0F Writing package.json file", options.config);
2723
2728
  const stopwatch = getStopwatch("Write package.json file");
2724
2729
  const packageJsonPath = joinPaths(options.projectRoot, "project.json");
2725
- if (!existsSync5(packageJsonPath)) {
2730
+ if (!existsSync6(packageJsonPath)) {
2726
2731
  throw new Error("Cannot find package.json configuration");
2727
2732
  }
2728
2733
  const packageJsonContent = await readFile5(
package/dist/build.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkDVONFKXXcjs = require('./chunk-DVONFKXX.cjs');
8
+ var _chunkHS6LASXOcjs = require('./chunk-HS6LASXO.cjs');
9
9
  require('./chunk-5LYLEQEH.cjs');
10
10
  require('./chunk-XYM4DLHB.cjs');
11
11
  require('./chunk-ULVTNQE3.cjs');
@@ -19,4 +19,4 @@ require('./chunk-OBGZSXTJ.cjs');
19
19
 
20
20
 
21
21
 
22
- exports.build = _chunkDVONFKXXcjs.build; exports.cleanOutputPath = _chunkDVONFKXXcjs.cleanOutputPath; exports.copyBuildAssets = _chunkDVONFKXXcjs.copyBuildAssets; exports.executeUnbuild = _chunkDVONFKXXcjs.executeUnbuild; exports.generatePackageJson = _chunkDVONFKXXcjs.generatePackageJson; exports.resolveOptions = _chunkDVONFKXXcjs.resolveOptions;
22
+ exports.build = _chunkHS6LASXOcjs.build; exports.cleanOutputPath = _chunkHS6LASXOcjs.cleanOutputPath; exports.copyBuildAssets = _chunkHS6LASXOcjs.copyBuildAssets; exports.executeUnbuild = _chunkHS6LASXOcjs.executeUnbuild; exports.generatePackageJson = _chunkHS6LASXOcjs.generatePackageJson; exports.resolveOptions = _chunkHS6LASXOcjs.resolveOptions;
package/dist/build.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-FWPMRRS5.js";
8
+ } from "./chunk-DSICFEQ2.js";
9
9
  import "./chunk-QQE3PPKS.js";
10
10
  import "./chunk-OOFI7BOW.js";
11
11
  import "./chunk-NRCPBIXP.js";
@@ -312,6 +312,7 @@ var rootFiles = [
312
312
  var rootDirectories = [
313
313
  ".storm-workspace",
314
314
  ".nx",
315
+ ".git",
315
316
  ".github",
316
317
  ".vscode",
317
318
  ".verdaccio"
@@ -1254,6 +1255,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
1254
1255
 
1255
1256
  // ../config-tools/src/create-storm-config.ts
1256
1257
  import defu2 from "defu";
1258
+ import { existsSync as existsSync4 } from "node:fs";
1257
1259
 
1258
1260
  // ../config-tools/src/env/get-env.ts
1259
1261
  var getExtensionEnv = (extensionName) => {
@@ -1865,6 +1867,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1865
1867
  configFile,
1866
1868
  defaultConfig
1867
1869
  );
1870
+ if (!configInput.variant) {
1871
+ configInput.variant = existsSync4(joinPaths(_workspaceRoot, "nx.json")) || existsSync4(joinPaths(_workspaceRoot, ".nx")) || existsSync4(joinPaths(_workspaceRoot, "lerna.json")) || existsSync4(joinPaths(_workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
1872
+ }
1868
1873
  try {
1869
1874
  result = applyDefaultConfig(
1870
1875
  await workspaceConfigSchema.parseAsync(configInput)
@@ -1937,7 +1942,7 @@ var getConfig = (workspaceRoot, skipLogs = false) => {
1937
1942
  import { glob as glob2 } from "glob";
1938
1943
 
1939
1944
  // ../build-tools/src/utilities/read-nx-config.ts
1940
- import { existsSync as existsSync4 } from "node:fs";
1945
+ import { existsSync as existsSync5 } from "node:fs";
1941
1946
  import { readFile as readFile4 } from "node:fs/promises";
1942
1947
 
1943
1948
  // ../build-tools/src/utilities/task-graph.ts
@@ -1949,7 +1954,7 @@ import {
1949
1954
  // src/build.ts
1950
1955
  import defu3 from "defu";
1951
1956
  import { Glob as Glob2 } from "glob";
1952
- import { existsSync as existsSync5 } from "node:fs";
1957
+ import { existsSync as existsSync6 } from "node:fs";
1953
1958
  import { readFile as readFile5 } from "node:fs/promises";
1954
1959
  import { relative as relative2 } from "node:path";
1955
1960
  import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
@@ -1983,7 +1988,7 @@ async function resolveOptions(options, config) {
1983
1988
  options.projectRoot,
1984
1989
  "project.json"
1985
1990
  );
1986
- if (!existsSync5(projectJsonPath)) {
1991
+ if (!existsSync6(projectJsonPath)) {
1987
1992
  throw new Error("Cannot find project.json configuration");
1988
1993
  }
1989
1994
  const projectJsonContent = await readFile5(projectJsonPath, "utf8");
@@ -1994,7 +1999,7 @@ async function resolveOptions(options, config) {
1994
1999
  options.projectRoot,
1995
2000
  "package.json"
1996
2001
  );
1997
- if (!existsSync5(packageJsonPath)) {
2002
+ if (!existsSync6(packageJsonPath)) {
1998
2003
  throw new Error("Cannot find package.json configuration");
1999
2004
  }
2000
2005
  const packageJsonContent = await readFile5(packageJsonPath, "utf8");
@@ -2006,14 +2011,14 @@ async function resolveOptions(options, config) {
2006
2011
  if (!tsconfig.startsWith(config.workspaceRoot)) {
2007
2012
  tsconfig = joinPaths(config.workspaceRoot, tsconfig);
2008
2013
  }
2009
- if (!existsSync5(tsconfig)) {
2014
+ if (!existsSync6(tsconfig)) {
2010
2015
  throw new Error("Cannot find tsconfig.json configuration");
2011
2016
  }
2012
2017
  let sourceRoot = projectJson.sourceRoot;
2013
2018
  if (!sourceRoot) {
2014
2019
  sourceRoot = joinPaths(options.projectRoot, "src");
2015
2020
  }
2016
- if (!existsSync5(sourceRoot)) {
2021
+ if (!existsSync6(sourceRoot)) {
2017
2022
  throw new Error("Cannot find sourceRoot directory");
2018
2023
  }
2019
2024
  const result = calculateProjectBuildableDependencies2(
@@ -2241,11 +2246,11 @@ var addPackageJsonExport = (file, type = "module", sourceRoot, projectRoot) => {
2241
2246
  };
2242
2247
  };
2243
2248
  async function generatePackageJson(options) {
2244
- if (options.generatePackageJson !== false && existsSync5(joinPaths(options.projectRoot, "package.json"))) {
2249
+ if (options.generatePackageJson !== false && existsSync6(joinPaths(options.projectRoot, "package.json"))) {
2245
2250
  writeDebug(" \u270D\uFE0F Writing package.json file", options.config);
2246
2251
  const stopwatch = getStopwatch("Write package.json file");
2247
2252
  const packageJsonPath = joinPaths(options.projectRoot, "project.json");
2248
- if (!existsSync5(packageJsonPath)) {
2253
+ if (!existsSync6(packageJsonPath)) {
2249
2254
  throw new Error("Cannot find package.json configuration");
2250
2255
  }
2251
2256
  const packageJsonContent = await readFile5(
@@ -312,6 +312,7 @@ var rootFiles = [
312
312
  var rootDirectories = [
313
313
  ".storm-workspace",
314
314
  ".nx",
315
+ ".git",
315
316
  ".github",
316
317
  ".vscode",
317
318
  ".verdaccio"
@@ -1255,6 +1256,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
1255
1256
  // ../config-tools/src/create-storm-config.ts
1256
1257
 
1257
1258
 
1259
+
1258
1260
  // ../config-tools/src/env/get-env.ts
1259
1261
  var getExtensionEnv = (extensionName) => {
1260
1262
  const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
@@ -1865,6 +1867,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1865
1867
  configFile,
1866
1868
  defaultConfig
1867
1869
  );
1870
+ if (!configInput.variant) {
1871
+ configInput.variant = _fs.existsSync.call(void 0, joinPaths(_workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, joinPaths(_workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, joinPaths(_workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, joinPaths(_workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
1872
+ }
1868
1873
  try {
1869
1874
  result = applyDefaultConfig(
1870
1875
  await workspaceConfigSchema.parseAsync(configInput)
package/dist/index.cjs CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkDVONFKXXcjs = require('./chunk-DVONFKXX.cjs');
8
+ var _chunkHS6LASXOcjs = require('./chunk-HS6LASXO.cjs');
9
9
 
10
10
 
11
11
 
@@ -30,4 +30,4 @@ require('./chunk-OBGZSXTJ.cjs');
30
30
 
31
31
 
32
32
 
33
- exports.build = _chunkDVONFKXXcjs.build; exports.clean = _chunk5LYLEQEHcjs.clean; exports.cleanDirectories = _chunk5LYLEQEHcjs.cleanDirectories; exports.cleanOutputPath = _chunkDVONFKXXcjs.cleanOutputPath; exports.copyBuildAssets = _chunkDVONFKXXcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkQRSVSWU2cjs.createTsCompilerOptions; exports.executeUnbuild = _chunkDVONFKXXcjs.executeUnbuild; exports.generatePackageJson = _chunkDVONFKXXcjs.generatePackageJson; exports.loadConfig = _chunkQRSVSWU2cjs.loadConfig; exports.resolveOptions = _chunkDVONFKXXcjs.resolveOptions;
33
+ exports.build = _chunkHS6LASXOcjs.build; exports.clean = _chunk5LYLEQEHcjs.clean; exports.cleanDirectories = _chunk5LYLEQEHcjs.cleanDirectories; exports.cleanOutputPath = _chunkHS6LASXOcjs.cleanOutputPath; exports.copyBuildAssets = _chunkHS6LASXOcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkQRSVSWU2cjs.createTsCompilerOptions; exports.executeUnbuild = _chunkHS6LASXOcjs.executeUnbuild; exports.generatePackageJson = _chunkHS6LASXOcjs.generatePackageJson; exports.loadConfig = _chunkQRSVSWU2cjs.loadConfig; exports.resolveOptions = _chunkHS6LASXOcjs.resolveOptions;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  executeUnbuild,
6
6
  generatePackageJson,
7
7
  resolveOptions
8
- } from "./chunk-FWPMRRS5.js";
8
+ } from "./chunk-DSICFEQ2.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.56.4",
3
+ "version": "0.56.5",
4
4
  "type": "module",
5
5
  "description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -147,9 +147,9 @@
147
147
  "typescript": { "optional": false }
148
148
  },
149
149
  "dependencies": {
150
- "@storm-software/build-tools": "^0.156.2",
151
- "@storm-software/config": "^1.132.2",
152
- "@storm-software/config-tools": "^1.186.4",
150
+ "@storm-software/build-tools": "^0.156.3",
151
+ "@storm-software/config": "^1.133.0",
152
+ "@storm-software/config-tools": "^1.187.0",
153
153
  "commander": "^12.1.0",
154
154
  "defu": "6.1.4",
155
155
  "esbuild": "^0.25.0",
@@ -171,5 +171,5 @@
171
171
  },
172
172
  "publishConfig": { "access": "public" },
173
173
  "sideEffects": false,
174
- "gitHead": "c5ba51816a1c46071312edc1f6bbe0762a796d61"
174
+ "gitHead": "4d44644a8d56ed0d61e060cf74147fcc83210a5c"
175
175
  }