@storm-software/tsdown 0.27.8 → 0.27.10
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-S6CNCNLB.js → chunk-EHUEDFPO.js} +26 -0
- package/dist/{chunk-JP5IW3NP.js → chunk-FCT2QUQW.js} +15 -3
- package/dist/{chunk-3OXZDD56.cjs → chunk-FIXTOGFM.cjs} +26 -0
- package/dist/{chunk-6LMFONIA.cjs → chunk-VUZ6WLW7.cjs} +116 -104
- 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 +6 -6
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 _chunkVUZ6WLW7cjs = require('./chunk-VUZ6WLW7.cjs');
|
|
5
|
+
require('./chunk-FIXTOGFM.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 = _chunkVUZ6WLW7cjs.build; exports.cleanOutputPath = _chunkVUZ6WLW7cjs.cleanOutputPath;
|
package/dist/build.js
CHANGED
|
@@ -31,6 +31,26 @@ var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
|
31
31
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
32
32
|
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
33
33
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
34
|
+
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/logo-banner.png";
|
|
35
|
+
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
36
|
+
Storm Software is an open source software development organization and creator
|
|
37
|
+
of Cyclone UI, Storm Stack and Acidic.
|
|
38
|
+
|
|
39
|
+
Our mission is to make software development more accessible. Our ideal future is
|
|
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.
|
|
43
|
+
|
|
44
|
+
Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team,
|
|
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" }
|
|
53
|
+
`;
|
|
34
54
|
|
|
35
55
|
// ../config/src/schema.ts
|
|
36
56
|
import z from "zod";
|
|
@@ -121,6 +141,11 @@ var WorkspaceBotConfigSchema = z.object({
|
|
|
121
141
|
name: z.string().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
|
|
122
142
|
email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
123
143
|
}).describe("The workspace's bot user's config used to automated various operations tasks");
|
|
144
|
+
var WorkspaceReleaseConfigSchema = z.object({
|
|
145
|
+
banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("A URL to a banner image used to display the workspace's release"),
|
|
146
|
+
header: z.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
|
|
147
|
+
footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
|
|
148
|
+
}).describe("The workspace's release config used during the release process");
|
|
124
149
|
var WorkspaceDirectoryConfigSchema = z.object({
|
|
125
150
|
cache: z.string().trim().optional().describe("The directory used to store the environment's cached file data"),
|
|
126
151
|
data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
@@ -144,6 +169,7 @@ var StormConfigSchema = z.object({
|
|
|
144
169
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
145
170
|
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
146
171
|
bot: WorkspaceBotConfigSchema,
|
|
172
|
+
release: WorkspaceReleaseConfigSchema,
|
|
147
173
|
mode: z.enum([
|
|
148
174
|
"development",
|
|
149
175
|
"staging",
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
writeSuccess,
|
|
21
21
|
writeTrace,
|
|
22
22
|
writeWarning
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-EHUEDFPO.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_BUILD_OPTIONS
|
|
26
26
|
} from "./chunk-PR5HLZXS.js";
|
|
@@ -114,7 +114,7 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projec
|
|
|
114
114
|
const projectGraph = readCachedProjectGraph();
|
|
115
115
|
const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
116
116
|
const localPackages = [];
|
|
117
|
-
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data
|
|
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
120
|
const projectPackageJsonPath = joinPaths(workspaceRoot, projectNode.data.root, "package.json");
|
|
@@ -319,6 +319,11 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
319
319
|
name: process.env[`${prefix}BOT_NAME`] || void 0,
|
|
320
320
|
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
321
321
|
},
|
|
322
|
+
release: {
|
|
323
|
+
banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
|
|
324
|
+
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
325
|
+
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
326
|
+
},
|
|
322
327
|
organization: process.env[`${prefix}ORGANIZATION`] || void 0,
|
|
323
328
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
324
329
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
@@ -483,6 +488,11 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
483
488
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
484
489
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
485
490
|
}
|
|
491
|
+
if (config.release) {
|
|
492
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
493
|
+
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
494
|
+
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
495
|
+
}
|
|
486
496
|
if (config.organization) {
|
|
487
497
|
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
488
498
|
}
|
|
@@ -599,7 +609,9 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
599
609
|
}
|
|
600
610
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
601
611
|
for (const key of Object.keys(config.extensions ?? {})) {
|
|
602
|
-
config.extensions[key] && Object.keys(config.extensions[key])
|
|
612
|
+
if (config.extensions[key] && Object.keys(config.extensions[key])) {
|
|
613
|
+
setExtensionEnv(key, config.extensions[key]);
|
|
614
|
+
}
|
|
603
615
|
}
|
|
604
616
|
}, "setConfigEnv");
|
|
605
617
|
var setThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
@@ -31,6 +31,26 @@ var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
|
31
31
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
32
32
|
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
33
33
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
34
|
+
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/logo-banner.png";
|
|
35
|
+
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
36
|
+
Storm Software is an open source software development organization and creator
|
|
37
|
+
of Cyclone UI, Storm Stack and Acidic.
|
|
38
|
+
|
|
39
|
+
Our mission is to make software development more accessible. Our ideal future is
|
|
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.
|
|
43
|
+
|
|
44
|
+
Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team,
|
|
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" }
|
|
53
|
+
`;
|
|
34
54
|
|
|
35
55
|
// ../config/src/schema.ts
|
|
36
56
|
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
@@ -121,6 +141,11 @@ var WorkspaceBotConfigSchema = _zod2.default.object({
|
|
|
121
141
|
name: _zod2.default.string().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
|
|
122
142
|
email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
123
143
|
}).describe("The workspace's bot user's config used to automated various operations tasks");
|
|
144
|
+
var WorkspaceReleaseConfigSchema = _zod2.default.object({
|
|
145
|
+
banner: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("A URL to a banner image used to display the workspace's release"),
|
|
146
|
+
header: _zod2.default.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
|
|
147
|
+
footer: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
|
|
148
|
+
}).describe("The workspace's release config used during the release process");
|
|
124
149
|
var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
125
150
|
cache: _zod2.default.string().trim().optional().describe("The directory used to store the environment's cached file data"),
|
|
126
151
|
data: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
@@ -144,6 +169,7 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
144
169
|
preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
145
170
|
owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
146
171
|
bot: WorkspaceBotConfigSchema,
|
|
172
|
+
release: WorkspaceReleaseConfigSchema,
|
|
147
173
|
mode: _zod2.default.enum([
|
|
148
174
|
"development",
|
|
149
175
|
"staging",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkFIXTOGFMcjs = require('./chunk-FIXTOGFM.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
|
+
_chunkFIXTOGFMcjs.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} -> ${_chunkFIXTOGFMcjs.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
|
+
_chunkFIXTOGFMcjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkFIXTOGFMcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
93
93
|
const files = await _glob.glob.call(void 0, [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
_chunkFIXTOGFMcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
95
|
+
_chunkFIXTOGFMcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
96
|
+
_chunkFIXTOGFMcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
97
|
+
_chunkFIXTOGFMcjs.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
|
|
|
@@ -114,10 +114,10 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
|
|
|
114
114
|
const projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
|
|
115
115
|
const projectDependencies = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0, void 0, projectGraph, workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
116
116
|
const localPackages = [];
|
|
117
|
-
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
|
|
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 = _chunkFIXTOGFMcjs.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,17 +128,17 @@ 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
|
+
_chunkFIXTOGFMcjs.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, _chunkFIXTOGFMcjs.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);
|
|
136
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
136
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _7 => _7.projects, 'optionalAccess', _8 => _8[projectName2]])) {
|
|
137
137
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
138
138
|
}
|
|
139
|
-
const implicitDependencies = _optionalChain([projectConfigurations, 'access',
|
|
140
|
-
if (_optionalChain([projectConfigurations, 'access',
|
|
141
|
-
const depPackageJsonPath =
|
|
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
|
+
if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
|
|
141
|
+
const depPackageJsonPath = _chunkFIXTOGFMcjs.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);
|
|
@@ -150,25 +150,25 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
|
|
|
150
150
|
return ret;
|
|
151
151
|
}, [])]);
|
|
152
152
|
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
153
|
-
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess',
|
|
153
|
+
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _16 => _16.includes, 'call', _17 => _17(localPackage.name)])) {
|
|
154
154
|
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
155
155
|
}
|
|
156
156
|
return ret;
|
|
157
157
|
}, _nullishCoalesce(packageJson.dependencies, () => ( {})));
|
|
158
158
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
159
|
-
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess',
|
|
159
|
+
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _18 => _18.includes, 'call', _19 => _19(localPackage.name)])) {
|
|
160
160
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
161
161
|
}
|
|
162
162
|
return ret;
|
|
163
163
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
164
164
|
} else {
|
|
165
|
-
|
|
165
|
+
_chunkFIXTOGFMcjs.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 : _chunkFIXTOGFMcjs.findWorkspaceRoot.call(void 0, );
|
|
171
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkFIXTOGFMcjs.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 ??= `${_chunkFIXTOGFMcjs.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 : _chunkFIXTOGFMcjs.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,16 +236,16 @@ 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 || _chunkFIXTOGFMcjs.findWorkspaceRoot.call(void 0, filePath);
|
|
240
240
|
const configs = await Promise.all([
|
|
241
241
|
_c12.loadConfig.call(void 0, {
|
|
242
242
|
cwd: workspacePath,
|
|
243
243
|
packageJson: true,
|
|
244
244
|
name: fileName,
|
|
245
|
-
envName: _optionalChain([fileName, 'optionalAccess',
|
|
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 : _chunkFIXTOGFMcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
249
249
|
},
|
|
250
250
|
...options
|
|
251
251
|
}),
|
|
@@ -253,10 +253,10 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
253
253
|
cwd: workspacePath,
|
|
254
254
|
packageJson: true,
|
|
255
255
|
name: fileName,
|
|
256
|
-
envName: _optionalChain([fileName, 'optionalAccess',
|
|
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 : _chunkFIXTOGFMcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
260
260
|
},
|
|
261
261
|
configFile: fileName,
|
|
262
262
|
...options
|
|
@@ -265,21 +265,21 @@ 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 : _chunkFIXTOGFMcjs.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
|
+
_chunkFIXTOGFMcjs.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
|
}
|
|
277
277
|
if (additionalFileNames && additionalFileNames.length > 0) {
|
|
278
278
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
279
279
|
for (const result2 of results) {
|
|
280
|
-
if (_optionalChain([result2, 'optionalAccess',
|
|
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
|
+
_chunkFIXTOGFMcjs.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
|
}
|
|
@@ -319,6 +319,11 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
|
|
|
319
319
|
name: process.env[`${prefix}BOT_NAME`] || void 0,
|
|
320
320
|
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
321
321
|
},
|
|
322
|
+
release: {
|
|
323
|
+
banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
|
|
324
|
+
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
325
|
+
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
326
|
+
},
|
|
322
327
|
organization: process.env[`${prefix}ORGANIZATION`] || void 0,
|
|
323
328
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
324
329
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
@@ -327,15 +332,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
|
|
|
327
332
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
328
333
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
329
334
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
330
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
331
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
335
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkFIXTOGFMcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
336
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkFIXTOGFMcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
332
337
|
directories: {
|
|
333
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
334
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
335
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
336
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
337
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
338
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
338
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkFIXTOGFMcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
339
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkFIXTOGFMcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
340
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkFIXTOGFMcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
341
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkFIXTOGFMcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
342
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkFIXTOGFMcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
343
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkFIXTOGFMcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
339
344
|
},
|
|
340
345
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
341
346
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -358,24 +363,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
|
|
|
358
363
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
359
364
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
360
365
|
},
|
|
361
|
-
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`])) ? _chunkFIXTOGFMcjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
362
367
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
363
368
|
};
|
|
364
|
-
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_`) && _chunkFIXTOGFMcjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
365
370
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
366
371
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
367
372
|
return ret;
|
|
368
373
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
369
|
-
if (config.docs ===
|
|
370
|
-
if (config.homepage ===
|
|
371
|
-
config.docs = `${
|
|
374
|
+
if (config.docs === _chunkFIXTOGFMcjs.STORM_DEFAULT_DOCS) {
|
|
375
|
+
if (config.homepage === _chunkFIXTOGFMcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
376
|
+
config.docs = `${_chunkFIXTOGFMcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
372
377
|
} else {
|
|
373
378
|
config.docs = `${config.homepage}/docs`;
|
|
374
379
|
}
|
|
375
380
|
}
|
|
376
|
-
if (config.licensing ===
|
|
377
|
-
if (config.homepage ===
|
|
378
|
-
config.licensing = `${
|
|
381
|
+
if (config.licensing === _chunkFIXTOGFMcjs.STORM_DEFAULT_LICENSING) {
|
|
382
|
+
if (config.homepage === _chunkFIXTOGFMcjs.STORM_DEFAULT_HOMEPAGE) {
|
|
383
|
+
config.licensing = `${_chunkFIXTOGFMcjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
379
384
|
} else {
|
|
380
385
|
config.licensing = `${config.homepage}/docs`;
|
|
381
386
|
}
|
|
@@ -449,13 +454,13 @@ var getBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(v
|
|
|
449
454
|
var setExtensionEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (extensionName, extension) => {
|
|
450
455
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
451
456
|
if (extension[key]) {
|
|
452
|
-
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess',
|
|
457
|
+
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _26 => _26.replace, 'call', _27 => _27(/([A-Z])+/g, (input) => input ? _optionalChain([input, 'access', _28 => _28[0], 'optionalAccess', _29 => _29.toUpperCase, 'call', _30 => _30()]) + input.slice(1) : ""), 'access', _31 => _31.split, 'call', _32 => _32(/(?=[A-Z])|[.\-\s_]/), 'access', _33 => _33.map, 'call', _34 => _34((x) => x.toLowerCase())]), () => ( []));
|
|
453
458
|
let extensionKey;
|
|
454
459
|
if (result.length === 0) {
|
|
455
460
|
return;
|
|
456
461
|
}
|
|
457
462
|
if (result.length === 1) {
|
|
458
|
-
extensionKey = _nullishCoalesce(_optionalChain([result, 'access',
|
|
463
|
+
extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _35 => _35[0], 'optionalAccess', _36 => _36.toUpperCase, 'call', _37 => _37()]), () => ( ""));
|
|
459
464
|
} else {
|
|
460
465
|
extensionKey = result.reduce((ret, part) => {
|
|
461
466
|
return `${ret}_${part.toLowerCase()}`;
|
|
@@ -483,6 +488,11 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
|
|
|
483
488
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
484
489
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
485
490
|
}
|
|
491
|
+
if (config.release) {
|
|
492
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
493
|
+
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
494
|
+
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
495
|
+
}
|
|
486
496
|
if (config.organization) {
|
|
487
497
|
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
488
498
|
}
|
|
@@ -513,31 +523,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
|
|
|
513
523
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
514
524
|
}
|
|
515
525
|
if (config.configFile) {
|
|
516
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
526
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkFIXTOGFMcjs.correctPaths.call(void 0, config.configFile);
|
|
517
527
|
}
|
|
518
528
|
if (config.workspaceRoot) {
|
|
519
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
520
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
521
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
529
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkFIXTOGFMcjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
530
|
+
process.env.NX_WORKSPACE_ROOT = _chunkFIXTOGFMcjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
531
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkFIXTOGFMcjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
522
532
|
}
|
|
523
533
|
if (config.directories) {
|
|
524
534
|
if (!config.skipCache && config.directories.cache) {
|
|
525
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
535
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkFIXTOGFMcjs.correctPaths.call(void 0, config.directories.cache);
|
|
526
536
|
}
|
|
527
537
|
if (config.directories.data) {
|
|
528
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
538
|
+
process.env[`${prefix}DATA_DIR`] = _chunkFIXTOGFMcjs.correctPaths.call(void 0, config.directories.data);
|
|
529
539
|
}
|
|
530
540
|
if (config.directories.config) {
|
|
531
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
541
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkFIXTOGFMcjs.correctPaths.call(void 0, config.directories.config);
|
|
532
542
|
}
|
|
533
543
|
if (config.directories.temp) {
|
|
534
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
544
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkFIXTOGFMcjs.correctPaths.call(void 0, config.directories.temp);
|
|
535
545
|
}
|
|
536
546
|
if (config.directories.log) {
|
|
537
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
547
|
+
process.env[`${prefix}LOG_DIR`] = _chunkFIXTOGFMcjs.correctPaths.call(void 0, config.directories.log);
|
|
538
548
|
}
|
|
539
549
|
if (config.directories.build) {
|
|
540
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
550
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkFIXTOGFMcjs.correctPaths.call(void 0, config.directories.build);
|
|
541
551
|
}
|
|
542
552
|
}
|
|
543
553
|
if (config.skipCache !== void 0) {
|
|
@@ -552,7 +562,7 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
|
|
|
552
562
|
process.env.NODE_ENV = config.mode;
|
|
553
563
|
process.env.ENVIRONMENT = config.mode;
|
|
554
564
|
}
|
|
555
|
-
if (_optionalChain([config, 'access',
|
|
565
|
+
if (_optionalChain([config, 'access', _38 => _38.colors, 'optionalAccess', _39 => _39.base, 'optionalAccess', _40 => _40.light]) || _optionalChain([config, 'access', _41 => _41.colors, 'optionalAccess', _42 => _42.base, 'optionalAccess', _43 => _43.dark])) {
|
|
556
566
|
for (const key of Object.keys(config.colors)) {
|
|
557
567
|
setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
558
568
|
}
|
|
@@ -591,19 +601,21 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
|
|
|
591
601
|
if (config.logLevel) {
|
|
592
602
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
593
603
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
594
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
595
|
-
process.env.RUST_BACKTRACE =
|
|
604
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunkFIXTOGFMcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkFIXTOGFMcjs.LogLevel.DEBUG ? true : false);
|
|
605
|
+
process.env.RUST_BACKTRACE = _chunkFIXTOGFMcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkFIXTOGFMcjs.LogLevel.DEBUG ? "full" : "none";
|
|
596
606
|
}
|
|
597
607
|
if (config.skipConfigLogging !== void 0) {
|
|
598
608
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
599
609
|
}
|
|
600
610
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
601
611
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
602
|
-
config.extensions[key] && Object.keys(config.extensions[key])
|
|
612
|
+
if (config.extensions[key] && Object.keys(config.extensions[key])) {
|
|
613
|
+
setExtensionEnv(key, config.extensions[key]);
|
|
614
|
+
}
|
|
603
615
|
}
|
|
604
616
|
}, "setConfigEnv");
|
|
605
617
|
var setThemeColorConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (prefix, config) => {
|
|
606
|
-
return _optionalChain([config, 'optionalAccess',
|
|
618
|
+
return _optionalChain([config, 'optionalAccess', _44 => _44.light, 'optionalAccess', _45 => _45.brand]) || _optionalChain([config, 'optionalAccess', _46 => _46.dark, 'optionalAccess', _47 => _47.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
607
619
|
}, "setThemeColorConfigEnv");
|
|
608
620
|
var setSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (prefix, config) => {
|
|
609
621
|
if (config.dark) {
|
|
@@ -705,20 +717,20 @@ var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
|
705
717
|
var _static_cache = void 0;
|
|
706
718
|
var createStormConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
707
719
|
let result;
|
|
708
|
-
if (!_optionalChain([_static_cache, 'optionalAccess',
|
|
720
|
+
if (!_optionalChain([_static_cache, 'optionalAccess', _48 => _48.data]) || !_optionalChain([_static_cache, 'optionalAccess', _49 => _49.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
709
721
|
let _workspaceRoot = workspaceRoot;
|
|
710
722
|
if (!_workspaceRoot) {
|
|
711
|
-
_workspaceRoot =
|
|
723
|
+
_workspaceRoot = _chunkFIXTOGFMcjs.findWorkspaceRoot.call(void 0, );
|
|
712
724
|
}
|
|
713
725
|
const configEnv = getConfigEnv();
|
|
714
|
-
const defaultConfig = await
|
|
726
|
+
const defaultConfig = await _chunkFIXTOGFMcjs.getDefaultConfig.call(void 0, _workspaceRoot);
|
|
715
727
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
716
728
|
if (!configFile && !skipLogs) {
|
|
717
|
-
|
|
729
|
+
_chunkFIXTOGFMcjs.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", {
|
|
718
730
|
logLevel: "all"
|
|
719
731
|
});
|
|
720
732
|
}
|
|
721
|
-
result = await
|
|
733
|
+
result = await _chunkFIXTOGFMcjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
|
|
722
734
|
result.workspaceRoot ??= _workspaceRoot;
|
|
723
735
|
} else {
|
|
724
736
|
result = _static_cache.data;
|
|
@@ -753,8 +765,8 @@ var loadStormConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, asyn
|
|
|
753
765
|
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
754
766
|
setConfigEnv(config);
|
|
755
767
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
756
|
-
|
|
757
|
-
${
|
|
768
|
+
_chunkFIXTOGFMcjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
|
|
769
|
+
${_chunkFIXTOGFMcjs.formatLogMessage.call(void 0, config)}`, config);
|
|
758
770
|
}
|
|
759
771
|
return config;
|
|
760
772
|
}, "loadStormConfig");
|
|
@@ -767,7 +779,7 @@ var getConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (workspace
|
|
|
767
779
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
768
780
|
|
|
769
781
|
var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
770
|
-
const workspaceRoot = config.workspaceRoot ||
|
|
782
|
+
const workspaceRoot = config.workspaceRoot || _chunkFIXTOGFMcjs.findWorkspaceRoot.call(void 0, );
|
|
771
783
|
const entryPoints = [];
|
|
772
784
|
if (entry) {
|
|
773
785
|
if (typeof entry === "string") {
|
|
@@ -779,7 +791,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
779
791
|
}
|
|
780
792
|
}
|
|
781
793
|
if (emitOnAll) {
|
|
782
|
-
entryPoints.push(
|
|
794
|
+
entryPoints.push(_chunkFIXTOGFMcjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
783
795
|
}
|
|
784
796
|
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
785
797
|
const paths = [];
|
|
@@ -791,9 +803,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
791
803
|
]
|
|
792
804
|
});
|
|
793
805
|
paths.push(...files.reduce((ret, filePath) => {
|
|
794
|
-
const result =
|
|
806
|
+
const result = _chunkFIXTOGFMcjs.correctPaths.call(void 0, _chunkFIXTOGFMcjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkFIXTOGFMcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkFIXTOGFMcjs.correctPaths.call(void 0, projectRoot), ""));
|
|
795
807
|
if (result) {
|
|
796
|
-
|
|
808
|
+
_chunkFIXTOGFMcjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkFIXTOGFMcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
797
809
|
if (!paths.includes(result)) {
|
|
798
810
|
paths.push(result);
|
|
799
811
|
}
|
|
@@ -849,12 +861,12 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
849
861
|
throw new Error("Cannot find Nx workspace root");
|
|
850
862
|
}
|
|
851
863
|
const config = await getConfig(workspaceRoot.dir);
|
|
852
|
-
|
|
853
|
-
const stopwatch =
|
|
864
|
+
_chunkFIXTOGFMcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
865
|
+
const stopwatch = _chunkFIXTOGFMcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
854
866
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
855
867
|
exitOnError: true
|
|
856
868
|
});
|
|
857
|
-
const projectJsonPath =
|
|
869
|
+
const projectJsonPath = _chunkFIXTOGFMcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
|
|
858
870
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
859
871
|
throw new Error("Cannot find project.json configuration");
|
|
860
872
|
}
|
|
@@ -862,13 +874,13 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
862
874
|
const projectJson = JSON.parse(projectJsonFile);
|
|
863
875
|
const projectName = projectJson.name;
|
|
864
876
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
865
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
877
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _50 => _50.projects, 'optionalAccess', _51 => _51[projectName]])) {
|
|
866
878
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
867
879
|
}
|
|
868
880
|
const options = _defu2.default.call(void 0, userOptions, _chunkDEWYQH4Bcjs.DEFAULT_BUILD_OPTIONS);
|
|
869
881
|
options.name ??= `${projectName}-${options.format}`;
|
|
870
882
|
options.target ??= DEFAULT_TARGET;
|
|
871
|
-
const packageJsonPath =
|
|
883
|
+
const packageJsonPath = _chunkFIXTOGFMcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
872
884
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
873
885
|
throw new Error("Cannot find package.json configuration");
|
|
874
886
|
}
|
|
@@ -877,20 +889,20 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
877
889
|
...options,
|
|
878
890
|
config,
|
|
879
891
|
...userOptions,
|
|
880
|
-
tsconfig:
|
|
892
|
+
tsconfig: _chunkFIXTOGFMcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
881
893
|
format: options.format || "cjs",
|
|
882
894
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
883
895
|
"./src/index.ts"
|
|
884
896
|
], userOptions.emitOnAll),
|
|
885
|
-
outdir: userOptions.outputPath ||
|
|
897
|
+
outdir: userOptions.outputPath || _chunkFIXTOGFMcjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
886
898
|
plugins: [],
|
|
887
899
|
name: userOptions.name || projectName,
|
|
888
900
|
projectConfigurations,
|
|
889
901
|
projectName,
|
|
890
902
|
projectGraph,
|
|
891
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
903
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkFIXTOGFMcjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
892
904
|
minify: userOptions.minify || !userOptions.debug,
|
|
893
|
-
verbose: userOptions.verbose ||
|
|
905
|
+
verbose: userOptions.verbose || _chunkFIXTOGFMcjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
894
906
|
includeSrc: userOptions.includeSrc === true,
|
|
895
907
|
metafile: userOptions.metafile !== false,
|
|
896
908
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -924,14 +936,14 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
924
936
|
return result;
|
|
925
937
|
}, "resolveOptions");
|
|
926
938
|
async function generatePackageJson(options) {
|
|
927
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
928
|
-
|
|
929
|
-
const stopwatch =
|
|
930
|
-
const packageJsonPath =
|
|
939
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkFIXTOGFMcjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
940
|
+
_chunkFIXTOGFMcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
941
|
+
const stopwatch = _chunkFIXTOGFMcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
942
|
+
const packageJsonPath = _chunkFIXTOGFMcjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
931
943
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
932
944
|
throw new Error("Cannot find package.json configuration");
|
|
933
945
|
}
|
|
934
|
-
const packageJsonFile = await _promises2.default.readFile(
|
|
946
|
+
const packageJsonFile = await _promises2.default.readFile(_chunkFIXTOGFMcjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
|
|
935
947
|
if (!packageJsonFile) {
|
|
936
948
|
throw new Error("Cannot find package.json configuration file");
|
|
937
949
|
}
|
|
@@ -970,15 +982,15 @@ async function generatePackageJson(options) {
|
|
|
970
982
|
}
|
|
971
983
|
return ret;
|
|
972
984
|
}, packageJson.exports);
|
|
973
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
985
|
+
await _devkit.writeJsonFile.call(void 0, _chunkFIXTOGFMcjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
|
|
974
986
|
stopwatch();
|
|
975
987
|
}
|
|
976
988
|
return options;
|
|
977
989
|
}
|
|
978
990
|
_chunkUSNT2KNTcjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
979
991
|
async function executeTSDown(options) {
|
|
980
|
-
|
|
981
|
-
const stopwatch =
|
|
992
|
+
_chunkFIXTOGFMcjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
|
|
993
|
+
const stopwatch = _chunkFIXTOGFMcjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
982
994
|
await _tsdown.build.call(void 0, {
|
|
983
995
|
...options,
|
|
984
996
|
entry: options.entryPoints,
|
|
@@ -990,30 +1002,30 @@ async function executeTSDown(options) {
|
|
|
990
1002
|
}
|
|
991
1003
|
_chunkUSNT2KNTcjs.__name.call(void 0, executeTSDown, "executeTSDown");
|
|
992
1004
|
async function copyBuildAssets(options) {
|
|
993
|
-
|
|
994
|
-
const stopwatch =
|
|
1005
|
+
_chunkFIXTOGFMcjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
|
|
1006
|
+
const stopwatch = _chunkFIXTOGFMcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
995
1007
|
await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
|
|
996
1008
|
stopwatch();
|
|
997
1009
|
return options;
|
|
998
1010
|
}
|
|
999
1011
|
_chunkUSNT2KNTcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
1000
1012
|
async function reportResults(options) {
|
|
1001
|
-
|
|
1013
|
+
_chunkFIXTOGFMcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
|
|
1002
1014
|
}
|
|
1003
1015
|
_chunkUSNT2KNTcjs.__name.call(void 0, reportResults, "reportResults");
|
|
1004
1016
|
async function cleanOutputPath(options) {
|
|
1005
1017
|
if (options.clean !== false && options.outdir) {
|
|
1006
|
-
|
|
1007
|
-
const stopwatch =
|
|
1008
|
-
await
|
|
1018
|
+
_chunkFIXTOGFMcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
|
|
1019
|
+
const stopwatch = _chunkFIXTOGFMcjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
1020
|
+
await _chunkFIXTOGFMcjs.cleanDirectories.call(void 0, options.name, options.outdir, options.config);
|
|
1009
1021
|
stopwatch();
|
|
1010
1022
|
}
|
|
1011
1023
|
return options;
|
|
1012
1024
|
}
|
|
1013
1025
|
_chunkUSNT2KNTcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
1014
1026
|
async function build(options) {
|
|
1015
|
-
|
|
1016
|
-
const stopwatch =
|
|
1027
|
+
_chunkFIXTOGFMcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
1028
|
+
const stopwatch = _chunkFIXTOGFMcjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
1017
1029
|
try {
|
|
1018
1030
|
const opts = Array.isArray(options) ? options : [
|
|
1019
1031
|
options
|
|
@@ -1031,11 +1043,11 @@ async function build(options) {
|
|
|
1031
1043
|
await reportResults(opt);
|
|
1032
1044
|
}));
|
|
1033
1045
|
} else {
|
|
1034
|
-
|
|
1046
|
+
_chunkFIXTOGFMcjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
|
|
1035
1047
|
}
|
|
1036
|
-
|
|
1048
|
+
_chunkFIXTOGFMcjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
1037
1049
|
} catch (error) {
|
|
1038
|
-
|
|
1050
|
+
_chunkFIXTOGFMcjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
1039
1051
|
throw error;
|
|
1040
1052
|
} finally {
|
|
1041
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 _chunkFIXTOGFMcjs = require('./chunk-FIXTOGFM.cjs');
|
|
5
5
|
require('./chunk-USNT2KNT.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.clean =
|
|
9
|
+
exports.clean = _chunkFIXTOGFMcjs.clean; exports.cleanDirectories = _chunkFIXTOGFMcjs.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 _chunkVUZ6WLW7cjs = require('./chunk-VUZ6WLW7.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkFIXTOGFMcjs = require('./chunk-FIXTOGFM.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 = _chunkVUZ6WLW7cjs.build; exports.clean = _chunkFIXTOGFMcjs.clean; exports.cleanDirectories = _chunkFIXTOGFMcjs.cleanDirectories; exports.cleanOutputPath = _chunkVUZ6WLW7cjs.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-FCT2QUQW.js";
|
|
5
5
|
import {
|
|
6
6
|
clean,
|
|
7
7
|
cleanDirectories
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EHUEDFPO.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_BUILD_OPTIONS
|
|
11
11
|
} from "./chunk-PR5HLZXS.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/tsdown",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `tsdown` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -136,8 +136,8 @@
|
|
|
136
136
|
],
|
|
137
137
|
"peerDependencies": {
|
|
138
138
|
"@microsoft/api-extractor": "^7.48.1",
|
|
139
|
-
"@nx/devkit": "
|
|
140
|
-
"@nx/js": "
|
|
139
|
+
"@nx/devkit": "20.6.0",
|
|
140
|
+
"@nx/js": "20.6.0",
|
|
141
141
|
"@storm-software/build-tools": "workspace:*",
|
|
142
142
|
"@storm-software/config": "workspace:*",
|
|
143
143
|
"@storm-software/config-tools": "workspace:*",
|
|
@@ -161,15 +161,15 @@
|
|
|
161
161
|
"commander": "^12.1.0",
|
|
162
162
|
"es-toolkit": "^1.30.1",
|
|
163
163
|
"globby": "^14.0.2",
|
|
164
|
-
"nx": "
|
|
164
|
+
"nx": "20.6.0",
|
|
165
165
|
"rolldown": "1.0.0-beta.1",
|
|
166
166
|
"source-map": "0.7.4",
|
|
167
167
|
"tsup": "8.3.5"
|
|
168
168
|
},
|
|
169
169
|
"devDependencies": {
|
|
170
170
|
"@microsoft/api-extractor": "^7.48.1",
|
|
171
|
-
"@nx/devkit": "
|
|
172
|
-
"@nx/js": "
|
|
171
|
+
"@nx/devkit": "20.6.0",
|
|
172
|
+
"@nx/js": "20.6.0",
|
|
173
173
|
"@types/node": "^22.10.2",
|
|
174
174
|
"defu": "6.1.4",
|
|
175
175
|
"rollup": "4.29.1",
|