@storm-software/tsdown 0.27.10 → 0.27.11
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/dist/build.cjs +3 -3
- package/dist/build.js +2 -2
- package/dist/{chunk-FIXTOGFM.cjs → chunk-45IJYPPM.cjs} +3 -15
- package/dist/{chunk-EHUEDFPO.js → chunk-CY7ZFUW7.js} +3 -15
- package/dist/{chunk-FCT2QUQW.js → chunk-YEFYKJEC.js} +1 -1
- package/dist/{chunk-VUZ6WLW7.cjs → chunk-YR2YBZOB.cjs} +88 -88
- 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/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 _chunkYR2YBZOBcjs = require('./chunk-YR2YBZOB.cjs');
|
|
5
|
+
require('./chunk-45IJYPPM.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 = _chunkYR2YBZOBcjs.build; exports.cleanOutputPath = _chunkYR2YBZOBcjs.cleanOutputPath;
|
package/dist/build.js
CHANGED
|
@@ -33,23 +33,11 @@ var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
|
33
33
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
34
34
|
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/logo-banner.png";
|
|
35
35
|
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
36
|
-
Storm Software is an open source software development organization and
|
|
37
|
-
of Cyclone UI, Storm Stack and Acidic.
|
|
36
|
+
[Storm Software](https://stormsoftware.com) is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
one where anyone can create software without years of prior development
|
|
41
|
-
experience serving as a barrier to entry. We hope to achieve this via LLMs,
|
|
42
|
-
Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
38
|
+
Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
43
39
|
|
|
44
|
-
|
|
45
|
-
receive release notifications, ask questions, and get involved.
|
|
46
|
-
|
|
47
|
-
If this sounds interesting, and you would like to help us in creating the next
|
|
48
|
-
generation of development tools, please reach out on our [website](https://stormsoftware.com/contact) or join our
|
|
49
|
-
[Slack](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA) channel!
|
|
50
|
-
|
|
51
|
-
{ width="200" style="display: block; margin: 0 auto" }
|
|
52
|
-
{ height="90" style="display: block; margin: 0 auto" }
|
|
40
|
+
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](https://stormsoftware.com/contact) or join our [Slack](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA) channel!
|
|
53
41
|
`;
|
|
54
42
|
|
|
55
43
|
// ../config/src/schema.ts
|
|
@@ -33,23 +33,11 @@ var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
|
33
33
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
34
34
|
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/logo-banner.png";
|
|
35
35
|
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
36
|
-
Storm Software is an open source software development organization and
|
|
37
|
-
of Cyclone UI, Storm Stack and Acidic.
|
|
36
|
+
[Storm Software](https://stormsoftware.com) is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
one where anyone can create software without years of prior development
|
|
41
|
-
experience serving as a barrier to entry. We hope to achieve this via LLMs,
|
|
42
|
-
Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
38
|
+
Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
43
39
|
|
|
44
|
-
|
|
45
|
-
receive release notifications, ask questions, and get involved.
|
|
46
|
-
|
|
47
|
-
If this sounds interesting, and you would like to help us in creating the next
|
|
48
|
-
generation of development tools, please reach out on our [website](https://stormsoftware.com/contact) or join our
|
|
49
|
-
[Slack](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA) channel!
|
|
50
|
-
|
|
51
|
-
{ width="200" style="display: block; margin: 0 auto" }
|
|
52
|
-
{ height="90" style="display: block; margin: 0 auto" }
|
|
40
|
+
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](https://stormsoftware.com/contact) or join our [Slack](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA) channel!
|
|
53
41
|
`;
|
|
54
42
|
|
|
55
43
|
// ../config/src/schema.ts
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk45IJYPPMcjs = require('./chunk-45IJYPPM.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
|
+
_chunk45IJYPPMcjs.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} -> ${_chunk45IJYPPMcjs.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
|
+
_chunk45IJYPPMcjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunk45IJYPPMcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
93
93
|
const files = await _glob.glob.call(void 0, [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
_chunk45IJYPPMcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
95
|
+
_chunk45IJYPPMcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
96
|
+
_chunk45IJYPPMcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
97
|
+
_chunk45IJYPPMcjs.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 = _chunk45IJYPPMcjs.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
|
+
_chunk45IJYPPMcjs.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, _chunk45IJYPPMcjs.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 = _chunk45IJYPPMcjs.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
|
+
_chunk45IJYPPMcjs.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 : _chunk45IJYPPMcjs.findWorkspaceRoot.call(void 0, );
|
|
171
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunk45IJYPPMcjs.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 ??= `${_chunk45IJYPPMcjs.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 : _chunk45IJYPPMcjs.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 || _chunk45IJYPPMcjs.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', _20 => _20.toUpperCase, 'call', _21 => _21()]),
|
|
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 : _chunk45IJYPPMcjs.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', _22 => _22.toUpperCase, 'call', _23 => _23()]),
|
|
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 : _chunk45IJYPPMcjs.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 : _chunk45IJYPPMcjs.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
|
+
_chunk45IJYPPMcjs.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', _24 => _24.config]) && _optionalChain([result2, 'optionalAccess', _25 => _25.configFile]) && Object.keys(result2.config).length > 0) {
|
|
281
281
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
282
|
-
|
|
282
|
+
_chunk45IJYPPMcjs.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
|
}
|
|
@@ -332,15 +332,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
|
|
|
332
332
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
333
333
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
334
334
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
335
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
336
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
335
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunk45IJYPPMcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
336
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunk45IJYPPMcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
337
337
|
directories: {
|
|
338
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
339
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
340
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
341
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
342
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
343
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
338
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunk45IJYPPMcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
339
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunk45IJYPPMcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
340
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunk45IJYPPMcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
341
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunk45IJYPPMcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
342
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunk45IJYPPMcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
343
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunk45IJYPPMcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
344
344
|
},
|
|
345
345
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
346
346
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -363,24 +363,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
|
|
|
363
363
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
364
364
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
365
365
|
},
|
|
366
|
-
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`])) ?
|
|
366
|
+
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`])) ? _chunk45IJYPPMcjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
367
367
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
368
368
|
};
|
|
369
|
-
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
369
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunk45IJYPPMcjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
370
370
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
371
371
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
372
372
|
return ret;
|
|
373
373
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
374
|
-
if (config.docs ===
|
|
375
|
-
if (config.homepage ===
|
|
376
|
-
config.docs = `${
|
|
374
|
+
if (config.docs === _chunk45IJYPPMcjs.STORM_DEFAULT_DOCS) {
|
|
375
|
+
if (config.homepage === _chunk45IJYPPMcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
376
|
+
config.docs = `${_chunk45IJYPPMcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
377
377
|
} else {
|
|
378
378
|
config.docs = `${config.homepage}/docs`;
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
if (config.licensing ===
|
|
382
|
-
if (config.homepage ===
|
|
383
|
-
config.licensing = `${
|
|
381
|
+
if (config.licensing === _chunk45IJYPPMcjs.STORM_DEFAULT_LICENSING) {
|
|
382
|
+
if (config.homepage === _chunk45IJYPPMcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
383
|
+
config.licensing = `${_chunk45IJYPPMcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
384
384
|
} else {
|
|
385
385
|
config.licensing = `${config.homepage}/docs`;
|
|
386
386
|
}
|
|
@@ -523,31 +523,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
|
|
|
523
523
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
524
524
|
}
|
|
525
525
|
if (config.configFile) {
|
|
526
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
526
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunk45IJYPPMcjs.correctPaths.call(void 0, config.configFile);
|
|
527
527
|
}
|
|
528
528
|
if (config.workspaceRoot) {
|
|
529
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
530
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
531
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
529
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunk45IJYPPMcjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
530
|
+
process.env.NX_WORKSPACE_ROOT = _chunk45IJYPPMcjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
531
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunk45IJYPPMcjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
532
532
|
}
|
|
533
533
|
if (config.directories) {
|
|
534
534
|
if (!config.skipCache && config.directories.cache) {
|
|
535
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
535
|
+
process.env[`${prefix}CACHE_DIR`] = _chunk45IJYPPMcjs.correctPaths.call(void 0, config.directories.cache);
|
|
536
536
|
}
|
|
537
537
|
if (config.directories.data) {
|
|
538
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
538
|
+
process.env[`${prefix}DATA_DIR`] = _chunk45IJYPPMcjs.correctPaths.call(void 0, config.directories.data);
|
|
539
539
|
}
|
|
540
540
|
if (config.directories.config) {
|
|
541
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
541
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunk45IJYPPMcjs.correctPaths.call(void 0, config.directories.config);
|
|
542
542
|
}
|
|
543
543
|
if (config.directories.temp) {
|
|
544
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
544
|
+
process.env[`${prefix}TEMP_DIR`] = _chunk45IJYPPMcjs.correctPaths.call(void 0, config.directories.temp);
|
|
545
545
|
}
|
|
546
546
|
if (config.directories.log) {
|
|
547
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
547
|
+
process.env[`${prefix}LOG_DIR`] = _chunk45IJYPPMcjs.correctPaths.call(void 0, config.directories.log);
|
|
548
548
|
}
|
|
549
549
|
if (config.directories.build) {
|
|
550
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
550
|
+
process.env[`${prefix}BUILD_DIR`] = _chunk45IJYPPMcjs.correctPaths.call(void 0, config.directories.build);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
if (config.skipCache !== void 0) {
|
|
@@ -601,8 +601,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
|
|
|
601
601
|
if (config.logLevel) {
|
|
602
602
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
603
603
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
604
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
605
|
-
process.env.RUST_BACKTRACE =
|
|
604
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunk45IJYPPMcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk45IJYPPMcjs.LogLevel.DEBUG ? true : false);
|
|
605
|
+
process.env.RUST_BACKTRACE = _chunk45IJYPPMcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk45IJYPPMcjs.LogLevel.DEBUG ? "full" : "none";
|
|
606
606
|
}
|
|
607
607
|
if (config.skipConfigLogging !== void 0) {
|
|
608
608
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
@@ -720,17 +720,17 @@ var createStormConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, as
|
|
|
720
720
|
if (!_optionalChain([_static_cache, 'optionalAccess', _48 => _48.data]) || !_optionalChain([_static_cache, 'optionalAccess', _49 => _49.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
721
721
|
let _workspaceRoot = workspaceRoot;
|
|
722
722
|
if (!_workspaceRoot) {
|
|
723
|
-
_workspaceRoot =
|
|
723
|
+
_workspaceRoot = _chunk45IJYPPMcjs.findWorkspaceRoot.call(void 0, );
|
|
724
724
|
}
|
|
725
725
|
const configEnv = getConfigEnv();
|
|
726
|
-
const defaultConfig = await
|
|
726
|
+
const defaultConfig = await _chunk45IJYPPMcjs.getDefaultConfig.call(void 0, _workspaceRoot);
|
|
727
727
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
728
728
|
if (!configFile && !skipLogs) {
|
|
729
|
-
|
|
729
|
+
_chunk45IJYPPMcjs.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", {
|
|
730
730
|
logLevel: "all"
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
result = await
|
|
733
|
+
result = await _chunk45IJYPPMcjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
|
|
734
734
|
result.workspaceRoot ??= _workspaceRoot;
|
|
735
735
|
} else {
|
|
736
736
|
result = _static_cache.data;
|
|
@@ -765,8 +765,8 @@ var loadStormConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, asyn
|
|
|
765
765
|
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
766
766
|
setConfigEnv(config);
|
|
767
767
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
768
|
-
|
|
769
|
-
${
|
|
768
|
+
_chunk45IJYPPMcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
|
|
769
|
+
${_chunk45IJYPPMcjs.formatLogMessage.call(void 0, config)}`, config);
|
|
770
770
|
}
|
|
771
771
|
return config;
|
|
772
772
|
}, "loadStormConfig");
|
|
@@ -779,7 +779,7 @@ var getConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (workspace
|
|
|
779
779
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
780
780
|
|
|
781
781
|
var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
782
|
-
const workspaceRoot = config.workspaceRoot ||
|
|
782
|
+
const workspaceRoot = config.workspaceRoot || _chunk45IJYPPMcjs.findWorkspaceRoot.call(void 0, );
|
|
783
783
|
const entryPoints = [];
|
|
784
784
|
if (entry) {
|
|
785
785
|
if (typeof entry === "string") {
|
|
@@ -791,7 +791,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
793
|
if (emitOnAll) {
|
|
794
|
-
entryPoints.push(
|
|
794
|
+
entryPoints.push(_chunk45IJYPPMcjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
795
795
|
}
|
|
796
796
|
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
797
797
|
const paths = [];
|
|
@@ -803,9 +803,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
803
803
|
]
|
|
804
804
|
});
|
|
805
805
|
paths.push(...files.reduce((ret, filePath) => {
|
|
806
|
-
const result =
|
|
806
|
+
const result = _chunk45IJYPPMcjs.correctPaths.call(void 0, _chunk45IJYPPMcjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunk45IJYPPMcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunk45IJYPPMcjs.correctPaths.call(void 0, projectRoot), ""));
|
|
807
807
|
if (result) {
|
|
808
|
-
|
|
808
|
+
_chunk45IJYPPMcjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunk45IJYPPMcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
809
809
|
if (!paths.includes(result)) {
|
|
810
810
|
paths.push(result);
|
|
811
811
|
}
|
|
@@ -861,12 +861,12 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
861
861
|
throw new Error("Cannot find Nx workspace root");
|
|
862
862
|
}
|
|
863
863
|
const config = await getConfig(workspaceRoot.dir);
|
|
864
|
-
|
|
865
|
-
const stopwatch =
|
|
864
|
+
_chunk45IJYPPMcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
865
|
+
const stopwatch = _chunk45IJYPPMcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
866
866
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
867
867
|
exitOnError: true
|
|
868
868
|
});
|
|
869
|
-
const projectJsonPath =
|
|
869
|
+
const projectJsonPath = _chunk45IJYPPMcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
|
|
870
870
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
871
871
|
throw new Error("Cannot find project.json configuration");
|
|
872
872
|
}
|
|
@@ -880,7 +880,7 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
880
880
|
const options = _defu2.default.call(void 0, userOptions, _chunkDEWYQH4Bcjs.DEFAULT_BUILD_OPTIONS);
|
|
881
881
|
options.name ??= `${projectName}-${options.format}`;
|
|
882
882
|
options.target ??= DEFAULT_TARGET;
|
|
883
|
-
const packageJsonPath =
|
|
883
|
+
const packageJsonPath = _chunk45IJYPPMcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
884
884
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
885
885
|
throw new Error("Cannot find package.json configuration");
|
|
886
886
|
}
|
|
@@ -889,20 +889,20 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
889
889
|
...options,
|
|
890
890
|
config,
|
|
891
891
|
...userOptions,
|
|
892
|
-
tsconfig:
|
|
892
|
+
tsconfig: _chunk45IJYPPMcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
893
893
|
format: options.format || "cjs",
|
|
894
894
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
895
895
|
"./src/index.ts"
|
|
896
896
|
], userOptions.emitOnAll),
|
|
897
|
-
outdir: userOptions.outputPath ||
|
|
897
|
+
outdir: userOptions.outputPath || _chunk45IJYPPMcjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
898
898
|
plugins: [],
|
|
899
899
|
name: userOptions.name || projectName,
|
|
900
900
|
projectConfigurations,
|
|
901
901
|
projectName,
|
|
902
902
|
projectGraph,
|
|
903
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
903
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunk45IJYPPMcjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
904
904
|
minify: userOptions.minify || !userOptions.debug,
|
|
905
|
-
verbose: userOptions.verbose ||
|
|
905
|
+
verbose: userOptions.verbose || _chunk45IJYPPMcjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
906
906
|
includeSrc: userOptions.includeSrc === true,
|
|
907
907
|
metafile: userOptions.metafile !== false,
|
|
908
908
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -936,14 +936,14 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
936
936
|
return result;
|
|
937
937
|
}, "resolveOptions");
|
|
938
938
|
async function generatePackageJson(options) {
|
|
939
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
940
|
-
|
|
941
|
-
const stopwatch =
|
|
942
|
-
const packageJsonPath =
|
|
939
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk45IJYPPMcjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
940
|
+
_chunk45IJYPPMcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
941
|
+
const stopwatch = _chunk45IJYPPMcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
942
|
+
const packageJsonPath = _chunk45IJYPPMcjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
943
943
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
944
944
|
throw new Error("Cannot find package.json configuration");
|
|
945
945
|
}
|
|
946
|
-
const packageJsonFile = await _promises2.default.readFile(
|
|
946
|
+
const packageJsonFile = await _promises2.default.readFile(_chunk45IJYPPMcjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
|
|
947
947
|
if (!packageJsonFile) {
|
|
948
948
|
throw new Error("Cannot find package.json configuration file");
|
|
949
949
|
}
|
|
@@ -982,15 +982,15 @@ async function generatePackageJson(options) {
|
|
|
982
982
|
}
|
|
983
983
|
return ret;
|
|
984
984
|
}, packageJson.exports);
|
|
985
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
985
|
+
await _devkit.writeJsonFile.call(void 0, _chunk45IJYPPMcjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
|
|
986
986
|
stopwatch();
|
|
987
987
|
}
|
|
988
988
|
return options;
|
|
989
989
|
}
|
|
990
990
|
_chunkUSNT2KNTcjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
991
991
|
async function executeTSDown(options) {
|
|
992
|
-
|
|
993
|
-
const stopwatch =
|
|
992
|
+
_chunk45IJYPPMcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
|
|
993
|
+
const stopwatch = _chunk45IJYPPMcjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
994
994
|
await _tsdown.build.call(void 0, {
|
|
995
995
|
...options,
|
|
996
996
|
entry: options.entryPoints,
|
|
@@ -1002,30 +1002,30 @@ async function executeTSDown(options) {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
_chunkUSNT2KNTcjs.__name.call(void 0, executeTSDown, "executeTSDown");
|
|
1004
1004
|
async function copyBuildAssets(options) {
|
|
1005
|
-
|
|
1006
|
-
const stopwatch =
|
|
1005
|
+
_chunk45IJYPPMcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
|
|
1006
|
+
const stopwatch = _chunk45IJYPPMcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
1007
1007
|
await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
|
|
1008
1008
|
stopwatch();
|
|
1009
1009
|
return options;
|
|
1010
1010
|
}
|
|
1011
1011
|
_chunkUSNT2KNTcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
1012
1012
|
async function reportResults(options) {
|
|
1013
|
-
|
|
1013
|
+
_chunk45IJYPPMcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
|
|
1014
1014
|
}
|
|
1015
1015
|
_chunkUSNT2KNTcjs.__name.call(void 0, reportResults, "reportResults");
|
|
1016
1016
|
async function cleanOutputPath(options) {
|
|
1017
1017
|
if (options.clean !== false && options.outdir) {
|
|
1018
|
-
|
|
1019
|
-
const stopwatch =
|
|
1020
|
-
await
|
|
1018
|
+
_chunk45IJYPPMcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
|
|
1019
|
+
const stopwatch = _chunk45IJYPPMcjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
1020
|
+
await _chunk45IJYPPMcjs.cleanDirectories.call(void 0, options.name, options.outdir, options.config);
|
|
1021
1021
|
stopwatch();
|
|
1022
1022
|
}
|
|
1023
1023
|
return options;
|
|
1024
1024
|
}
|
|
1025
1025
|
_chunkUSNT2KNTcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
1026
1026
|
async function build(options) {
|
|
1027
|
-
|
|
1028
|
-
const stopwatch =
|
|
1027
|
+
_chunk45IJYPPMcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
1028
|
+
const stopwatch = _chunk45IJYPPMcjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
1029
1029
|
try {
|
|
1030
1030
|
const opts = Array.isArray(options) ? options : [
|
|
1031
1031
|
options
|
|
@@ -1043,11 +1043,11 @@ async function build(options) {
|
|
|
1043
1043
|
await reportResults(opt);
|
|
1044
1044
|
}));
|
|
1045
1045
|
} else {
|
|
1046
|
-
|
|
1046
|
+
_chunk45IJYPPMcjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
|
|
1047
1047
|
}
|
|
1048
|
-
|
|
1048
|
+
_chunk45IJYPPMcjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
1049
1049
|
} catch (error) {
|
|
1050
|
-
|
|
1050
|
+
_chunk45IJYPPMcjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
1051
1051
|
throw error;
|
|
1052
1052
|
} finally {
|
|
1053
1053
|
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 _chunk45IJYPPMcjs = require('./chunk-45IJYPPM.cjs');
|
|
5
5
|
require('./chunk-USNT2KNT.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.clean =
|
|
9
|
+
exports.clean = _chunk45IJYPPMcjs.clean; exports.cleanDirectories = _chunk45IJYPPMcjs.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 _chunkYR2YBZOBcjs = require('./chunk-YR2YBZOB.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk45IJYPPMcjs = require('./chunk-45IJYPPM.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 = _chunkYR2YBZOBcjs.build; exports.clean = _chunk45IJYPPMcjs.clean; exports.cleanDirectories = _chunk45IJYPPMcjs.cleanDirectories; exports.cleanOutputPath = _chunkYR2YBZOBcjs.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-YEFYKJEC.js";
|
|
5
5
|
import {
|
|
6
6
|
clean,
|
|
7
7
|
cleanDirectories
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CY7ZFUW7.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_BUILD_OPTIONS
|
|
11
11
|
} from "./chunk-PR5HLZXS.js";
|