@storm-software/esbuild 0.35.8 → 0.35.9
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/bin/esbuild.cjs +3 -3
- package/dist/build.cjs +4 -4
- package/dist/build.js +3 -3
- package/dist/{chunk-A66EGME2.js → chunk-DU5R4RJA.js} +1 -1
- package/dist/{chunk-GCKE6M7A.js → chunk-JHQYSHQ5.js} +1 -1
- package/dist/{chunk-G277DR3N.cjs → chunk-JS5GZ7ZE.cjs} +2 -2
- package/dist/{chunk-VEN2NPFW.cjs → chunk-JZBM4QKF.cjs} +2 -2
- package/dist/{chunk-E6GNR4XY.cjs → chunk-YXJYZG6O.cjs} +3 -3
- package/dist/{chunk-SPVR557L.js → chunk-ZILTNBKJ.js} +3 -3
- package/dist/context.cjs +3 -3
- package/dist/context.js +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.js +3 -3
- package/dist/plugins/resolve-paths.cjs +2 -2
- package/dist/plugins/resolve-paths.js +1 -1
- package/package.json +4 -4
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/bin/esbuild.cjs
CHANGED
|
@@ -12038,7 +12038,7 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
12038
12038
|
// src/plugins/resolve-paths.ts
|
|
12039
12039
|
var import_correct_paths = require("@storm-software/config-tools/utilities/correct-paths");
|
|
12040
12040
|
var import_node_path = __toESM(require("path"), 1);
|
|
12041
|
-
function resolvePathsConfig(options, cwd) {
|
|
12041
|
+
function resolvePathsConfig(options, cwd, projectRoot) {
|
|
12042
12042
|
if (options?.compilerOptions?.paths) {
|
|
12043
12043
|
const paths = Object.entries(options.compilerOptions.paths);
|
|
12044
12044
|
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
@@ -12050,7 +12050,7 @@ function resolvePathsConfig(options, cwd) {
|
|
|
12050
12050
|
return Object.fromEntries(resolvedPaths);
|
|
12051
12051
|
}
|
|
12052
12052
|
if (options.extends) {
|
|
12053
|
-
const extendsPath = import_node_path.default.resolve(cwd, options.extends);
|
|
12053
|
+
const extendsPath = import_node_path.default.resolve(projectRoot ? (0, import_correct_paths.joinPaths)(cwd, projectRoot, options.extends) : (0, import_correct_paths.joinPaths)(cwd, options.extends));
|
|
12054
12054
|
const extendsDir = import_node_path.default.dirname(extendsPath);
|
|
12055
12055
|
const extendsConfig = require(extendsPath);
|
|
12056
12056
|
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
@@ -12062,7 +12062,7 @@ var resolvePathsPlugin = /* @__PURE__ */ __name((context) => ({
|
|
|
12062
12062
|
name: "storm:resolve-paths",
|
|
12063
12063
|
setup(build3) {
|
|
12064
12064
|
const parentTsConfig = build3.initialOptions.tsconfig ? require((0, import_correct_paths.joinPaths)(context.workspaceConfig.workspaceRoot, build3.initialOptions.tsconfig.replace(context.workspaceConfig.workspaceRoot, ""))) : require((0, import_correct_paths.joinPaths)(context.workspaceConfig.workspaceRoot, "tsconfig.json"));
|
|
12065
|
-
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot);
|
|
12065
|
+
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot, context.options.projectRoot);
|
|
12066
12066
|
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
12067
12067
|
build3.onResolve({
|
|
12068
12068
|
filter: packagesRegex
|
package/dist/build.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkJS5GZ7ZEcjs = require('./chunk-JS5GZ7ZE.cjs');
|
|
4
4
|
require('./chunk-N6KCNJOR.cjs');
|
|
5
5
|
require('./chunk-KK2BGIRB.cjs');
|
|
6
6
|
require('./chunk-IV2WE7RO.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-JZBM4QKF.cjs');
|
|
8
|
+
require('./chunk-YXJYZG6O.cjs');
|
|
9
9
|
require('./chunk-ZDMKNQUW.cjs');
|
|
10
10
|
require('./chunk-CY4KF2US.cjs');
|
|
11
11
|
require('./chunk-B4NWTB7S.cjs');
|
|
@@ -15,4 +15,4 @@ require('./chunk-Q77NJNNL.cjs');
|
|
|
15
15
|
require('./chunk-TKNLZW4V.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.build =
|
|
18
|
+
exports.build = _chunkJS5GZ7ZEcjs.build;
|
package/dist/build.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DU5R4RJA.js";
|
|
4
4
|
import "./chunk-GWGBQKRY.js";
|
|
5
5
|
import "./chunk-CA7VVNV2.js";
|
|
6
6
|
import "./chunk-GKAHDFNO.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-JHQYSHQ5.js";
|
|
8
|
+
import "./chunk-ZILTNBKJ.js";
|
|
9
9
|
import "./chunk-JNDYTIRD.js";
|
|
10
10
|
import "./chunk-EBZ4R3MW.js";
|
|
11
11
|
import "./chunk-SAK5QFCE.js";
|
|
@@ -9,7 +9,7 @@ var _chunkKK2BGIRBcjs = require('./chunk-KK2BGIRB.cjs');
|
|
|
9
9
|
var _chunkIV2WE7ROcjs = require('./chunk-IV2WE7RO.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkJZBM4QKFcjs = require('./chunk-JZBM4QKF.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkCY4KF2UScjs = require('./chunk-CY4KF2US.cjs');
|
|
@@ -95,7 +95,7 @@ async function build2(options) {
|
|
|
95
95
|
if (opts.length === 0) {
|
|
96
96
|
throw new Error("No build options were provided");
|
|
97
97
|
}
|
|
98
|
-
const context = await
|
|
98
|
+
const context = await _chunkJZBM4QKFcjs.resolveContext.call(void 0, options);
|
|
99
99
|
await cleanOutputPath(context);
|
|
100
100
|
await Promise.all([
|
|
101
101
|
dependencyCheck(context.options),
|
|
@@ -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 _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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 _chunkYXJYZG6Ocjs = require('./chunk-YXJYZG6O.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkZDMKNQUWcjs = require('./chunk-ZDMKNQUW.cjs');
|
|
@@ -92,7 +92,7 @@ async function resolveContext(userOptions) {
|
|
|
92
92
|
minify: resolvedOptions.minify || resolvedOptions.mode === "production"
|
|
93
93
|
};
|
|
94
94
|
context.options.esbuildPlugins = [
|
|
95
|
-
|
|
95
|
+
_chunkYXJYZG6Ocjs.resolvePathsPlugin.call(void 0, context),
|
|
96
96
|
..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))
|
|
97
97
|
];
|
|
98
98
|
return context;
|
|
@@ -10,7 +10,7 @@ var _chunkTKNLZW4Vcjs = require('./chunk-TKNLZW4V.cjs');
|
|
|
10
10
|
// src/plugins/resolve-paths.ts
|
|
11
11
|
_chunkTKNLZW4Vcjs.init_cjs_shims.call(void 0, );
|
|
12
12
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
13
|
-
function resolvePathsConfig(options, cwd) {
|
|
13
|
+
function resolvePathsConfig(options, cwd, projectRoot) {
|
|
14
14
|
if (_optionalChain([options, 'optionalAccess', _ => _.compilerOptions, 'optionalAccess', _2 => _2.paths])) {
|
|
15
15
|
const paths = Object.entries(options.compilerOptions.paths);
|
|
16
16
|
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
@@ -22,7 +22,7 @@ function resolvePathsConfig(options, cwd) {
|
|
|
22
22
|
return Object.fromEntries(resolvedPaths);
|
|
23
23
|
}
|
|
24
24
|
if (options.extends) {
|
|
25
|
-
const extendsPath = _path2.default.resolve(cwd, options.extends);
|
|
25
|
+
const extendsPath = _path2.default.resolve(projectRoot ? _chunkQ77NJNNLcjs.joinPaths.call(void 0, cwd, projectRoot, options.extends) : _chunkQ77NJNNLcjs.joinPaths.call(void 0, cwd, options.extends));
|
|
26
26
|
const extendsDir = _path2.default.dirname(extendsPath);
|
|
27
27
|
const extendsConfig = _chunkTKNLZW4Vcjs.__require.call(void 0, extendsPath);
|
|
28
28
|
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
@@ -34,7 +34,7 @@ var resolvePathsPlugin = /* @__PURE__ */ _chunkTKNLZW4Vcjs.__name.call(void 0, (
|
|
|
34
34
|
name: "storm:resolve-paths",
|
|
35
35
|
setup(build) {
|
|
36
36
|
const parentTsConfig = build.initialOptions.tsconfig ? _chunkTKNLZW4Vcjs.__require.call(void 0, _chunkQ77NJNNLcjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, build.initialOptions.tsconfig.replace(context.workspaceConfig.workspaceRoot, ""))) : _chunkTKNLZW4Vcjs.__require.call(void 0, _chunkQ77NJNNLcjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, "tsconfig.json"));
|
|
37
|
-
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot);
|
|
37
|
+
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot, context.options.projectRoot);
|
|
38
38
|
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
39
39
|
build.onResolve({
|
|
40
40
|
filter: packagesRegex
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
// src/plugins/resolve-paths.ts
|
|
11
11
|
init_esm_shims();
|
|
12
12
|
import path from "node:path";
|
|
13
|
-
function resolvePathsConfig(options, cwd) {
|
|
13
|
+
function resolvePathsConfig(options, cwd, projectRoot) {
|
|
14
14
|
if (options?.compilerOptions?.paths) {
|
|
15
15
|
const paths = Object.entries(options.compilerOptions.paths);
|
|
16
16
|
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
@@ -22,7 +22,7 @@ function resolvePathsConfig(options, cwd) {
|
|
|
22
22
|
return Object.fromEntries(resolvedPaths);
|
|
23
23
|
}
|
|
24
24
|
if (options.extends) {
|
|
25
|
-
const extendsPath = path.resolve(cwd, options.extends);
|
|
25
|
+
const extendsPath = path.resolve(projectRoot ? joinPaths(cwd, projectRoot, options.extends) : joinPaths(cwd, options.extends));
|
|
26
26
|
const extendsDir = path.dirname(extendsPath);
|
|
27
27
|
const extendsConfig = __require(extendsPath);
|
|
28
28
|
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
@@ -34,7 +34,7 @@ var resolvePathsPlugin = /* @__PURE__ */ __name((context) => ({
|
|
|
34
34
|
name: "storm:resolve-paths",
|
|
35
35
|
setup(build) {
|
|
36
36
|
const parentTsConfig = build.initialOptions.tsconfig ? __require(joinPaths(context.workspaceConfig.workspaceRoot, build.initialOptions.tsconfig.replace(context.workspaceConfig.workspaceRoot, ""))) : __require(joinPaths(context.workspaceConfig.workspaceRoot, "tsconfig.json"));
|
|
37
|
-
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot);
|
|
37
|
+
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot, context.options.projectRoot);
|
|
38
38
|
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
39
39
|
build.onResolve({
|
|
40
40
|
filter: packagesRegex
|
package/dist/context.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkJZBM4QKFcjs = require('./chunk-JZBM4QKF.cjs');
|
|
4
|
+
require('./chunk-YXJYZG6O.cjs');
|
|
5
5
|
require('./chunk-ZDMKNQUW.cjs');
|
|
6
6
|
require('./chunk-B4NWTB7S.cjs');
|
|
7
7
|
require('./chunk-2NQYRZKO.cjs');
|
|
@@ -9,4 +9,4 @@ require('./chunk-Q77NJNNL.cjs');
|
|
|
9
9
|
require('./chunk-TKNLZW4V.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.resolveContext =
|
|
12
|
+
exports.resolveContext = _chunkJZBM4QKFcjs.resolveContext;
|
package/dist/context.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-5R3LX6E4.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJS5GZ7ZEcjs = require('./chunk-JS5GZ7ZE.cjs');
|
|
5
5
|
require('./chunk-N6KCNJOR.cjs');
|
|
6
6
|
require('./chunk-KK2BGIRB.cjs');
|
|
7
7
|
require('./chunk-IV2WE7RO.cjs');
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-JZBM4QKF.cjs');
|
|
9
|
+
require('./chunk-YXJYZG6O.cjs');
|
|
10
10
|
require('./chunk-ZDMKNQUW.cjs');
|
|
11
11
|
require('./chunk-CY4KF2US.cjs');
|
|
12
12
|
require('./chunk-B4NWTB7S.cjs');
|
|
@@ -21,4 +21,4 @@ var _chunkTKNLZW4Vcjs = require('./chunk-TKNLZW4V.cjs');
|
|
|
21
21
|
_chunkTKNLZW4Vcjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
exports.build =
|
|
24
|
+
exports.build = _chunkJS5GZ7ZEcjs.build;
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./chunk-UA2A6OC6.js";
|
|
2
2
|
import {
|
|
3
3
|
build
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DU5R4RJA.js";
|
|
5
5
|
import "./chunk-GWGBQKRY.js";
|
|
6
6
|
import "./chunk-CA7VVNV2.js";
|
|
7
7
|
import "./chunk-GKAHDFNO.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-JHQYSHQ5.js";
|
|
9
|
+
import "./chunk-ZILTNBKJ.js";
|
|
10
10
|
import "./chunk-JNDYTIRD.js";
|
|
11
11
|
import "./chunk-EBZ4R3MW.js";
|
|
12
12
|
import "./chunk-SAK5QFCE.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkYXJYZG6Ocjs = require('../chunk-YXJYZG6O.cjs');
|
|
4
4
|
require('../chunk-Q77NJNNL.cjs');
|
|
5
5
|
require('../chunk-TKNLZW4V.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.resolvePathsPlugin =
|
|
8
|
+
exports.resolvePathsPlugin = _chunkYXJYZG6Ocjs.resolvePathsPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/esbuild",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -186,9 +186,9 @@
|
|
|
186
186
|
"dependencies": {
|
|
187
187
|
"@nx/devkit": "20.8.0",
|
|
188
188
|
"@nx/js": "20.8.0",
|
|
189
|
-
"@storm-software/build-tools": "0.144.
|
|
190
|
-
"@storm-software/config": "1.113.
|
|
191
|
-
"@storm-software/config-tools": "1.163.
|
|
189
|
+
"@storm-software/build-tools": "0.144.18",
|
|
190
|
+
"@storm-software/config": "1.113.22",
|
|
191
|
+
"@storm-software/config-tools": "1.163.23",
|
|
192
192
|
"chokidar": "^4.0.3",
|
|
193
193
|
"commander": "^12.1.0",
|
|
194
194
|
"defu": "6.1.4",
|