@storm-software/tsdown 0.43.3 → 0.43.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.43.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.43.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/dist/build.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk2WRKCYGLcjs = require('./chunk-2WRKCYGL.cjs');
4
+ var _chunkAKVV6VBEcjs = require('./chunk-AKVV6VBE.cjs');
5
5
  require('./chunk-IO7MJMVE.cjs');
6
6
  require('./chunk-65E5RX7I.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.build = _chunk2WRKCYGLcjs.build; exports.cleanOutputPath = _chunk2WRKCYGLcjs.cleanOutputPath;
10
+ exports.build = _chunkAKVV6VBEcjs.build; exports.cleanOutputPath = _chunkAKVV6VBEcjs.cleanOutputPath;
package/dist/build.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-DU2QOKHQ.js";
4
+ } from "./chunk-QYYLJQQ7.js";
5
5
  import "./chunk-IAKUT4HI.js";
6
6
  import "./chunk-2YE3GBQH.js";
7
7
  export {
@@ -305,6 +305,7 @@ var rootFiles = [
305
305
  var rootDirectories = [
306
306
  ".storm-workspace",
307
307
  ".nx",
308
+ ".git",
308
309
  ".github",
309
310
  ".vscode",
310
311
  ".verdaccio"
@@ -1268,6 +1269,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
1268
1269
  // ../config-tools/src/create-storm-config.ts
1269
1270
 
1270
1271
 
1272
+
1271
1273
  // ../config-tools/src/env/get-env.ts
1272
1274
  var getExtensionEnv = (extensionName) => {
1273
1275
  const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
@@ -1878,6 +1880,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1878
1880
  configFile,
1879
1881
  defaultConfig
1880
1882
  );
1883
+ if (!configInput.variant) {
1884
+ 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";
1885
+ }
1881
1886
  try {
1882
1887
  result = applyDefaultConfig(
1883
1888
  await workspaceConfigSchema.parseAsync(configInput)
@@ -305,6 +305,7 @@ var rootFiles = [
305
305
  var rootDirectories = [
306
306
  ".storm-workspace",
307
307
  ".nx",
308
+ ".git",
308
309
  ".github",
309
310
  ".vscode",
310
311
  ".verdaccio"
@@ -1267,6 +1268,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
1267
1268
 
1268
1269
  // ../config-tools/src/create-storm-config.ts
1269
1270
  import defu2 from "defu";
1271
+ import { existsSync as existsSync4 } from "node:fs";
1270
1272
 
1271
1273
  // ../config-tools/src/env/get-env.ts
1272
1274
  var getExtensionEnv = (extensionName) => {
@@ -1878,6 +1880,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1878
1880
  configFile,
1879
1881
  defaultConfig
1880
1882
  );
1883
+ if (!configInput.variant) {
1884
+ configInput.variant = existsSync4(joinPaths(_workspaceRoot, "nx.json")) || existsSync4(joinPaths(_workspaceRoot, ".nx")) || existsSync4(joinPaths(_workspaceRoot, "lerna.json")) || existsSync4(joinPaths(_workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
1885
+ }
1881
1886
  try {
1882
1887
  result = applyDefaultConfig(
1883
1888
  await workspaceConfigSchema.parseAsync(configInput)
@@ -2027,7 +2032,7 @@ var getEnv = (builder, options) => {
2027
2032
  };
2028
2033
 
2029
2034
  // ../build-tools/src/utilities/read-nx-config.ts
2030
- import { existsSync as existsSync4 } from "node:fs";
2035
+ import { existsSync as existsSync5 } from "node:fs";
2031
2036
  import { readFile as readFile4 } from "node:fs/promises";
2032
2037
 
2033
2038
  // ../build-tools/src/utilities/task-graph.ts
@@ -2038,7 +2043,7 @@ import {
2038
2043
 
2039
2044
  // src/build.ts
2040
2045
  import defu3 from "defu";
2041
- import { existsSync as existsSync5 } from "node:fs";
2046
+ import { existsSync as existsSync6 } from "node:fs";
2042
2047
  import hf from "node:fs/promises";
2043
2048
  import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
2044
2049
  import { build as tsdown } from "tsdown";
@@ -2059,7 +2064,7 @@ var resolveOptions = async (userOptions) => {
2059
2064
  projectRoot,
2060
2065
  "project.json"
2061
2066
  );
2062
- if (!existsSync5(projectJsonPath)) {
2067
+ if (!existsSync6(projectJsonPath)) {
2063
2068
  throw new Error("Cannot find project.json configuration");
2064
2069
  }
2065
2070
  const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
@@ -2079,7 +2084,7 @@ var resolveOptions = async (userOptions) => {
2079
2084
  options.projectRoot,
2080
2085
  "package.json"
2081
2086
  );
2082
- if (!existsSync5(packageJsonPath)) {
2087
+ if (!existsSync6(packageJsonPath)) {
2083
2088
  throw new Error("Cannot find package.json configuration");
2084
2089
  }
2085
2090
  const env = getEnv("tsdown", options);
@@ -2139,11 +2144,11 @@ var resolveOptions = async (userOptions) => {
2139
2144
  return result;
2140
2145
  };
2141
2146
  async function generatePackageJson(options) {
2142
- if (options.generatePackageJson !== false && existsSync5(joinPaths(options.projectRoot, "package.json"))) {
2147
+ if (options.generatePackageJson !== false && existsSync6(joinPaths(options.projectRoot, "package.json"))) {
2143
2148
  writeDebug(" \u270D\uFE0F Writing package.json file", options.config);
2144
2149
  const stopwatch = getStopwatch("Write package.json file");
2145
2150
  const packageJsonPath = joinPaths(options.projectRoot, "project.json");
2146
- if (!existsSync5(packageJsonPath)) {
2151
+ if (!existsSync6(packageJsonPath)) {
2147
2152
  throw new Error("Cannot find package.json configuration");
2148
2153
  }
2149
2154
  const packageJsonFile = await hf.readFile(
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk2WRKCYGLcjs = require('./chunk-2WRKCYGL.cjs');
4
+ var _chunkAKVV6VBEcjs = require('./chunk-AKVV6VBE.cjs');
5
5
 
6
6
 
7
7
 
@@ -16,4 +16,4 @@ require('./chunk-ZBPRDZS4.cjs');
16
16
 
17
17
 
18
18
 
19
- exports.DEFAULT_BUILD_OPTIONS = _chunk65E5RX7Icjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunk2WRKCYGLcjs.build; exports.clean = _chunkIO7MJMVEcjs.clean; exports.cleanDirectories = _chunkIO7MJMVEcjs.cleanDirectories; exports.cleanOutputPath = _chunk2WRKCYGLcjs.cleanOutputPath;
19
+ exports.DEFAULT_BUILD_OPTIONS = _chunk65E5RX7Icjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunkAKVV6VBEcjs.build; exports.clean = _chunkIO7MJMVEcjs.clean; exports.cleanDirectories = _chunkIO7MJMVEcjs.cleanDirectories; exports.cleanOutputPath = _chunkAKVV6VBEcjs.cleanOutputPath;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  build,
3
3
  cleanOutputPath
4
- } from "./chunk-DU2QOKHQ.js";
4
+ } from "./chunk-QYYLJQQ7.js";
5
5
  import {
6
6
  clean,
7
7
  cleanDirectories
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/tsdown",
3
- "version": "0.43.3",
3
+ "version": "0.43.5",
4
4
  "type": "module",
5
5
  "description": "A package containing `tsdown` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -149,9 +149,9 @@
149
149
  "tsdown": { "optional": false }
150
150
  },
151
151
  "dependencies": {
152
- "@storm-software/build-tools": "^0.156.2",
153
- "@storm-software/config": "^1.132.2",
154
- "@storm-software/config-tools": "^1.186.3",
152
+ "@storm-software/build-tools": "^0.156.3",
153
+ "@storm-software/config": "^1.133.0",
154
+ "@storm-software/config-tools": "^1.187.0",
155
155
  "chokidar": "^4.0.3",
156
156
  "commander": "^12.1.0",
157
157
  "es-toolkit": "^1.39.10",
@@ -174,5 +174,5 @@
174
174
  },
175
175
  "publishConfig": { "access": "public" },
176
176
  "sideEffects": false,
177
- "gitHead": "4685d950fde94a24f6739526637a100d134c3623"
177
+ "gitHead": "4d44644a8d56ed0d61e060cf74147fcc83210a5c"
178
178
  }