@storm-software/esbuild 0.34.0 → 0.34.2
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 +5 -5
- package/dist/build.cjs +15 -15
- package/dist/build.d.cts +1 -1
- package/dist/build.d.ts +1 -1
- package/dist/build.js +14 -14
- package/dist/{chunk-WRBUO7H6.cjs → chunk-27VOV3G4.cjs} +2 -2
- package/dist/{chunk-GWG4HOQ6.js → chunk-2TG2H4XL.js} +1 -1
- package/dist/{chunk-XEGYFRBF.js → chunk-2X5ZMEAN.js} +2 -2
- package/dist/{chunk-35YNFZCF.js → chunk-3PF5YMWK.js} +2 -2
- package/dist/{chunk-S2P6KHZV.js → chunk-3QHFCKSI.js} +3 -3
- package/dist/{chunk-RGWII6NP.js → chunk-5RVOO3YF.js} +2 -2
- package/dist/{chunk-LYDEMC26.js → chunk-AZON722Q.js} +1 -1
- package/dist/chunk-B4CUDMY2.cjs +39 -0
- package/dist/{chunk-MWGFCZF4.cjs → chunk-BNPCRQK4.cjs} +6 -6
- package/dist/{chunk-K6QIYIIY.cjs → chunk-BOFHC4OE.cjs} +4 -4
- package/dist/{chunk-IO2TXOKO.js → chunk-BWSIRV3D.js} +2 -2
- package/dist/chunk-CCEWV2BR.js +39 -0
- package/dist/{chunk-ETTFFUNG.cjs → chunk-CGMLIVTB.cjs} +12 -12
- package/dist/chunk-DPRINYB6.js +2939 -0
- package/dist/{chunk-Y3LXNK5C.cjs → chunk-GJHRTQAS.cjs} +36 -36
- package/dist/{chunk-EZGTDCYM.cjs → chunk-ILJQ4NCE.cjs} +4 -4
- package/dist/chunk-M3AOQRGN.cjs +2939 -0
- package/dist/{chunk-IMVMVEQS.cjs → chunk-N62ZR7UV.cjs} +17 -17
- package/dist/{chunk-4TQE46SC.cjs → chunk-QKJ7KLDL.cjs} +6 -6
- package/dist/{chunk-GQCYZOAM.cjs → chunk-RLQJRD62.cjs} +2 -2
- package/dist/{chunk-KGKL7VDG.js → chunk-SKJRUPDP.js} +11 -10
- package/dist/{chunk-IX6DNVUR.js → chunk-STCE44IS.js} +2 -2
- package/dist/{chunk-AXEZCHZS.cjs → chunk-TDBBRZTC.cjs} +99 -98
- package/dist/{chunk-Y4XWI6JJ.cjs → chunk-TH2QFJHI.cjs} +6 -6
- package/dist/{chunk-T5272PC2.js → chunk-UYE6LM4C.js} +1 -1
- package/dist/{chunk-XITTOHOG.cjs → chunk-VPTKC3UK.cjs} +6 -6
- package/dist/{chunk-2IGRKQGI.js → chunk-VQHKIS7J.js} +2 -2
- package/dist/{chunk-HXMVEX3P.js → chunk-XLUZXKDY.js} +1 -1
- package/dist/{chunk-S6M44SSZ.cjs → chunk-Y5SBBYX3.cjs} +3 -3
- package/dist/{chunk-YMTDVMD6.js → chunk-Y7JBB452.js} +1 -1
- package/dist/clean.cjs +5 -5
- package/dist/clean.d.cts +1 -1
- package/dist/clean.d.ts +1 -1
- package/dist/clean.js +4 -4
- package/dist/config.cjs +12 -12
- package/dist/config.d.cts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/config.js +11 -11
- package/dist/index.cjs +16 -16
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -15
- package/dist/plugins/deps-check.cjs +5 -5
- package/dist/plugins/deps-check.js +4 -4
- package/dist/plugins/esm-split-code-to-cjs.cjs +3 -3
- package/dist/plugins/esm-split-code-to-cjs.d.cts +1 -1
- package/dist/plugins/esm-split-code-to-cjs.d.ts +1 -1
- package/dist/plugins/esm-split-code-to-cjs.js +2 -2
- package/dist/plugins/fix-imports.cjs +3 -3
- package/dist/plugins/fix-imports.d.cts +1 -1
- package/dist/plugins/fix-imports.d.ts +1 -1
- package/dist/plugins/fix-imports.js +2 -2
- package/dist/plugins/native-node-module.cjs +3 -3
- package/dist/plugins/native-node-module.d.cts +1 -1
- package/dist/plugins/native-node-module.d.ts +1 -1
- package/dist/plugins/native-node-module.js +2 -2
- package/dist/plugins/node-protocol.cjs +3 -3
- package/dist/plugins/node-protocol.d.cts +1 -1
- package/dist/plugins/node-protocol.d.ts +1 -1
- package/dist/plugins/node-protocol.js +2 -2
- package/dist/plugins/on-error.cjs +5 -5
- package/dist/plugins/on-error.d.cts +1 -1
- package/dist/plugins/on-error.d.ts +1 -1
- package/dist/plugins/on-error.js +4 -4
- package/dist/plugins/resolve-paths.cjs +4 -4
- package/dist/plugins/resolve-paths.d.cts +1 -1
- package/dist/plugins/resolve-paths.d.ts +1 -1
- package/dist/plugins/resolve-paths.js +3 -3
- package/dist/plugins/tsc.cjs +5 -5
- package/dist/plugins/tsc.d.cts +1 -1
- package/dist/plugins/tsc.d.ts +1 -1
- package/dist/plugins/tsc.js +4 -4
- package/dist/tsc.cjs +5 -5
- package/dist/tsc.d.cts +1 -1
- package/dist/tsc.d.ts +1 -1
- package/dist/tsc.js +4 -4
- package/dist/{types-DwxFThZu.d.ts → types-B4jbZA4j.d.cts} +14 -14
- package/dist/{types-DwxFThZu.d.cts → types-B4jbZA4j.d.ts} +14 -14
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-3GQAWCBQ.js +0 -13
- package/dist/chunk-BGYQAVKQ.cjs +0 -13
- package/dist/chunk-E5AAO2PH.cjs +0 -422
- package/dist/chunk-X6OXFNDR.js +0 -422
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
|
@@ -78,6 +78,7 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
78
78
|
keepNames: true,
|
|
79
79
|
metafile: false,
|
|
80
80
|
treeshake: true,
|
|
81
|
+
splitting: true,
|
|
81
82
|
shims: false,
|
|
82
83
|
watch: false,
|
|
83
84
|
bundle: true,
|
|
@@ -227,24 +228,23 @@ async function resolveContext(userOptions) {
|
|
|
227
228
|
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.");
|
|
228
229
|
}
|
|
229
230
|
const options = (0, import_defu.default)(userOptions, DEFAULT_BUILD_OPTIONS);
|
|
231
|
+
options.name ??= projectName;
|
|
230
232
|
const packageJsonPath = (0, import_correct_paths.joinPaths)(workspaceRoot.dir, options.projectRoot, "package.json");
|
|
231
233
|
if (!(0, import_node_fs.existsSync)(packageJsonPath)) {
|
|
232
234
|
throw new Error("Cannot find package.json configuration");
|
|
233
235
|
}
|
|
234
236
|
const env = (0, import_build_tools2.getEnv)("esbuild", options);
|
|
237
|
+
const define = (0, import_defu.default)(options.define ?? {}, env ?? {});
|
|
235
238
|
const resolvedOptions = {
|
|
236
|
-
name: projectName,
|
|
237
239
|
...options,
|
|
238
240
|
tsconfig: (0, import_correct_paths.joinPaths)(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
239
241
|
metafile: userOptions.mode === "development",
|
|
240
242
|
clean: false,
|
|
241
|
-
splitting: options.format === "iife" ? false : options.treeshake === void 0 ? options.splitting : true,
|
|
242
243
|
env,
|
|
243
244
|
define: {
|
|
244
245
|
STORM_FORMAT: JSON.stringify(options.format),
|
|
245
|
-
...
|
|
246
|
-
|
|
247
|
-
const value = JSON.stringify(env[key]);
|
|
246
|
+
...Object.keys(define).filter((key) => define[key] !== void 0).reduce((res, key) => {
|
|
247
|
+
const value = JSON.stringify(define[key]);
|
|
248
248
|
const safeKey = key.replaceAll("(", "").replaceAll(")", "");
|
|
249
249
|
return {
|
|
250
250
|
...res,
|
package/dist/build.cjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
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-
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
4
|
+
var _chunkM3AOQRGNcjs = require('./chunk-M3AOQRGN.cjs');
|
|
5
|
+
require('./chunk-TH2QFJHI.cjs');
|
|
6
|
+
require('./chunk-TDBBRZTC.cjs');
|
|
7
|
+
require('./chunk-ILJQ4NCE.cjs');
|
|
8
|
+
require('./chunk-Y5SBBYX3.cjs');
|
|
9
|
+
require('./chunk-27VOV3G4.cjs');
|
|
10
|
+
require('./chunk-BOFHC4OE.cjs');
|
|
11
|
+
require('./chunk-QKJ7KLDL.cjs');
|
|
12
|
+
require('./chunk-N62ZR7UV.cjs');
|
|
13
|
+
require('./chunk-BNPCRQK4.cjs');
|
|
14
|
+
require('./chunk-GJHRTQAS.cjs');
|
|
15
|
+
require('./chunk-VPTKC3UK.cjs');
|
|
16
|
+
require('./chunk-RLQJRD62.cjs');
|
|
17
|
+
require('./chunk-B4CUDMY2.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.build =
|
|
21
|
+
exports.build = _chunkM3AOQRGNcjs.build; exports.watch = _chunkM3AOQRGNcjs.watch;
|
package/dist/build.d.cts
CHANGED
package/dist/build.d.ts
CHANGED
package/dist/build.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build,
|
|
3
3
|
watch
|
|
4
|
-
} from "./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-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-DPRINYB6.js";
|
|
5
|
+
import "./chunk-3PF5YMWK.js";
|
|
6
|
+
import "./chunk-SKJRUPDP.js";
|
|
7
|
+
import "./chunk-2TG2H4XL.js";
|
|
8
|
+
import "./chunk-UYE6LM4C.js";
|
|
9
|
+
import "./chunk-AZON722Q.js";
|
|
10
|
+
import "./chunk-BWSIRV3D.js";
|
|
11
|
+
import "./chunk-5RVOO3YF.js";
|
|
12
|
+
import "./chunk-3QHFCKSI.js";
|
|
13
|
+
import "./chunk-STCE44IS.js";
|
|
14
|
+
import "./chunk-VQHKIS7J.js";
|
|
15
|
+
import "./chunk-Y7JBB452.js";
|
|
16
|
+
import "./chunk-XLUZXKDY.js";
|
|
17
|
+
import "./chunk-CCEWV2BR.js";
|
|
18
18
|
export {
|
|
19
19
|
build,
|
|
20
20
|
watch
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkB4CUDMY2cjs = require('./chunk-B4CUDMY2.cjs');
|
|
4
4
|
|
|
5
5
|
// src/plugins/node-protocol.ts
|
|
6
|
-
var nodeProtocolPlugin = /* @__PURE__ */
|
|
6
|
+
var nodeProtocolPlugin = /* @__PURE__ */ _chunkB4CUDMY2cjs.__name.call(void 0, (options, resolvedOptions) => {
|
|
7
7
|
const nodeProtocol = "node:";
|
|
8
8
|
return {
|
|
9
9
|
name: "node-protocol-plugin",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VQHKIS7J.js";
|
|
4
4
|
import {
|
|
5
5
|
joinPaths
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Y7JBB452.js";
|
|
7
7
|
import {
|
|
8
8
|
__name,
|
|
9
9
|
__require
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CCEWV2BR.js";
|
|
11
11
|
|
|
12
12
|
// src/plugins/tsc.ts
|
|
13
13
|
import { Extractor, ExtractorConfig } from "@microsoft/api-extractor";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
|
+
for (let key of __getOwnPropNames(from))
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
21
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
26
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
27
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
28
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
31
|
+
mod
|
|
32
|
+
));
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
exports.__name = __name; exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM;
|
|
@@ -1,11 +1,11 @@
|
|
|
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(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGJHRTQAScjs = require('./chunk-GJHRTQAS.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkB4CUDMY2cjs = require('./chunk-B4CUDMY2.cjs');
|
|
9
9
|
|
|
10
10
|
// src/plugins/deps-check.ts
|
|
11
11
|
var _module = require('module');
|
|
@@ -39,11 +39,11 @@ var missingIgnore = [
|
|
|
39
39
|
"@prisma/client",
|
|
40
40
|
"ts-toolbelt"
|
|
41
41
|
];
|
|
42
|
-
var depsCheckPlugin = /* @__PURE__ */
|
|
42
|
+
var depsCheckPlugin = /* @__PURE__ */ _chunkB4CUDMY2cjs.__name.call(void 0, (bundle) => ({
|
|
43
43
|
name: "storm:deps-check",
|
|
44
44
|
setup(build) {
|
|
45
45
|
const pkgJsonPath = _path2.default.join(process.cwd(), "package.json");
|
|
46
|
-
const pkgContents =
|
|
46
|
+
const pkgContents = _chunkB4CUDMY2cjs.__require.call(void 0, pkgJsonPath);
|
|
47
47
|
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
48
48
|
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
49
49
|
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
@@ -86,8 +86,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (bun
|
|
|
86
86
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
87
87
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
88
88
|
});
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
_chunkGJHRTQAScjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
90
|
+
_chunkGJHRTQAScjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
91
91
|
if (filteredMissingDeps.length > 0) {
|
|
92
92
|
throw new Error(`Missing dependencies detected - please install them:
|
|
93
93
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGJHRTQAScjs = require('./chunk-GJHRTQAS.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkB4CUDMY2cjs = require('./chunk-B4CUDMY2.cjs');
|
|
7
7
|
|
|
8
8
|
// src/plugins/on-error.ts
|
|
9
|
-
var onErrorPlugin = /* @__PURE__ */
|
|
9
|
+
var onErrorPlugin = /* @__PURE__ */ _chunkB4CUDMY2cjs.__name.call(void 0, (options, resolvedOptions) => ({
|
|
10
10
|
name: "storm:on-error",
|
|
11
11
|
setup(build) {
|
|
12
12
|
build.onEnd((result) => {
|
|
13
13
|
if (result.errors.length > 0 && process.env.WATCH !== "true") {
|
|
14
|
-
|
|
14
|
+
_chunkGJHRTQAScjs.writeError.call(void 0, `The following errors occurred during the build:
|
|
15
15
|
${result.errors.map((error) => error.text).join("\n")}
|
|
16
16
|
|
|
17
17
|
`);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VQHKIS7J.js";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CCEWV2BR.js";
|
|
7
7
|
|
|
8
8
|
// src/plugins/on-error.ts
|
|
9
9
|
var onErrorPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
|
+
for (let key of __getOwnPropNames(from))
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
21
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
26
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
27
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
28
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
31
|
+
mod
|
|
32
|
+
));
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
__name,
|
|
36
|
+
__require,
|
|
37
|
+
__commonJS,
|
|
38
|
+
__toESM
|
|
39
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGJHRTQAScjs = require('./chunk-GJHRTQAS.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkB4CUDMY2cjs = require('./chunk-B4CUDMY2.cjs');
|
|
7
7
|
|
|
8
8
|
// src/tsc.ts
|
|
9
9
|
var _bundlerequire = require('bundle-require');
|
|
@@ -24,7 +24,7 @@ function ensureTempDeclarationDir(workspaceConfig) {
|
|
|
24
24
|
_fs.writeFileSync.call(void 0, gitIgnorePath, "**/*\n");
|
|
25
25
|
return dirPath;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
_chunkB4CUDMY2cjs.__name.call(void 0, ensureTempDeclarationDir, "ensureTempDeclarationDir");
|
|
28
28
|
function slash(path) {
|
|
29
29
|
const isExtendedLengthPath = path.startsWith("\\\\?\\");
|
|
30
30
|
if (isExtendedLengthPath) {
|
|
@@ -32,17 +32,17 @@ function slash(path) {
|
|
|
32
32
|
}
|
|
33
33
|
return path.replace(/\\/g, "/");
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
_chunkB4CUDMY2cjs.__name.call(void 0, slash, "slash");
|
|
36
36
|
function toAbsolutePath(workspaceConfig, p, cwd) {
|
|
37
37
|
if (_path.isAbsolute.call(void 0, p)) {
|
|
38
38
|
return p;
|
|
39
39
|
}
|
|
40
40
|
return slash(_path.normalize.call(void 0, _path.join.call(void 0, cwd || workspaceConfig.workspaceRoot, p)));
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
_chunkB4CUDMY2cjs.__name.call(void 0, toAbsolutePath, "toAbsolutePath");
|
|
43
43
|
var AliasPool = (_class = class AliasPool2 {constructor() { _class.prototype.__init.call(this); }
|
|
44
44
|
static {
|
|
45
|
-
|
|
45
|
+
_chunkB4CUDMY2cjs.__name.call(void 0, this, "AliasPool");
|
|
46
46
|
}
|
|
47
47
|
__init() {this.seen = /* @__PURE__ */ new Set()}
|
|
48
48
|
assign(name) {
|
|
@@ -92,13 +92,13 @@ function getExports(workspaceConfig, program, fileMapping) {
|
|
|
92
92
|
});
|
|
93
93
|
return exports;
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
_chunkB4CUDMY2cjs.__name.call(void 0, extractExports, "extractExports");
|
|
96
96
|
return program.getRootFileNames().flatMap(extractExports);
|
|
97
97
|
}
|
|
98
|
-
|
|
98
|
+
_chunkB4CUDMY2cjs.__name.call(void 0, getExports, "getExports");
|
|
99
99
|
function emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles = true, customTransformers) {
|
|
100
100
|
const fileMapping = /* @__PURE__ */ new Map();
|
|
101
|
-
const writeFile = /* @__PURE__ */
|
|
101
|
+
const writeFile = /* @__PURE__ */ _chunkB4CUDMY2cjs.__name.call(void 0, (fileName, text, writeByteOrderMark, onError, sourceFiles, data) => {
|
|
102
102
|
const sourceFile = _optionalChain([sourceFiles, 'optionalAccess', _ => _[0]]);
|
|
103
103
|
const sourceFileName = _optionalChain([sourceFile, 'optionalAccess', _2 => _2.fileName]);
|
|
104
104
|
if (sourceFileName && !fileName.endsWith(".map")) {
|
|
@@ -126,14 +126,14 @@ function emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles = true, c
|
|
|
126
126
|
});
|
|
127
127
|
const diagnosticMessage = diagnosticMessages.join("\n");
|
|
128
128
|
if (diagnosticMessage) {
|
|
129
|
-
|
|
129
|
+
_chunkGJHRTQAScjs.writeError.call(void 0, `Failed to emit declaration files.
|
|
130
130
|
|
|
131
131
|
${diagnosticMessage}`, workspaceConfig);
|
|
132
132
|
throw new Error("TypeScript compilation failed");
|
|
133
133
|
}
|
|
134
134
|
return fileMapping;
|
|
135
135
|
}
|
|
136
|
-
|
|
136
|
+
_chunkB4CUDMY2cjs.__name.call(void 0, emitDtsFiles, "emitDtsFiles");
|
|
137
137
|
function emitDts(workspaceConfig, tsconfig, tsconfigRaw, emitOnlyDtsFiles = true, customTransformers) {
|
|
138
138
|
const rawTsconfig = _bundlerequire.loadTsConfig.call(void 0, workspaceConfig.workspaceRoot, tsconfig);
|
|
139
139
|
if (!rawTsconfig) {
|
|
@@ -156,7 +156,7 @@ function emitDts(workspaceConfig, tsconfig, tsconfigRaw, emitOnlyDtsFiles = true
|
|
|
156
156
|
const fileMapping = emitDtsFiles(workspaceConfig, program, host, emitOnlyDtsFiles, customTransformers);
|
|
157
157
|
return getExports(workspaceConfig, program, fileMapping);
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
_chunkB4CUDMY2cjs.__name.call(void 0, emitDts, "emitDts");
|
|
160
160
|
|
|
161
161
|
|
|
162
162
|
|