@storm-software/tsdown 0.22.6 → 0.22.8
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 +1 -1
- package/dist/build.cjs +3 -3
- package/dist/build.js +2 -2
- package/dist/{chunk-Y4MOS2JM.js → chunk-JN2VI3EG.js} +1 -1
- package/dist/{chunk-GYAZ6EIB.cjs → chunk-OMIETROS.cjs} +84 -84
- package/dist/{chunk-QVK624ZI.js → chunk-U4CGPPOG.js} +16 -10
- package/dist/{chunk-2Z7WS4H3.cjs → chunk-ZQC6YPF5.cjs} +11 -5
- package/dist/clean.cjs +2 -2
- package/dist/clean.d.cts +1 -1183
- package/dist/clean.d.ts +1 -1183
- package/dist/clean.js +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +3 -4
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,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkOMIETROScjs = require('./chunk-OMIETROS.cjs');
|
|
4
|
+
require('./chunk-ZQC6YPF5.cjs');
|
|
5
5
|
require('./chunk-5KRF6IVW.cjs');
|
|
6
6
|
require('./chunk-USNT2KNT.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.build =
|
|
9
|
+
exports.build = _chunkOMIETROScjs.build;
|
package/dist/build.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkZQC6YPF5cjs = require('./chunk-ZQC6YPF5.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunk5KRF6IVWcjs = require('./chunk-5KRF6IVW.cjs');
|
|
@@ -80,8 +80,8 @@ var copyAssets = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (co
|
|
|
80
80
|
output: "src/"
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
|
|
84
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
83
|
+
_chunkZQC6YPF5cjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
84
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkZQC6YPF5cjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
85
85
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
86
86
|
projectDir: projectRoot,
|
|
87
87
|
rootDir: config.workspaceRoot,
|
|
@@ -90,12 +90,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
90
90
|
});
|
|
91
91
|
await assetHandler.processAllAssetsOnce();
|
|
92
92
|
if (includeSrc === true) {
|
|
93
|
-
|
|
93
|
+
_chunkZQC6YPF5cjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkZQC6YPF5cjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
94
94
|
const files = await _glob.glob.call(void 0, [
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
_chunkZQC6YPF5cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
96
|
+
_chunkZQC6YPF5cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
97
|
+
_chunkZQC6YPF5cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
98
|
+
_chunkZQC6YPF5cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
99
99
|
]);
|
|
100
100
|
await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
101
101
|
|
|
@@ -117,7 +117,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
|
|
|
117
117
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
|
|
118
118
|
const projectNode = project.node;
|
|
119
119
|
if (projectNode.data.root) {
|
|
120
|
-
const projectPackageJsonPath =
|
|
120
|
+
const projectPackageJsonPath = _chunkZQC6YPF5cjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
|
|
121
121
|
if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
|
|
122
122
|
const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
|
|
123
123
|
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
@@ -128,7 +128,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
if (localPackages.length > 0) {
|
|
131
|
-
|
|
131
|
+
_chunkZQC6YPF5cjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
132
132
|
packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
|
|
133
133
|
if (!ret[localPackage.name]) {
|
|
134
134
|
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
@@ -150,13 +150,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
|
|
|
150
150
|
return ret;
|
|
151
151
|
}, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
|
|
152
152
|
} else {
|
|
153
|
-
|
|
153
|
+
_chunkZQC6YPF5cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
154
154
|
}
|
|
155
155
|
return packageJson;
|
|
156
156
|
}, "addPackageDependencies");
|
|
157
157
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
158
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
159
|
-
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
158
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkZQC6YPF5cjs.findWorkspaceRoot.call(void 0, );
|
|
159
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkZQC6YPF5cjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
|
|
160
160
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
161
161
|
packageJson.type ??= "module";
|
|
162
162
|
packageJson.sideEffects ??= false;
|
|
@@ -165,7 +165,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.cal
|
|
|
165
165
|
if (distSrc.startsWith("/")) {
|
|
166
166
|
distSrc = distSrc.substring(1);
|
|
167
167
|
}
|
|
168
|
-
packageJson.source ??= `${
|
|
168
|
+
packageJson.source ??= `${_chunkZQC6YPF5cjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
169
169
|
}
|
|
170
170
|
packageJson.files ??= [
|
|
171
171
|
"dist/**/*"
|
|
@@ -196,7 +196,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.cal
|
|
|
196
196
|
];
|
|
197
197
|
}
|
|
198
198
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
199
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
199
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkZQC6YPF5cjs.joinPaths.call(void 0, "packages", projectName);
|
|
200
200
|
return packageJson;
|
|
201
201
|
}, "addWorkspacePackageJsonFields");
|
|
202
202
|
var addPackageJsonExport = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
|
|
@@ -224,7 +224,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
224
224
|
var _c12 = require('c12');
|
|
225
225
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
226
226
|
var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
227
|
-
const workspacePath = filePath ||
|
|
227
|
+
const workspacePath = filePath || _chunkZQC6YPF5cjs.findWorkspaceRoot.call(void 0, filePath);
|
|
228
228
|
const configs = await Promise.all([
|
|
229
229
|
_c12.loadConfig.call(void 0, {
|
|
230
230
|
cwd: workspacePath,
|
|
@@ -233,7 +233,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
233
233
|
envName: _optionalChain([fileName, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]),
|
|
234
234
|
jitiOptions: {
|
|
235
235
|
debug: false,
|
|
236
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
236
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkZQC6YPF5cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
237
237
|
},
|
|
238
238
|
...options
|
|
239
239
|
}),
|
|
@@ -244,7 +244,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
244
244
|
envName: _optionalChain([fileName, 'optionalAccess', _3 => _3.toUpperCase, 'call', _4 => _4()]),
|
|
245
245
|
jitiOptions: {
|
|
246
246
|
debug: false,
|
|
247
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
247
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkZQC6YPF5cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
248
248
|
},
|
|
249
249
|
configFile: fileName,
|
|
250
250
|
...options
|
|
@@ -253,12 +253,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
253
253
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
254
254
|
}, "getConfigFileByName");
|
|
255
255
|
var getConfigFile = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
256
|
-
const workspacePath = filePath ? filePath :
|
|
256
|
+
const workspacePath = filePath ? filePath : _chunkZQC6YPF5cjs.findWorkspaceRoot.call(void 0, filePath);
|
|
257
257
|
const result = await getConfigFileByName("storm", workspacePath);
|
|
258
258
|
let config = result.config;
|
|
259
259
|
const configFile = result.configFile;
|
|
260
260
|
if (config && configFile && Object.keys(config).length > 0) {
|
|
261
|
-
|
|
261
|
+
_chunkZQC6YPF5cjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
262
262
|
logLevel: "all"
|
|
263
263
|
});
|
|
264
264
|
}
|
|
@@ -266,7 +266,7 @@ var getConfigFile = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
266
266
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
267
267
|
for (const result2 of results) {
|
|
268
268
|
if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
|
|
269
|
-
|
|
269
|
+
_chunkZQC6YPF5cjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
270
270
|
logLevel: "all"
|
|
271
271
|
});
|
|
272
272
|
config = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
|
|
@@ -313,15 +313,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
|
|
|
313
313
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
314
314
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
315
315
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
316
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
317
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
316
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkZQC6YPF5cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
317
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkZQC6YPF5cjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
318
318
|
directories: {
|
|
319
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
320
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
321
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
322
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
323
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
324
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
319
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkZQC6YPF5cjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
320
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkZQC6YPF5cjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
321
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkZQC6YPF5cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
322
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkZQC6YPF5cjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
323
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkZQC6YPF5cjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
324
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkZQC6YPF5cjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
325
325
|
},
|
|
326
326
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
327
327
|
env: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}ENV`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -344,23 +344,23 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
|
|
|
344
344
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
345
345
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
346
346
|
},
|
|
347
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ?
|
|
347
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? _chunkZQC6YPF5cjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
348
348
|
};
|
|
349
|
-
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
349
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkZQC6YPF5cjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
350
350
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
351
351
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
352
352
|
return ret;
|
|
353
353
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
354
|
-
if (config.docs ===
|
|
355
|
-
if (config.homepage ===
|
|
356
|
-
config.docs = `${
|
|
354
|
+
if (config.docs === _chunkZQC6YPF5cjs.STORM_DEFAULT_DOCS) {
|
|
355
|
+
if (config.homepage === _chunkZQC6YPF5cjs.STORM_DEFAULT_HOMEPAGE) {
|
|
356
|
+
config.docs = `${_chunkZQC6YPF5cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
357
357
|
} else {
|
|
358
358
|
config.docs = `${config.homepage}/docs`;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
if (config.licensing ===
|
|
362
|
-
if (config.homepage ===
|
|
363
|
-
config.licensing = `${
|
|
361
|
+
if (config.licensing === _chunkZQC6YPF5cjs.STORM_DEFAULT_LICENSING) {
|
|
362
|
+
if (config.homepage === _chunkZQC6YPF5cjs.STORM_DEFAULT_HOMEPAGE) {
|
|
363
|
+
config.licensing = `${_chunkZQC6YPF5cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
364
364
|
} else {
|
|
365
365
|
config.licensing = `${config.homepage}/docs`;
|
|
366
366
|
}
|
|
@@ -498,31 +498,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
|
|
|
498
498
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
499
499
|
}
|
|
500
500
|
if (config.configFile) {
|
|
501
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
501
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkZQC6YPF5cjs.correctPaths.call(void 0, config.configFile);
|
|
502
502
|
}
|
|
503
503
|
if (config.workspaceRoot) {
|
|
504
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
505
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
506
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
504
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkZQC6YPF5cjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
505
|
+
process.env.NX_WORKSPACE_ROOT = _chunkZQC6YPF5cjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
506
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkZQC6YPF5cjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
507
507
|
}
|
|
508
508
|
if (config.directories) {
|
|
509
509
|
if (!config.skipCache && config.directories.cache) {
|
|
510
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
510
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkZQC6YPF5cjs.correctPaths.call(void 0, config.directories.cache);
|
|
511
511
|
}
|
|
512
512
|
if (config.directories.data) {
|
|
513
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
513
|
+
process.env[`${prefix}DATA_DIR`] = _chunkZQC6YPF5cjs.correctPaths.call(void 0, config.directories.data);
|
|
514
514
|
}
|
|
515
515
|
if (config.directories.config) {
|
|
516
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
516
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkZQC6YPF5cjs.correctPaths.call(void 0, config.directories.config);
|
|
517
517
|
}
|
|
518
518
|
if (config.directories.temp) {
|
|
519
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
519
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkZQC6YPF5cjs.correctPaths.call(void 0, config.directories.temp);
|
|
520
520
|
}
|
|
521
521
|
if (config.directories.log) {
|
|
522
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
522
|
+
process.env[`${prefix}LOG_DIR`] = _chunkZQC6YPF5cjs.correctPaths.call(void 0, config.directories.log);
|
|
523
523
|
}
|
|
524
524
|
if (config.directories.build) {
|
|
525
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
525
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkZQC6YPF5cjs.correctPaths.call(void 0, config.directories.build);
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
if (config.skipCache !== void 0) {
|
|
@@ -576,8 +576,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
|
|
|
576
576
|
if (config.logLevel) {
|
|
577
577
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
578
578
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
579
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
580
|
-
process.env.RUST_BACKTRACE =
|
|
579
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunkZQC6YPF5cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkZQC6YPF5cjs.LogLevel.DEBUG ? true : false);
|
|
580
|
+
process.env.RUST_BACKTRACE = _chunkZQC6YPF5cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkZQC6YPF5cjs.LogLevel.DEBUG ? "full" : "none";
|
|
581
581
|
}
|
|
582
582
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
583
583
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
@@ -690,17 +690,17 @@ var createStormConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, as
|
|
|
690
690
|
if (!_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) || !_optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
691
691
|
let _workspaceRoot = workspaceRoot;
|
|
692
692
|
if (!_workspaceRoot) {
|
|
693
|
-
_workspaceRoot =
|
|
693
|
+
_workspaceRoot = _chunkZQC6YPF5cjs.findWorkspaceRoot.call(void 0, );
|
|
694
694
|
}
|
|
695
695
|
const configEnv = getConfigEnv();
|
|
696
|
-
const defaultConfig = await
|
|
696
|
+
const defaultConfig = await _chunkZQC6YPF5cjs.getDefaultConfig.call(void 0, _workspaceRoot);
|
|
697
697
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
698
698
|
if (!configFile && !skipLogs) {
|
|
699
|
-
|
|
699
|
+
_chunkZQC6YPF5cjs.writeWarning.call(void 0, "No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
|
|
700
700
|
logLevel: "all"
|
|
701
701
|
});
|
|
702
702
|
}
|
|
703
|
-
result = await
|
|
703
|
+
result = await _chunkZQC6YPF5cjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
|
|
704
704
|
result.workspaceRoot ??= _workspaceRoot;
|
|
705
705
|
} else {
|
|
706
706
|
result = _static_cache.data;
|
|
@@ -735,8 +735,8 @@ var loadStormConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, asyn
|
|
|
735
735
|
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
736
736
|
setConfigEnv(config);
|
|
737
737
|
if (!skipLogs) {
|
|
738
|
-
|
|
739
|
-
${
|
|
738
|
+
_chunkZQC6YPF5cjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm configuration:
|
|
739
|
+
${_chunkZQC6YPF5cjs.formatLogMessage.call(void 0, config)}`, config);
|
|
740
740
|
}
|
|
741
741
|
return config;
|
|
742
742
|
}, "loadStormConfig");
|
|
@@ -749,7 +749,7 @@ var getConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (workspace
|
|
|
749
749
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
750
750
|
|
|
751
751
|
var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
752
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
752
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkZQC6YPF5cjs.findWorkspaceRoot.call(void 0, );
|
|
753
753
|
const entryPoints = [];
|
|
754
754
|
if (entry) {
|
|
755
755
|
if (Array.isArray(entry)) {
|
|
@@ -761,7 +761,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
763
|
if (emitOnAll) {
|
|
764
|
-
entryPoints.push(
|
|
764
|
+
entryPoints.push(_chunkZQC6YPF5cjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
765
765
|
}
|
|
766
766
|
const results = [];
|
|
767
767
|
for (const entryPoint in entryPoints) {
|
|
@@ -770,9 +770,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
770
770
|
withFileTypes: true
|
|
771
771
|
});
|
|
772
772
|
results.push(...files.reduce((ret, filePath) => {
|
|
773
|
-
const result =
|
|
773
|
+
const result = _chunkZQC6YPF5cjs.correctPaths.call(void 0, _chunkZQC6YPF5cjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkZQC6YPF5cjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkZQC6YPF5cjs.correctPaths.call(void 0, projectRoot), ""));
|
|
774
774
|
if (result) {
|
|
775
|
-
|
|
775
|
+
_chunkZQC6YPF5cjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkZQC6YPF5cjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
776
776
|
if (!results.includes(result)) {
|
|
777
777
|
results.push(result);
|
|
778
778
|
}
|
|
@@ -818,12 +818,12 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
818
818
|
throw new Error("Cannot find Nx workspace root");
|
|
819
819
|
}
|
|
820
820
|
const config = await getConfig(workspaceRoot.dir);
|
|
821
|
-
|
|
822
|
-
const stopwatch =
|
|
821
|
+
_chunkZQC6YPF5cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
822
|
+
const stopwatch = _chunkZQC6YPF5cjs.getStopwatch.call(void 0, "Build options resolution");
|
|
823
823
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
824
824
|
exitOnError: true
|
|
825
825
|
});
|
|
826
|
-
const projectJsonPath =
|
|
826
|
+
const projectJsonPath = _chunkZQC6YPF5cjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
|
|
827
827
|
if (!await _node.hfs.isFile(projectJsonPath)) {
|
|
828
828
|
throw new Error("Cannot find project.json configuration");
|
|
829
829
|
}
|
|
@@ -836,7 +836,7 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
836
836
|
const options = _defu2.default.call(void 0, userOptions, _chunk5KRF6IVWcjs.DEFAULT_BUILD_OPTIONS);
|
|
837
837
|
options.name ??= `${projectName}-${options.format}`;
|
|
838
838
|
options.target ??= DEFAULT_TARGET;
|
|
839
|
-
const packageJsonPath =
|
|
839
|
+
const packageJsonPath = _chunkZQC6YPF5cjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
840
840
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
841
841
|
throw new Error("Cannot find package.json configuration");
|
|
842
842
|
}
|
|
@@ -845,20 +845,20 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
845
845
|
...options,
|
|
846
846
|
config,
|
|
847
847
|
...userOptions,
|
|
848
|
-
tsconfig:
|
|
848
|
+
tsconfig: _chunkZQC6YPF5cjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
849
849
|
format: options.format || "cjs",
|
|
850
850
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
851
851
|
"./src/index.ts"
|
|
852
852
|
], userOptions.emitOnAll),
|
|
853
|
-
outdir: userOptions.outputPath ||
|
|
853
|
+
outdir: userOptions.outputPath || _chunkZQC6YPF5cjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
854
854
|
plugins: [],
|
|
855
855
|
name: userOptions.name || projectName,
|
|
856
856
|
projectConfigurations,
|
|
857
857
|
projectName,
|
|
858
858
|
projectGraph,
|
|
859
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
859
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkZQC6YPF5cjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
860
860
|
minify: userOptions.minify || !userOptions.debug,
|
|
861
|
-
verbose: userOptions.verbose ||
|
|
861
|
+
verbose: userOptions.verbose || _chunkZQC6YPF5cjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
862
862
|
includeSrc: userOptions.includeSrc === true,
|
|
863
863
|
metafile: userOptions.metafile !== false,
|
|
864
864
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -892,14 +892,14 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
892
892
|
return result;
|
|
893
893
|
}, "resolveOptions");
|
|
894
894
|
async function generatePackageJson(options) {
|
|
895
|
-
if (options.generatePackageJson !== false && await _node.hfs.isFile(
|
|
896
|
-
|
|
897
|
-
const stopwatch =
|
|
898
|
-
const packageJsonPath =
|
|
895
|
+
if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkZQC6YPF5cjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
896
|
+
_chunkZQC6YPF5cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
897
|
+
const stopwatch = _chunkZQC6YPF5cjs.getStopwatch.call(void 0, "Write package.json file");
|
|
898
|
+
const packageJsonPath = _chunkZQC6YPF5cjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
899
899
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
900
900
|
throw new Error("Cannot find package.json configuration");
|
|
901
901
|
}
|
|
902
|
-
let packageJson = await _node.hfs.json(
|
|
902
|
+
let packageJson = await _node.hfs.json(_chunkZQC6YPF5cjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
|
|
903
903
|
if (!packageJson) {
|
|
904
904
|
throw new Error("Cannot find package.json configuration file");
|
|
905
905
|
}
|
|
@@ -937,15 +937,15 @@ async function generatePackageJson(options) {
|
|
|
937
937
|
}
|
|
938
938
|
return ret;
|
|
939
939
|
}, packageJson.exports);
|
|
940
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
940
|
+
await _devkit.writeJsonFile.call(void 0, _chunkZQC6YPF5cjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
|
|
941
941
|
stopwatch();
|
|
942
942
|
}
|
|
943
943
|
return options;
|
|
944
944
|
}
|
|
945
945
|
_chunkUSNT2KNTcjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
946
946
|
async function executeTSDown(options) {
|
|
947
|
-
|
|
948
|
-
const stopwatch =
|
|
947
|
+
_chunkZQC6YPF5cjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
|
|
948
|
+
const stopwatch = _chunkZQC6YPF5cjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
949
949
|
await _tsdown.build.call(void 0, {
|
|
950
950
|
...options,
|
|
951
951
|
entry: options.entryPoints,
|
|
@@ -957,27 +957,27 @@ async function executeTSDown(options) {
|
|
|
957
957
|
}
|
|
958
958
|
_chunkUSNT2KNTcjs.__name.call(void 0, executeTSDown, "executeTSDown");
|
|
959
959
|
async function copyBuildAssets(options) {
|
|
960
|
-
|
|
961
|
-
const stopwatch =
|
|
960
|
+
_chunkZQC6YPF5cjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
|
|
961
|
+
const stopwatch = _chunkZQC6YPF5cjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
962
962
|
await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
|
|
963
963
|
stopwatch();
|
|
964
964
|
return options;
|
|
965
965
|
}
|
|
966
966
|
_chunkUSNT2KNTcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
967
967
|
async function reportResults(options) {
|
|
968
|
-
|
|
968
|
+
_chunkZQC6YPF5cjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
|
|
969
969
|
}
|
|
970
970
|
_chunkUSNT2KNTcjs.__name.call(void 0, reportResults, "reportResults");
|
|
971
971
|
async function cleanOutputPath(options) {
|
|
972
972
|
if (options.clean !== false && options.outdir) {
|
|
973
|
-
await
|
|
973
|
+
await _chunkZQC6YPF5cjs.clean.call(void 0, options.name, options.outdir, options.config);
|
|
974
974
|
}
|
|
975
975
|
return options;
|
|
976
976
|
}
|
|
977
977
|
_chunkUSNT2KNTcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
978
978
|
async function build(options) {
|
|
979
|
-
|
|
980
|
-
const stopwatch =
|
|
979
|
+
_chunkZQC6YPF5cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
980
|
+
const stopwatch = _chunkZQC6YPF5cjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
981
981
|
try {
|
|
982
982
|
const opts = Array.isArray(options) ? options : [
|
|
983
983
|
options
|
|
@@ -995,11 +995,11 @@ async function build(options) {
|
|
|
995
995
|
await reportResults(opt);
|
|
996
996
|
}));
|
|
997
997
|
} else {
|
|
998
|
-
|
|
998
|
+
_chunkZQC6YPF5cjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
|
|
999
999
|
}
|
|
1000
|
-
|
|
1000
|
+
_chunkZQC6YPF5cjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
1001
1001
|
} catch (error) {
|
|
1002
|
-
|
|
1002
|
+
_chunkZQC6YPF5cjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
1003
1003
|
throw error;
|
|
1004
1004
|
} finally {
|
|
1005
1005
|
stopwatch();
|
|
@@ -203,38 +203,44 @@ var COLOR_KEYS = [
|
|
|
203
203
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
204
204
|
import { existsSync as existsSync2 } from "node:fs";
|
|
205
205
|
import { readFile } from "node:fs/promises";
|
|
206
|
-
import { join as
|
|
206
|
+
import { join as join3 } from "node:path";
|
|
207
207
|
|
|
208
208
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
209
|
-
import {
|
|
209
|
+
import { join } from "node:path";
|
|
210
|
+
var removeWindowsDriveLetter = /* @__PURE__ */ __name((osSpecificPath) => {
|
|
211
|
+
return osSpecificPath.replace(/^[A-Z]:/, "");
|
|
212
|
+
}, "removeWindowsDriveLetter");
|
|
210
213
|
var correctPaths = /* @__PURE__ */ __name((path) => {
|
|
211
214
|
if (!path) {
|
|
212
215
|
return "";
|
|
213
216
|
}
|
|
214
|
-
if (
|
|
215
|
-
path
|
|
217
|
+
if (path.includes("\\")) {
|
|
218
|
+
if (!path.toUpperCase().startsWith("C:")) {
|
|
219
|
+
path = `C:${path}`;
|
|
220
|
+
}
|
|
221
|
+
return path.replaceAll("/", "\\");
|
|
216
222
|
}
|
|
217
|
-
return path.
|
|
223
|
+
return removeWindowsDriveLetter(path).split("\\").join("/");
|
|
218
224
|
}, "correctPaths");
|
|
219
225
|
var joinPaths = /* @__PURE__ */ __name((...paths) => {
|
|
220
226
|
if (!paths || paths.length === 0) {
|
|
221
227
|
return "";
|
|
222
228
|
}
|
|
223
|
-
return correctPaths(
|
|
229
|
+
return correctPaths(join(...paths));
|
|
224
230
|
}, "joinPaths");
|
|
225
231
|
|
|
226
232
|
// ../config-tools/src/utilities/find-up.ts
|
|
227
233
|
import { existsSync } from "node:fs";
|
|
228
|
-
import { join } from "node:path";
|
|
234
|
+
import { join as join2 } from "node:path";
|
|
229
235
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
230
236
|
var depth = 0;
|
|
231
237
|
function findFolderUp(startPath, endFileNames) {
|
|
232
238
|
const _startPath = startPath ?? process.cwd();
|
|
233
|
-
if (endFileNames.some((endFileName) => existsSync(
|
|
239
|
+
if (endFileNames.some((endFileName) => existsSync(join2(_startPath, endFileName)))) {
|
|
234
240
|
return _startPath;
|
|
235
241
|
}
|
|
236
242
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
237
|
-
const parent =
|
|
243
|
+
const parent = join2(_startPath, "..");
|
|
238
244
|
return findFolderUp(parent, endFileNames);
|
|
239
245
|
}
|
|
240
246
|
return void 0;
|
|
@@ -331,7 +337,7 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
|
|
|
331
337
|
let namespace = void 0;
|
|
332
338
|
let repository = void 0;
|
|
333
339
|
const workspaceRoot = findWorkspaceRoot(root);
|
|
334
|
-
if (existsSync2(
|
|
340
|
+
if (existsSync2(join3(workspaceRoot, "package.json"))) {
|
|
335
341
|
const file = await readFile(joinPaths(workspaceRoot, "package.json"), "utf8");
|
|
336
342
|
if (file) {
|
|
337
343
|
const packageJson = JSON.parse(file);
|
|
@@ -206,21 +206,27 @@ var _promises = require('fs/promises');
|
|
|
206
206
|
var _path = require('path');
|
|
207
207
|
|
|
208
208
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
209
|
-
|
|
209
|
+
|
|
210
|
+
var removeWindowsDriveLetter = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (osSpecificPath) => {
|
|
211
|
+
return osSpecificPath.replace(/^[A-Z]:/, "");
|
|
212
|
+
}, "removeWindowsDriveLetter");
|
|
210
213
|
var correctPaths = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (path) => {
|
|
211
214
|
if (!path) {
|
|
212
215
|
return "";
|
|
213
216
|
}
|
|
214
|
-
if (
|
|
215
|
-
path
|
|
217
|
+
if (path.includes("\\")) {
|
|
218
|
+
if (!path.toUpperCase().startsWith("C:")) {
|
|
219
|
+
path = `C:${path}`;
|
|
220
|
+
}
|
|
221
|
+
return path.replaceAll("/", "\\");
|
|
216
222
|
}
|
|
217
|
-
return path.
|
|
223
|
+
return removeWindowsDriveLetter(path).split("\\").join("/");
|
|
218
224
|
}, "correctPaths");
|
|
219
225
|
var joinPaths = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (...paths) => {
|
|
220
226
|
if (!paths || paths.length === 0) {
|
|
221
227
|
return "";
|
|
222
228
|
}
|
|
223
|
-
return correctPaths(
|
|
229
|
+
return correctPaths(_path.join.call(void 0, ...paths));
|
|
224
230
|
}, "joinPaths");
|
|
225
231
|
|
|
226
232
|
// ../config-tools/src/utilities/find-up.ts
|
package/dist/clean.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZQC6YPF5cjs = require('./chunk-ZQC6YPF5.cjs');
|
|
4
4
|
require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.clean =
|
|
7
|
+
exports.clean = _chunkZQC6YPF5cjs.clean;
|