@storm-software/build-tools 0.143.17 → 0.143.18
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/{chunk-A37LOAKN.js → chunk-47N4BMGR.js} +16 -16
- package/dist/{chunk-6HCYVYAO.mjs → chunk-4G2TMZVB.mjs} +2 -2
- package/dist/{chunk-LA4VRSSD.mjs → chunk-7VVGHAK3.mjs} +14 -2
- package/dist/{chunk-FBPO37RD.mjs → chunk-ATN46F4O.mjs} +14 -0
- package/dist/{chunk-4X7SCEOW.js → chunk-D2774IWJ.js} +5 -5
- package/dist/{chunk-NWCQPWKZ.js → chunk-DJEVAWGZ.js} +55 -43
- package/dist/{chunk-UARG2X4E.mjs → chunk-DVDSUEQJ.mjs} +1 -1
- package/dist/{chunk-2NWQJSIK.mjs → chunk-HD2W64SX.mjs} +1 -1
- package/dist/{chunk-I6EDCLZ2.mjs → chunk-MBDFPBDC.mjs} +1 -1
- package/dist/{chunk-LUFEVD6N.js → chunk-MZM33AA7.js} +8 -8
- package/dist/{chunk-2RUAFQ2S.js → chunk-QJDRCNMR.js} +8 -8
- package/dist/{chunk-VYA5GTSJ.js → chunk-VL65QJVX.js} +2 -2
- package/dist/{chunk-QQTS7ULR.js → chunk-WJHZ4GHU.js} +14 -0
- package/dist/{chunk-Y2OUQU3Z.mjs → chunk-WNCNUNY4.mjs} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/plugins/analyze.js +3 -3
- package/dist/plugins/analyze.mjs +2 -2
- package/dist/plugins/index.js +4 -4
- package/dist/plugins/index.mjs +3 -3
- package/dist/plugins/ts-resolve.js +3 -3
- package/dist/plugins/ts-resolve.mjs +2 -2
- package/dist/{types-C18fi0i4.d.ts → types-BngOPPZH.d.mts} +23 -0
- package/dist/{types-C18fi0i4.d.mts → types-BngOPPZH.d.ts} +23 -0
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utilities/copy-assets.d.mts +1 -1
- package/dist/utilities/copy-assets.d.ts +1 -1
- package/dist/utilities/copy-assets.js +3 -3
- package/dist/utilities/copy-assets.mjs +2 -2
- package/dist/utilities/generate-package-json.d.mts +1 -1
- package/dist/utilities/generate-package-json.d.ts +1 -1
- package/dist/utilities/generate-package-json.js +3 -3
- package/dist/utilities/generate-package-json.mjs +2 -2
- package/dist/utilities/get-entry-points.d.mts +1 -1
- package/dist/utilities/get-entry-points.d.ts +1 -1
- package/dist/utilities/get-entry-points.js +3 -3
- package/dist/utilities/get-entry-points.mjs +2 -2
- package/dist/utilities/get-env.d.mts +1 -1
- package/dist/utilities/get-env.d.ts +1 -1
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/index.js +6 -6
- package/dist/utilities/index.mjs +5 -5
- package/dist/utilities/read-nx-config.js +3 -3
- package/dist/utilities/read-nx-config.mjs +2 -2
- package/package.json +7 -7
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 -->
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkWJHZ4GHUjs = require('./chunk-WJHZ4GHU.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
@@ -17,10 +17,10 @@ var addPackageDependencies = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0
|
|
|
17
17
|
const projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
|
|
18
18
|
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);
|
|
19
19
|
const localPackages = [];
|
|
20
|
-
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
|
|
20
|
+
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)) {
|
|
21
21
|
const projectNode = project.node;
|
|
22
22
|
if (projectNode.data.root) {
|
|
23
|
-
const projectPackageJsonPath =
|
|
23
|
+
const projectPackageJsonPath = _chunkWJHZ4GHUjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
|
|
24
24
|
if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
|
|
25
25
|
const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
|
|
26
26
|
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
@@ -31,17 +31,17 @@ var addPackageDependencies = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
if (localPackages.length > 0) {
|
|
34
|
-
|
|
35
|
-
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
34
|
+
_chunkWJHZ4GHUjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
35
|
+
const projectJsonFile = await _promises.readFile.call(void 0, _chunkWJHZ4GHUjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
36
36
|
const projectJson = JSON.parse(projectJsonFile);
|
|
37
37
|
const projectName2 = projectJson.name;
|
|
38
38
|
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
39
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
39
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _7 => _7.projects, 'optionalAccess', _8 => _8[projectName2]])) {
|
|
40
40
|
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.");
|
|
41
41
|
}
|
|
42
|
-
const implicitDependencies = _optionalChain([projectConfigurations, 'access',
|
|
43
|
-
if (_optionalChain([projectConfigurations, 'access',
|
|
44
|
-
const depPackageJsonPath =
|
|
42
|
+
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) => {
|
|
43
|
+
if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
|
|
44
|
+
const depPackageJsonPath = _chunkWJHZ4GHUjs.joinPaths.call(void 0, workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
|
|
45
45
|
if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
|
|
46
46
|
const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
|
|
47
47
|
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
@@ -53,25 +53,25 @@ var addPackageDependencies = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0
|
|
|
53
53
|
return ret;
|
|
54
54
|
}, [])]);
|
|
55
55
|
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
56
|
-
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess',
|
|
56
|
+
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _16 => _16.includes, 'call', _17 => _17(localPackage.name)])) {
|
|
57
57
|
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
58
58
|
}
|
|
59
59
|
return ret;
|
|
60
60
|
}, _nullishCoalesce(packageJson.dependencies, () => ( {})));
|
|
61
61
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
62
|
-
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess',
|
|
62
|
+
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _18 => _18.includes, 'call', _19 => _19(localPackage.name)])) {
|
|
63
63
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
64
64
|
}
|
|
65
65
|
return ret;
|
|
66
66
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
67
67
|
} else {
|
|
68
|
-
|
|
68
|
+
_chunkWJHZ4GHUjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
69
69
|
}
|
|
70
70
|
return packageJson;
|
|
71
71
|
}, "addPackageDependencies");
|
|
72
72
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
73
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
74
|
-
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
73
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkWJHZ4GHUjs.findWorkspaceRoot.call(void 0, );
|
|
74
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkWJHZ4GHUjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
|
|
75
75
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
76
76
|
packageJson.type ??= "module";
|
|
77
77
|
packageJson.sideEffects ??= false;
|
|
@@ -80,7 +80,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call
|
|
|
80
80
|
if (distSrc.startsWith("/")) {
|
|
81
81
|
distSrc = distSrc.substring(1);
|
|
82
82
|
}
|
|
83
|
-
packageJson.source ??= `${
|
|
83
|
+
packageJson.source ??= `${_chunkWJHZ4GHUjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
84
84
|
}
|
|
85
85
|
packageJson.files ??= [
|
|
86
86
|
"dist/**/*"
|
|
@@ -111,7 +111,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call
|
|
|
111
111
|
];
|
|
112
112
|
}
|
|
113
113
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
114
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
114
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkWJHZ4GHUjs.joinPaths.call(void 0, "packages", projectName);
|
|
115
115
|
return packageJson;
|
|
116
116
|
}, "addWorkspacePackageJsonFields");
|
|
117
117
|
var addPackageJsonExport = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
findWorkspaceRoot,
|
|
3
3
|
joinPaths,
|
|
4
4
|
writeTrace
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ATN46F4O.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-O6YSETKJ.mjs";
|
|
@@ -17,7 +17,7 @@ var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projec
|
|
|
17
17
|
const projectGraph = readCachedProjectGraph();
|
|
18
18
|
const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
19
19
|
const localPackages = [];
|
|
20
|
-
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data
|
|
20
|
+
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data?.root !== projectRoot && dep.node.data?.root !== workspaceRoot)) {
|
|
21
21
|
const projectNode = project.node;
|
|
22
22
|
if (projectNode.data.root) {
|
|
23
23
|
const projectPackageJsonPath = joinPaths(workspaceRoot, projectNode.data.root, "package.json");
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
joinPaths,
|
|
15
15
|
writeTrace,
|
|
16
16
|
writeWarning
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ATN46F4O.mjs";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-O6YSETKJ.mjs";
|
|
@@ -106,6 +106,11 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
106
106
|
name: process.env[`${prefix}BOT_NAME`] || void 0,
|
|
107
107
|
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
108
108
|
},
|
|
109
|
+
release: {
|
|
110
|
+
banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
|
|
111
|
+
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
112
|
+
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
113
|
+
},
|
|
109
114
|
organization: process.env[`${prefix}ORGANIZATION`] || void 0,
|
|
110
115
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
111
116
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
@@ -270,6 +275,11 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
270
275
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
271
276
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
272
277
|
}
|
|
278
|
+
if (config.release) {
|
|
279
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
280
|
+
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
281
|
+
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
282
|
+
}
|
|
273
283
|
if (config.organization) {
|
|
274
284
|
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
275
285
|
}
|
|
@@ -386,7 +396,9 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
386
396
|
}
|
|
387
397
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
388
398
|
for (const key of Object.keys(config.extensions ?? {})) {
|
|
389
|
-
config.extensions[key] && Object.keys(config.extensions[key])
|
|
399
|
+
if (config.extensions[key] && Object.keys(config.extensions[key])) {
|
|
400
|
+
setExtensionEnv(key, config.extensions[key]);
|
|
401
|
+
}
|
|
390
402
|
}
|
|
391
403
|
}, "setConfigEnv");
|
|
392
404
|
var setThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
@@ -240,6 +240,14 @@ var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
|
240
240
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
241
241
|
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
242
242
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
243
|
+
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/logo-banner.png";
|
|
244
|
+
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
245
|
+
[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.
|
|
246
|
+
|
|
247
|
+
Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
248
|
+
|
|
249
|
+
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!
|
|
250
|
+
`;
|
|
243
251
|
|
|
244
252
|
// ../config/src/schema.ts
|
|
245
253
|
import z from "zod";
|
|
@@ -330,6 +338,11 @@ var WorkspaceBotConfigSchema = z.object({
|
|
|
330
338
|
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)"),
|
|
331
339
|
email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
332
340
|
}).describe("The workspace's bot user's config used to automated various operations tasks");
|
|
341
|
+
var WorkspaceReleaseConfigSchema = z.object({
|
|
342
|
+
banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("A URL to a banner image used to display the workspace's release"),
|
|
343
|
+
header: z.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
|
|
344
|
+
footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
|
|
345
|
+
}).describe("The workspace's release config used during the release process");
|
|
333
346
|
var WorkspaceDirectoryConfigSchema = z.object({
|
|
334
347
|
cache: z.string().trim().optional().describe("The directory used to store the environment's cached file data"),
|
|
335
348
|
data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
|
|
@@ -353,6 +366,7 @@ var StormConfigSchema = z.object({
|
|
|
353
366
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
354
367
|
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
355
368
|
bot: WorkspaceBotConfigSchema,
|
|
369
|
+
release: WorkspaceReleaseConfigSchema,
|
|
356
370
|
mode: z.enum([
|
|
357
371
|
"development",
|
|
358
372
|
"staging",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkWJHZ4GHUjs = require('./chunk-WJHZ4GHU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
@@ -11,7 +11,7 @@ var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
|
11
11
|
// src/utilities/get-entry-points.ts
|
|
12
12
|
var _glob = require('glob');
|
|
13
13
|
var getEntryPoints = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
14
|
-
const workspaceRoot = config.workspaceRoot ||
|
|
14
|
+
const workspaceRoot = config.workspaceRoot || _chunkWJHZ4GHUjs.findWorkspaceRoot.call(void 0, );
|
|
15
15
|
const entryPoints = [];
|
|
16
16
|
if (entry) {
|
|
17
17
|
if (typeof entry === "string") {
|
|
@@ -23,7 +23,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
if (emitOnAll) {
|
|
26
|
-
entryPoints.push(
|
|
26
|
+
entryPoints.push(_chunkWJHZ4GHUjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
27
27
|
}
|
|
28
28
|
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
29
29
|
const paths = [];
|
|
@@ -35,9 +35,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async
|
|
|
35
35
|
]
|
|
36
36
|
});
|
|
37
37
|
paths.push(...files.reduce((ret, filePath) => {
|
|
38
|
-
const result =
|
|
38
|
+
const result = _chunkWJHZ4GHUjs.correctPaths.call(void 0, _chunkWJHZ4GHUjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkWJHZ4GHUjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkWJHZ4GHUjs.correctPaths.call(void 0, projectRoot), ""));
|
|
39
39
|
if (result) {
|
|
40
|
-
|
|
40
|
+
_chunkWJHZ4GHUjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkWJHZ4GHUjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
41
41
|
if (!paths.includes(result)) {
|
|
42
42
|
paths.push(result);
|
|
43
43
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkWJHZ4GHUjs = require('./chunk-WJHZ4GHU.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
@@ -23,7 +23,7 @@ var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
|
23
23
|
var _c12 = require('c12');
|
|
24
24
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
25
25
|
var getConfigFileByName = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
26
|
-
const workspacePath = filePath ||
|
|
26
|
+
const workspacePath = filePath || _chunkWJHZ4GHUjs.findWorkspaceRoot.call(void 0, filePath);
|
|
27
27
|
const configs = await Promise.all([
|
|
28
28
|
_c12.loadConfig.call(void 0, {
|
|
29
29
|
cwd: workspacePath,
|
|
@@ -32,7 +32,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, a
|
|
|
32
32
|
envName: _optionalChain([fileName, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]),
|
|
33
33
|
jitiOptions: {
|
|
34
34
|
debug: false,
|
|
35
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
35
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkWJHZ4GHUjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
36
36
|
},
|
|
37
37
|
...options
|
|
38
38
|
}),
|
|
@@ -43,7 +43,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, a
|
|
|
43
43
|
envName: _optionalChain([fileName, 'optionalAccess', _3 => _3.toUpperCase, 'call', _4 => _4()]),
|
|
44
44
|
jitiOptions: {
|
|
45
45
|
debug: false,
|
|
46
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
46
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkWJHZ4GHUjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
47
47
|
},
|
|
48
48
|
configFile: fileName,
|
|
49
49
|
...options
|
|
@@ -52,12 +52,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, a
|
|
|
52
52
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
53
53
|
}, "getConfigFileByName");
|
|
54
54
|
var getConfigFile = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
55
|
-
const workspacePath = filePath ? filePath :
|
|
55
|
+
const workspacePath = filePath ? filePath : _chunkWJHZ4GHUjs.findWorkspaceRoot.call(void 0, filePath);
|
|
56
56
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
57
57
|
let config = result.config;
|
|
58
58
|
const configFile = result.configFile;
|
|
59
59
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
60
|
-
|
|
60
|
+
_chunkWJHZ4GHUjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
61
61
|
logLevel: "all"
|
|
62
62
|
});
|
|
63
63
|
}
|
|
@@ -66,7 +66,7 @@ var getConfigFile = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (
|
|
|
66
66
|
for (const result2 of results) {
|
|
67
67
|
if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
|
|
68
68
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
69
|
-
|
|
69
|
+
_chunkWJHZ4GHUjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
70
70
|
logLevel: "all"
|
|
71
71
|
});
|
|
72
72
|
}
|
|
@@ -106,6 +106,11 @@ var getConfigEnv = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, () => {
|
|
|
106
106
|
name: process.env[`${prefix}BOT_NAME`] || void 0,
|
|
107
107
|
email: process.env[`${prefix}BOT_EMAIL`] || void 0
|
|
108
108
|
},
|
|
109
|
+
release: {
|
|
110
|
+
banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
|
|
111
|
+
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
112
|
+
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
113
|
+
},
|
|
109
114
|
organization: process.env[`${prefix}ORGANIZATION`] || void 0,
|
|
110
115
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
111
116
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
@@ -114,15 +119,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, () => {
|
|
|
114
119
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
115
120
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
116
121
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
117
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
118
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
122
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkWJHZ4GHUjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
123
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkWJHZ4GHUjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
119
124
|
directories: {
|
|
120
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
121
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
122
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
123
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
124
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
125
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
125
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkWJHZ4GHUjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
126
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkWJHZ4GHUjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
127
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkWJHZ4GHUjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
128
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkWJHZ4GHUjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
129
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkWJHZ4GHUjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
130
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkWJHZ4GHUjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
126
131
|
},
|
|
127
132
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
128
133
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -145,24 +150,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, () => {
|
|
|
145
150
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
146
151
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
147
152
|
},
|
|
148
|
-
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`])) ?
|
|
153
|
+
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`])) ? _chunkWJHZ4GHUjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
149
154
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
150
155
|
};
|
|
151
|
-
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
156
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkWJHZ4GHUjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
152
157
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
153
158
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
154
159
|
return ret;
|
|
155
160
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
156
|
-
if (config.docs ===
|
|
157
|
-
if (config.homepage ===
|
|
158
|
-
config.docs = `${
|
|
161
|
+
if (config.docs === _chunkWJHZ4GHUjs.STORM_DEFAULT_DOCS) {
|
|
162
|
+
if (config.homepage === _chunkWJHZ4GHUjs.STORM_DEFAULT_HOMEPAGE) {
|
|
163
|
+
config.docs = `${_chunkWJHZ4GHUjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
159
164
|
} else {
|
|
160
165
|
config.docs = `${config.homepage}/docs`;
|
|
161
166
|
}
|
|
162
167
|
}
|
|
163
|
-
if (config.licensing ===
|
|
164
|
-
if (config.homepage ===
|
|
165
|
-
config.licensing = `${
|
|
168
|
+
if (config.licensing === _chunkWJHZ4GHUjs.STORM_DEFAULT_LICENSING) {
|
|
169
|
+
if (config.homepage === _chunkWJHZ4GHUjs.STORM_DEFAULT_HOMEPAGE) {
|
|
170
|
+
config.licensing = `${_chunkWJHZ4GHUjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
166
171
|
} else {
|
|
167
172
|
config.licensing = `${config.homepage}/docs`;
|
|
168
173
|
}
|
|
@@ -270,6 +275,11 @@ var setConfigEnv = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (config)
|
|
|
270
275
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
271
276
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
272
277
|
}
|
|
278
|
+
if (config.release) {
|
|
279
|
+
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
280
|
+
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
281
|
+
process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
|
|
282
|
+
}
|
|
273
283
|
if (config.organization) {
|
|
274
284
|
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
275
285
|
}
|
|
@@ -300,31 +310,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (config)
|
|
|
300
310
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
301
311
|
}
|
|
302
312
|
if (config.configFile) {
|
|
303
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
313
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkWJHZ4GHUjs.correctPaths.call(void 0, config.configFile);
|
|
304
314
|
}
|
|
305
315
|
if (config.workspaceRoot) {
|
|
306
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
307
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
308
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
316
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkWJHZ4GHUjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
317
|
+
process.env.NX_WORKSPACE_ROOT = _chunkWJHZ4GHUjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
318
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkWJHZ4GHUjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
309
319
|
}
|
|
310
320
|
if (config.directories) {
|
|
311
321
|
if (!config.skipCache && config.directories.cache) {
|
|
312
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
322
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkWJHZ4GHUjs.correctPaths.call(void 0, config.directories.cache);
|
|
313
323
|
}
|
|
314
324
|
if (config.directories.data) {
|
|
315
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
325
|
+
process.env[`${prefix}DATA_DIR`] = _chunkWJHZ4GHUjs.correctPaths.call(void 0, config.directories.data);
|
|
316
326
|
}
|
|
317
327
|
if (config.directories.config) {
|
|
318
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
328
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkWJHZ4GHUjs.correctPaths.call(void 0, config.directories.config);
|
|
319
329
|
}
|
|
320
330
|
if (config.directories.temp) {
|
|
321
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
331
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkWJHZ4GHUjs.correctPaths.call(void 0, config.directories.temp);
|
|
322
332
|
}
|
|
323
333
|
if (config.directories.log) {
|
|
324
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
334
|
+
process.env[`${prefix}LOG_DIR`] = _chunkWJHZ4GHUjs.correctPaths.call(void 0, config.directories.log);
|
|
325
335
|
}
|
|
326
336
|
if (config.directories.build) {
|
|
327
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
337
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkWJHZ4GHUjs.correctPaths.call(void 0, config.directories.build);
|
|
328
338
|
}
|
|
329
339
|
}
|
|
330
340
|
if (config.skipCache !== void 0) {
|
|
@@ -378,15 +388,17 @@ var setConfigEnv = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (config)
|
|
|
378
388
|
if (config.logLevel) {
|
|
379
389
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
380
390
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
381
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
382
|
-
process.env.RUST_BACKTRACE =
|
|
391
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunkWJHZ4GHUjs.getLogLevel.call(void 0, config.logLevel) >= _chunkWJHZ4GHUjs.LogLevel.DEBUG ? true : false);
|
|
392
|
+
process.env.RUST_BACKTRACE = _chunkWJHZ4GHUjs.getLogLevel.call(void 0, config.logLevel) >= _chunkWJHZ4GHUjs.LogLevel.DEBUG ? "full" : "none";
|
|
383
393
|
}
|
|
384
394
|
if (config.skipConfigLogging !== void 0) {
|
|
385
395
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
386
396
|
}
|
|
387
397
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
388
398
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
389
|
-
config.extensions[key] && Object.keys(config.extensions[key])
|
|
399
|
+
if (config.extensions[key] && Object.keys(config.extensions[key])) {
|
|
400
|
+
setExtensionEnv(key, config.extensions[key]);
|
|
401
|
+
}
|
|
390
402
|
}
|
|
391
403
|
}, "setConfigEnv");
|
|
392
404
|
var setThemeColorConfigEnv = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (prefix, config) => {
|
|
@@ -495,17 +507,17 @@ var createStormConfig = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, asy
|
|
|
495
507
|
if (!_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) || !_optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
496
508
|
let _workspaceRoot = workspaceRoot;
|
|
497
509
|
if (!_workspaceRoot) {
|
|
498
|
-
_workspaceRoot =
|
|
510
|
+
_workspaceRoot = _chunkWJHZ4GHUjs.findWorkspaceRoot.call(void 0, );
|
|
499
511
|
}
|
|
500
512
|
const configEnv = getConfigEnv();
|
|
501
|
-
const defaultConfig = await
|
|
513
|
+
const defaultConfig = await _chunkWJHZ4GHUjs.getDefaultConfig.call(void 0, _workspaceRoot);
|
|
502
514
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
503
515
|
if (!configFile && !skipLogs) {
|
|
504
|
-
|
|
516
|
+
_chunkWJHZ4GHUjs.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", {
|
|
505
517
|
logLevel: "all"
|
|
506
518
|
});
|
|
507
519
|
}
|
|
508
|
-
result = await
|
|
520
|
+
result = await _chunkWJHZ4GHUjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
|
|
509
521
|
result.workspaceRoot ??= _workspaceRoot;
|
|
510
522
|
} else {
|
|
511
523
|
result = _static_cache.data;
|
|
@@ -540,8 +552,8 @@ var loadStormConfig = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async
|
|
|
540
552
|
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
541
553
|
setConfigEnv(config);
|
|
542
554
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
543
|
-
|
|
544
|
-
${
|
|
555
|
+
_chunkWJHZ4GHUjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
|
|
556
|
+
${_chunkWJHZ4GHUjs.formatLogMessage.call(void 0, config)}`, config);
|
|
545
557
|
}
|
|
546
558
|
return config;
|
|
547
559
|
}, "loadStormConfig");
|
|
@@ -560,7 +572,7 @@ var readNxConfig = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (w
|
|
|
560
572
|
const config = await getConfig();
|
|
561
573
|
rootDir = config.workspaceRoot;
|
|
562
574
|
}
|
|
563
|
-
const nxJsonPath =
|
|
575
|
+
const nxJsonPath = _chunkWJHZ4GHUjs.joinPaths.call(void 0, rootDir, "nx.json");
|
|
564
576
|
if (!_fs.existsSync.call(void 0, nxJsonPath)) {
|
|
565
577
|
throw new Error("Cannot find project.json configuration");
|
|
566
578
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkWJHZ4GHUjs = require('./chunk-WJHZ4GHU.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
@@ -37,8 +37,8 @@ var copyAssets = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (con
|
|
|
37
37
|
output: "src/"
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
40
|
+
_chunkWJHZ4GHUjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
41
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkWJHZ4GHUjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
42
42
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
43
43
|
projectDir: projectRoot,
|
|
44
44
|
rootDir: config.workspaceRoot,
|
|
@@ -47,12 +47,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
47
47
|
});
|
|
48
48
|
await assetHandler.processAllAssetsOnce();
|
|
49
49
|
if (includeSrc === true) {
|
|
50
|
-
|
|
50
|
+
_chunkWJHZ4GHUjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkWJHZ4GHUjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
51
51
|
const files = await _glob.glob.call(void 0, [
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
_chunkWJHZ4GHUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
53
|
+
_chunkWJHZ4GHUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
54
|
+
_chunkWJHZ4GHUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
55
|
+
_chunkWJHZ4GHUjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
56
56
|
]);
|
|
57
57
|
await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
58
58
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWJHZ4GHUjs = require('./chunk-WJHZ4GHU.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
@@ -29,8 +29,8 @@ var tsResolvePlugin = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, ({ re
|
|
|
29
29
|
return {
|
|
30
30
|
name: `storm:ts-resolve`,
|
|
31
31
|
async resolveId(source, importer) {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_chunkWJHZ4GHUjs.writeDebug.call(void 0, `ts-resolve - resolveId source: ${source}`);
|
|
33
|
+
_chunkWJHZ4GHUjs.writeDebug.call(void 0, `ts-resolve - resolveId importer: ${importer}`);
|
|
34
34
|
if (!importer) {
|
|
35
35
|
return null;
|
|
36
36
|
}
|
|
@@ -41,7 +41,7 @@ var tsResolvePlugin = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, ({ re
|
|
|
41
41
|
return false;
|
|
42
42
|
}
|
|
43
43
|
if (ignore && ignore(source, importer)) {
|
|
44
|
-
|
|
44
|
+
_chunkWJHZ4GHUjs.writeDebug.call(void 0, `ts-resolve - ignored ${source}`);
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
if (resolveOnly) {
|
|
@@ -50,12 +50,12 @@ var tsResolvePlugin = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, ({ re
|
|
|
50
50
|
return v.test(source);
|
|
51
51
|
});
|
|
52
52
|
if (!shouldResolve) {
|
|
53
|
-
|
|
53
|
+
_chunkWJHZ4GHUjs.writeDebug.call(void 0, `ts-resolve - skipped by matching resolveOnly ${source}`);
|
|
54
54
|
return null;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
if (_path2.default.isAbsolute(source)) {
|
|
58
|
-
|
|
58
|
+
_chunkWJHZ4GHUjs.writeDebug.call(void 0, `ts-resolve - skipped absolute path: ${source}`);
|
|
59
59
|
return null;
|
|
60
60
|
}
|
|
61
61
|
const basedir = importer ? await _fs2.default.promises.realpath(_path2.default.dirname(importer)) : process.cwd();
|
|
@@ -87,10 +87,10 @@ var tsResolvePlugin = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, ({ re
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
if (id) {
|
|
90
|
-
|
|
90
|
+
_chunkWJHZ4GHUjs.writeDebug.call(void 0, `ts-resolve - resolved ${source} to ${id}`);
|
|
91
91
|
return id;
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
_chunkWJHZ4GHUjs.writeDebug.call(void 0, `ts-resolve - mark ${source} as external`);
|
|
94
94
|
return false;
|
|
95
95
|
}
|
|
96
96
|
};
|