@storm-software/tsdown 0.43.4 → 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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
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
|
|
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 =
|
|
10
|
+
exports.build = _chunkAKVV6VBEcjs.build; exports.cleanOutputPath = _chunkAKVV6VBEcjs.cleanOutputPath;
|
package/dist/build.js
CHANGED
|
@@ -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
|
|
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
|
|
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 (!
|
|
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 (!
|
|
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 &&
|
|
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 (!
|
|
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
|
|
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 =
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/tsdown",
|
|
3
|
-
"version": "0.43.
|
|
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.
|
|
153
|
-
"@storm-software/config": "^1.
|
|
154
|
-
"@storm-software/config-tools": "^1.
|
|
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": "
|
|
177
|
+
"gitHead": "4d44644a8d56ed0d61e060cf74147fcc83210a5c"
|
|
178
178
|
}
|