@storm-software/tsdown 0.45.86 → 0.45.88
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/bin/tsdown.cjs +1 -1
- package/dist/build.cjs +3 -3
- package/dist/build.js +2 -2
- package/dist/{chunk-VUMPSH56.js → chunk-AGPWNIQU.js} +6 -5
- package/dist/{chunk-HW23CY4F.cjs → chunk-LR76NCPT.cjs} +6 -5
- package/dist/{chunk-QMTQKWL3.js → chunk-OS3WVEAH.js} +1 -1
- package/dist/{chunk-K55IFTYT.cjs → chunk-Q2X6VUOH.cjs} +32 -32
- package/dist/clean.cjs +2 -2
- package/dist/clean.js +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +2 -2
- package/package.json +5 -5
package/bin/tsdown.cjs
CHANGED
|
@@ -136834,7 +136834,7 @@ void (async () => {
|
|
|
136834
136834
|
const program = await createProgram(config);
|
|
136835
136835
|
await program.parseAsync(process.argv);
|
|
136836
136836
|
(0, import_console3.writeSuccess)(
|
|
136837
|
-
`\
|
|
136837
|
+
`\u2714 Storm TSDown executable has completed successfully!`,
|
|
136838
136838
|
config
|
|
136839
136839
|
);
|
|
136840
136840
|
(0, import_process_handler.exitWithSuccess)(config);
|
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
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkQ2X6VUOHcjs = require('./chunk-Q2X6VUOH.cjs');
|
|
5
|
+
require('./chunk-LR76NCPT.cjs');
|
|
6
6
|
require('./chunk-DPNREUD4.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.build =
|
|
10
|
+
exports.build = _chunkQ2X6VUOHcjs.build; exports.cleanOutputPath = _chunkQ2X6VUOHcjs.cleanOutputPath;
|
package/dist/build.js
CHANGED
|
@@ -323,11 +323,12 @@ var getStopwatch = (name) => {
|
|
|
323
323
|
const start = /* @__PURE__ */ new Date();
|
|
324
324
|
return () => {
|
|
325
325
|
console.info(
|
|
326
|
-
`
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
326
|
+
`> \u23F1 The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(
|
|
327
|
+
start,
|
|
328
|
+
{
|
|
329
|
+
includeSeconds: true
|
|
330
|
+
}
|
|
331
|
+
)} to complete`
|
|
331
332
|
);
|
|
332
333
|
};
|
|
333
334
|
};
|
|
@@ -323,11 +323,12 @@ var getStopwatch = (name) => {
|
|
|
323
323
|
const start = /* @__PURE__ */ new Date();
|
|
324
324
|
return () => {
|
|
325
325
|
console.info(
|
|
326
|
-
`
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
326
|
+
`> \u23F1 The${name ? ` ${name}` : ""} process took ${_formatDistanceToNow.formatDistanceToNow.call(void 0,
|
|
327
|
+
start,
|
|
328
|
+
{
|
|
329
|
+
includeSeconds: true
|
|
330
|
+
}
|
|
331
|
+
)} to complete`
|
|
331
332
|
);
|
|
332
333
|
};
|
|
333
334
|
};
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkLR76NCPTcjs = require('./chunk-LR76NCPT.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -199,7 +199,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
199
199
|
output: "src/"
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
|
-
|
|
202
|
+
_chunkLR76NCPTcjs.writeTrace.call(void 0,
|
|
203
203
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
204
204
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
205
205
|
config
|
|
@@ -211,9 +211,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
211
211
|
assets: pendingAssets
|
|
212
212
|
});
|
|
213
213
|
await assetHandler.processAllAssetsOnce();
|
|
214
|
-
|
|
214
|
+
_chunkLR76NCPTcjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
215
215
|
if (includeSrc === true) {
|
|
216
|
-
|
|
216
|
+
_chunkLR76NCPTcjs.writeDebug.call(void 0,
|
|
217
217
|
`\u{1F4DD} Adding banner and writing source files: ${joinPaths(
|
|
218
218
|
outputPath,
|
|
219
219
|
"src"
|
|
@@ -392,7 +392,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
if (localPackages.length > 0) {
|
|
395
|
-
|
|
395
|
+
_chunkLR76NCPTcjs.writeTrace.call(void 0,
|
|
396
396
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
397
397
|
);
|
|
398
398
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
@@ -440,7 +440,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
440
440
|
return ret;
|
|
441
441
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
442
442
|
} else {
|
|
443
|
-
|
|
443
|
+
_chunkLR76NCPTcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
444
444
|
}
|
|
445
445
|
return packageJson;
|
|
446
446
|
};
|
|
@@ -1238,7 +1238,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1238
1238
|
let config = result.config;
|
|
1239
1239
|
const configFile = result.configFile;
|
|
1240
1240
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
1241
|
-
|
|
1241
|
+
_chunkLR76NCPTcjs.writeTrace.call(void 0,
|
|
1242
1242
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
1243
1243
|
{
|
|
1244
1244
|
logLevel: "all"
|
|
@@ -1254,7 +1254,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1254
1254
|
for (const result2 of results) {
|
|
1255
1255
|
if (_optionalChain([result2, 'optionalAccess', _34 => _34.config]) && _optionalChain([result2, 'optionalAccess', _35 => _35.configFile]) && Object.keys(result2.config).length > 0) {
|
|
1256
1256
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
1257
|
-
|
|
1257
|
+
_chunkLR76NCPTcjs.writeTrace.call(void 0,
|
|
1258
1258
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
1259
1259
|
{
|
|
1260
1260
|
logLevel: "all"
|
|
@@ -1370,7 +1370,7 @@ var getConfigEnv = () => {
|
|
|
1370
1370
|
},
|
|
1371
1371
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
1372
1372
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1373
|
-
) ?
|
|
1373
|
+
) ? _chunkLR76NCPTcjs.getLogLevelLabel.call(void 0,
|
|
1374
1374
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1375
1375
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
1376
1376
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
@@ -1735,9 +1735,9 @@ var setConfigEnv = (config) => {
|
|
|
1735
1735
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1736
1736
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1737
1737
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1738
|
-
|
|
1738
|
+
_chunkLR76NCPTcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkLR76NCPTcjs.LogLevel.DEBUG ? true : false
|
|
1739
1739
|
);
|
|
1740
|
-
process.env.RUST_BACKTRACE =
|
|
1740
|
+
process.env.RUST_BACKTRACE = _chunkLR76NCPTcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkLR76NCPTcjs.LogLevel.DEBUG ? "full" : "none";
|
|
1741
1741
|
}
|
|
1742
1742
|
if (config.skipConfigLogging !== void 0) {
|
|
1743
1743
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -1879,7 +1879,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1879
1879
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1880
1880
|
if (!configFile) {
|
|
1881
1881
|
if (!skipLogs) {
|
|
1882
|
-
|
|
1882
|
+
_chunkLR76NCPTcjs.writeWarning.call(void 0,
|
|
1883
1883
|
"No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
|
|
1884
1884
|
{ logLevel: "all" }
|
|
1885
1885
|
);
|
|
@@ -1906,7 +1906,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1906
1906
|
throw new Error(
|
|
1907
1907
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _60 => _60.message]) ? `: ${error.message}` : ""}
|
|
1908
1908
|
|
|
1909
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1909
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkLR76NCPTcjs.formatLogMessage.call(void 0,
|
|
1910
1910
|
configInput
|
|
1911
1911
|
)}`,
|
|
1912
1912
|
{
|
|
@@ -1951,9 +1951,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1951
1951
|
);
|
|
1952
1952
|
setConfigEnv(config);
|
|
1953
1953
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1954
|
-
|
|
1954
|
+
_chunkLR76NCPTcjs.writeTrace.call(void 0,
|
|
1955
1955
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1956
|
-
${
|
|
1956
|
+
${_chunkLR76NCPTcjs.formatLogMessage.call(void 0, config)}`,
|
|
1957
1957
|
config
|
|
1958
1958
|
);
|
|
1959
1959
|
}
|
|
@@ -2013,8 +2013,8 @@ var resolveOptions = async (userOptions) => {
|
|
|
2013
2013
|
const workspaceConfig = await getWorkspaceConfig(options.debug === true, {
|
|
2014
2014
|
workspaceRoot
|
|
2015
2015
|
});
|
|
2016
|
-
|
|
2017
|
-
const stopwatch =
|
|
2016
|
+
_chunkLR76NCPTcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
2017
|
+
const stopwatch = _chunkLR76NCPTcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
2018
2018
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2019
2019
|
exitOnError: true
|
|
2020
2020
|
});
|
|
@@ -2087,8 +2087,8 @@ var resolveOptions = async (userOptions) => {
|
|
|
2087
2087
|
};
|
|
2088
2088
|
async function generatePackageJson(options) {
|
|
2089
2089
|
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, joinPaths(options.projectRoot, "package.json"))) {
|
|
2090
|
-
|
|
2091
|
-
const stopwatch =
|
|
2090
|
+
_chunkLR76NCPTcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
2091
|
+
const stopwatch = _chunkLR76NCPTcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
2092
2092
|
const packageJsonPath = joinPaths(options.projectRoot, "project.json");
|
|
2093
2093
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2094
2094
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -2162,8 +2162,8 @@ async function generatePackageJson(options) {
|
|
|
2162
2162
|
return options;
|
|
2163
2163
|
}
|
|
2164
2164
|
async function executeTSDown(options) {
|
|
2165
|
-
|
|
2166
|
-
const stopwatch =
|
|
2165
|
+
_chunkLR76NCPTcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
|
|
2166
|
+
const stopwatch = _chunkLR76NCPTcjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
2167
2167
|
await _tsdown.build.call(void 0, {
|
|
2168
2168
|
...options,
|
|
2169
2169
|
entry: options.entry,
|
|
@@ -2173,11 +2173,11 @@ async function executeTSDown(options) {
|
|
|
2173
2173
|
return options;
|
|
2174
2174
|
}
|
|
2175
2175
|
async function copyBuildAssets(options) {
|
|
2176
|
-
|
|
2176
|
+
_chunkLR76NCPTcjs.writeDebug.call(void 0,
|
|
2177
2177
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
2178
2178
|
options.workspaceConfig
|
|
2179
2179
|
);
|
|
2180
|
-
const stopwatch =
|
|
2180
|
+
const stopwatch = _chunkLR76NCPTcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
2181
2181
|
await copyAssets(
|
|
2182
2182
|
options.workspaceConfig,
|
|
2183
2183
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
@@ -2191,19 +2191,19 @@ async function copyBuildAssets(options) {
|
|
|
2191
2191
|
return options;
|
|
2192
2192
|
}
|
|
2193
2193
|
async function reportResults(options) {
|
|
2194
|
-
|
|
2194
|
+
_chunkLR76NCPTcjs.writeSuccess.call(void 0,
|
|
2195
2195
|
` \u{1F4E6} The ${options.name} build completed successfully`,
|
|
2196
2196
|
options.workspaceConfig
|
|
2197
2197
|
);
|
|
2198
2198
|
}
|
|
2199
2199
|
async function cleanOutputPath(options) {
|
|
2200
2200
|
if (options.clean !== false && options.workspaceConfig) {
|
|
2201
|
-
|
|
2201
|
+
_chunkLR76NCPTcjs.writeDebug.call(void 0,
|
|
2202
2202
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
|
|
2203
2203
|
options.workspaceConfig
|
|
2204
2204
|
);
|
|
2205
|
-
const stopwatch =
|
|
2206
|
-
await
|
|
2205
|
+
const stopwatch = _chunkLR76NCPTcjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
2206
|
+
await _chunkLR76NCPTcjs.cleanDirectories.call(void 0,
|
|
2207
2207
|
options.name,
|
|
2208
2208
|
options.outDir,
|
|
2209
2209
|
options.workspaceConfig
|
|
@@ -2213,8 +2213,8 @@ async function cleanOutputPath(options) {
|
|
|
2213
2213
|
return options;
|
|
2214
2214
|
}
|
|
2215
2215
|
async function build(options) {
|
|
2216
|
-
|
|
2217
|
-
const stopwatch =
|
|
2216
|
+
_chunkLR76NCPTcjs.writeDebug.call(void 0, ` ${_chunkLR76NCPTcjs.brandIcon.call(void 0, )} Executing Storm TSDown pipeline`);
|
|
2217
|
+
const stopwatch = _chunkLR76NCPTcjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
2218
2218
|
try {
|
|
2219
2219
|
const opts = Array.isArray(options) ? options : [options];
|
|
2220
2220
|
if (opts.length === 0) {
|
|
@@ -2234,13 +2234,13 @@ async function build(options) {
|
|
|
2234
2234
|
})
|
|
2235
2235
|
);
|
|
2236
2236
|
} else {
|
|
2237
|
-
|
|
2237
|
+
_chunkLR76NCPTcjs.writeWarning.call(void 0,
|
|
2238
2238
|
" \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
|
|
2239
2239
|
);
|
|
2240
2240
|
}
|
|
2241
|
-
|
|
2241
|
+
_chunkLR76NCPTcjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
2242
2242
|
} catch (error) {
|
|
2243
|
-
|
|
2243
|
+
_chunkLR76NCPTcjs.writeFatal.call(void 0,
|
|
2244
2244
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
2245
2245
|
);
|
|
2246
2246
|
throw error;
|
package/dist/clean.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkLR76NCPTcjs = require('./chunk-LR76NCPT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.clean =
|
|
8
|
+
exports.clean = _chunkLR76NCPTcjs.clean; exports.cleanDirectories = _chunkLR76NCPTcjs.cleanDirectories;
|
package/dist/clean.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkQ2X6VUOHcjs = require('./chunk-Q2X6VUOH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkLR76NCPTcjs = require('./chunk-LR76NCPT.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -18,4 +18,4 @@ require('./chunk-ZBPRDZS4.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.build =
|
|
21
|
+
exports.build = _chunkQ2X6VUOHcjs.build; exports.clean = _chunkLR76NCPTcjs.clean; exports.cleanDirectories = _chunkLR76NCPTcjs.cleanDirectories; exports.cleanOutputPath = _chunkQ2X6VUOHcjs.cleanOutputPath; exports.getDefaultOptions = _chunkDPNREUD4cjs.getDefaultOptions; exports.toTSDownFormat = _chunkDPNREUD4cjs.toTSDownFormat;
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build,
|
|
3
3
|
cleanOutputPath
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OS3WVEAH.js";
|
|
5
5
|
import {
|
|
6
6
|
clean,
|
|
7
7
|
cleanDirectories
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AGPWNIQU.js";
|
|
9
9
|
import {
|
|
10
10
|
getDefaultOptions,
|
|
11
11
|
toTSDownFormat
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/tsdown",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.88",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `tsdown` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -146,9 +146,9 @@
|
|
|
146
146
|
"tsdown": { "optional": false }
|
|
147
147
|
},
|
|
148
148
|
"dependencies": {
|
|
149
|
-
"@storm-software/build-tools": "^0.158.
|
|
150
|
-
"@storm-software/config": "^1.135.
|
|
151
|
-
"@storm-software/config-tools": "^1.189.
|
|
149
|
+
"@storm-software/build-tools": "^0.158.87",
|
|
150
|
+
"@storm-software/config": "^1.135.7",
|
|
151
|
+
"@storm-software/config-tools": "^1.189.6",
|
|
152
152
|
"chokidar": "^4.0.3",
|
|
153
153
|
"commander": "^12.1.0",
|
|
154
154
|
"es-toolkit": "^1.44.0",
|
|
@@ -171,5 +171,5 @@
|
|
|
171
171
|
},
|
|
172
172
|
"publishConfig": { "access": "public" },
|
|
173
173
|
"sideEffects": false,
|
|
174
|
-
"gitHead": "
|
|
174
|
+
"gitHead": "59fb127dd72835aea54f08b543d44463b2922338"
|
|
175
175
|
}
|