@storm-software/esbuild 0.35.12 → 0.35.13
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 -2
- package/bin/esbuild.cjs +61 -112
- package/dist/assets.cjs +5 -5
- package/dist/assets.js +4 -4
- package/dist/build.cjs +12 -13
- package/dist/build.js +11 -12
- package/dist/{chunk-ZF7HGC35.js → chunk-2LYIFO7K.js} +1 -1
- package/dist/{chunk-MYUKVBFG.cjs → chunk-55UPQQ65.cjs} +60 -60
- package/dist/{chunk-77XQDMGA.js → chunk-7KIT5JE6.js} +7 -7
- package/dist/{chunk-4PZGT5BH.cjs → chunk-B3MHVZOK.cjs} +2 -1
- package/dist/{chunk-WQVSYEMN.cjs → chunk-BK5GLVSJ.cjs} +11 -11
- package/dist/{chunk-EGUR2GEF.cjs → chunk-BWMW4ZUS.cjs} +22 -22
- package/dist/{chunk-HIO4TSG7.cjs → chunk-C25ALB4J.cjs} +5 -5
- package/dist/{chunk-Q366M4DV.js → chunk-CEJM5IFH.js} +2 -2
- package/dist/{chunk-MAXDIXOQ.js → chunk-FHHEEOIV.js} +1 -1
- package/dist/{chunk-PB5XBFPA.cjs → chunk-H7NSISN4.cjs} +15 -21
- package/dist/{chunk-OV5OYAJ7.cjs → chunk-IULOZ7MO.cjs} +3 -3
- package/dist/{chunk-F3R5ZFGB.js → chunk-KV6GNLVF.js} +1 -0
- package/dist/{chunk-POMR4JSG.js → chunk-KXZCIMKJ.js} +2 -2
- package/dist/{chunk-7VE5Y757.cjs → chunk-LBRDOW2V.cjs} +5 -5
- package/dist/{chunk-EBH4ZCN5.js → chunk-NACKZM5D.js} +1 -1
- package/dist/{chunk-77TTTWKY.cjs → chunk-NLIYZM5H.cjs} +3 -3
- package/dist/{chunk-47A73LZ7.js → chunk-Q3WZPCLD.js} +2 -2
- package/dist/{chunk-UAPH32Y3.cjs → chunk-RBXXACL5.cjs} +4 -4
- package/dist/{chunk-CV2AM72J.js → chunk-RNXNYWO3.js} +5 -11
- package/dist/{chunk-42HYZLJH.cjs → chunk-T4N45NGL.cjs} +3 -3
- package/dist/{chunk-SB2WRTQ2.js → chunk-VLK67MTI.js} +3 -3
- package/dist/{chunk-PDYSQLJS.js → chunk-VNLMOUVN.js} +1 -1
- package/dist/clean.cjs +4 -4
- package/dist/clean.js +3 -3
- package/dist/config.cjs +5 -5
- package/dist/config.js +4 -4
- package/dist/context.cjs +6 -7
- package/dist/context.js +5 -6
- package/dist/index.cjs +12 -13
- package/dist/index.js +11 -12
- package/dist/package-json.cjs +5 -5
- package/dist/package-json.js +4 -4
- package/dist/plugins/deps-check.cjs +4 -4
- package/dist/plugins/deps-check.js +3 -3
- package/dist/plugins/resolve-paths.cjs +82 -5
- package/dist/plugins/resolve-paths.js +81 -4
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.js +3 -3
- package/dist/watch.cjs +4 -4
- package/dist/watch.js +2 -2
- package/package.json +4 -4
- package/dist/chunk-HPZXWRI7.cjs +0 -59
- package/dist/chunk-KR4NRRPF.js +0 -59
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 -->
|
|
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
-
|
|
44
43
|
## Table of Contents
|
|
45
44
|
|
|
46
45
|
- [Storm ESBuild Package](#storm-esbuild-package)
|
package/bin/esbuild.cjs
CHANGED
|
@@ -907,12 +907,12 @@ function parseTree(text, errors = [], options = ParseOptions.DEFAULT) {
|
|
|
907
907
|
}
|
|
908
908
|
return result;
|
|
909
909
|
}
|
|
910
|
-
function findNodeAtLocation(root,
|
|
910
|
+
function findNodeAtLocation(root, path2) {
|
|
911
911
|
if (!root) {
|
|
912
912
|
return void 0;
|
|
913
913
|
}
|
|
914
914
|
let node = root;
|
|
915
|
-
for (let segment of
|
|
915
|
+
for (let segment of path2) {
|
|
916
916
|
if (typeof segment === "string") {
|
|
917
917
|
if (node.type !== "object" || !Array.isArray(node.children)) {
|
|
918
918
|
return void 0;
|
|
@@ -942,17 +942,17 @@ function getNodePath(node) {
|
|
|
942
942
|
if (!node.parent || !node.parent.children) {
|
|
943
943
|
return [];
|
|
944
944
|
}
|
|
945
|
-
const
|
|
945
|
+
const path2 = getNodePath(node.parent);
|
|
946
946
|
if (node.parent.type === "property") {
|
|
947
947
|
const key = node.parent.children[0].value;
|
|
948
|
-
|
|
948
|
+
path2.push(key);
|
|
949
949
|
} else if (node.parent.type === "array") {
|
|
950
950
|
const index = node.parent.children.indexOf(node);
|
|
951
951
|
if (index !== -1) {
|
|
952
|
-
|
|
952
|
+
path2.push(index);
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
|
-
return
|
|
955
|
+
return path2;
|
|
956
956
|
}
|
|
957
957
|
function getNodeValue(node) {
|
|
958
958
|
switch (node.type) {
|
|
@@ -1335,14 +1335,14 @@ var init_parser = __esm({
|
|
|
1335
1335
|
|
|
1336
1336
|
// ../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/edit.js
|
|
1337
1337
|
function setProperty(text, originalPath, value, options) {
|
|
1338
|
-
const
|
|
1338
|
+
const path2 = originalPath.slice();
|
|
1339
1339
|
const errors = [];
|
|
1340
1340
|
const root = parseTree(text, errors);
|
|
1341
1341
|
let parent = void 0;
|
|
1342
1342
|
let lastSegment = void 0;
|
|
1343
|
-
while (
|
|
1344
|
-
lastSegment =
|
|
1345
|
-
parent = findNodeAtLocation(root,
|
|
1343
|
+
while (path2.length > 0) {
|
|
1344
|
+
lastSegment = path2.pop();
|
|
1345
|
+
parent = findNodeAtLocation(root, path2);
|
|
1346
1346
|
if (parent === void 0 && value !== void 0) {
|
|
1347
1347
|
if (typeof lastSegment === "string") {
|
|
1348
1348
|
value = { [lastSegment]: value };
|
|
@@ -1545,8 +1545,8 @@ function printParseErrorCode(code) {
|
|
|
1545
1545
|
function format2(documentText, range, options) {
|
|
1546
1546
|
return format(documentText, range, options);
|
|
1547
1547
|
}
|
|
1548
|
-
function modify(text,
|
|
1549
|
-
return setProperty(text,
|
|
1548
|
+
function modify(text, path2, value, options) {
|
|
1549
|
+
return setProperty(text, path2, value, options);
|
|
1550
1550
|
}
|
|
1551
1551
|
function applyEdits(text, edits) {
|
|
1552
1552
|
let sortedEdits = edits.slice(0).sort((a, b) => {
|
|
@@ -2573,15 +2573,15 @@ var require_route = __commonJS({
|
|
|
2573
2573
|
};
|
|
2574
2574
|
}
|
|
2575
2575
|
function wrapConversion(toModel, graph) {
|
|
2576
|
-
const
|
|
2576
|
+
const path2 = [graph[toModel].parent, toModel];
|
|
2577
2577
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
2578
2578
|
let cur = graph[toModel].parent;
|
|
2579
2579
|
while (graph[cur].parent) {
|
|
2580
|
-
|
|
2580
|
+
path2.unshift(graph[cur].parent);
|
|
2581
2581
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
2582
2582
|
cur = graph[cur].parent;
|
|
2583
2583
|
}
|
|
2584
|
-
fn.conversion =
|
|
2584
|
+
fn.conversion = path2;
|
|
2585
2585
|
return fn;
|
|
2586
2586
|
}
|
|
2587
2587
|
module2.exports = function(fromModel) {
|
|
@@ -10147,56 +10147,56 @@ var require_fileutils = __commonJS({
|
|
|
10147
10147
|
var path_1 = require("path");
|
|
10148
10148
|
var tar = require_tar_stream();
|
|
10149
10149
|
var zlib_1 = require("zlib");
|
|
10150
|
-
function readJsonFile(
|
|
10151
|
-
const content = (0, node_fs_1.readFileSync)(
|
|
10150
|
+
function readJsonFile(path2, options) {
|
|
10151
|
+
const content = (0, node_fs_1.readFileSync)(path2, "utf-8");
|
|
10152
10152
|
if (options) {
|
|
10153
10153
|
options.endsWithNewline = content.charCodeAt(content.length - 1) === 10;
|
|
10154
10154
|
}
|
|
10155
10155
|
try {
|
|
10156
10156
|
return (0, json_1.parseJson)(content, options);
|
|
10157
10157
|
} catch (e) {
|
|
10158
|
-
e.message = e.message.replace("JSON",
|
|
10158
|
+
e.message = e.message.replace("JSON", path2);
|
|
10159
10159
|
throw e;
|
|
10160
10160
|
}
|
|
10161
10161
|
}
|
|
10162
|
-
function readYamlFile(
|
|
10163
|
-
const content = (0, node_fs_1.readFileSync)(
|
|
10162
|
+
function readYamlFile(path2, options) {
|
|
10163
|
+
const content = (0, node_fs_1.readFileSync)(path2, "utf-8");
|
|
10164
10164
|
const { load } = require_js_yaml();
|
|
10165
|
-
return load(content, { ...options, filename:
|
|
10165
|
+
return load(content, { ...options, filename: path2 });
|
|
10166
10166
|
}
|
|
10167
|
-
function writeJsonFile2(
|
|
10168
|
-
(0, node_fs_1.mkdirSync)((0, path_1.dirname)(
|
|
10167
|
+
function writeJsonFile2(path2, data, options) {
|
|
10168
|
+
(0, node_fs_1.mkdirSync)((0, path_1.dirname)(path2), { recursive: true });
|
|
10169
10169
|
const serializedJson = (0, json_1.serializeJson)(data, options);
|
|
10170
10170
|
const content = options?.appendNewLine ? `${serializedJson}
|
|
10171
10171
|
` : serializedJson;
|
|
10172
|
-
(0, node_fs_1.writeFileSync)(
|
|
10172
|
+
(0, node_fs_1.writeFileSync)(path2, content, { encoding: "utf-8" });
|
|
10173
10173
|
}
|
|
10174
|
-
async function writeJsonFileAsync(
|
|
10175
|
-
await (0, promises_1.mkdir)((0, path_1.dirname)(
|
|
10174
|
+
async function writeJsonFileAsync(path2, data, options) {
|
|
10175
|
+
await (0, promises_1.mkdir)((0, path_1.dirname)(path2), { recursive: true });
|
|
10176
10176
|
const serializedJson = (0, json_1.serializeJson)(data, options);
|
|
10177
10177
|
const content = options?.appendNewLine ? `${serializedJson}
|
|
10178
10178
|
` : serializedJson;
|
|
10179
|
-
await (0, promises_1.writeFile)(
|
|
10179
|
+
await (0, promises_1.writeFile)(path2, content, { encoding: "utf-8" });
|
|
10180
10180
|
}
|
|
10181
|
-
function directoryExists(
|
|
10181
|
+
function directoryExists(path2) {
|
|
10182
10182
|
try {
|
|
10183
|
-
return (0, node_fs_1.statSync)(
|
|
10183
|
+
return (0, node_fs_1.statSync)(path2).isDirectory();
|
|
10184
10184
|
} catch {
|
|
10185
10185
|
return false;
|
|
10186
10186
|
}
|
|
10187
10187
|
}
|
|
10188
|
-
function fileExists(
|
|
10188
|
+
function fileExists(path2) {
|
|
10189
10189
|
try {
|
|
10190
|
-
return (0, node_fs_1.statSync)(
|
|
10190
|
+
return (0, node_fs_1.statSync)(path2).isFile();
|
|
10191
10191
|
} catch {
|
|
10192
10192
|
return false;
|
|
10193
10193
|
}
|
|
10194
10194
|
}
|
|
10195
|
-
function createDirectory(
|
|
10196
|
-
(0, node_fs_1.mkdirSync)(
|
|
10195
|
+
function createDirectory(path2) {
|
|
10196
|
+
(0, node_fs_1.mkdirSync)(path2, { recursive: true });
|
|
10197
10197
|
}
|
|
10198
|
-
function isRelativePath(
|
|
10199
|
-
return
|
|
10198
|
+
function isRelativePath(path2) {
|
|
10199
|
+
return path2 === "." || path2 === ".." || path2.startsWith("./") || path2.startsWith("../");
|
|
10200
10200
|
}
|
|
10201
10201
|
async function extractFileFromTarball(tarballPath, file, destinationFilePath) {
|
|
10202
10202
|
return new Promise((resolve, reject) => {
|
|
@@ -10227,8 +10227,8 @@ var require_fileutils = __commonJS({
|
|
|
10227
10227
|
(0, node_fs_1.createReadStream)(tarballPath).pipe((0, zlib_1.createGunzip)()).pipe(tarExtractStream);
|
|
10228
10228
|
});
|
|
10229
10229
|
}
|
|
10230
|
-
function readFileIfExisting(
|
|
10231
|
-
return (0, node_fs_1.existsSync)(
|
|
10230
|
+
function readFileIfExisting(path2) {
|
|
10231
|
+
return (0, node_fs_1.existsSync)(path2) ? (0, node_fs_1.readFileSync)(path2, "utf-8") : "";
|
|
10232
10232
|
}
|
|
10233
10233
|
}
|
|
10234
10234
|
});
|
|
@@ -10241,7 +10241,7 @@ var require_workspace_root = __commonJS({
|
|
|
10241
10241
|
exports2.workspaceRoot = void 0;
|
|
10242
10242
|
exports2.setWorkspaceRoot = setWorkspaceRoot;
|
|
10243
10243
|
exports2.workspaceRootInner = workspaceRootInner;
|
|
10244
|
-
var
|
|
10244
|
+
var path2 = require("path");
|
|
10245
10245
|
var fileutils_1 = require_fileutils();
|
|
10246
10246
|
exports2.workspaceRoot = workspaceRootInner(process.cwd(), process.cwd());
|
|
10247
10247
|
function setWorkspaceRoot(root) {
|
|
@@ -10250,19 +10250,19 @@ var require_workspace_root = __commonJS({
|
|
|
10250
10250
|
function workspaceRootInner(dir, candidateRoot) {
|
|
10251
10251
|
if (process.env.NX_WORKSPACE_ROOT_PATH)
|
|
10252
10252
|
return process.env.NX_WORKSPACE_ROOT_PATH;
|
|
10253
|
-
if (
|
|
10253
|
+
if (path2.dirname(dir) === dir)
|
|
10254
10254
|
return candidateRoot;
|
|
10255
10255
|
const matches = [
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10256
|
+
path2.join(dir, "nx.json"),
|
|
10257
|
+
path2.join(dir, "nx"),
|
|
10258
|
+
path2.join(dir, "nx.bat")
|
|
10259
10259
|
];
|
|
10260
10260
|
if (matches.some((x) => (0, fileutils_1.fileExists)(x))) {
|
|
10261
10261
|
return dir;
|
|
10262
|
-
} else if ((0, fileutils_1.fileExists)(
|
|
10263
|
-
return workspaceRootInner(
|
|
10262
|
+
} else if ((0, fileutils_1.fileExists)(path2.join(dir, "node_modules", "nx", "package.json"))) {
|
|
10263
|
+
return workspaceRootInner(path2.dirname(dir), dir);
|
|
10264
10264
|
} else {
|
|
10265
|
-
return workspaceRootInner(
|
|
10265
|
+
return workspaceRootInner(path2.dirname(dir), candidateRoot);
|
|
10266
10266
|
}
|
|
10267
10267
|
}
|
|
10268
10268
|
}
|
|
@@ -10352,7 +10352,7 @@ var import_devkit = require("@nx/devkit");
|
|
|
10352
10352
|
var import_build_tools3 = require("@storm-software/build-tools");
|
|
10353
10353
|
var import_get_config = require("@storm-software/config-tools/get-config");
|
|
10354
10354
|
var import_console3 = require("@storm-software/config-tools/logger/console");
|
|
10355
|
-
var
|
|
10355
|
+
var import_correct_paths = require("@storm-software/config-tools/utilities/correct-paths");
|
|
10356
10356
|
var import_defu = __toESM(require("defu"), 1);
|
|
10357
10357
|
var import_node_fs = require("fs");
|
|
10358
10358
|
var import_promises2 = __toESM(require("fs/promises"), 1);
|
|
@@ -10404,54 +10404,6 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
10404
10404
|
}
|
|
10405
10405
|
};
|
|
10406
10406
|
|
|
10407
|
-
// src/plugins/resolve-paths.ts
|
|
10408
|
-
var import_correct_paths = require("@storm-software/config-tools/utilities/correct-paths");
|
|
10409
|
-
var import_node_path = __toESM(require("path"), 1);
|
|
10410
|
-
function resolvePathsConfig(options, cwd, projectRoot) {
|
|
10411
|
-
if (options?.compilerOptions?.paths) {
|
|
10412
|
-
const paths = Object.entries(options.compilerOptions.paths);
|
|
10413
|
-
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
10414
|
-
return [key, paths2.map((v) => import_node_path.default.resolve(cwd, v))];
|
|
10415
|
-
});
|
|
10416
|
-
return Object.fromEntries(resolvedPaths);
|
|
10417
|
-
}
|
|
10418
|
-
if (options.extends) {
|
|
10419
|
-
const extendsPath = import_node_path.default.resolve(
|
|
10420
|
-
projectRoot ? (0, import_correct_paths.joinPaths)(cwd, projectRoot, options.extends) : (0, import_correct_paths.joinPaths)(cwd, options.extends)
|
|
10421
|
-
);
|
|
10422
|
-
const extendsDir = import_node_path.default.dirname(extendsPath);
|
|
10423
|
-
const extendsConfig = require(extendsPath);
|
|
10424
|
-
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
10425
|
-
}
|
|
10426
|
-
return [];
|
|
10427
|
-
}
|
|
10428
|
-
var resolvePathsPlugin = (context) => ({
|
|
10429
|
-
name: "storm:resolve-paths",
|
|
10430
|
-
setup(build3) {
|
|
10431
|
-
const parentTsConfig = build3.initialOptions.tsconfig ? require((0, import_correct_paths.joinPaths)(
|
|
10432
|
-
context.workspaceConfig.workspaceRoot,
|
|
10433
|
-
build3.initialOptions.tsconfig.replace(
|
|
10434
|
-
context.workspaceConfig.workspaceRoot,
|
|
10435
|
-
""
|
|
10436
|
-
)
|
|
10437
|
-
)) : require((0, import_correct_paths.joinPaths)(context.workspaceConfig.workspaceRoot, "tsconfig.json"));
|
|
10438
|
-
const resolvedTsPaths = resolvePathsConfig(
|
|
10439
|
-
parentTsConfig,
|
|
10440
|
-
context.workspaceConfig.workspaceRoot,
|
|
10441
|
-
context.options.projectRoot
|
|
10442
|
-
);
|
|
10443
|
-
const packagesRegex = new RegExp(
|
|
10444
|
-
`^(${Object.keys(resolvedTsPaths).join("|")})$`
|
|
10445
|
-
);
|
|
10446
|
-
build3.onResolve({ filter: packagesRegex }, (args) => {
|
|
10447
|
-
if (build3.initialOptions.external?.includes(args.path)) {
|
|
10448
|
-
return { path: args.path, external: true };
|
|
10449
|
-
}
|
|
10450
|
-
return { path: `${resolvedTsPaths[args.path][0]}/index.ts` };
|
|
10451
|
-
});
|
|
10452
|
-
}
|
|
10453
|
-
});
|
|
10454
|
-
|
|
10455
10407
|
// src/context.ts
|
|
10456
10408
|
async function resolveContext(userOptions) {
|
|
10457
10409
|
const projectRoot = userOptions.projectRoot;
|
|
@@ -10467,7 +10419,7 @@ async function resolveContext(userOptions) {
|
|
|
10467
10419
|
const projectGraph = await (0, import_devkit.createProjectGraphAsync)({
|
|
10468
10420
|
exitOnError: true
|
|
10469
10421
|
});
|
|
10470
|
-
const projectJsonPath = (0,
|
|
10422
|
+
const projectJsonPath = (0, import_correct_paths.joinPaths)(
|
|
10471
10423
|
workspaceRoot.dir,
|
|
10472
10424
|
projectRoot,
|
|
10473
10425
|
"project.json"
|
|
@@ -10486,7 +10438,7 @@ async function resolveContext(userOptions) {
|
|
|
10486
10438
|
}
|
|
10487
10439
|
const options = (0, import_defu.default)(userOptions, DEFAULT_BUILD_OPTIONS);
|
|
10488
10440
|
options.name ??= projectName;
|
|
10489
|
-
const packageJsonPath = (0,
|
|
10441
|
+
const packageJsonPath = (0, import_correct_paths.joinPaths)(
|
|
10490
10442
|
workspaceRoot.dir,
|
|
10491
10443
|
options.projectRoot,
|
|
10492
10444
|
"package.json"
|
|
@@ -10497,7 +10449,7 @@ async function resolveContext(userOptions) {
|
|
|
10497
10449
|
const env = (0, import_build_tools3.getEnv)("esbuild", options);
|
|
10498
10450
|
const define = (0, import_defu.default)(options.define ?? {}, env ?? {});
|
|
10499
10451
|
const resolvedOptions = {
|
|
10500
|
-
tsconfig: (0,
|
|
10452
|
+
tsconfig: (0, import_correct_paths.joinPaths)(workspaceRoot.dir, projectRoot, "tsconfig.json"),
|
|
10501
10453
|
...options,
|
|
10502
10454
|
metafile: userOptions.mode === "development",
|
|
10503
10455
|
clean: false,
|
|
@@ -10523,18 +10475,15 @@ async function resolveContext(userOptions) {
|
|
|
10523
10475
|
projectConfigurations,
|
|
10524
10476
|
projectName,
|
|
10525
10477
|
projectGraph,
|
|
10526
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || (0,
|
|
10527
|
-
outputPath: resolvedOptions.outputPath || (0,
|
|
10478
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || (0, import_correct_paths.joinPaths)(resolvedOptions.projectRoot, "src"),
|
|
10479
|
+
outputPath: resolvedOptions.outputPath || (0, import_correct_paths.joinPaths)(
|
|
10528
10480
|
workspaceConfig.workspaceRoot,
|
|
10529
10481
|
"dist",
|
|
10530
10482
|
resolvedOptions.projectRoot
|
|
10531
10483
|
),
|
|
10532
10484
|
minify: resolvedOptions.minify || resolvedOptions.mode === "production"
|
|
10533
10485
|
};
|
|
10534
|
-
context.options.esbuildPlugins = [
|
|
10535
|
-
resolvePathsPlugin(context),
|
|
10536
|
-
...context.options.esbuildPlugins ?? []
|
|
10537
|
-
];
|
|
10486
|
+
context.options.esbuildPlugins = [...context.options.esbuildPlugins ?? []];
|
|
10538
10487
|
return context;
|
|
10539
10488
|
}
|
|
10540
10489
|
|
|
@@ -10542,14 +10491,14 @@ async function resolveContext(userOptions) {
|
|
|
10542
10491
|
var import_devkit2 = require("@nx/devkit");
|
|
10543
10492
|
var import_build_tools4 = require("@storm-software/build-tools");
|
|
10544
10493
|
var import_console4 = require("@storm-software/config-tools/logger/console");
|
|
10545
|
-
var
|
|
10494
|
+
var import_correct_paths2 = require("@storm-software/config-tools/utilities/correct-paths");
|
|
10546
10495
|
var import_node_fs2 = require("fs");
|
|
10547
10496
|
var import_promises3 = __toESM(require("fs/promises"), 1);
|
|
10548
10497
|
async function generatePackageJson(context) {
|
|
10549
|
-
if (context.options.generatePackageJson !== false && (0, import_node_fs2.existsSync)((0,
|
|
10498
|
+
if (context.options.generatePackageJson !== false && (0, import_node_fs2.existsSync)((0, import_correct_paths2.joinPaths)(context.options.projectRoot, "package.json"))) {
|
|
10550
10499
|
(0, import_console4.writeDebug)(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
10551
10500
|
const stopwatch = (0, import_console4.getStopwatch)("Write package.json file");
|
|
10552
|
-
const packageJsonPath = (0,
|
|
10501
|
+
const packageJsonPath = (0, import_correct_paths2.joinPaths)(
|
|
10553
10502
|
context.options.projectRoot,
|
|
10554
10503
|
"project.json"
|
|
10555
10504
|
);
|
|
@@ -10557,7 +10506,7 @@ async function generatePackageJson(context) {
|
|
|
10557
10506
|
throw new Error("Cannot find package.json configuration");
|
|
10558
10507
|
}
|
|
10559
10508
|
const packageJsonFile = await import_promises3.default.readFile(
|
|
10560
|
-
(0,
|
|
10509
|
+
(0, import_correct_paths2.joinPaths)(
|
|
10561
10510
|
context.workspaceConfig.workspaceRoot,
|
|
10562
10511
|
context.options.projectRoot,
|
|
10563
10512
|
"package.json"
|
|
@@ -10663,7 +10612,7 @@ async function generatePackageJson(context) {
|
|
|
10663
10612
|
}
|
|
10664
10613
|
}
|
|
10665
10614
|
await (0, import_devkit2.writeJsonFile)(
|
|
10666
|
-
(0,
|
|
10615
|
+
(0, import_correct_paths2.joinPaths)(context.outputPath, "package.json"),
|
|
10667
10616
|
packageJson
|
|
10668
10617
|
);
|
|
10669
10618
|
stopwatch();
|
|
@@ -10674,7 +10623,7 @@ async function generatePackageJson(context) {
|
|
|
10674
10623
|
// src/plugins/deps-check.ts
|
|
10675
10624
|
var import_console5 = require("@storm-software/config-tools/logger/console");
|
|
10676
10625
|
var import_node_module = require("module");
|
|
10677
|
-
var
|
|
10626
|
+
var import_node_path = __toESM(require("path"), 1);
|
|
10678
10627
|
var unusedIgnore = [
|
|
10679
10628
|
// these are our dev dependencies
|
|
10680
10629
|
/@types\/.*?/,
|
|
@@ -10703,7 +10652,7 @@ var missingIgnore = [".prisma", "@prisma/client", "ts-toolbelt"];
|
|
|
10703
10652
|
var depsCheckPlugin = (bundle) => ({
|
|
10704
10653
|
name: "storm:deps-check",
|
|
10705
10654
|
setup(build3) {
|
|
10706
|
-
const pkgJsonPath =
|
|
10655
|
+
const pkgJsonPath = import_node_path.default.join(process.cwd(), "package.json");
|
|
10707
10656
|
const pkgContents = require(pkgJsonPath);
|
|
10708
10657
|
const regDependencies = Object.keys(pkgContents["dependencies"] ?? {});
|
|
10709
10658
|
const devDependencies = Object.keys(pkgContents["devDependencies"] ?? {});
|
|
@@ -10756,7 +10705,7 @@ ${JSON.stringify(filteredMissingDeps)}
|
|
|
10756
10705
|
|
|
10757
10706
|
// src/tsup.ts
|
|
10758
10707
|
var import_console6 = require("@storm-software/config-tools/logger/console");
|
|
10759
|
-
var
|
|
10708
|
+
var import_correct_paths3 = require("@storm-software/config-tools/utilities/correct-paths");
|
|
10760
10709
|
var import_tsup = require("tsup");
|
|
10761
10710
|
async function executeTsup(context) {
|
|
10762
10711
|
(0, import_console6.writeDebug)(
|
|
@@ -10766,7 +10715,7 @@ async function executeTsup(context) {
|
|
|
10766
10715
|
const stopwatch = (0, import_console6.getStopwatch)(`${context.options.name} build`);
|
|
10767
10716
|
await (0, import_tsup.build)({
|
|
10768
10717
|
...context.options,
|
|
10769
|
-
outDir: context.options.distDir ? (0,
|
|
10718
|
+
outDir: context.options.distDir ? (0, import_correct_paths3.joinPaths)(context.outputPath, context.options.distDir) : context.outputPath,
|
|
10770
10719
|
workspaceConfig: context.workspaceConfig
|
|
10771
10720
|
});
|
|
10772
10721
|
stopwatch();
|
package/dist/assets.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var _chunkLBRDOW2Vcjs = require('./chunk-LBRDOW2V.cjs');
|
|
4
|
+
require('./chunk-55UPQQ65.cjs');
|
|
5
|
+
require('./chunk-RBXXACL5.cjs');
|
|
6
|
+
require('./chunk-B3MHVZOK.cjs');
|
|
7
7
|
require('./chunk-JCICRU7K.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.copyBuildAssets =
|
|
10
|
+
exports.copyBuildAssets = _chunkLBRDOW2Vcjs.copyBuildAssets;
|
package/dist/assets.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copyBuildAssets
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-CEJM5IFH.js";
|
|
4
|
+
import "./chunk-Q3WZPCLD.js";
|
|
5
|
+
import "./chunk-NACKZM5D.js";
|
|
6
|
+
import "./chunk-KV6GNLVF.js";
|
|
7
7
|
import "./chunk-72UBXZRO.js";
|
|
8
8
|
export {
|
|
9
9
|
copyBuildAssets
|
package/dist/build.cjs
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-4PZGT5BH.cjs');
|
|
3
|
+
var _chunkBWMW4ZUScjs = require('./chunk-BWMW4ZUS.cjs');
|
|
4
|
+
require('./chunk-T4N45NGL.cjs');
|
|
5
|
+
require('./chunk-LBRDOW2V.cjs');
|
|
6
|
+
require('./chunk-NLIYZM5H.cjs');
|
|
7
|
+
require('./chunk-H7NSISN4.cjs');
|
|
8
|
+
require('./chunk-IULOZ7MO.cjs');
|
|
9
|
+
require('./chunk-BK5GLVSJ.cjs');
|
|
10
|
+
require('./chunk-55UPQQ65.cjs');
|
|
11
|
+
require('./chunk-C25ALB4J.cjs');
|
|
12
|
+
require('./chunk-RBXXACL5.cjs');
|
|
13
|
+
require('./chunk-B3MHVZOK.cjs');
|
|
15
14
|
require('./chunk-JCICRU7K.cjs');
|
|
16
15
|
|
|
17
16
|
|
|
18
|
-
exports.build =
|
|
17
|
+
exports.build = _chunkBWMW4ZUScjs.build;
|
package/dist/build.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-F3R5ZFGB.js";
|
|
3
|
+
} from "./chunk-7KIT5JE6.js";
|
|
4
|
+
import "./chunk-VNLMOUVN.js";
|
|
5
|
+
import "./chunk-CEJM5IFH.js";
|
|
6
|
+
import "./chunk-2LYIFO7K.js";
|
|
7
|
+
import "./chunk-RNXNYWO3.js";
|
|
8
|
+
import "./chunk-FHHEEOIV.js";
|
|
9
|
+
import "./chunk-VLK67MTI.js";
|
|
10
|
+
import "./chunk-Q3WZPCLD.js";
|
|
11
|
+
import "./chunk-KXZCIMKJ.js";
|
|
12
|
+
import "./chunk-NACKZM5D.js";
|
|
13
|
+
import "./chunk-KV6GNLVF.js";
|
|
15
14
|
import "./chunk-72UBXZRO.js";
|
|
16
15
|
export {
|
|
17
16
|
build
|