@storm-software/tsdown 0.27.29 → 0.27.31
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-DE3S3NQO.js → chunk-5SNHQKE6.js} +1 -1
- package/dist/{chunk-RHDQ3DQN.cjs → chunk-AJHJILKV.cjs} +2 -1
- package/dist/{chunk-MZ443ZDH.js → chunk-GWJBIASO.js} +2 -1
- package/dist/{chunk-WEF5QCAP.cjs → chunk-XKX45OU2.cjs} +89 -89
- 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 +1 -1
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,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkXKX45OU2cjs = require('./chunk-XKX45OU2.cjs');
|
|
5
|
+
require('./chunk-AJHJILKV.cjs');
|
|
6
6
|
require('./chunk-DEWYQH4B.cjs');
|
|
7
7
|
require('./chunk-USNT2KNT.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.build =
|
|
11
|
+
exports.build = _chunkXKX45OU2cjs.build; exports.cleanOutputPath = _chunkXKX45OU2cjs.cleanOutputPath;
|
package/dist/build.js
CHANGED
|
@@ -46,6 +46,7 @@ Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, re
|
|
|
46
46
|
|
|
47
47
|
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_ACCOUNT_SLACK}) channel!
|
|
48
48
|
`;
|
|
49
|
+
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
49
50
|
|
|
50
51
|
// ../config/src/schema.ts
|
|
51
52
|
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
@@ -158,7 +159,7 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
|
158
159
|
build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
159
160
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
160
161
|
var errorConfigSchema = _zod2.default.object({
|
|
161
|
-
codesFile: _zod2.default.string().trim().default(
|
|
162
|
+
codesFile: _zod2.default.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
162
163
|
url: _zod2.default.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
163
164
|
}).describe("The workspace's error config used during the error process");
|
|
164
165
|
var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
@@ -46,6 +46,7 @@ Join us on [Discord](${STORM_DEFAULT_ACCOUNT_DISCORD}) to chat with the team, re
|
|
|
46
46
|
|
|
47
47
|
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_ACCOUNT_SLACK}) channel!
|
|
48
48
|
`;
|
|
49
|
+
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
49
50
|
|
|
50
51
|
// ../config/src/schema.ts
|
|
51
52
|
import z from "zod";
|
|
@@ -158,7 +159,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
158
159
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
159
160
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
160
161
|
var errorConfigSchema = z.object({
|
|
161
|
-
codesFile: z.string().trim().default(
|
|
162
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
162
163
|
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
163
164
|
}).describe("The workspace's error config used during the error process");
|
|
164
165
|
var stormWorkspaceConfigSchema = z.object({
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkAJHJILKVcjs = require('./chunk-AJHJILKV.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkDEWYQH4Bcjs = require('./chunk-DEWYQH4B.cjs');
|
|
@@ -79,8 +79,8 @@ var copyAssets = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (co
|
|
|
79
79
|
output: "src/"
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
-
|
|
83
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
82
|
+
_chunkAJHJILKVcjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
83
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkAJHJILKVcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
84
84
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
85
85
|
projectDir: projectRoot,
|
|
86
86
|
rootDir: config.workspaceRoot,
|
|
@@ -89,12 +89,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
89
89
|
});
|
|
90
90
|
await assetHandler.processAllAssetsOnce();
|
|
91
91
|
if (includeSrc === true) {
|
|
92
|
-
|
|
92
|
+
_chunkAJHJILKVcjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkAJHJILKVcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
93
93
|
const files = await _glob.glob.call(void 0, [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
_chunkAJHJILKVcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
95
|
+
_chunkAJHJILKVcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
96
|
+
_chunkAJHJILKVcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
97
|
+
_chunkAJHJILKVcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
98
98
|
]);
|
|
99
99
|
await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
100
100
|
|
|
@@ -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" && _optionalChain([dep, 'access', _ => _.node, 'access', _2 => _2.data, 'optionalAccess', _3 => _3.root]) !== projectRoot && _optionalChain([dep, 'access', _4 => _4.node, 'access', _5 => _5.data, 'optionalAccess', _6 => _6.root]) !== workspaceRoot)) {
|
|
118
118
|
const projectNode = project.node;
|
|
119
119
|
if (projectNode.data.root) {
|
|
120
|
-
const projectPackageJsonPath =
|
|
120
|
+
const projectPackageJsonPath = _chunkAJHJILKVcjs.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,8 +128,8 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
if (localPackages.length > 0) {
|
|
131
|
-
|
|
132
|
-
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
131
|
+
_chunkAJHJILKVcjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
132
|
+
const projectJsonFile = await _promises.readFile.call(void 0, _chunkAJHJILKVcjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
133
133
|
const projectJson = JSON.parse(projectJsonFile);
|
|
134
134
|
const projectName2 = projectJson.name;
|
|
135
135
|
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
@@ -138,7 +138,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
|
|
|
138
138
|
}
|
|
139
139
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _9 => _9.projects, 'optionalAccess', _10 => _10[projectName2], 'access', _11 => _11.implicitDependencies, 'optionalAccess', _12 => _12.reduce, 'call', _13 => _13((ret, dep) => {
|
|
140
140
|
if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
|
|
141
|
-
const depPackageJsonPath =
|
|
141
|
+
const depPackageJsonPath = _chunkAJHJILKVcjs.joinPaths.call(void 0, workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
|
|
142
142
|
if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
|
|
143
143
|
const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
|
|
144
144
|
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
@@ -162,13 +162,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
|
|
|
162
162
|
return ret;
|
|
163
163
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
164
164
|
} else {
|
|
165
|
-
|
|
165
|
+
_chunkAJHJILKVcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
166
166
|
}
|
|
167
167
|
return packageJson;
|
|
168
168
|
}, "addPackageDependencies");
|
|
169
169
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
170
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
171
|
-
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
170
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkAJHJILKVcjs.findWorkspaceRoot.call(void 0, );
|
|
171
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkAJHJILKVcjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
|
|
172
172
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
173
173
|
packageJson.type ??= "module";
|
|
174
174
|
packageJson.sideEffects ??= false;
|
|
@@ -177,7 +177,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.cal
|
|
|
177
177
|
if (distSrc.startsWith("/")) {
|
|
178
178
|
distSrc = distSrc.substring(1);
|
|
179
179
|
}
|
|
180
|
-
packageJson.source ??= `${
|
|
180
|
+
packageJson.source ??= `${_chunkAJHJILKVcjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
181
181
|
}
|
|
182
182
|
packageJson.files ??= [
|
|
183
183
|
"dist/**/*"
|
|
@@ -208,7 +208,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.cal
|
|
|
208
208
|
];
|
|
209
209
|
}
|
|
210
210
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
211
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
211
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkAJHJILKVcjs.joinPaths.call(void 0, "packages", projectName);
|
|
212
212
|
return packageJson;
|
|
213
213
|
}, "addWorkspacePackageJsonFields");
|
|
214
214
|
var addPackageJsonExport = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
|
|
@@ -236,7 +236,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
236
236
|
var _c12 = require('c12');
|
|
237
237
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
238
238
|
var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
239
|
-
const workspacePath = filePath ||
|
|
239
|
+
const workspacePath = filePath || _chunkAJHJILKVcjs.findWorkspaceRoot.call(void 0, filePath);
|
|
240
240
|
const configs = await Promise.all([
|
|
241
241
|
_c12.loadConfig.call(void 0, {
|
|
242
242
|
cwd: workspacePath,
|
|
@@ -245,7 +245,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
245
245
|
envName: _optionalChain([fileName, 'optionalAccess', _24 => _24.toUpperCase, 'call', _25 => _25()]),
|
|
246
246
|
jitiOptions: {
|
|
247
247
|
debug: false,
|
|
248
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
248
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkAJHJILKVcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
249
249
|
},
|
|
250
250
|
...options
|
|
251
251
|
}),
|
|
@@ -256,7 +256,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
256
256
|
envName: _optionalChain([fileName, 'optionalAccess', _26 => _26.toUpperCase, 'call', _27 => _27()]),
|
|
257
257
|
jitiOptions: {
|
|
258
258
|
debug: false,
|
|
259
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
259
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkAJHJILKVcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
260
260
|
},
|
|
261
261
|
configFile: fileName,
|
|
262
262
|
...options
|
|
@@ -265,12 +265,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
265
265
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
266
266
|
}, "getConfigFileByName");
|
|
267
267
|
var getConfigFile = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
268
|
-
const workspacePath = filePath ? filePath :
|
|
268
|
+
const workspacePath = filePath ? filePath : _chunkAJHJILKVcjs.findWorkspaceRoot.call(void 0, filePath);
|
|
269
269
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
270
270
|
let config = result.config;
|
|
271
271
|
const configFile = result.configFile;
|
|
272
272
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
273
|
-
|
|
273
|
+
_chunkAJHJILKVcjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
274
274
|
logLevel: "all"
|
|
275
275
|
});
|
|
276
276
|
}
|
|
@@ -279,7 +279,7 @@ var getConfigFile = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
279
279
|
for (const result2 of results) {
|
|
280
280
|
if (_optionalChain([result2, 'optionalAccess', _28 => _28.config]) && _optionalChain([result2, 'optionalAccess', _29 => _29.configFile]) && Object.keys(result2.config).length > 0) {
|
|
281
281
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
282
|
-
|
|
282
|
+
_chunkAJHJILKVcjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
283
283
|
logLevel: "all"
|
|
284
284
|
});
|
|
285
285
|
}
|
|
@@ -345,15 +345,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
|
|
|
345
345
|
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
346
346
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
347
347
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
348
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
349
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
348
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
349
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
350
350
|
directories: {
|
|
351
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
352
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
353
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
354
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
355
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
356
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
351
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
352
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
353
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
354
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
355
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
356
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkAJHJILKVcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
357
357
|
},
|
|
358
358
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
359
359
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -376,24 +376,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
|
|
|
376
376
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
377
377
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
378
378
|
},
|
|
379
|
-
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`])) ?
|
|
379
|
+
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`])) ? _chunkAJHJILKVcjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
380
380
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
381
381
|
};
|
|
382
|
-
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
382
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkAJHJILKVcjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
383
383
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
384
384
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
385
385
|
return ret;
|
|
386
386
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
387
|
-
if (config.docs ===
|
|
388
|
-
if (config.homepage ===
|
|
389
|
-
config.docs = `${
|
|
387
|
+
if (config.docs === _chunkAJHJILKVcjs.STORM_DEFAULT_DOCS) {
|
|
388
|
+
if (config.homepage === _chunkAJHJILKVcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
389
|
+
config.docs = `${_chunkAJHJILKVcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
390
390
|
} else {
|
|
391
391
|
config.docs = `${config.homepage}/docs`;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
if (config.licensing ===
|
|
395
|
-
if (config.homepage ===
|
|
396
|
-
config.licensing = `${
|
|
394
|
+
if (config.licensing === _chunkAJHJILKVcjs.STORM_DEFAULT_LICENSING) {
|
|
395
|
+
if (config.homepage === _chunkAJHJILKVcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
396
|
+
config.licensing = `${_chunkAJHJILKVcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
397
397
|
} else {
|
|
398
398
|
config.licensing = `${config.homepage}/docs`;
|
|
399
399
|
}
|
|
@@ -563,31 +563,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
|
|
|
563
563
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
564
564
|
}
|
|
565
565
|
if (config.configFile) {
|
|
566
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
566
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.configFile);
|
|
567
567
|
}
|
|
568
568
|
if (config.workspaceRoot) {
|
|
569
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
570
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
571
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
569
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
570
|
+
process.env.NX_WORKSPACE_ROOT = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
571
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
572
572
|
}
|
|
573
573
|
if (config.directories) {
|
|
574
574
|
if (!config.skipCache && config.directories.cache) {
|
|
575
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
575
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.directories.cache);
|
|
576
576
|
}
|
|
577
577
|
if (config.directories.data) {
|
|
578
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
578
|
+
process.env[`${prefix}DATA_DIR`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.directories.data);
|
|
579
579
|
}
|
|
580
580
|
if (config.directories.config) {
|
|
581
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
581
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.directories.config);
|
|
582
582
|
}
|
|
583
583
|
if (config.directories.temp) {
|
|
584
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
584
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.directories.temp);
|
|
585
585
|
}
|
|
586
586
|
if (config.directories.log) {
|
|
587
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
587
|
+
process.env[`${prefix}LOG_DIR`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.directories.log);
|
|
588
588
|
}
|
|
589
589
|
if (config.directories.build) {
|
|
590
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
590
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkAJHJILKVcjs.correctPaths.call(void 0, config.directories.build);
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
if (config.skipCache !== void 0) {
|
|
@@ -641,8 +641,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
|
|
|
641
641
|
if (config.logLevel) {
|
|
642
642
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
643
643
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
644
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
645
|
-
process.env.RUST_BACKTRACE =
|
|
644
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunkAJHJILKVcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkAJHJILKVcjs.LogLevel.DEBUG ? true : false);
|
|
645
|
+
process.env.RUST_BACKTRACE = _chunkAJHJILKVcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkAJHJILKVcjs.LogLevel.DEBUG ? "full" : "none";
|
|
646
646
|
}
|
|
647
647
|
if (config.skipConfigLogging !== void 0) {
|
|
648
648
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
@@ -760,17 +760,17 @@ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(v
|
|
|
760
760
|
if (!_optionalChain([_static_cache, 'optionalAccess', _52 => _52.data]) || !_optionalChain([_static_cache, 'optionalAccess', _53 => _53.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
761
761
|
let _workspaceRoot = workspaceRoot;
|
|
762
762
|
if (!_workspaceRoot) {
|
|
763
|
-
_workspaceRoot =
|
|
763
|
+
_workspaceRoot = _chunkAJHJILKVcjs.findWorkspaceRoot.call(void 0, );
|
|
764
764
|
}
|
|
765
765
|
const configEnv = getConfigEnv();
|
|
766
|
-
const defaultConfig = await
|
|
766
|
+
const defaultConfig = await _chunkAJHJILKVcjs.getDefaultConfig.call(void 0, _workspaceRoot);
|
|
767
767
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
768
768
|
if (!configFile && !skipLogs) {
|
|
769
|
-
|
|
769
|
+
_chunkAJHJILKVcjs.writeWarning.call(void 0, "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", {
|
|
770
770
|
logLevel: "all"
|
|
771
771
|
});
|
|
772
772
|
}
|
|
773
|
-
result = await
|
|
773
|
+
result = await _chunkAJHJILKVcjs.stormWorkspaceConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
|
|
774
774
|
result.workspaceRoot ??= _workspaceRoot;
|
|
775
775
|
} else {
|
|
776
776
|
result = _static_cache.data;
|
|
@@ -805,8 +805,8 @@ var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(voi
|
|
|
805
805
|
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
806
806
|
setConfigEnv(config);
|
|
807
807
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
808
|
-
|
|
809
|
-
${
|
|
808
|
+
_chunkAJHJILKVcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
|
|
809
|
+
${_chunkAJHJILKVcjs.formatLogMessage.call(void 0, config)}`, config);
|
|
810
810
|
}
|
|
811
811
|
return config;
|
|
812
812
|
}, "loadStormWorkspaceConfig");
|
|
@@ -819,7 +819,7 @@ var getConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (workspace
|
|
|
819
819
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
820
820
|
|
|
821
821
|
var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
822
|
-
const workspaceRoot = config.workspaceRoot ||
|
|
822
|
+
const workspaceRoot = config.workspaceRoot || _chunkAJHJILKVcjs.findWorkspaceRoot.call(void 0, );
|
|
823
823
|
const entryPoints = [];
|
|
824
824
|
if (entry) {
|
|
825
825
|
if (typeof entry === "string") {
|
|
@@ -831,7 +831,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
833
|
if (emitOnAll) {
|
|
834
|
-
entryPoints.push(
|
|
834
|
+
entryPoints.push(_chunkAJHJILKVcjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
835
835
|
}
|
|
836
836
|
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
837
837
|
const paths = [];
|
|
@@ -843,9 +843,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
843
843
|
]
|
|
844
844
|
});
|
|
845
845
|
paths.push(...files.reduce((ret, filePath) => {
|
|
846
|
-
const result =
|
|
846
|
+
const result = _chunkAJHJILKVcjs.correctPaths.call(void 0, _chunkAJHJILKVcjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkAJHJILKVcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkAJHJILKVcjs.correctPaths.call(void 0, projectRoot), ""));
|
|
847
847
|
if (result) {
|
|
848
|
-
|
|
848
|
+
_chunkAJHJILKVcjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkAJHJILKVcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
849
849
|
if (!paths.includes(result)) {
|
|
850
850
|
paths.push(result);
|
|
851
851
|
}
|
|
@@ -853,7 +853,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
853
853
|
return ret;
|
|
854
854
|
}, []));
|
|
855
855
|
} else {
|
|
856
|
-
|
|
856
|
+
_chunkAJHJILKVcjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
|
|
857
857
|
if (!paths.includes(entryPoint)) {
|
|
858
858
|
paths.push(entryPoint);
|
|
859
859
|
}
|
|
@@ -904,12 +904,12 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
904
904
|
throw new Error("Cannot find Nx workspace root");
|
|
905
905
|
}
|
|
906
906
|
const config = await getConfig(workspaceRoot.dir);
|
|
907
|
-
|
|
908
|
-
const stopwatch =
|
|
907
|
+
_chunkAJHJILKVcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
908
|
+
const stopwatch = _chunkAJHJILKVcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
909
909
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
910
910
|
exitOnError: true
|
|
911
911
|
});
|
|
912
|
-
const projectJsonPath =
|
|
912
|
+
const projectJsonPath = _chunkAJHJILKVcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
|
|
913
913
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
914
914
|
throw new Error("Cannot find project.json configuration");
|
|
915
915
|
}
|
|
@@ -923,7 +923,7 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
923
923
|
const options = _defu2.default.call(void 0, userOptions, _chunkDEWYQH4Bcjs.DEFAULT_BUILD_OPTIONS);
|
|
924
924
|
options.name ??= `${projectName}-${options.format}`;
|
|
925
925
|
options.target ??= DEFAULT_TARGET;
|
|
926
|
-
const packageJsonPath =
|
|
926
|
+
const packageJsonPath = _chunkAJHJILKVcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
927
927
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
928
928
|
throw new Error("Cannot find package.json configuration");
|
|
929
929
|
}
|
|
@@ -932,20 +932,20 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
932
932
|
...options,
|
|
933
933
|
config,
|
|
934
934
|
...userOptions,
|
|
935
|
-
tsconfig:
|
|
935
|
+
tsconfig: _chunkAJHJILKVcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
936
936
|
format: options.format || "cjs",
|
|
937
937
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
938
938
|
"./src/index.ts"
|
|
939
939
|
], userOptions.emitOnAll),
|
|
940
|
-
outdir: userOptions.outputPath ||
|
|
940
|
+
outdir: userOptions.outputPath || _chunkAJHJILKVcjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
941
941
|
plugins: [],
|
|
942
942
|
name: userOptions.name || projectName,
|
|
943
943
|
projectConfigurations,
|
|
944
944
|
projectName,
|
|
945
945
|
projectGraph,
|
|
946
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
946
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkAJHJILKVcjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
947
947
|
minify: userOptions.minify || !userOptions.debug,
|
|
948
|
-
verbose: userOptions.verbose ||
|
|
948
|
+
verbose: userOptions.verbose || _chunkAJHJILKVcjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
949
949
|
includeSrc: userOptions.includeSrc === true,
|
|
950
950
|
metafile: userOptions.metafile !== false,
|
|
951
951
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -979,14 +979,14 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
979
979
|
return result;
|
|
980
980
|
}, "resolveOptions");
|
|
981
981
|
async function generatePackageJson(options) {
|
|
982
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
983
|
-
|
|
984
|
-
const stopwatch =
|
|
985
|
-
const packageJsonPath =
|
|
982
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkAJHJILKVcjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
983
|
+
_chunkAJHJILKVcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
984
|
+
const stopwatch = _chunkAJHJILKVcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
985
|
+
const packageJsonPath = _chunkAJHJILKVcjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
986
986
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
987
987
|
throw new Error("Cannot find package.json configuration");
|
|
988
988
|
}
|
|
989
|
-
const packageJsonFile = await _promises2.default.readFile(
|
|
989
|
+
const packageJsonFile = await _promises2.default.readFile(_chunkAJHJILKVcjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
|
|
990
990
|
if (!packageJsonFile) {
|
|
991
991
|
throw new Error("Cannot find package.json configuration file");
|
|
992
992
|
}
|
|
@@ -1025,15 +1025,15 @@ async function generatePackageJson(options) {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
return ret;
|
|
1027
1027
|
}, packageJson.exports);
|
|
1028
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
1028
|
+
await _devkit.writeJsonFile.call(void 0, _chunkAJHJILKVcjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
|
|
1029
1029
|
stopwatch();
|
|
1030
1030
|
}
|
|
1031
1031
|
return options;
|
|
1032
1032
|
}
|
|
1033
1033
|
_chunkUSNT2KNTcjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
1034
1034
|
async function executeTSDown(options) {
|
|
1035
|
-
|
|
1036
|
-
const stopwatch =
|
|
1035
|
+
_chunkAJHJILKVcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
|
|
1036
|
+
const stopwatch = _chunkAJHJILKVcjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
1037
1037
|
await _tsdown.build.call(void 0, {
|
|
1038
1038
|
...options,
|
|
1039
1039
|
entry: options.entryPoints,
|
|
@@ -1045,30 +1045,30 @@ async function executeTSDown(options) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
_chunkUSNT2KNTcjs.__name.call(void 0, executeTSDown, "executeTSDown");
|
|
1047
1047
|
async function copyBuildAssets(options) {
|
|
1048
|
-
|
|
1049
|
-
const stopwatch =
|
|
1048
|
+
_chunkAJHJILKVcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
|
|
1049
|
+
const stopwatch = _chunkAJHJILKVcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
1050
1050
|
await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
|
|
1051
1051
|
stopwatch();
|
|
1052
1052
|
return options;
|
|
1053
1053
|
}
|
|
1054
1054
|
_chunkUSNT2KNTcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
1055
1055
|
async function reportResults(options) {
|
|
1056
|
-
|
|
1056
|
+
_chunkAJHJILKVcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
|
|
1057
1057
|
}
|
|
1058
1058
|
_chunkUSNT2KNTcjs.__name.call(void 0, reportResults, "reportResults");
|
|
1059
1059
|
async function cleanOutputPath(options) {
|
|
1060
1060
|
if (options.clean !== false && options.outdir) {
|
|
1061
|
-
|
|
1062
|
-
const stopwatch =
|
|
1063
|
-
await
|
|
1061
|
+
_chunkAJHJILKVcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
|
|
1062
|
+
const stopwatch = _chunkAJHJILKVcjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
1063
|
+
await _chunkAJHJILKVcjs.cleanDirectories.call(void 0, options.name, options.outdir, options.config);
|
|
1064
1064
|
stopwatch();
|
|
1065
1065
|
}
|
|
1066
1066
|
return options;
|
|
1067
1067
|
}
|
|
1068
1068
|
_chunkUSNT2KNTcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
1069
1069
|
async function build(options) {
|
|
1070
|
-
|
|
1071
|
-
const stopwatch =
|
|
1070
|
+
_chunkAJHJILKVcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
1071
|
+
const stopwatch = _chunkAJHJILKVcjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
1072
1072
|
try {
|
|
1073
1073
|
const opts = Array.isArray(options) ? options : [
|
|
1074
1074
|
options
|
|
@@ -1086,11 +1086,11 @@ async function build(options) {
|
|
|
1086
1086
|
await reportResults(opt);
|
|
1087
1087
|
}));
|
|
1088
1088
|
} else {
|
|
1089
|
-
|
|
1089
|
+
_chunkAJHJILKVcjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
|
|
1090
1090
|
}
|
|
1091
|
-
|
|
1091
|
+
_chunkAJHJILKVcjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
1092
1092
|
} catch (error) {
|
|
1093
|
-
|
|
1093
|
+
_chunkAJHJILKVcjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
1094
1094
|
throw error;
|
|
1095
1095
|
} finally {
|
|
1096
1096
|
stopwatch();
|
package/dist/clean.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkAJHJILKVcjs = require('./chunk-AJHJILKV.cjs');
|
|
5
5
|
require('./chunk-USNT2KNT.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.clean =
|
|
9
|
+
exports.clean = _chunkAJHJILKVcjs.clean; exports.cleanDirectories = _chunkAJHJILKVcjs.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 _chunkXKX45OU2cjs = require('./chunk-XKX45OU2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkAJHJILKVcjs = require('./chunk-AJHJILKV.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkDEWYQH4Bcjs = require('./chunk-DEWYQH4B.cjs');
|
|
@@ -17,4 +17,4 @@ require('./chunk-SFZRYJZ2.cjs');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
exports.DEFAULT_BUILD_OPTIONS = _chunkDEWYQH4Bcjs.DEFAULT_BUILD_OPTIONS; exports.build =
|
|
20
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunkDEWYQH4Bcjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunkXKX45OU2cjs.build; exports.clean = _chunkAJHJILKVcjs.clean; exports.cleanDirectories = _chunkAJHJILKVcjs.cleanDirectories; exports.cleanOutputPath = _chunkXKX45OU2cjs.cleanOutputPath;
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build,
|
|
3
3
|
cleanOutputPath
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5SNHQKE6.js";
|
|
5
5
|
import {
|
|
6
6
|
clean,
|
|
7
7
|
cleanDirectories
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GWJBIASO.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_BUILD_OPTIONS
|
|
11
11
|
} from "./chunk-PR5HLZXS.js";
|