打包
This commit is contained in:
commit
c1b84d20ae
57
main.js
Normal file
57
main.js
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
const os = require('os');
|
||||||
|
const process = require('process');
|
||||||
|
|
||||||
|
// 存储一些数据来模拟内存使用
|
||||||
|
let memoryUsage = [];
|
||||||
|
|
||||||
|
// 优雅关闭处理
|
||||||
|
process.on('SIGTERM', () => {
|
||||||
|
console.log('收到 SIGTERM 信号,准备关闭...');
|
||||||
|
console.log('清理资源...');
|
||||||
|
memoryUsage = [];
|
||||||
|
process.exit(0);
|
||||||
|
});
|
||||||
|
|
||||||
|
// 输出系统信息的函数
|
||||||
|
function printSystemInfo() {
|
||||||
|
const used = process.memoryUsage();
|
||||||
|
|
||||||
|
console.log('\n--- 系统信息 ---');
|
||||||
|
console.log('时间:', new Date().toISOString());
|
||||||
|
console.log('进程 ID:', process.pid);
|
||||||
|
console.log('Node.js 版本:', process.version);
|
||||||
|
console.log('平台:', process.platform);
|
||||||
|
console.log('CPU 架构:', process.arch);
|
||||||
|
console.log('可用内存:', Math.round(os.freemem() / 1024 / 1024), 'MB');
|
||||||
|
console.log('总内存:', Math.round(os.totalmem() / 1024 / 1024), 'MB');
|
||||||
|
console.log('CPU 负载:', os.loadavg());
|
||||||
|
console.log('进程内存使用:');
|
||||||
|
console.log(`- 堆总大小: ${Math.round(used.heapTotal / 1024 / 1024)} MB`);
|
||||||
|
console.log(`- 堆使用: ${Math.round(used.heapUsed / 1024 / 1024)} MB`);
|
||||||
|
console.log(`- RSS: ${Math.round(used.rss / 1024 / 1024)} MB`);
|
||||||
|
console.log('------------------------\n');
|
||||||
|
}
|
||||||
|
|
||||||
|
// 模拟一些内存使用
|
||||||
|
function simulateMemoryUsage() {
|
||||||
|
const data = Buffer.alloc(1024 * 1024); // 分配 1MB
|
||||||
|
memoryUsage.push(data);
|
||||||
|
|
||||||
|
// 保持最多使用 100MB
|
||||||
|
if (memoryUsage.length > 100) {
|
||||||
|
memoryUsage.shift();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 主循环
|
||||||
|
console.log('脚本启动...');
|
||||||
|
console.log('使用 CTRL+C 或发送 SIGTERM 信号来停止');
|
||||||
|
|
||||||
|
// 每5秒执行一次
|
||||||
|
setInterval(() => {
|
||||||
|
printSystemInfo();
|
||||||
|
simulateMemoryUsage();
|
||||||
|
}, 5000);
|
||||||
|
|
||||||
|
// 立即执行一次
|
||||||
|
printSystemInfo();
|
17
node_modules/.bin/tsx
generated
vendored
Executable file
17
node_modules/.bin/tsx
generated
vendored
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -z "$NODE_PATH" ]; then
|
||||||
|
export NODE_PATH="/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/tsx@4.19.2/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/node_modules"
|
||||||
|
else
|
||||||
|
export NODE_PATH="/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/tsx@4.19.2/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||||
|
fi
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../tsx/dist/cli.mjs" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../tsx/dist/cli.mjs" "$@"
|
||||||
|
fi
|
100
node_modules/.modules.yaml
generated
vendored
Normal file
100
node_modules/.modules.yaml
generated
vendored
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
hoistPattern:
|
||||||
|
- '*'
|
||||||
|
hoistedDependencies:
|
||||||
|
/@esbuild/aix-ppc64/0.23.1:
|
||||||
|
'@esbuild/aix-ppc64': private
|
||||||
|
/@esbuild/android-arm/0.23.1:
|
||||||
|
'@esbuild/android-arm': private
|
||||||
|
/@esbuild/android-arm64/0.23.1:
|
||||||
|
'@esbuild/android-arm64': private
|
||||||
|
/@esbuild/android-x64/0.23.1:
|
||||||
|
'@esbuild/android-x64': private
|
||||||
|
/@esbuild/darwin-arm64/0.23.1:
|
||||||
|
'@esbuild/darwin-arm64': private
|
||||||
|
/@esbuild/darwin-x64/0.23.1:
|
||||||
|
'@esbuild/darwin-x64': private
|
||||||
|
/@esbuild/freebsd-arm64/0.23.1:
|
||||||
|
'@esbuild/freebsd-arm64': private
|
||||||
|
/@esbuild/freebsd-x64/0.23.1:
|
||||||
|
'@esbuild/freebsd-x64': private
|
||||||
|
/@esbuild/linux-arm/0.23.1:
|
||||||
|
'@esbuild/linux-arm': private
|
||||||
|
/@esbuild/linux-arm64/0.23.1:
|
||||||
|
'@esbuild/linux-arm64': private
|
||||||
|
/@esbuild/linux-ia32/0.23.1:
|
||||||
|
'@esbuild/linux-ia32': private
|
||||||
|
/@esbuild/linux-loong64/0.23.1:
|
||||||
|
'@esbuild/linux-loong64': private
|
||||||
|
/@esbuild/linux-mips64el/0.23.1:
|
||||||
|
'@esbuild/linux-mips64el': private
|
||||||
|
/@esbuild/linux-ppc64/0.23.1:
|
||||||
|
'@esbuild/linux-ppc64': private
|
||||||
|
/@esbuild/linux-riscv64/0.23.1:
|
||||||
|
'@esbuild/linux-riscv64': private
|
||||||
|
/@esbuild/linux-s390x/0.23.1:
|
||||||
|
'@esbuild/linux-s390x': private
|
||||||
|
/@esbuild/linux-x64/0.23.1:
|
||||||
|
'@esbuild/linux-x64': private
|
||||||
|
/@esbuild/netbsd-x64/0.23.1:
|
||||||
|
'@esbuild/netbsd-x64': private
|
||||||
|
/@esbuild/openbsd-arm64/0.23.1:
|
||||||
|
'@esbuild/openbsd-arm64': private
|
||||||
|
/@esbuild/openbsd-x64/0.23.1:
|
||||||
|
'@esbuild/openbsd-x64': private
|
||||||
|
/@esbuild/sunos-x64/0.23.1:
|
||||||
|
'@esbuild/sunos-x64': private
|
||||||
|
/@esbuild/win32-arm64/0.23.1:
|
||||||
|
'@esbuild/win32-arm64': private
|
||||||
|
/@esbuild/win32-ia32/0.23.1:
|
||||||
|
'@esbuild/win32-ia32': private
|
||||||
|
/@esbuild/win32-x64/0.23.1:
|
||||||
|
'@esbuild/win32-x64': private
|
||||||
|
/esbuild/0.23.1:
|
||||||
|
esbuild: private
|
||||||
|
/fsevents/2.3.3:
|
||||||
|
fsevents: private
|
||||||
|
/get-tsconfig/4.8.1:
|
||||||
|
get-tsconfig: private
|
||||||
|
/resolve-pkg-maps/1.0.0:
|
||||||
|
resolve-pkg-maps: private
|
||||||
|
included:
|
||||||
|
dependencies: true
|
||||||
|
devDependencies: true
|
||||||
|
optionalDependencies: true
|
||||||
|
injectedDeps: {}
|
||||||
|
layoutVersion: 5
|
||||||
|
nodeLinker: isolated
|
||||||
|
packageManager: pnpm@8.10.2
|
||||||
|
pendingBuilds: []
|
||||||
|
prunedAt: Fri, 27 Dec 2024 03:40:52 GMT
|
||||||
|
publicHoistPattern:
|
||||||
|
- '*eslint*'
|
||||||
|
- '*prettier*'
|
||||||
|
registries:
|
||||||
|
default: https://registry.npmmirror.com/
|
||||||
|
skipped:
|
||||||
|
- /@esbuild/aix-ppc64/0.23.1
|
||||||
|
- /@esbuild/android-arm/0.23.1
|
||||||
|
- /@esbuild/android-arm64/0.23.1
|
||||||
|
- /@esbuild/android-x64/0.23.1
|
||||||
|
- /@esbuild/darwin-x64/0.23.1
|
||||||
|
- /@esbuild/freebsd-arm64/0.23.1
|
||||||
|
- /@esbuild/freebsd-x64/0.23.1
|
||||||
|
- /@esbuild/linux-arm/0.23.1
|
||||||
|
- /@esbuild/linux-arm64/0.23.1
|
||||||
|
- /@esbuild/linux-ia32/0.23.1
|
||||||
|
- /@esbuild/linux-loong64/0.23.1
|
||||||
|
- /@esbuild/linux-mips64el/0.23.1
|
||||||
|
- /@esbuild/linux-ppc64/0.23.1
|
||||||
|
- /@esbuild/linux-riscv64/0.23.1
|
||||||
|
- /@esbuild/linux-s390x/0.23.1
|
||||||
|
- /@esbuild/linux-x64/0.23.1
|
||||||
|
- /@esbuild/netbsd-x64/0.23.1
|
||||||
|
- /@esbuild/openbsd-arm64/0.23.1
|
||||||
|
- /@esbuild/openbsd-x64/0.23.1
|
||||||
|
- /@esbuild/sunos-x64/0.23.1
|
||||||
|
- /@esbuild/win32-arm64/0.23.1
|
||||||
|
- /@esbuild/win32-ia32/0.23.1
|
||||||
|
- /@esbuild/win32-x64/0.23.1
|
||||||
|
storeDir: /Users/taollin/Library/pnpm/store/v3
|
||||||
|
virtualStoreDir: .pnpm
|
3
node_modules/.pnpm/@esbuild+darwin-arm64@0.23.1/node_modules/@esbuild/darwin-arm64/README.md
generated
vendored
Normal file
3
node_modules/.pnpm/@esbuild+darwin-arm64@0.23.1/node_modules/@esbuild/darwin-arm64/README.md
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# esbuild
|
||||||
|
|
||||||
|
This is the macOS ARM 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details.
|
BIN
node_modules/.pnpm/@esbuild+darwin-arm64@0.23.1/node_modules/@esbuild/darwin-arm64/bin/esbuild
generated
vendored
Executable file
BIN
node_modules/.pnpm/@esbuild+darwin-arm64@0.23.1/node_modules/@esbuild/darwin-arm64/bin/esbuild
generated
vendored
Executable file
Binary file not shown.
20
node_modules/.pnpm/@esbuild+darwin-arm64@0.23.1/node_modules/@esbuild/darwin-arm64/package.json
generated
vendored
Normal file
20
node_modules/.pnpm/@esbuild+darwin-arm64@0.23.1/node_modules/@esbuild/darwin-arm64/package.json
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"name": "@esbuild/darwin-arm64",
|
||||||
|
"version": "0.23.1",
|
||||||
|
"description": "The macOS ARM 64-bit binary for esbuild, a JavaScript bundler.",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/evanw/esbuild.git"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"preferUnplugged": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
|
},
|
||||||
|
"os": [
|
||||||
|
"darwin"
|
||||||
|
],
|
||||||
|
"cpu": [
|
||||||
|
"arm64"
|
||||||
|
]
|
||||||
|
}
|
1
node_modules/.pnpm/esbuild@0.23.1/node_modules/@esbuild/darwin-arm64
generated
vendored
Symbolic link
1
node_modules/.pnpm/esbuild@0.23.1/node_modules/@esbuild/darwin-arm64
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../@esbuild+darwin-arm64@0.23.1/node_modules/@esbuild/darwin-arm64
|
21
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/LICENSE.md
generated
vendored
Normal file
21
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/LICENSE.md
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2020 Evan Wallace
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
3
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/README.md
generated
vendored
Normal file
3
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/README.md
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# esbuild
|
||||||
|
|
||||||
|
This is a JavaScript bundler and minifier. See https://github.com/evanw/esbuild and the [JavaScript API documentation](https://esbuild.github.io/api/) for details.
|
BIN
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/bin/esbuild
generated
vendored
Executable file
BIN
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/bin/esbuild
generated
vendored
Executable file
Binary file not shown.
286
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/install.js
generated
vendored
Normal file
286
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/install.js
generated
vendored
Normal file
@ -0,0 +1,286 @@
|
|||||||
|
"use strict";
|
||||||
|
var __create = Object.create;
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __getProtoOf = Object.getPrototypeOf;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||||
|
// If the importer is in node compatibility mode or this is not an ESM
|
||||||
|
// file that has been converted to a CommonJS file using a Babel-
|
||||||
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||||
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||||
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||||
|
mod
|
||||||
|
));
|
||||||
|
|
||||||
|
// lib/npm/node-platform.ts
|
||||||
|
var fs = require("fs");
|
||||||
|
var os = require("os");
|
||||||
|
var path = require("path");
|
||||||
|
var ESBUILD_BINARY_PATH = process.env.ESBUILD_BINARY_PATH || ESBUILD_BINARY_PATH;
|
||||||
|
var isValidBinaryPath = (x) => !!x && x !== "/usr/bin/esbuild";
|
||||||
|
var knownWindowsPackages = {
|
||||||
|
"win32 arm64 LE": "@esbuild/win32-arm64",
|
||||||
|
"win32 ia32 LE": "@esbuild/win32-ia32",
|
||||||
|
"win32 x64 LE": "@esbuild/win32-x64"
|
||||||
|
};
|
||||||
|
var knownUnixlikePackages = {
|
||||||
|
"aix ppc64 BE": "@esbuild/aix-ppc64",
|
||||||
|
"android arm64 LE": "@esbuild/android-arm64",
|
||||||
|
"darwin arm64 LE": "@esbuild/darwin-arm64",
|
||||||
|
"darwin x64 LE": "@esbuild/darwin-x64",
|
||||||
|
"freebsd arm64 LE": "@esbuild/freebsd-arm64",
|
||||||
|
"freebsd x64 LE": "@esbuild/freebsd-x64",
|
||||||
|
"linux arm LE": "@esbuild/linux-arm",
|
||||||
|
"linux arm64 LE": "@esbuild/linux-arm64",
|
||||||
|
"linux ia32 LE": "@esbuild/linux-ia32",
|
||||||
|
"linux mips64el LE": "@esbuild/linux-mips64el",
|
||||||
|
"linux ppc64 LE": "@esbuild/linux-ppc64",
|
||||||
|
"linux riscv64 LE": "@esbuild/linux-riscv64",
|
||||||
|
"linux s390x BE": "@esbuild/linux-s390x",
|
||||||
|
"linux x64 LE": "@esbuild/linux-x64",
|
||||||
|
"linux loong64 LE": "@esbuild/linux-loong64",
|
||||||
|
"netbsd x64 LE": "@esbuild/netbsd-x64",
|
||||||
|
"openbsd arm64 LE": "@esbuild/openbsd-arm64",
|
||||||
|
"openbsd x64 LE": "@esbuild/openbsd-x64",
|
||||||
|
"sunos x64 LE": "@esbuild/sunos-x64"
|
||||||
|
};
|
||||||
|
var knownWebAssemblyFallbackPackages = {
|
||||||
|
"android arm LE": "@esbuild/android-arm",
|
||||||
|
"android x64 LE": "@esbuild/android-x64"
|
||||||
|
};
|
||||||
|
function pkgAndSubpathForCurrentPlatform() {
|
||||||
|
let pkg;
|
||||||
|
let subpath;
|
||||||
|
let isWASM = false;
|
||||||
|
let platformKey = `${process.platform} ${os.arch()} ${os.endianness()}`;
|
||||||
|
if (platformKey in knownWindowsPackages) {
|
||||||
|
pkg = knownWindowsPackages[platformKey];
|
||||||
|
subpath = "esbuild.exe";
|
||||||
|
} else if (platformKey in knownUnixlikePackages) {
|
||||||
|
pkg = knownUnixlikePackages[platformKey];
|
||||||
|
subpath = "bin/esbuild";
|
||||||
|
} else if (platformKey in knownWebAssemblyFallbackPackages) {
|
||||||
|
pkg = knownWebAssemblyFallbackPackages[platformKey];
|
||||||
|
subpath = "bin/esbuild";
|
||||||
|
isWASM = true;
|
||||||
|
} else {
|
||||||
|
throw new Error(`Unsupported platform: ${platformKey}`);
|
||||||
|
}
|
||||||
|
return { pkg, subpath, isWASM };
|
||||||
|
}
|
||||||
|
function downloadedBinPath(pkg, subpath) {
|
||||||
|
const esbuildLibDir = path.dirname(require.resolve("esbuild"));
|
||||||
|
return path.join(esbuildLibDir, `downloaded-${pkg.replace("/", "-")}-${path.basename(subpath)}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
// lib/npm/node-install.ts
|
||||||
|
var fs2 = require("fs");
|
||||||
|
var os2 = require("os");
|
||||||
|
var path2 = require("path");
|
||||||
|
var zlib = require("zlib");
|
||||||
|
var https = require("https");
|
||||||
|
var child_process = require("child_process");
|
||||||
|
var versionFromPackageJSON = require(path2.join(__dirname, "package.json")).version;
|
||||||
|
var toPath = path2.join(__dirname, "bin", "esbuild");
|
||||||
|
var isToPathJS = true;
|
||||||
|
function validateBinaryVersion(...command) {
|
||||||
|
command.push("--version");
|
||||||
|
let stdout;
|
||||||
|
try {
|
||||||
|
stdout = child_process.execFileSync(command.shift(), command, {
|
||||||
|
// Without this, this install script strangely crashes with the error
|
||||||
|
// "EACCES: permission denied, write" but only on Ubuntu Linux when node is
|
||||||
|
// installed from the Snap Store. This is not a problem when you download
|
||||||
|
// the official version of node. The problem appears to be that stderr
|
||||||
|
// (i.e. file descriptor 2) isn't writable?
|
||||||
|
//
|
||||||
|
// More info:
|
||||||
|
// - https://snapcraft.io/ (what the Snap Store is)
|
||||||
|
// - https://nodejs.org/dist/ (download the official version of node)
|
||||||
|
// - https://github.com/evanw/esbuild/issues/1711#issuecomment-1027554035
|
||||||
|
//
|
||||||
|
stdio: "pipe"
|
||||||
|
}).toString().trim();
|
||||||
|
} catch (err) {
|
||||||
|
if (os2.platform() === "darwin" && /_SecTrustEvaluateWithError/.test(err + "")) {
|
||||||
|
let os3 = "this version of macOS";
|
||||||
|
try {
|
||||||
|
os3 = "macOS " + child_process.execFileSync("sw_vers", ["-productVersion"]).toString().trim();
|
||||||
|
} catch {
|
||||||
|
}
|
||||||
|
throw new Error(`The "esbuild" package cannot be installed because ${os3} is too outdated.
|
||||||
|
|
||||||
|
The Go compiler (which esbuild relies on) no longer supports ${os3},
|
||||||
|
which means the "esbuild" binary executable can't be run. You can either:
|
||||||
|
|
||||||
|
* Update your version of macOS to one that the Go compiler supports
|
||||||
|
* Use the "esbuild-wasm" package instead of the "esbuild" package
|
||||||
|
* Build esbuild yourself using an older version of the Go compiler
|
||||||
|
`);
|
||||||
|
}
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
if (stdout !== versionFromPackageJSON) {
|
||||||
|
throw new Error(`Expected ${JSON.stringify(versionFromPackageJSON)} but got ${JSON.stringify(stdout)}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function isYarn() {
|
||||||
|
const { npm_config_user_agent } = process.env;
|
||||||
|
if (npm_config_user_agent) {
|
||||||
|
return /\byarn\//.test(npm_config_user_agent);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
function fetch(url) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
https.get(url, (res) => {
|
||||||
|
if ((res.statusCode === 301 || res.statusCode === 302) && res.headers.location)
|
||||||
|
return fetch(res.headers.location).then(resolve, reject);
|
||||||
|
if (res.statusCode !== 200)
|
||||||
|
return reject(new Error(`Server responded with ${res.statusCode}`));
|
||||||
|
let chunks = [];
|
||||||
|
res.on("data", (chunk) => chunks.push(chunk));
|
||||||
|
res.on("end", () => resolve(Buffer.concat(chunks)));
|
||||||
|
}).on("error", reject);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function extractFileFromTarGzip(buffer, subpath) {
|
||||||
|
try {
|
||||||
|
buffer = zlib.unzipSync(buffer);
|
||||||
|
} catch (err) {
|
||||||
|
throw new Error(`Invalid gzip data in archive: ${err && err.message || err}`);
|
||||||
|
}
|
||||||
|
let str = (i, n) => String.fromCharCode(...buffer.subarray(i, i + n)).replace(/\0.*$/, "");
|
||||||
|
let offset = 0;
|
||||||
|
subpath = `package/${subpath}`;
|
||||||
|
while (offset < buffer.length) {
|
||||||
|
let name = str(offset, 100);
|
||||||
|
let size = parseInt(str(offset + 124, 12), 8);
|
||||||
|
offset += 512;
|
||||||
|
if (!isNaN(size)) {
|
||||||
|
if (name === subpath) return buffer.subarray(offset, offset + size);
|
||||||
|
offset += size + 511 & ~511;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new Error(`Could not find ${JSON.stringify(subpath)} in archive`);
|
||||||
|
}
|
||||||
|
function installUsingNPM(pkg, subpath, binPath) {
|
||||||
|
const env = { ...process.env, npm_config_global: void 0 };
|
||||||
|
const esbuildLibDir = path2.dirname(require.resolve("esbuild"));
|
||||||
|
const installDir = path2.join(esbuildLibDir, "npm-install");
|
||||||
|
fs2.mkdirSync(installDir);
|
||||||
|
try {
|
||||||
|
fs2.writeFileSync(path2.join(installDir, "package.json"), "{}");
|
||||||
|
child_process.execSync(
|
||||||
|
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${versionFromPackageJSON}`,
|
||||||
|
{ cwd: installDir, stdio: "pipe", env }
|
||||||
|
);
|
||||||
|
const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath);
|
||||||
|
fs2.renameSync(installedBinPath, binPath);
|
||||||
|
} finally {
|
||||||
|
try {
|
||||||
|
removeRecursive(installDir);
|
||||||
|
} catch {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function removeRecursive(dir) {
|
||||||
|
for (const entry of fs2.readdirSync(dir)) {
|
||||||
|
const entryPath = path2.join(dir, entry);
|
||||||
|
let stats;
|
||||||
|
try {
|
||||||
|
stats = fs2.lstatSync(entryPath);
|
||||||
|
} catch {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (stats.isDirectory()) removeRecursive(entryPath);
|
||||||
|
else fs2.unlinkSync(entryPath);
|
||||||
|
}
|
||||||
|
fs2.rmdirSync(dir);
|
||||||
|
}
|
||||||
|
function applyManualBinaryPathOverride(overridePath) {
|
||||||
|
const pathString = JSON.stringify(overridePath);
|
||||||
|
fs2.writeFileSync(toPath, `#!/usr/bin/env node
|
||||||
|
require('child_process').execFileSync(${pathString}, process.argv.slice(2), { stdio: 'inherit' });
|
||||||
|
`);
|
||||||
|
const libMain = path2.join(__dirname, "lib", "main.js");
|
||||||
|
const code = fs2.readFileSync(libMain, "utf8");
|
||||||
|
fs2.writeFileSync(libMain, `var ESBUILD_BINARY_PATH = ${pathString};
|
||||||
|
${code}`);
|
||||||
|
}
|
||||||
|
function maybeOptimizePackage(binPath) {
|
||||||
|
if (os2.platform() !== "win32" && !isYarn()) {
|
||||||
|
const tempPath = path2.join(__dirname, "bin-esbuild");
|
||||||
|
try {
|
||||||
|
fs2.linkSync(binPath, tempPath);
|
||||||
|
fs2.renameSync(tempPath, toPath);
|
||||||
|
isToPathJS = false;
|
||||||
|
fs2.unlinkSync(tempPath);
|
||||||
|
} catch {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
|
||||||
|
const url = `https://registry.npmjs.org/${pkg}/-/${pkg.replace("@esbuild/", "")}-${versionFromPackageJSON}.tgz`;
|
||||||
|
console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`);
|
||||||
|
try {
|
||||||
|
fs2.writeFileSync(binPath, extractFileFromTarGzip(await fetch(url), subpath));
|
||||||
|
fs2.chmodSync(binPath, 493);
|
||||||
|
} catch (e) {
|
||||||
|
console.error(`[esbuild] Failed to download ${JSON.stringify(url)}: ${e && e.message || e}`);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
async function checkAndPreparePackage() {
|
||||||
|
if (isValidBinaryPath(ESBUILD_BINARY_PATH)) {
|
||||||
|
if (!fs2.existsSync(ESBUILD_BINARY_PATH)) {
|
||||||
|
console.warn(`[esbuild] Ignoring bad configuration: ESBUILD_BINARY_PATH=${ESBUILD_BINARY_PATH}`);
|
||||||
|
} else {
|
||||||
|
applyManualBinaryPathOverride(ESBUILD_BINARY_PATH);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const { pkg, subpath } = pkgAndSubpathForCurrentPlatform();
|
||||||
|
let binPath;
|
||||||
|
try {
|
||||||
|
binPath = require.resolve(`${pkg}/${subpath}`);
|
||||||
|
} catch (e) {
|
||||||
|
console.error(`[esbuild] Failed to find package "${pkg}" on the file system
|
||||||
|
|
||||||
|
This can happen if you use the "--no-optional" flag. The "optionalDependencies"
|
||||||
|
package.json feature is used by esbuild to install the correct binary executable
|
||||||
|
for your current platform. This install script will now attempt to work around
|
||||||
|
this. If that fails, you need to remove the "--no-optional" flag to use esbuild.
|
||||||
|
`);
|
||||||
|
binPath = downloadedBinPath(pkg, subpath);
|
||||||
|
try {
|
||||||
|
console.error(`[esbuild] Trying to install package "${pkg}" using npm`);
|
||||||
|
installUsingNPM(pkg, subpath, binPath);
|
||||||
|
} catch (e2) {
|
||||||
|
console.error(`[esbuild] Failed to install package "${pkg}" using npm: ${e2 && e2.message || e2}`);
|
||||||
|
try {
|
||||||
|
await downloadDirectlyFromNPM(pkg, subpath, binPath);
|
||||||
|
} catch (e3) {
|
||||||
|
throw new Error(`Failed to install package "${pkg}"`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
maybeOptimizePackage(binPath);
|
||||||
|
}
|
||||||
|
checkAndPreparePackage().then(() => {
|
||||||
|
if (isToPathJS) {
|
||||||
|
validateBinaryVersion(process.execPath, toPath);
|
||||||
|
} else {
|
||||||
|
validateBinaryVersion(toPath);
|
||||||
|
}
|
||||||
|
});
|
705
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/lib/main.d.ts
generated
vendored
Normal file
705
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/lib/main.d.ts
generated
vendored
Normal file
@ -0,0 +1,705 @@
|
|||||||
|
export type Platform = 'browser' | 'node' | 'neutral'
|
||||||
|
export type Format = 'iife' | 'cjs' | 'esm'
|
||||||
|
export type Loader = 'base64' | 'binary' | 'copy' | 'css' | 'dataurl' | 'default' | 'empty' | 'file' | 'js' | 'json' | 'jsx' | 'local-css' | 'text' | 'ts' | 'tsx'
|
||||||
|
export type LogLevel = 'verbose' | 'debug' | 'info' | 'warning' | 'error' | 'silent'
|
||||||
|
export type Charset = 'ascii' | 'utf8'
|
||||||
|
export type Drop = 'console' | 'debugger'
|
||||||
|
|
||||||
|
interface CommonOptions {
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#sourcemap */
|
||||||
|
sourcemap?: boolean | 'linked' | 'inline' | 'external' | 'both'
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#legal-comments */
|
||||||
|
legalComments?: 'none' | 'inline' | 'eof' | 'linked' | 'external'
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#source-root */
|
||||||
|
sourceRoot?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#sources-content */
|
||||||
|
sourcesContent?: boolean
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#format */
|
||||||
|
format?: Format
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#global-name */
|
||||||
|
globalName?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#target */
|
||||||
|
target?: string | string[]
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#supported */
|
||||||
|
supported?: Record<string, boolean>
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#platform */
|
||||||
|
platform?: Platform
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#mangle-props */
|
||||||
|
mangleProps?: RegExp
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#mangle-props */
|
||||||
|
reserveProps?: RegExp
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#mangle-props */
|
||||||
|
mangleQuoted?: boolean
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#mangle-props */
|
||||||
|
mangleCache?: Record<string, string | false>
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#drop */
|
||||||
|
drop?: Drop[]
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#drop-labels */
|
||||||
|
dropLabels?: string[]
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#minify */
|
||||||
|
minify?: boolean
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#minify */
|
||||||
|
minifyWhitespace?: boolean
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#minify */
|
||||||
|
minifyIdentifiers?: boolean
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#minify */
|
||||||
|
minifySyntax?: boolean
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#line-limit */
|
||||||
|
lineLimit?: number
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#charset */
|
||||||
|
charset?: Charset
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#tree-shaking */
|
||||||
|
treeShaking?: boolean
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#ignore-annotations */
|
||||||
|
ignoreAnnotations?: boolean
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#jsx */
|
||||||
|
jsx?: 'transform' | 'preserve' | 'automatic'
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#jsx-factory */
|
||||||
|
jsxFactory?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#jsx-fragment */
|
||||||
|
jsxFragment?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#jsx-import-source */
|
||||||
|
jsxImportSource?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#jsx-development */
|
||||||
|
jsxDev?: boolean
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#jsx-side-effects */
|
||||||
|
jsxSideEffects?: boolean
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#define */
|
||||||
|
define?: { [key: string]: string }
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#pure */
|
||||||
|
pure?: string[]
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#keep-names */
|
||||||
|
keepNames?: boolean
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#color */
|
||||||
|
color?: boolean
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#log-level */
|
||||||
|
logLevel?: LogLevel
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#log-limit */
|
||||||
|
logLimit?: number
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#log-override */
|
||||||
|
logOverride?: Record<string, LogLevel>
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#tsconfig-raw */
|
||||||
|
tsconfigRaw?: string | TsconfigRaw
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface TsconfigRaw {
|
||||||
|
compilerOptions?: {
|
||||||
|
alwaysStrict?: boolean
|
||||||
|
baseUrl?: string
|
||||||
|
experimentalDecorators?: boolean
|
||||||
|
importsNotUsedAsValues?: 'remove' | 'preserve' | 'error'
|
||||||
|
jsx?: 'preserve' | 'react-native' | 'react' | 'react-jsx' | 'react-jsxdev'
|
||||||
|
jsxFactory?: string
|
||||||
|
jsxFragmentFactory?: string
|
||||||
|
jsxImportSource?: string
|
||||||
|
paths?: Record<string, string[]>
|
||||||
|
preserveValueImports?: boolean
|
||||||
|
strict?: boolean
|
||||||
|
target?: string
|
||||||
|
useDefineForClassFields?: boolean
|
||||||
|
verbatimModuleSyntax?: boolean
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface BuildOptions extends CommonOptions {
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#bundle */
|
||||||
|
bundle?: boolean
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#splitting */
|
||||||
|
splitting?: boolean
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#preserve-symlinks */
|
||||||
|
preserveSymlinks?: boolean
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#outfile */
|
||||||
|
outfile?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#metafile */
|
||||||
|
metafile?: boolean
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#outdir */
|
||||||
|
outdir?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#outbase */
|
||||||
|
outbase?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#external */
|
||||||
|
external?: string[]
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#packages */
|
||||||
|
packages?: 'bundle' | 'external'
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#alias */
|
||||||
|
alias?: Record<string, string>
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#loader */
|
||||||
|
loader?: { [ext: string]: Loader }
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#resolve-extensions */
|
||||||
|
resolveExtensions?: string[]
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#main-fields */
|
||||||
|
mainFields?: string[]
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#conditions */
|
||||||
|
conditions?: string[]
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#write */
|
||||||
|
write?: boolean
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#allow-overwrite */
|
||||||
|
allowOverwrite?: boolean
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#tsconfig */
|
||||||
|
tsconfig?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#out-extension */
|
||||||
|
outExtension?: { [ext: string]: string }
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#public-path */
|
||||||
|
publicPath?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#entry-names */
|
||||||
|
entryNames?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#chunk-names */
|
||||||
|
chunkNames?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#asset-names */
|
||||||
|
assetNames?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#inject */
|
||||||
|
inject?: string[]
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#banner */
|
||||||
|
banner?: { [type: string]: string }
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#footer */
|
||||||
|
footer?: { [type: string]: string }
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#entry-points */
|
||||||
|
entryPoints?: string[] | Record<string, string> | { in: string, out: string }[]
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#stdin */
|
||||||
|
stdin?: StdinOptions
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/ */
|
||||||
|
plugins?: Plugin[]
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#working-directory */
|
||||||
|
absWorkingDir?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#node-paths */
|
||||||
|
nodePaths?: string[]; // The "NODE_PATH" variable from Node.js
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface StdinOptions {
|
||||||
|
contents: string | Uint8Array
|
||||||
|
resolveDir?: string
|
||||||
|
sourcefile?: string
|
||||||
|
loader?: Loader
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Message {
|
||||||
|
id: string
|
||||||
|
pluginName: string
|
||||||
|
text: string
|
||||||
|
location: Location | null
|
||||||
|
notes: Note[]
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Optional user-specified data that is passed through unmodified. You can
|
||||||
|
* use this to stash the original error, for example.
|
||||||
|
*/
|
||||||
|
detail: any
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Note {
|
||||||
|
text: string
|
||||||
|
location: Location | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Location {
|
||||||
|
file: string
|
||||||
|
namespace: string
|
||||||
|
/** 1-based */
|
||||||
|
line: number
|
||||||
|
/** 0-based, in bytes */
|
||||||
|
column: number
|
||||||
|
/** in bytes */
|
||||||
|
length: number
|
||||||
|
lineText: string
|
||||||
|
suggestion: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OutputFile {
|
||||||
|
path: string
|
||||||
|
contents: Uint8Array
|
||||||
|
hash: string
|
||||||
|
/** "contents" as text (changes automatically with "contents") */
|
||||||
|
readonly text: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface BuildResult<ProvidedOptions extends BuildOptions = BuildOptions> {
|
||||||
|
errors: Message[]
|
||||||
|
warnings: Message[]
|
||||||
|
/** Only when "write: false" */
|
||||||
|
outputFiles: OutputFile[] | (ProvidedOptions['write'] extends false ? never : undefined)
|
||||||
|
/** Only when "metafile: true" */
|
||||||
|
metafile: Metafile | (ProvidedOptions['metafile'] extends true ? never : undefined)
|
||||||
|
/** Only when "mangleCache" is present */
|
||||||
|
mangleCache: Record<string, string | false> | (ProvidedOptions['mangleCache'] extends Object ? never : undefined)
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface BuildFailure extends Error {
|
||||||
|
errors: Message[]
|
||||||
|
warnings: Message[]
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#serve-arguments */
|
||||||
|
export interface ServeOptions {
|
||||||
|
port?: number
|
||||||
|
host?: string
|
||||||
|
servedir?: string
|
||||||
|
keyfile?: string
|
||||||
|
certfile?: string
|
||||||
|
fallback?: string
|
||||||
|
onRequest?: (args: ServeOnRequestArgs) => void
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ServeOnRequestArgs {
|
||||||
|
remoteAddress: string
|
||||||
|
method: string
|
||||||
|
path: string
|
||||||
|
status: number
|
||||||
|
/** The time to generate the response, not to send it */
|
||||||
|
timeInMS: number
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#serve-return-values */
|
||||||
|
export interface ServeResult {
|
||||||
|
port: number
|
||||||
|
host: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface TransformOptions extends CommonOptions {
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#sourcefile */
|
||||||
|
sourcefile?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#loader */
|
||||||
|
loader?: Loader
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#banner */
|
||||||
|
banner?: string
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#footer */
|
||||||
|
footer?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface TransformResult<ProvidedOptions extends TransformOptions = TransformOptions> {
|
||||||
|
code: string
|
||||||
|
map: string
|
||||||
|
warnings: Message[]
|
||||||
|
/** Only when "mangleCache" is present */
|
||||||
|
mangleCache: Record<string, string | false> | (ProvidedOptions['mangleCache'] extends Object ? never : undefined)
|
||||||
|
/** Only when "legalComments" is "external" */
|
||||||
|
legalComments: string | (ProvidedOptions['legalComments'] extends 'external' ? never : undefined)
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface TransformFailure extends Error {
|
||||||
|
errors: Message[]
|
||||||
|
warnings: Message[]
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Plugin {
|
||||||
|
name: string
|
||||||
|
setup: (build: PluginBuild) => (void | Promise<void>)
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PluginBuild {
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/#build-options */
|
||||||
|
initialOptions: BuildOptions
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/#resolve */
|
||||||
|
resolve(path: string, options?: ResolveOptions): Promise<ResolveResult>
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/#on-start */
|
||||||
|
onStart(callback: () =>
|
||||||
|
(OnStartResult | null | void | Promise<OnStartResult | null | void>)): void
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/#on-end */
|
||||||
|
onEnd(callback: (result: BuildResult) =>
|
||||||
|
(OnEndResult | null | void | Promise<OnEndResult | null | void>)): void
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/#on-resolve */
|
||||||
|
onResolve(options: OnResolveOptions, callback: (args: OnResolveArgs) =>
|
||||||
|
(OnResolveResult | null | undefined | Promise<OnResolveResult | null | undefined>)): void
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/#on-load */
|
||||||
|
onLoad(options: OnLoadOptions, callback: (args: OnLoadArgs) =>
|
||||||
|
(OnLoadResult | null | undefined | Promise<OnLoadResult | null | undefined>)): void
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/#on-dispose */
|
||||||
|
onDispose(callback: () => void): void
|
||||||
|
|
||||||
|
// This is a full copy of the esbuild library in case you need it
|
||||||
|
esbuild: {
|
||||||
|
context: typeof context,
|
||||||
|
build: typeof build,
|
||||||
|
buildSync: typeof buildSync,
|
||||||
|
transform: typeof transform,
|
||||||
|
transformSync: typeof transformSync,
|
||||||
|
formatMessages: typeof formatMessages,
|
||||||
|
formatMessagesSync: typeof formatMessagesSync,
|
||||||
|
analyzeMetafile: typeof analyzeMetafile,
|
||||||
|
analyzeMetafileSync: typeof analyzeMetafileSync,
|
||||||
|
initialize: typeof initialize,
|
||||||
|
version: typeof version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/#resolve-options */
|
||||||
|
export interface ResolveOptions {
|
||||||
|
pluginName?: string
|
||||||
|
importer?: string
|
||||||
|
namespace?: string
|
||||||
|
resolveDir?: string
|
||||||
|
kind?: ImportKind
|
||||||
|
pluginData?: any
|
||||||
|
with?: Record<string, string>
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/#resolve-results */
|
||||||
|
export interface ResolveResult {
|
||||||
|
errors: Message[]
|
||||||
|
warnings: Message[]
|
||||||
|
|
||||||
|
path: string
|
||||||
|
external: boolean
|
||||||
|
sideEffects: boolean
|
||||||
|
namespace: string
|
||||||
|
suffix: string
|
||||||
|
pluginData: any
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OnStartResult {
|
||||||
|
errors?: PartialMessage[]
|
||||||
|
warnings?: PartialMessage[]
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OnEndResult {
|
||||||
|
errors?: PartialMessage[]
|
||||||
|
warnings?: PartialMessage[]
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/#on-resolve-options */
|
||||||
|
export interface OnResolveOptions {
|
||||||
|
filter: RegExp
|
||||||
|
namespace?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/#on-resolve-arguments */
|
||||||
|
export interface OnResolveArgs {
|
||||||
|
path: string
|
||||||
|
importer: string
|
||||||
|
namespace: string
|
||||||
|
resolveDir: string
|
||||||
|
kind: ImportKind
|
||||||
|
pluginData: any
|
||||||
|
with: Record<string, string>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ImportKind =
|
||||||
|
| 'entry-point'
|
||||||
|
|
||||||
|
// JS
|
||||||
|
| 'import-statement'
|
||||||
|
| 'require-call'
|
||||||
|
| 'dynamic-import'
|
||||||
|
| 'require-resolve'
|
||||||
|
|
||||||
|
// CSS
|
||||||
|
| 'import-rule'
|
||||||
|
| 'composes-from'
|
||||||
|
| 'url-token'
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/#on-resolve-results */
|
||||||
|
export interface OnResolveResult {
|
||||||
|
pluginName?: string
|
||||||
|
|
||||||
|
errors?: PartialMessage[]
|
||||||
|
warnings?: PartialMessage[]
|
||||||
|
|
||||||
|
path?: string
|
||||||
|
external?: boolean
|
||||||
|
sideEffects?: boolean
|
||||||
|
namespace?: string
|
||||||
|
suffix?: string
|
||||||
|
pluginData?: any
|
||||||
|
|
||||||
|
watchFiles?: string[]
|
||||||
|
watchDirs?: string[]
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/#on-load-options */
|
||||||
|
export interface OnLoadOptions {
|
||||||
|
filter: RegExp
|
||||||
|
namespace?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/#on-load-arguments */
|
||||||
|
export interface OnLoadArgs {
|
||||||
|
path: string
|
||||||
|
namespace: string
|
||||||
|
suffix: string
|
||||||
|
pluginData: any
|
||||||
|
with: Record<string, string>
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/plugins/#on-load-results */
|
||||||
|
export interface OnLoadResult {
|
||||||
|
pluginName?: string
|
||||||
|
|
||||||
|
errors?: PartialMessage[]
|
||||||
|
warnings?: PartialMessage[]
|
||||||
|
|
||||||
|
contents?: string | Uint8Array
|
||||||
|
resolveDir?: string
|
||||||
|
loader?: Loader
|
||||||
|
pluginData?: any
|
||||||
|
|
||||||
|
watchFiles?: string[]
|
||||||
|
watchDirs?: string[]
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PartialMessage {
|
||||||
|
id?: string
|
||||||
|
pluginName?: string
|
||||||
|
text?: string
|
||||||
|
location?: Partial<Location> | null
|
||||||
|
notes?: PartialNote[]
|
||||||
|
detail?: any
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PartialNote {
|
||||||
|
text?: string
|
||||||
|
location?: Partial<Location> | null
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#metafile */
|
||||||
|
export interface Metafile {
|
||||||
|
inputs: {
|
||||||
|
[path: string]: {
|
||||||
|
bytes: number
|
||||||
|
imports: {
|
||||||
|
path: string
|
||||||
|
kind: ImportKind
|
||||||
|
external?: boolean
|
||||||
|
original?: string
|
||||||
|
with?: Record<string, string>
|
||||||
|
}[]
|
||||||
|
format?: 'cjs' | 'esm'
|
||||||
|
with?: Record<string, string>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
outputs: {
|
||||||
|
[path: string]: {
|
||||||
|
bytes: number
|
||||||
|
inputs: {
|
||||||
|
[path: string]: {
|
||||||
|
bytesInOutput: number
|
||||||
|
}
|
||||||
|
}
|
||||||
|
imports: {
|
||||||
|
path: string
|
||||||
|
kind: ImportKind | 'file-loader'
|
||||||
|
external?: boolean
|
||||||
|
}[]
|
||||||
|
exports: string[]
|
||||||
|
entryPoint?: string
|
||||||
|
cssBundle?: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FormatMessagesOptions {
|
||||||
|
kind: 'error' | 'warning'
|
||||||
|
color?: boolean
|
||||||
|
terminalWidth?: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AnalyzeMetafileOptions {
|
||||||
|
color?: boolean
|
||||||
|
verbose?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface WatchOptions {
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface BuildContext<ProvidedOptions extends BuildOptions = BuildOptions> {
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#rebuild */
|
||||||
|
rebuild(): Promise<BuildResult<ProvidedOptions>>
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#watch */
|
||||||
|
watch(options?: WatchOptions): Promise<void>
|
||||||
|
|
||||||
|
/** Documentation: https://esbuild.github.io/api/#serve */
|
||||||
|
serve(options?: ServeOptions): Promise<ServeResult>
|
||||||
|
|
||||||
|
cancel(): Promise<void>
|
||||||
|
dispose(): Promise<void>
|
||||||
|
}
|
||||||
|
|
||||||
|
// This is a TypeScript type-level function which replaces any keys in "In"
|
||||||
|
// that aren't in "Out" with "never". We use this to reject properties with
|
||||||
|
// typos in object literals. See: https://stackoverflow.com/questions/49580725
|
||||||
|
type SameShape<Out, In extends Out> = In & { [Key in Exclude<keyof In, keyof Out>]: never }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This function invokes the "esbuild" command-line tool for you. It returns a
|
||||||
|
* promise that either resolves with a "BuildResult" object or rejects with a
|
||||||
|
* "BuildFailure" object.
|
||||||
|
*
|
||||||
|
* - Works in node: yes
|
||||||
|
* - Works in browser: yes
|
||||||
|
*
|
||||||
|
* Documentation: https://esbuild.github.io/api/#build
|
||||||
|
*/
|
||||||
|
export declare function build<T extends BuildOptions>(options: SameShape<BuildOptions, T>): Promise<BuildResult<T>>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the advanced long-running form of "build" that supports additional
|
||||||
|
* features such as watch mode and a local development server.
|
||||||
|
*
|
||||||
|
* - Works in node: yes
|
||||||
|
* - Works in browser: no
|
||||||
|
*
|
||||||
|
* Documentation: https://esbuild.github.io/api/#build
|
||||||
|
*/
|
||||||
|
export declare function context<T extends BuildOptions>(options: SameShape<BuildOptions, T>): Promise<BuildContext<T>>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This function transforms a single JavaScript file. It can be used to minify
|
||||||
|
* JavaScript, convert TypeScript/JSX to JavaScript, or convert newer JavaScript
|
||||||
|
* to older JavaScript. It returns a promise that is either resolved with a
|
||||||
|
* "TransformResult" object or rejected with a "TransformFailure" object.
|
||||||
|
*
|
||||||
|
* - Works in node: yes
|
||||||
|
* - Works in browser: yes
|
||||||
|
*
|
||||||
|
* Documentation: https://esbuild.github.io/api/#transform
|
||||||
|
*/
|
||||||
|
export declare function transform<T extends TransformOptions>(input: string | Uint8Array, options?: SameShape<TransformOptions, T>): Promise<TransformResult<T>>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts log messages to formatted message strings suitable for printing in
|
||||||
|
* the terminal. This allows you to reuse the built-in behavior of esbuild's
|
||||||
|
* log message formatter. This is a batch-oriented API for efficiency.
|
||||||
|
*
|
||||||
|
* - Works in node: yes
|
||||||
|
* - Works in browser: yes
|
||||||
|
*/
|
||||||
|
export declare function formatMessages(messages: PartialMessage[], options: FormatMessagesOptions): Promise<string[]>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Pretty-prints an analysis of the metafile JSON to a string. This is just for
|
||||||
|
* convenience to be able to match esbuild's pretty-printing exactly. If you want
|
||||||
|
* to customize it, you can just inspect the data in the metafile yourself.
|
||||||
|
*
|
||||||
|
* - Works in node: yes
|
||||||
|
* - Works in browser: yes
|
||||||
|
*
|
||||||
|
* Documentation: https://esbuild.github.io/api/#analyze
|
||||||
|
*/
|
||||||
|
export declare function analyzeMetafile(metafile: Metafile | string, options?: AnalyzeMetafileOptions): Promise<string>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A synchronous version of "build".
|
||||||
|
*
|
||||||
|
* - Works in node: yes
|
||||||
|
* - Works in browser: no
|
||||||
|
*
|
||||||
|
* Documentation: https://esbuild.github.io/api/#build
|
||||||
|
*/
|
||||||
|
export declare function buildSync<T extends BuildOptions>(options: SameShape<BuildOptions, T>): BuildResult<T>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A synchronous version of "transform".
|
||||||
|
*
|
||||||
|
* - Works in node: yes
|
||||||
|
* - Works in browser: no
|
||||||
|
*
|
||||||
|
* Documentation: https://esbuild.github.io/api/#transform
|
||||||
|
*/
|
||||||
|
export declare function transformSync<T extends TransformOptions>(input: string | Uint8Array, options?: SameShape<TransformOptions, T>): TransformResult<T>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A synchronous version of "formatMessages".
|
||||||
|
*
|
||||||
|
* - Works in node: yes
|
||||||
|
* - Works in browser: no
|
||||||
|
*/
|
||||||
|
export declare function formatMessagesSync(messages: PartialMessage[], options: FormatMessagesOptions): string[]
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A synchronous version of "analyzeMetafile".
|
||||||
|
*
|
||||||
|
* - Works in node: yes
|
||||||
|
* - Works in browser: no
|
||||||
|
*
|
||||||
|
* Documentation: https://esbuild.github.io/api/#analyze
|
||||||
|
*/
|
||||||
|
export declare function analyzeMetafileSync(metafile: Metafile | string, options?: AnalyzeMetafileOptions): string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This configures the browser-based version of esbuild. It is necessary to
|
||||||
|
* call this first and wait for the returned promise to be resolved before
|
||||||
|
* making other API calls when using esbuild in the browser.
|
||||||
|
*
|
||||||
|
* - Works in node: yes
|
||||||
|
* - Works in browser: yes ("options" is required)
|
||||||
|
*
|
||||||
|
* Documentation: https://esbuild.github.io/api/#browser
|
||||||
|
*/
|
||||||
|
export declare function initialize(options: InitializeOptions): Promise<void>
|
||||||
|
|
||||||
|
export interface InitializeOptions {
|
||||||
|
/**
|
||||||
|
* The URL of the "esbuild.wasm" file. This must be provided when running
|
||||||
|
* esbuild in the browser.
|
||||||
|
*/
|
||||||
|
wasmURL?: string | URL
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The result of calling "new WebAssembly.Module(buffer)" where "buffer"
|
||||||
|
* is a typed array or ArrayBuffer containing the binary code of the
|
||||||
|
* "esbuild.wasm" file.
|
||||||
|
*
|
||||||
|
* You can use this as an alternative to "wasmURL" for environments where it's
|
||||||
|
* not possible to download the WebAssembly module.
|
||||||
|
*/
|
||||||
|
wasmModule?: WebAssembly.Module
|
||||||
|
|
||||||
|
/**
|
||||||
|
* By default esbuild runs the WebAssembly-based browser API in a web worker
|
||||||
|
* to avoid blocking the UI thread. This can be disabled by setting "worker"
|
||||||
|
* to false.
|
||||||
|
*/
|
||||||
|
worker?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export let version: string
|
||||||
|
|
||||||
|
// Call this function to terminate esbuild's child process. The child process
|
||||||
|
// is not terminated and re-created after each API call because it's more
|
||||||
|
// efficient to keep it around when there are multiple API calls.
|
||||||
|
//
|
||||||
|
// In node this happens automatically before the parent node process exits. So
|
||||||
|
// you only need to call this if you know you will not make any more esbuild
|
||||||
|
// API calls and you want to clean up resources.
|
||||||
|
//
|
||||||
|
// Unlike node, Deno lacks the necessary APIs to clean up child processes
|
||||||
|
// automatically. You must manually call stop() in Deno when you're done
|
||||||
|
// using esbuild or Deno will continue running forever.
|
||||||
|
//
|
||||||
|
// Another reason you might want to call this is if you are using esbuild from
|
||||||
|
// within a Deno test. Deno fails tests that create a child process without
|
||||||
|
// killing it before the test ends, so you have to call this function (and
|
||||||
|
// await the returned promise) in every Deno test that uses esbuild.
|
||||||
|
export declare function stop(): Promise<void>
|
||||||
|
|
||||||
|
// Note: These declarations exist to avoid type errors when you omit "dom" from
|
||||||
|
// "lib" in your "tsconfig.json" file. TypeScript confusingly declares the
|
||||||
|
// global "WebAssembly" type in "lib.dom.d.ts" even though it has nothing to do
|
||||||
|
// with the browser DOM and is present in many non-browser JavaScript runtimes
|
||||||
|
// (e.g. node and deno). Declaring it here allows esbuild's API to be used in
|
||||||
|
// these scenarios.
|
||||||
|
//
|
||||||
|
// There's an open issue about getting this problem corrected (although these
|
||||||
|
// declarations will need to remain even if this is fixed for backward
|
||||||
|
// compatibility with older TypeScript versions):
|
||||||
|
//
|
||||||
|
// https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/826
|
||||||
|
//
|
||||||
|
declare global {
|
||||||
|
namespace WebAssembly {
|
||||||
|
interface Module {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
interface URL {
|
||||||
|
}
|
||||||
|
}
|
2244
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/lib/main.js
generated
vendored
Normal file
2244
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/lib/main.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
14
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/node_modules/.bin/esbuild
generated
vendored
Executable file
14
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/node_modules/.bin/esbuild
generated
vendored
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -z "$NODE_PATH" ]; then
|
||||||
|
export NODE_PATH="/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/bin/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/node_modules"
|
||||||
|
else
|
||||||
|
export NODE_PATH="/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/bin/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||||
|
fi
|
||||||
|
"$basedir/../../bin/esbuild" "$@"
|
||||||
|
exit $?
|
47
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/package.json
generated
vendored
Normal file
47
node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/package.json
generated
vendored
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"name": "esbuild",
|
||||||
|
"version": "0.23.1",
|
||||||
|
"description": "An extremely fast JavaScript and CSS bundler and minifier.",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/evanw/esbuild.git"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"postinstall": "node install.js"
|
||||||
|
},
|
||||||
|
"main": "lib/main.js",
|
||||||
|
"types": "lib/main.d.ts",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"esbuild": "bin/esbuild"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"@esbuild/aix-ppc64": "0.23.1",
|
||||||
|
"@esbuild/android-arm": "0.23.1",
|
||||||
|
"@esbuild/android-arm64": "0.23.1",
|
||||||
|
"@esbuild/android-x64": "0.23.1",
|
||||||
|
"@esbuild/darwin-arm64": "0.23.1",
|
||||||
|
"@esbuild/darwin-x64": "0.23.1",
|
||||||
|
"@esbuild/freebsd-arm64": "0.23.1",
|
||||||
|
"@esbuild/freebsd-x64": "0.23.1",
|
||||||
|
"@esbuild/linux-arm": "0.23.1",
|
||||||
|
"@esbuild/linux-arm64": "0.23.1",
|
||||||
|
"@esbuild/linux-ia32": "0.23.1",
|
||||||
|
"@esbuild/linux-loong64": "0.23.1",
|
||||||
|
"@esbuild/linux-mips64el": "0.23.1",
|
||||||
|
"@esbuild/linux-ppc64": "0.23.1",
|
||||||
|
"@esbuild/linux-riscv64": "0.23.1",
|
||||||
|
"@esbuild/linux-s390x": "0.23.1",
|
||||||
|
"@esbuild/linux-x64": "0.23.1",
|
||||||
|
"@esbuild/netbsd-x64": "0.23.1",
|
||||||
|
"@esbuild/openbsd-arm64": "0.23.1",
|
||||||
|
"@esbuild/openbsd-x64": "0.23.1",
|
||||||
|
"@esbuild/sunos-x64": "0.23.1",
|
||||||
|
"@esbuild/win32-arm64": "0.23.1",
|
||||||
|
"@esbuild/win32-ia32": "0.23.1",
|
||||||
|
"@esbuild/win32-x64": "0.23.1"
|
||||||
|
},
|
||||||
|
"license": "MIT"
|
||||||
|
}
|
22
node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/LICENSE
generated
vendored
Normal file
22
node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
MIT License
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
89
node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/README.md
generated
vendored
Normal file
89
node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/README.md
generated
vendored
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
# fsevents
|
||||||
|
|
||||||
|
Native access to MacOS FSEvents in [Node.js](https://nodejs.org/)
|
||||||
|
|
||||||
|
The FSEvents API in MacOS allows applications to register for notifications of
|
||||||
|
changes to a given directory tree. It is a very fast and lightweight alternative
|
||||||
|
to kqueue.
|
||||||
|
|
||||||
|
This is a low-level library. For a cross-platform file watching module that
|
||||||
|
uses fsevents, check out [Chokidar](https://github.com/paulmillr/chokidar).
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install fsevents
|
||||||
|
```
|
||||||
|
|
||||||
|
Supports only **Node.js v8.16 and higher**.
|
||||||
|
|
||||||
|
```js
|
||||||
|
const fsevents = require('fsevents');
|
||||||
|
|
||||||
|
// To start observation
|
||||||
|
const stop = fsevents.watch(__dirname, (path, flags, id) => {
|
||||||
|
const info = fsevents.getInfo(path, flags);
|
||||||
|
});
|
||||||
|
|
||||||
|
// To end observation
|
||||||
|
stop();
|
||||||
|
```
|
||||||
|
|
||||||
|
> **Important note:** The API behaviour is slightly different from typical JS APIs. The `stop` function **must** be
|
||||||
|
> retrieved and stored somewhere, even if you don't plan to stop the watcher. If you forget it, the garbage collector
|
||||||
|
> will eventually kick in, the watcher will be unregistered, and your callbacks won't be called anymore.
|
||||||
|
|
||||||
|
The callback passed as the second parameter to `.watch` get's called whenever the operating system detects a
|
||||||
|
a change in the file system. It takes three arguments:
|
||||||
|
|
||||||
|
###### `fsevents.watch(dirname: string, (path: string, flags: number, id: string) => void): () => Promise<undefined>`
|
||||||
|
|
||||||
|
* `path: string` - the item in the filesystem that have been changed
|
||||||
|
* `flags: number` - a numeric value describing what the change was
|
||||||
|
* `id: string` - an unique-id identifying this specific event
|
||||||
|
|
||||||
|
Returns closer callback which when called returns a Promise resolving when the watcher process has been shut down.
|
||||||
|
|
||||||
|
###### `fsevents.getInfo(path: string, flags: number, id: string): FsEventInfo`
|
||||||
|
|
||||||
|
The `getInfo` function takes the `path`, `flags` and `id` arguments and converts those parameters into a structure
|
||||||
|
that is easier to digest to determine what the change was.
|
||||||
|
|
||||||
|
The `FsEventsInfo` has the following shape:
|
||||||
|
|
||||||
|
```js
|
||||||
|
/**
|
||||||
|
* @typedef {'created'|'modified'|'deleted'|'moved'|'root-changed'|'cloned'|'unknown'} FsEventsEvent
|
||||||
|
* @typedef {'file'|'directory'|'symlink'} FsEventsType
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
"event": "created", // {FsEventsEvent}
|
||||||
|
"path": "file.txt",
|
||||||
|
"type": "file", // {FsEventsType}
|
||||||
|
"changes": {
|
||||||
|
"inode": true, // Had iNode Meta-Information changed
|
||||||
|
"finder": false, // Had Finder Meta-Data changed
|
||||||
|
"access": false, // Had access permissions changed
|
||||||
|
"xattrs": false // Had xAttributes changed
|
||||||
|
},
|
||||||
|
"flags": 0x100000000
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Changelog
|
||||||
|
|
||||||
|
- v2.3 supports Apple Silicon ARM CPUs
|
||||||
|
- v2 supports node 8.16+ and reduces package size massively
|
||||||
|
- v1.2.8 supports node 6+
|
||||||
|
- v1.2.7 supports node 4+
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
- I'm getting `EBADPLATFORM` `Unsupported platform for fsevents` error.
|
||||||
|
- It's fine, nothing is broken. fsevents is macos-only. Other platforms are skipped. If you want to hide this warning, report a bug to NPM bugtracker asking them to hide ebadplatform warnings by default.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
The MIT License Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller — see LICENSE file.
|
||||||
|
|
||||||
|
Visit our [GitHub page](https://github.com/fsevents/fsevents) and [NPM Page](https://npmjs.org/package/fsevents)
|
46
node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/fsevents.d.ts
generated
vendored
Normal file
46
node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/fsevents.d.ts
generated
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
declare type Event = "created" | "cloned" | "modified" | "deleted" | "moved" | "root-changed" | "unknown";
|
||||||
|
declare type Type = "file" | "directory" | "symlink";
|
||||||
|
declare type FileChanges = {
|
||||||
|
inode: boolean;
|
||||||
|
finder: boolean;
|
||||||
|
access: boolean;
|
||||||
|
xattrs: boolean;
|
||||||
|
};
|
||||||
|
declare type Info = {
|
||||||
|
event: Event;
|
||||||
|
path: string;
|
||||||
|
type: Type;
|
||||||
|
changes: FileChanges;
|
||||||
|
flags: number;
|
||||||
|
};
|
||||||
|
declare type WatchHandler = (path: string, flags: number, id: string) => void;
|
||||||
|
export declare function watch(path: string, handler: WatchHandler): () => Promise<void>;
|
||||||
|
export declare function watch(path: string, since: number, handler: WatchHandler): () => Promise<void>;
|
||||||
|
export declare function getInfo(path: string, flags: number): Info;
|
||||||
|
export declare const constants: {
|
||||||
|
None: 0x00000000;
|
||||||
|
MustScanSubDirs: 0x00000001;
|
||||||
|
UserDropped: 0x00000002;
|
||||||
|
KernelDropped: 0x00000004;
|
||||||
|
EventIdsWrapped: 0x00000008;
|
||||||
|
HistoryDone: 0x00000010;
|
||||||
|
RootChanged: 0x00000020;
|
||||||
|
Mount: 0x00000040;
|
||||||
|
Unmount: 0x00000080;
|
||||||
|
ItemCreated: 0x00000100;
|
||||||
|
ItemRemoved: 0x00000200;
|
||||||
|
ItemInodeMetaMod: 0x00000400;
|
||||||
|
ItemRenamed: 0x00000800;
|
||||||
|
ItemModified: 0x00001000;
|
||||||
|
ItemFinderInfoMod: 0x00002000;
|
||||||
|
ItemChangeOwner: 0x00004000;
|
||||||
|
ItemXattrMod: 0x00008000;
|
||||||
|
ItemIsFile: 0x00010000;
|
||||||
|
ItemIsDir: 0x00020000;
|
||||||
|
ItemIsSymlink: 0x00040000;
|
||||||
|
ItemIsHardlink: 0x00100000;
|
||||||
|
ItemIsLastHardlink: 0x00200000;
|
||||||
|
OwnEvent: 0x00080000;
|
||||||
|
ItemCloned: 0x00400000;
|
||||||
|
};
|
||||||
|
export {};
|
83
node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/fsevents.js
generated
vendored
Normal file
83
node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/fsevents.js
generated
vendored
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
/*
|
||||||
|
** © 2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller
|
||||||
|
** Licensed under MIT License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* jshint node:true */
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
if (process.platform !== "darwin") {
|
||||||
|
throw new Error(`Module 'fsevents' is not compatible with platform '${process.platform}'`);
|
||||||
|
}
|
||||||
|
|
||||||
|
const Native = require("./fsevents.node");
|
||||||
|
const events = Native.constants;
|
||||||
|
|
||||||
|
function watch(path, since, handler) {
|
||||||
|
if (typeof path !== "string") {
|
||||||
|
throw new TypeError(`fsevents argument 1 must be a string and not a ${typeof path}`);
|
||||||
|
}
|
||||||
|
if ("function" === typeof since && "undefined" === typeof handler) {
|
||||||
|
handler = since;
|
||||||
|
since = Native.flags.SinceNow;
|
||||||
|
}
|
||||||
|
if (typeof since !== "number") {
|
||||||
|
throw new TypeError(`fsevents argument 2 must be a number and not a ${typeof since}`);
|
||||||
|
}
|
||||||
|
if (typeof handler !== "function") {
|
||||||
|
throw new TypeError(`fsevents argument 3 must be a function and not a ${typeof handler}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
let instance = Native.start(Native.global, path, since, handler);
|
||||||
|
if (!instance) throw new Error(`could not watch: ${path}`);
|
||||||
|
return () => {
|
||||||
|
const result = instance ? Promise.resolve(instance).then(Native.stop) : Promise.resolve(undefined);
|
||||||
|
instance = undefined;
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function getInfo(path, flags) {
|
||||||
|
return {
|
||||||
|
path,
|
||||||
|
flags,
|
||||||
|
event: getEventType(flags),
|
||||||
|
type: getFileType(flags),
|
||||||
|
changes: getFileChanges(flags),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function getFileType(flags) {
|
||||||
|
if (events.ItemIsFile & flags) return "file";
|
||||||
|
if (events.ItemIsDir & flags) return "directory";
|
||||||
|
if (events.MustScanSubDirs & flags) return "directory";
|
||||||
|
if (events.ItemIsSymlink & flags) return "symlink";
|
||||||
|
}
|
||||||
|
function anyIsTrue(obj) {
|
||||||
|
for (let key in obj) {
|
||||||
|
if (obj[key]) return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
function getEventType(flags) {
|
||||||
|
if (events.ItemRemoved & flags) return "deleted";
|
||||||
|
if (events.ItemRenamed & flags) return "moved";
|
||||||
|
if (events.ItemCreated & flags) return "created";
|
||||||
|
if (events.ItemModified & flags) return "modified";
|
||||||
|
if (events.RootChanged & flags) return "root-changed";
|
||||||
|
if (events.ItemCloned & flags) return "cloned";
|
||||||
|
if (anyIsTrue(flags)) return "modified";
|
||||||
|
return "unknown";
|
||||||
|
}
|
||||||
|
function getFileChanges(flags) {
|
||||||
|
return {
|
||||||
|
inode: !!(events.ItemInodeMetaMod & flags),
|
||||||
|
finder: !!(events.ItemFinderInfoMod & flags),
|
||||||
|
access: !!(events.ItemChangeOwner & flags),
|
||||||
|
xattrs: !!(events.ItemXattrMod & flags),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.watch = watch;
|
||||||
|
exports.getInfo = getInfo;
|
||||||
|
exports.constants = events;
|
BIN
node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/fsevents.node
generated
vendored
Executable file
BIN
node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/fsevents.node
generated
vendored
Executable file
Binary file not shown.
62
node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/package.json
generated
vendored
Normal file
62
node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/package.json
generated
vendored
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
{
|
||||||
|
"name": "fsevents",
|
||||||
|
"version": "2.3.3",
|
||||||
|
"description": "Native Access to MacOS FSEvents",
|
||||||
|
"main": "fsevents.js",
|
||||||
|
"types": "fsevents.d.ts",
|
||||||
|
"os": [
|
||||||
|
"darwin"
|
||||||
|
],
|
||||||
|
"files": [
|
||||||
|
"fsevents.d.ts",
|
||||||
|
"fsevents.js",
|
||||||
|
"fsevents.node"
|
||||||
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"clean": "node-gyp clean && rm -f fsevents.node",
|
||||||
|
"build": "node-gyp clean && rm -f fsevents.node && node-gyp rebuild && node-gyp clean",
|
||||||
|
"test": "/bin/bash ./test.sh 2>/dev/null",
|
||||||
|
"prepublishOnly": "npm run build"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/fsevents/fsevents.git"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"fsevents",
|
||||||
|
"mac"
|
||||||
|
],
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Philipp Dunkel",
|
||||||
|
"email": "pip@pipobscure.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Ben Noordhuis",
|
||||||
|
"email": "info@bnoordhuis.nl"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Elan Shankar",
|
||||||
|
"email": "elan.shanker@gmail.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Miroslav Bajtoš",
|
||||||
|
"email": "mbajtoss@gmail.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Paul Miller",
|
||||||
|
"url": "https://paulmillr.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/fsevents/fsevents/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/fsevents/fsevents",
|
||||||
|
"devDependencies": {
|
||||||
|
"node-gyp": "^9.4.0"
|
||||||
|
}
|
||||||
|
}
|
21
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/get-tsconfig/LICENSE
generated
vendored
Normal file
21
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/get-tsconfig/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) Hiroki Osame <hiroki.osame@gmail.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
231
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/get-tsconfig/README.md
generated
vendored
Normal file
231
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/get-tsconfig/README.md
generated
vendored
Normal file
@ -0,0 +1,231 @@
|
|||||||
|
<p align="center">
|
||||||
|
<img width="160" src=".github/logo.webp">
|
||||||
|
</p>
|
||||||
|
<h1 align="center">
|
||||||
|
<sup>get-tsconfig</sup>
|
||||||
|
<br>
|
||||||
|
<a href="https://npm.im/get-tsconfig"><img src="https://badgen.net/npm/v/get-tsconfig"></a> <a href="https://npm.im/get-tsconfig"><img src="https://badgen.net/npm/dm/get-tsconfig"></a>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
Find and parse `tsconfig.json` files.
|
||||||
|
|
||||||
|
### Features
|
||||||
|
- Zero dependency (not even TypeScript)
|
||||||
|
- Tested against TypeScript for correctness
|
||||||
|
- Supports comments & dangling commas in `tsconfig.json`
|
||||||
|
- Resolves [`extends`](https://www.typescriptlang.org/tsconfig/#extends)
|
||||||
|
- Fully typed `tsconfig.json`
|
||||||
|
- Validates and throws parsing errors
|
||||||
|
- Tiny! `7 kB` Minified + Gzipped
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://github.com/sponsors/privatenumber/sponsorships?tier_id=398771"><img width="412" src="https://raw.githubusercontent.com/privatenumber/sponsors/master/banners/assets/donate.webp"></a>
|
||||||
|
<a href="https://github.com/sponsors/privatenumber/sponsorships?tier_id=397608"><img width="412" src="https://raw.githubusercontent.com/privatenumber/sponsors/master/banners/assets/sponsor.webp"></a>
|
||||||
|
</p>
|
||||||
|
<p align="center"><sup><i>Already a sponsor?</i> Join the discussion in the <a href="https://github.com/pvtnbr/get-tsconfig">Development repo</a>!</sup></p>
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm install get-tsconfig
|
||||||
|
```
|
||||||
|
|
||||||
|
## Why?
|
||||||
|
For TypeScript related tooling to correctly parse `tsconfig.json` file without depending on TypeScript.
|
||||||
|
|
||||||
|
## API
|
||||||
|
|
||||||
|
### getTsconfig(searchPath?, configName?, cache?)
|
||||||
|
Searches for a `tsconfig.json` file and parses it. Returns `null` if a config file cannot be found, or an object containing the path and parsed TSConfig object if found.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
|
||||||
|
```ts
|
||||||
|
type TsconfigResult = {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The path to the tsconfig.json file
|
||||||
|
*/
|
||||||
|
path: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The resolved tsconfig.json file
|
||||||
|
*/
|
||||||
|
config: TsConfigJsonResolved
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
#### searchPath
|
||||||
|
Type: `string`
|
||||||
|
|
||||||
|
Default: `process.cwd()`
|
||||||
|
|
||||||
|
Accepts a path to a file or directory to search up for a `tsconfig.json` file.
|
||||||
|
|
||||||
|
#### configName
|
||||||
|
Type: `string`
|
||||||
|
|
||||||
|
Default: `tsconfig.json`
|
||||||
|
|
||||||
|
The file name of the TypeScript config file.
|
||||||
|
|
||||||
|
#### cache
|
||||||
|
Type: `Map<string, any>`
|
||||||
|
|
||||||
|
Default: `new Map()`
|
||||||
|
|
||||||
|
Optional cache for fs operations.
|
||||||
|
|
||||||
|
#### Example
|
||||||
|
|
||||||
|
```ts
|
||||||
|
import { getTsconfig } from 'get-tsconfig'
|
||||||
|
|
||||||
|
// Searches for tsconfig.json starting in the current directory
|
||||||
|
console.log(getTsconfig())
|
||||||
|
|
||||||
|
// Find tsconfig.json from a TypeScript file path
|
||||||
|
console.log(getTsconfig('./path/to/index.ts'))
|
||||||
|
|
||||||
|
// Find tsconfig.json from a directory file path
|
||||||
|
console.log(getTsconfig('./path/to/directory'))
|
||||||
|
|
||||||
|
// Explicitly pass in tsconfig.json path
|
||||||
|
console.log(getTsconfig('./path/to/tsconfig.json'))
|
||||||
|
|
||||||
|
// Search for jsconfig.json - https://code.visualstudio.com/docs/languages/jsconfig
|
||||||
|
console.log(getTsconfig('.', 'jsconfig.json'))
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### parseTsconfig(tsconfigPath, cache?)
|
||||||
|
The `tsconfig.json` parser used internally by `getTsconfig`. Returns the parsed tsconfig as `TsConfigJsonResolved`.
|
||||||
|
|
||||||
|
#### tsconfigPath
|
||||||
|
Type: `string`
|
||||||
|
|
||||||
|
Required path to the tsconfig file.
|
||||||
|
|
||||||
|
#### cache
|
||||||
|
Type: `Map<string, any>`
|
||||||
|
|
||||||
|
Default: `new Map()`
|
||||||
|
|
||||||
|
Optional cache for fs operations.
|
||||||
|
|
||||||
|
#### Example
|
||||||
|
|
||||||
|
```ts
|
||||||
|
import { parseTsconfig } from 'get-tsconfig'
|
||||||
|
|
||||||
|
// Must pass in a path to an existing tsconfig.json file
|
||||||
|
console.log(parseTsconfig('./path/to/tsconfig.custom.json'))
|
||||||
|
```
|
||||||
|
|
||||||
|
### createFileMatcher(tsconfig: TsconfigResult, caseSensitivePaths?: boolean)
|
||||||
|
|
||||||
|
Given a `tsconfig.json` file, it returns a file-matcher function that determines whether it should apply to a file path.
|
||||||
|
|
||||||
|
```ts
|
||||||
|
type FileMatcher = (filePath: string) => TsconfigResult['config'] | undefined
|
||||||
|
```
|
||||||
|
|
||||||
|
#### tsconfig
|
||||||
|
Type: `TsconfigResult`
|
||||||
|
|
||||||
|
Pass in the return value from `getTsconfig`, or a `TsconfigResult` object.
|
||||||
|
|
||||||
|
#### caseSensitivePaths
|
||||||
|
Type: `boolean`
|
||||||
|
|
||||||
|
By default, it uses [`is-fs-case-sensitive`](https://github.com/privatenumber/is-fs-case-sensitive) to detect whether the file-system is case-sensitive.
|
||||||
|
|
||||||
|
Pass in `true` to make it case-sensitive.
|
||||||
|
|
||||||
|
#### Example
|
||||||
|
|
||||||
|
For example, if it's called with a `tsconfig.json` file that has `include`/`exclude`/`files` defined, the file-matcher will return the config for files that match `include`/`files`, and return `undefined` for files that don't match or match `exclude`.
|
||||||
|
|
||||||
|
```ts
|
||||||
|
const tsconfig = getTsconfig()
|
||||||
|
const fileMatcher = tsconfig && createFileMatcher(tsconfig)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Returns tsconfig.json if it matches the file,
|
||||||
|
* undefined if not
|
||||||
|
*/
|
||||||
|
const configForFile = fileMatcher?.('/path/to/file.ts')
|
||||||
|
const distCode = compileTypescript({
|
||||||
|
code: sourceCode,
|
||||||
|
tsconfig: configForFile
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### createPathsMatcher(tsconfig: TsconfigResult)
|
||||||
|
|
||||||
|
Given a tsconfig with [`compilerOptions.paths`](https://www.typescriptlang.org/tsconfig#paths) defined, it returns a matcher function.
|
||||||
|
|
||||||
|
The matcher function accepts an [import specifier (the path to resolve)](https://nodejs.org/api/esm.html#terminology), checks it against `compilerOptions.paths`, and returns an array of possible paths to check:
|
||||||
|
```ts
|
||||||
|
function pathsMatcher(specifier: string): string[]
|
||||||
|
```
|
||||||
|
|
||||||
|
This function only returns possible paths and doesn't actually do any resolution. This helps increase compatibility wtih file/build systems which usually have their own resolvers.
|
||||||
|
|
||||||
|
#### Example
|
||||||
|
|
||||||
|
```ts
|
||||||
|
import { getTsconfig, createPathsMatcher } from 'get-tsconfig'
|
||||||
|
|
||||||
|
const tsconfig = getTsconfig()
|
||||||
|
const pathsMatcher = createPathsMatcher(tsconfig)
|
||||||
|
|
||||||
|
const exampleResolver = (request: string) => {
|
||||||
|
if (pathsMatcher) {
|
||||||
|
const tryPaths = pathsMatcher(request)
|
||||||
|
|
||||||
|
// Check if paths in `tryPaths` exist
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## FAQ
|
||||||
|
|
||||||
|
### How can I use TypeScript to parse `tsconfig.json`?
|
||||||
|
This package is a re-implementation of TypeScript's `tsconfig.json` parser.
|
||||||
|
|
||||||
|
However, if you already have TypeScript as a dependency, you can simply use it's API:
|
||||||
|
|
||||||
|
```ts
|
||||||
|
import {
|
||||||
|
sys as tsSys,
|
||||||
|
findConfigFile,
|
||||||
|
readConfigFile,
|
||||||
|
parseJsonConfigFileContent
|
||||||
|
} from 'typescript'
|
||||||
|
|
||||||
|
// Find tsconfig.json file
|
||||||
|
const tsconfigPath = findConfigFile(process.cwd(), tsSys.fileExists, 'tsconfig.json')
|
||||||
|
|
||||||
|
// Read tsconfig.json file
|
||||||
|
const tsconfigFile = readConfigFile(tsconfigPath, tsSys.readFile)
|
||||||
|
|
||||||
|
// Resolve extends
|
||||||
|
const parsedTsconfig = parseJsonConfigFileContent(
|
||||||
|
tsconfigFile.config,
|
||||||
|
tsSys,
|
||||||
|
path.dirname(tsconfigPath)
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Sponsors
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://github.com/sponsors/privatenumber">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/privatenumber/sponsors/sponsorkit/sponsors.svg">
|
||||||
|
</a>
|
||||||
|
</p>
|
7
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/get-tsconfig/dist/index.cjs
generated
vendored
Executable file
7
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/get-tsconfig/dist/index.cjs
generated
vendored
Executable file
File diff suppressed because one or more lines are too long
1344
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/get-tsconfig/dist/index.d.cts
generated
vendored
Normal file
1344
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/get-tsconfig/dist/index.d.cts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1344
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/get-tsconfig/dist/index.d.mts
generated
vendored
Normal file
1344
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/get-tsconfig/dist/index.d.mts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/get-tsconfig/dist/index.mjs
generated
vendored
Executable file
7
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/get-tsconfig/dist/index.mjs
generated
vendored
Executable file
File diff suppressed because one or more lines are too long
46
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/get-tsconfig/package.json
generated
vendored
Normal file
46
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/get-tsconfig/package.json
generated
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"name": "get-tsconfig",
|
||||||
|
"version": "4.8.1",
|
||||||
|
"description": "Find and parse the tsconfig.json file from a directory path",
|
||||||
|
"keywords": [
|
||||||
|
"get-tsconfig",
|
||||||
|
"get",
|
||||||
|
"typescript",
|
||||||
|
"tsconfig",
|
||||||
|
"tsconfig.json"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": "privatenumber/get-tsconfig",
|
||||||
|
"funding": "https://github.com/privatenumber/get-tsconfig?sponsor=1",
|
||||||
|
"author": {
|
||||||
|
"name": "Hiroki Osame",
|
||||||
|
"email": "hiroki.osame@gmail.com"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
|
"type": "module",
|
||||||
|
"main": "./dist/index.cjs",
|
||||||
|
"module": "./dist/index.mjs",
|
||||||
|
"types": "./dist/index.d.cts",
|
||||||
|
"exports": {
|
||||||
|
"require": {
|
||||||
|
"types": "./dist/index.d.cts",
|
||||||
|
"default": "./dist/index.cjs"
|
||||||
|
},
|
||||||
|
"import": {
|
||||||
|
"types": "./dist/index.d.mts",
|
||||||
|
"default": "./dist/index.mjs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"imports": {
|
||||||
|
"#get-tsconfig": {
|
||||||
|
"types": "./src/index.ts",
|
||||||
|
"development": "./src/index.ts",
|
||||||
|
"default": "./dist/index.mjs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"resolve-pkg-maps": "^1.0.0"
|
||||||
|
}
|
||||||
|
}
|
1
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/resolve-pkg-maps
generated
vendored
Symbolic link
1
node_modules/.pnpm/get-tsconfig@4.8.1/node_modules/resolve-pkg-maps
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps
|
289
node_modules/.pnpm/lock.yaml
generated
vendored
Normal file
289
node_modules/.pnpm/lock.yaml
generated
vendored
Normal file
@ -0,0 +1,289 @@
|
|||||||
|
lockfileVersion: '6.0'
|
||||||
|
|
||||||
|
settings:
|
||||||
|
autoInstallPeers: true
|
||||||
|
excludeLinksFromLockfile: false
|
||||||
|
|
||||||
|
devDependencies:
|
||||||
|
tsx:
|
||||||
|
specifier: ^4.19.2
|
||||||
|
version: 4.19.2
|
||||||
|
|
||||||
|
packages:
|
||||||
|
|
||||||
|
/@esbuild/aix-ppc64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-6VhYk1diRqrhBAqpJEdjASR/+WVRtfjpqKuNw11cLiaWpAT/Uu+nokB+UJnevzy/P9C/ty6AOe0dwueMrGh/iQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [ppc64]
|
||||||
|
os: [aix]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/android-arm64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-xw50ipykXcLstLeWH7WRdQuysJqejuAGPd30vd1i5zSyKK3WE+ijzHmLKxdiCMtH1pHz78rOg0BKSYOSB/2Khw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [android]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/android-arm@0.23.1:
|
||||||
|
resolution: {integrity: sha512-uz6/tEy2IFm9RYOyvKl88zdzZfwEfKZmnX9Cj1BHjeSGNuGLuMD1kR8y5bteYmwqKm1tj8m4cb/aKEorr6fHWQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm]
|
||||||
|
os: [android]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/android-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-nlN9B69St9BwUoB+jkyU090bru8L0NA3yFvAd7k8dNsVH8bi9a8cUAUSEcEEgTp2z3dbEDGJGfP6VUnkQnlReg==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [android]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/darwin-arm64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-YsS2e3Wtgnw7Wq53XXBLcV6JhRsEq8hkfg91ESVadIrzr9wO6jJDMZnCQbHm1Guc5t/CdDiFSSfWP58FNuvT3Q==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [darwin]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/darwin-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-aClqdgTDVPSEGgoCS8QDG37Gu8yc9lTHNAQlsztQ6ENetKEO//b8y31MMu2ZaPbn4kVsIABzVLXYLhCGekGDqw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [darwin]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/freebsd-arm64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-h1k6yS8/pN/NHlMl5+v4XPfikhJulk4G+tKGFIOwURBSFzE8bixw1ebjluLOjfwtLqY0kewfjLSrO6tN2MgIhA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [freebsd]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/freebsd-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-lK1eJeyk1ZX8UklqFd/3A60UuZ/6UVfGT2LuGo3Wp4/z7eRTRYY+0xOu2kpClP+vMTi9wKOfXi2vjUpO1Ro76g==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [freebsd]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-arm64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-/93bf2yxencYDnItMYV/v116zff6UyTjo4EtEQjUBeGiVpMmffDNUyD9UN2zV+V3LRV3/on4xdZ26NKzn6754g==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-arm@0.23.1:
|
||||||
|
resolution: {integrity: sha512-CXXkzgn+dXAPs3WBwE+Kvnrf4WECwBdfjfeYHpMeVxWE0EceB6vhWGShs6wi0IYEqMSIzdOF1XjQ/Mkm5d7ZdQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-ia32@0.23.1:
|
||||||
|
resolution: {integrity: sha512-VTN4EuOHwXEkXzX5nTvVY4s7E/Krz7COC8xkftbbKRYAl96vPiUssGkeMELQMOnLOJ8k3BY1+ZY52tttZnHcXQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [ia32]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-loong64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-Vx09LzEoBa5zDnieH8LSMRToj7ir/Jeq0Gu6qJ/1GcBq9GkfoEAoXvLiW1U9J1qE/Y/Oyaq33w5p2ZWrNNHNEw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [loong64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-mips64el@0.23.1:
|
||||||
|
resolution: {integrity: sha512-nrFzzMQ7W4WRLNUOU5dlWAqa6yVeI0P78WKGUo7lg2HShq/yx+UYkeNSE0SSfSure0SqgnsxPvmAUu/vu0E+3Q==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [mips64el]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-ppc64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-dKN8fgVqd0vUIjxuJI6P/9SSSe/mB9rvA98CSH2sJnlZ/OCZWO1DJvxj8jvKTfYUdGfcq2dDxoKaC6bHuTlgcw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [ppc64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-riscv64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-5AV4Pzp80fhHL83JM6LoA6pTQVWgB1HovMBsLQ9OZWLDqVY8MVobBXNSmAJi//Csh6tcY7e7Lny2Hg1tElMjIA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [riscv64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-s390x@0.23.1:
|
||||||
|
resolution: {integrity: sha512-9ygs73tuFCe6f6m/Tb+9LtYxWR4c9yg7zjt2cYkjDbDpV/xVn+68cQxMXCjUpYwEkze2RcU/rMnfIXNRFmSoDw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [s390x]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-EV6+ovTsEXCPAp58g2dD68LxoP/wK5pRvgy0J/HxPGB009omFPv3Yet0HiaqvrIrgPTBuC6wCH1LTOY91EO5hQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/netbsd-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-aevEkCNu7KlPRpYLjwmdcuNz6bDFiE7Z8XC4CPqExjTvrHugh28QzUXVOZtiYghciKUacNktqxdpymplil1beA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [netbsd]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/openbsd-arm64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [openbsd]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/openbsd-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-aY2gMmKmPhxfU+0EdnN+XNtGbjfQgwZj43k8G3fyrDM/UdZww6xrWxmDkuz2eCZchqVeABjV5BpildOrUbBTqA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [openbsd]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/sunos-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-RBRT2gqEl0IKQABT4XTj78tpk9v7ehp+mazn2HbUeZl1YMdaGAQqhapjGTCe7uw7y0frDi4gS0uHzhvpFuI1sA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [sunos]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/win32-arm64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-4O+gPR5rEBe2FpKOVyiJ7wNDPA8nGzDuJ6gN4okSA1gEOYZ67N8JPk58tkWtdtPeLz7lBnY6I5L3jdsr3S+A6A==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [win32]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/win32-ia32@0.23.1:
|
||||||
|
resolution: {integrity: sha512-BcaL0Vn6QwCwre3Y717nVHZbAa4UBEigzFm6VdsVdT/MbZ38xoj1X9HPkZhbmaBGUD1W8vxAfffbDe8bA6AKnQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [ia32]
|
||||||
|
os: [win32]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/win32-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [win32]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/esbuild@0.23.1:
|
||||||
|
resolution: {integrity: sha512-VVNz/9Sa0bs5SELtn3f7qhJCDPCF5oMEl5cO9/SSinpE9hbPVvxbd572HH5AKiP7WD8INO53GgfDDhRjkylHEg==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
hasBin: true
|
||||||
|
requiresBuild: true
|
||||||
|
optionalDependencies:
|
||||||
|
'@esbuild/aix-ppc64': 0.23.1
|
||||||
|
'@esbuild/android-arm': 0.23.1
|
||||||
|
'@esbuild/android-arm64': 0.23.1
|
||||||
|
'@esbuild/android-x64': 0.23.1
|
||||||
|
'@esbuild/darwin-arm64': 0.23.1
|
||||||
|
'@esbuild/darwin-x64': 0.23.1
|
||||||
|
'@esbuild/freebsd-arm64': 0.23.1
|
||||||
|
'@esbuild/freebsd-x64': 0.23.1
|
||||||
|
'@esbuild/linux-arm': 0.23.1
|
||||||
|
'@esbuild/linux-arm64': 0.23.1
|
||||||
|
'@esbuild/linux-ia32': 0.23.1
|
||||||
|
'@esbuild/linux-loong64': 0.23.1
|
||||||
|
'@esbuild/linux-mips64el': 0.23.1
|
||||||
|
'@esbuild/linux-ppc64': 0.23.1
|
||||||
|
'@esbuild/linux-riscv64': 0.23.1
|
||||||
|
'@esbuild/linux-s390x': 0.23.1
|
||||||
|
'@esbuild/linux-x64': 0.23.1
|
||||||
|
'@esbuild/netbsd-x64': 0.23.1
|
||||||
|
'@esbuild/openbsd-arm64': 0.23.1
|
||||||
|
'@esbuild/openbsd-x64': 0.23.1
|
||||||
|
'@esbuild/sunos-x64': 0.23.1
|
||||||
|
'@esbuild/win32-arm64': 0.23.1
|
||||||
|
'@esbuild/win32-ia32': 0.23.1
|
||||||
|
'@esbuild/win32-x64': 0.23.1
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/fsevents@2.3.3:
|
||||||
|
resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
|
||||||
|
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
|
||||||
|
os: [darwin]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/get-tsconfig@4.8.1:
|
||||||
|
resolution: {integrity: sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==}
|
||||||
|
dependencies:
|
||||||
|
resolve-pkg-maps: 1.0.0
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/resolve-pkg-maps@1.0.0:
|
||||||
|
resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/tsx@4.19.2:
|
||||||
|
resolution: {integrity: sha512-pOUl6Vo2LUq/bSa8S5q7b91cgNSjctn9ugq/+Mvow99qW6x/UZYwzxy/3NmqoT66eHYfCVvFvACC58UBPFf28g==}
|
||||||
|
engines: {node: '>=18.0.0'}
|
||||||
|
hasBin: true
|
||||||
|
dependencies:
|
||||||
|
esbuild: 0.23.1
|
||||||
|
get-tsconfig: 4.8.1
|
||||||
|
optionalDependencies:
|
||||||
|
fsevents: 2.3.3
|
||||||
|
dev: true
|
14
node_modules/.pnpm/node_modules/.bin/esbuild
generated
vendored
Executable file
14
node_modules/.pnpm/node_modules/.bin/esbuild
generated
vendored
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -z "$NODE_PATH" ]; then
|
||||||
|
export NODE_PATH="/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/bin/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/node_modules"
|
||||||
|
else
|
||||||
|
export NODE_PATH="/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/bin/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||||
|
fi
|
||||||
|
"$basedir/../esbuild/bin/esbuild" "$@"
|
||||||
|
exit $?
|
1
node_modules/.pnpm/node_modules/@esbuild/darwin-arm64
generated
vendored
Symbolic link
1
node_modules/.pnpm/node_modules/@esbuild/darwin-arm64
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../@esbuild+darwin-arm64@0.23.1/node_modules/@esbuild/darwin-arm64
|
1
node_modules/.pnpm/node_modules/esbuild
generated
vendored
Symbolic link
1
node_modules/.pnpm/node_modules/esbuild
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../esbuild@0.23.1/node_modules/esbuild
|
1
node_modules/.pnpm/node_modules/fsevents
generated
vendored
Symbolic link
1
node_modules/.pnpm/node_modules/fsevents
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../fsevents@2.3.3/node_modules/fsevents
|
1
node_modules/.pnpm/node_modules/get-tsconfig
generated
vendored
Symbolic link
1
node_modules/.pnpm/node_modules/get-tsconfig
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../get-tsconfig@4.8.1/node_modules/get-tsconfig
|
1
node_modules/.pnpm/node_modules/resolve-pkg-maps
generated
vendored
Symbolic link
1
node_modules/.pnpm/node_modules/resolve-pkg-maps
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps
|
21
node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/LICENSE
generated
vendored
Normal file
21
node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) Hiroki Osame <hiroki.osame@gmail.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
216
node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/README.md
generated
vendored
Normal file
216
node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/README.md
generated
vendored
Normal file
@ -0,0 +1,216 @@
|
|||||||
|
# resolve-pkg-maps
|
||||||
|
|
||||||
|
Utils to resolve `package.json` subpath & conditional [`exports`](https://nodejs.org/api/packages.html#exports)/[`imports`](https://nodejs.org/api/packages.html#imports) in resolvers.
|
||||||
|
|
||||||
|
Implements the [ESM resolution algorithm](https://nodejs.org/api/esm.html#resolver-algorithm-specification). Tested [against Node.js](/tests/) for accuracy.
|
||||||
|
|
||||||
|
<sub>Support this project by ⭐️ starring and sharing it. [Follow me](https://github.com/privatenumber) to see what other cool projects I'm working on! ❤️</sub>
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
### Resolving `exports`
|
||||||
|
|
||||||
|
_utils/package.json_
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
// ...
|
||||||
|
"exports": {
|
||||||
|
"./reverse": {
|
||||||
|
"require": "./file.cjs",
|
||||||
|
"default": "./file.mjs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```ts
|
||||||
|
import { resolveExports } from 'resolve-pkg-maps'
|
||||||
|
|
||||||
|
const [packageName, packageSubpath] = parseRequest('utils/reverse')
|
||||||
|
|
||||||
|
const resolvedPaths: string[] = resolveExports(
|
||||||
|
getPackageJson(packageName).exports,
|
||||||
|
packageSubpath,
|
||||||
|
['import', ...otherConditions]
|
||||||
|
)
|
||||||
|
// => ['./file.mjs']
|
||||||
|
```
|
||||||
|
|
||||||
|
### Resolving `imports`
|
||||||
|
|
||||||
|
_package.json_
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
// ...
|
||||||
|
"imports": {
|
||||||
|
"#supports-color": {
|
||||||
|
"node": "./index.js",
|
||||||
|
"default": "./browser.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```ts
|
||||||
|
import { resolveImports } from 'resolve-pkg-maps'
|
||||||
|
|
||||||
|
const resolvedPaths: string[] = resolveImports(
|
||||||
|
getPackageJson('.').imports,
|
||||||
|
'#supports-color',
|
||||||
|
['node', ...otherConditions]
|
||||||
|
)
|
||||||
|
// => ['./index.js']
|
||||||
|
```
|
||||||
|
|
||||||
|
## API
|
||||||
|
|
||||||
|
### resolveExports(exports, request, conditions)
|
||||||
|
|
||||||
|
Returns: `string[]`
|
||||||
|
|
||||||
|
Resolves the `request` based on `exports` and `conditions`. Returns an array of paths (e.g. in case a fallback array is matched).
|
||||||
|
|
||||||
|
#### exports
|
||||||
|
|
||||||
|
Type:
|
||||||
|
```ts
|
||||||
|
type Exports = PathOrMap | readonly PathOrMap[]
|
||||||
|
|
||||||
|
type PathOrMap = string | PathConditionsMap
|
||||||
|
|
||||||
|
type PathConditionsMap = {
|
||||||
|
[condition: string]: PathConditions | null
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
The [`exports` property](https://nodejs.org/api/packages.html#exports) value in `package.json`.
|
||||||
|
|
||||||
|
#### request
|
||||||
|
|
||||||
|
Type: `string`
|
||||||
|
|
||||||
|
The package subpath to resolve. Assumes a normalized path is passed in (eg. [repeating slashes `//`](https://github.com/nodejs/node/issues/44316)).
|
||||||
|
|
||||||
|
It _should not_ start with `/` or `./`.
|
||||||
|
|
||||||
|
Example: if the full import path is `some-package/subpath/file`, the request is `subpath/file`.
|
||||||
|
|
||||||
|
|
||||||
|
#### conditions
|
||||||
|
|
||||||
|
Type: `readonly string[]`
|
||||||
|
|
||||||
|
An array of conditions to use when resolving the request. For reference, Node.js's default conditions are [`['node', 'import']`](https://nodejs.org/api/esm.html#:~:text=defaultConditions%20is%20the%20conditional%20environment%20name%20array%2C%20%5B%22node%22%2C%20%22import%22%5D.).
|
||||||
|
|
||||||
|
The order of this array does not matter; the order of condition keys in the export map is what matters instead.
|
||||||
|
|
||||||
|
Not all conditions in the array need to be met to resolve the request. It just needs enough to resolve to a path.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### resolveImports(imports, request, conditions)
|
||||||
|
|
||||||
|
Returns: `string[]`
|
||||||
|
|
||||||
|
Resolves the `request` based on `imports` and `conditions`. Returns an array of paths (e.g. in case a fallback array is matched).
|
||||||
|
|
||||||
|
#### imports
|
||||||
|
|
||||||
|
Type:
|
||||||
|
```ts
|
||||||
|
type Imports = {
|
||||||
|
[condition: string]: PathOrMap | readonly PathOrMap[] | null
|
||||||
|
}
|
||||||
|
|
||||||
|
type PathOrMap = string | Imports
|
||||||
|
```
|
||||||
|
|
||||||
|
The [`imports` property](https://nodejs.org/api/packages.html#imports) value in `package.json`.
|
||||||
|
|
||||||
|
|
||||||
|
#### request
|
||||||
|
|
||||||
|
Type: `string`
|
||||||
|
|
||||||
|
The request resolve. Assumes a normalized path is passed in (eg. [repeating slashes `//`](https://github.com/nodejs/node/issues/44316)).
|
||||||
|
|
||||||
|
> **Note:** In Node.js, imports resolutions are limited to requests prefixed with `#`. However, this package does not enforce that requirement in case you want to add custom support for non-prefixed entries.
|
||||||
|
|
||||||
|
#### conditions
|
||||||
|
|
||||||
|
Type: `readonly string[]`
|
||||||
|
|
||||||
|
An array of conditions to use when resolving the request. For reference, Node.js's default conditions are [`['node', 'import']`](https://nodejs.org/api/esm.html#:~:text=defaultConditions%20is%20the%20conditional%20environment%20name%20array%2C%20%5B%22node%22%2C%20%22import%22%5D.).
|
||||||
|
|
||||||
|
The order of this array does not matter; the order of condition keys in the import map is what matters instead.
|
||||||
|
|
||||||
|
Not all conditions in the array need to be met to resolve the request. It just needs enough to resolve to a path.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Errors
|
||||||
|
|
||||||
|
#### `ERR_PACKAGE_PATH_NOT_EXPORTED`
|
||||||
|
- If the request is not exported by the export map
|
||||||
|
|
||||||
|
#### `ERR_PACKAGE_IMPORT_NOT_DEFINED`
|
||||||
|
- If the request is not defined by the import map
|
||||||
|
|
||||||
|
#### `ERR_INVALID_PACKAGE_CONFIG`
|
||||||
|
|
||||||
|
- If an object contains properties that are both paths and conditions (e.g. start with and without `.`)
|
||||||
|
- If an object contains numeric properties
|
||||||
|
|
||||||
|
#### `ERR_INVALID_PACKAGE_TARGET`
|
||||||
|
- If a resolved exports path is not a valid path (e.g. not relative or has protocol)
|
||||||
|
- If a resolved path includes `..` or `node_modules`
|
||||||
|
- If a resolved path is a type that cannot be parsed
|
||||||
|
|
||||||
|
## FAQ
|
||||||
|
|
||||||
|
### Why do the APIs return an array of paths?
|
||||||
|
|
||||||
|
`exports`/`imports` supports passing in a [fallback array](https://github.com/jkrems/proposal-pkg-exports/#:~:text=Whenever%20there%20is,to%20new%20cases.) to provide fallback paths if the previous one is invalid:
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
"exports": {
|
||||||
|
"./feature": [
|
||||||
|
"./file.js",
|
||||||
|
"./fallback.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Node.js's implementation [picks the first valid path (without attempting to resolve it)](https://github.com/nodejs/node/issues/44282#issuecomment-1220151715) and throws an error if it can't be resolved. Node.js's fallback array is designed for [forward compatibility with features](https://github.com/jkrems/proposal-pkg-exports/#:~:text=providing%20forwards%20compatiblitiy%20for%20new%20features) (e.g. protocols) that can be immediately/inexpensively validated:
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
"exports": {
|
||||||
|
"./core-polyfill": ["std:core-module", "./core-polyfill.js"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
However, [Webpack](https://webpack.js.org/guides/package-exports/#alternatives) and [TypeScript](https://github.com/microsoft/TypeScript/blob/71e852922888337ef51a0e48416034a94a6c34d9/src/compiler/moduleSpecifiers.ts#L695) have deviated from this behavior and attempts to resolve the next path if a path cannot be resolved.
|
||||||
|
|
||||||
|
By returning an array of matched paths instead of just the first one, the user can decide which behavior to adopt.
|
||||||
|
|
||||||
|
### How is it different from [`resolve.exports`](https://github.com/lukeed/resolve.exports)?
|
||||||
|
|
||||||
|
`resolve.exports` only resolves `exports`, whereas this package resolves both `exports` & `imports`. This comparison will only cover resolving `exports`.
|
||||||
|
|
||||||
|
- Despite it's name, `resolve.exports` handles more than just `exports`. It takes in the entire `package.json` object to handle resolving `.` and [self-references](https://nodejs.org/api/packages.html#self-referencing-a-package-using-its-name). This package only accepts `exports`/`imports` maps from `package.json` and is scoped to only resolving what's defined in the maps.
|
||||||
|
|
||||||
|
- `resolve.exports` accepts the full request (e.g. `foo/bar`), whereas this package only accepts the requested subpath (e.g. `bar`).
|
||||||
|
|
||||||
|
- `resolve.exports` only returns the first result in a fallback array. This package returns an array of results for the user to decide how to handle it.
|
||||||
|
|
||||||
|
- `resolve.exports` supports [subpath folder mapping](https://nodejs.org/docs/latest-v16.x/api/packages.html#subpath-folder-mappings) (deprecated in Node.js v16 & removed in v17) but seems to [have a bug](https://github.com/lukeed/resolve.exports/issues/7). This package does not support subpath folder mapping because Node.js has removed it in favor of using subpath patterns.
|
||||||
|
|
||||||
|
- Neither resolvers rely on a file-system
|
||||||
|
|
||||||
|
This package also addresses many of the bugs in `resolve.exports`, demonstrated in [this test](/tests/exports/compare-resolve.exports.ts).
|
1
node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.cjs
generated
vendored
Executable file
1
node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.cjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const d=r=>r!==null&&typeof r=="object",s=(r,t)=>Object.assign(new Error(`[${r}]: ${t}`),{code:r}),g="ERR_INVALID_PACKAGE_CONFIG",E="ERR_INVALID_PACKAGE_TARGET",I="ERR_PACKAGE_PATH_NOT_EXPORTED",P="ERR_PACKAGE_IMPORT_NOT_DEFINED",R=/^\d+$/,O=/^(\.{1,2}|node_modules)$/i,u=/\/|\\/;var h=(r=>(r.Export="exports",r.Import="imports",r))(h||{});const f=(r,t,n,o,c)=>{if(t==null)return[];if(typeof t=="string"){const[e,...i]=t.split(u);if(e===".."||i.some(l=>O.test(l)))throw s(E,`Invalid "${r}" target "${t}" defined in the package config`);return[c?t.replace(/\*/g,c):t]}if(Array.isArray(t))return t.flatMap(e=>f(r,e,n,o,c));if(d(t)){for(const e of Object.keys(t)){if(R.test(e))throw s(g,"Cannot contain numeric property keys");if(e==="default"||o.includes(e))return f(r,t[e],n,o,c)}return[]}throw s(E,`Invalid "${r}" target "${t}"`)},a="*",v=(r,t)=>{const n=r.indexOf(a),o=t.indexOf(a);return n===o?t.length>r.length:o>n};function A(r,t){if(!t.includes(a)&&r.hasOwnProperty(t))return[t];let n,o;for(const c of Object.keys(r))if(c.includes(a)){const[e,i,l]=c.split(a);if(l===void 0&&t.startsWith(e)&&t.endsWith(i)){const _=t.slice(e.length,-i.length||void 0);_&&(!n||v(n,c))&&(n=c,o=_)}}return[n,o]}const p=r=>Object.keys(r).reduce((t,n)=>{const o=n===""||n[0]!==".";if(t===void 0||t===o)return o;throw s(g,'"exports" cannot contain some keys starting with "." and some not')},void 0),w=/^\w+:/,m=(r,t,n)=>{if(!r)throw new Error('"exports" is required');t=t===""?".":`./${t}`,(typeof r=="string"||Array.isArray(r)||d(r)&&p(r))&&(r={".":r});const[o,c]=A(r,t),e=f(h.Export,r[o],t,n,c);if(e.length===0)throw s(I,t==="."?'No "exports" main defined':`Package subpath '${t}' is not defined by "exports"`);for(const i of e)if(!i.startsWith("./")&&!w.test(i))throw s(E,`Invalid "exports" target "${i}" defined in the package config`);return e},T=(r,t,n)=>{if(!r)throw new Error('"imports" is required');const[o,c]=A(r,t),e=f(h.Import,r[o],t,n,c);if(e.length===0)throw s(P,`Package import specifier "${t}" is not defined in package`);return e};exports.resolveExports=m,exports.resolveImports=T;
|
11
node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.d.cts
generated
vendored
Normal file
11
node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.d.cts
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
type PathConditionsMap = {
|
||||||
|
[condition: string]: PathConditions | null;
|
||||||
|
};
|
||||||
|
type PathOrMap = string | PathConditionsMap;
|
||||||
|
type PathConditions = PathOrMap | readonly PathOrMap[];
|
||||||
|
|
||||||
|
declare const resolveExports: (exports: PathConditions, request: string, conditions: readonly string[]) => string[];
|
||||||
|
|
||||||
|
declare const resolveImports: (imports: PathConditionsMap, request: string, conditions: readonly string[]) => string[];
|
||||||
|
|
||||||
|
export { PathConditions, PathConditionsMap, resolveExports, resolveImports };
|
11
node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.d.mts
generated
vendored
Normal file
11
node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.d.mts
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
type PathConditionsMap = {
|
||||||
|
[condition: string]: PathConditions | null;
|
||||||
|
};
|
||||||
|
type PathOrMap = string | PathConditionsMap;
|
||||||
|
type PathConditions = PathOrMap | readonly PathOrMap[];
|
||||||
|
|
||||||
|
declare const resolveExports: (exports: PathConditions, request: string, conditions: readonly string[]) => string[];
|
||||||
|
|
||||||
|
declare const resolveImports: (imports: PathConditionsMap, request: string, conditions: readonly string[]) => string[];
|
||||||
|
|
||||||
|
export { PathConditions, PathConditionsMap, resolveExports, resolveImports };
|
1
node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.mjs
generated
vendored
Executable file
1
node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.mjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
const A=r=>r!==null&&typeof r=="object",a=(r,t)=>Object.assign(new Error(`[${r}]: ${t}`),{code:r}),_="ERR_INVALID_PACKAGE_CONFIG",E="ERR_INVALID_PACKAGE_TARGET",I="ERR_PACKAGE_PATH_NOT_EXPORTED",P="ERR_PACKAGE_IMPORT_NOT_DEFINED",R=/^\d+$/,O=/^(\.{1,2}|node_modules)$/i,w=/\/|\\/;var h=(r=>(r.Export="exports",r.Import="imports",r))(h||{});const f=(r,t,e,o,c)=>{if(t==null)return[];if(typeof t=="string"){const[n,...i]=t.split(w);if(n===".."||i.some(l=>O.test(l)))throw a(E,`Invalid "${r}" target "${t}" defined in the package config`);return[c?t.replace(/\*/g,c):t]}if(Array.isArray(t))return t.flatMap(n=>f(r,n,e,o,c));if(A(t)){for(const n of Object.keys(t)){if(R.test(n))throw a(_,"Cannot contain numeric property keys");if(n==="default"||o.includes(n))return f(r,t[n],e,o,c)}return[]}throw a(E,`Invalid "${r}" target "${t}"`)},s="*",m=(r,t)=>{const e=r.indexOf(s),o=t.indexOf(s);return e===o?t.length>r.length:o>e};function d(r,t){if(!t.includes(s)&&r.hasOwnProperty(t))return[t];let e,o;for(const c of Object.keys(r))if(c.includes(s)){const[n,i,l]=c.split(s);if(l===void 0&&t.startsWith(n)&&t.endsWith(i)){const g=t.slice(n.length,-i.length||void 0);g&&(!e||m(e,c))&&(e=c,o=g)}}return[e,o]}const p=r=>Object.keys(r).reduce((t,e)=>{const o=e===""||e[0]!==".";if(t===void 0||t===o)return o;throw a(_,'"exports" cannot contain some keys starting with "." and some not')},void 0),u=/^\w+:/,v=(r,t,e)=>{if(!r)throw new Error('"exports" is required');t=t===""?".":`./${t}`,(typeof r=="string"||Array.isArray(r)||A(r)&&p(r))&&(r={".":r});const[o,c]=d(r,t),n=f(h.Export,r[o],t,e,c);if(n.length===0)throw a(I,t==="."?'No "exports" main defined':`Package subpath '${t}' is not defined by "exports"`);for(const i of n)if(!i.startsWith("./")&&!u.test(i))throw a(E,`Invalid "exports" target "${i}" defined in the package config`);return n},T=(r,t,e)=>{if(!r)throw new Error('"imports" is required');const[o,c]=d(r,t),n=f(h.Import,r[o],t,e,c);if(n.length===0)throw a(P,`Package import specifier "${t}" is not defined in package`);return n};export{v as resolveExports,T as resolveImports};
|
42
node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/package.json
generated
vendored
Normal file
42
node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/package.json
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"name": "resolve-pkg-maps",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "Resolve package.json exports & imports maps",
|
||||||
|
"keywords": [
|
||||||
|
"node.js",
|
||||||
|
"package.json",
|
||||||
|
"exports",
|
||||||
|
"imports"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": "privatenumber/resolve-pkg-maps",
|
||||||
|
"funding": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1",
|
||||||
|
"author": {
|
||||||
|
"name": "Hiroki Osame",
|
||||||
|
"email": "hiroki.osame@gmail.com"
|
||||||
|
},
|
||||||
|
"type": "module",
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
|
"main": "./dist/index.cjs",
|
||||||
|
"module": "./dist/index.mjs",
|
||||||
|
"types": "./dist/index.d.cts",
|
||||||
|
"exports": {
|
||||||
|
"require": {
|
||||||
|
"types": "./dist/index.d.cts",
|
||||||
|
"default": "./dist/index.cjs"
|
||||||
|
},
|
||||||
|
"import": {
|
||||||
|
"types": "./dist/index.d.mts",
|
||||||
|
"default": "./dist/index.mjs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"imports": {
|
||||||
|
"#resolve-pkg-maps": {
|
||||||
|
"types": "./src/index.ts",
|
||||||
|
"development": "./src/index.ts",
|
||||||
|
"default": "./dist/index.mjs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/esbuild
generated
vendored
Symbolic link
1
node_modules/.pnpm/tsx@4.19.2/node_modules/esbuild
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../esbuild@0.23.1/node_modules/esbuild
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/fsevents
generated
vendored
Symbolic link
1
node_modules/.pnpm/tsx@4.19.2/node_modules/fsevents
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../fsevents@2.3.3/node_modules/fsevents
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/get-tsconfig
generated
vendored
Symbolic link
1
node_modules/.pnpm/tsx@4.19.2/node_modules/get-tsconfig
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../get-tsconfig@4.8.1/node_modules/get-tsconfig
|
21
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/LICENSE
generated
vendored
Normal file
21
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) Hiroki Osame <hiroki.osame@gmail.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
32
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/README.md
generated
vendored
Normal file
32
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/README.md
generated
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<h1 align="center">
|
||||||
|
<br>
|
||||||
|
<picture>
|
||||||
|
<source media="(prefers-color-scheme: dark)" srcset=".github/logo-dark.svg">
|
||||||
|
<img width="160" alt="tsx" src=".github/logo-light.svg">
|
||||||
|
</picture>
|
||||||
|
<br><br>
|
||||||
|
<a href="https://npm.im/tsx"><img src="https://badgen.net/npm/v/tsx"></a> <a href="https://npm.im/tsx"><img src="https://badgen.net/npm/dm/tsx"></a>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
TypeScript Execute (tsx): The easiest way to run TypeScript in Node.js
|
||||||
|
<br><br>
|
||||||
|
<a href="https://tsx.is">Documentation</a> | <a href="https://tsx.is/getting-started">Getting started →</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://github.com/sponsors/privatenumber/sponsorships?tier_id=398771"><img width="412" src="https://raw.githubusercontent.com/privatenumber/sponsors/master/banners/assets/donate.webp"></a>
|
||||||
|
<a href="https://github.com/sponsors/privatenumber/sponsorships?tier_id=416984"><img width="412" src="https://raw.githubusercontent.com/privatenumber/sponsors/master/banners/assets/sponsor.webp"></a>
|
||||||
|
</p>
|
||||||
|
<p align="center"><sup><i>Already a sponsor?</i> Join the discussion in the <a href="https://github.com/pvtnbr/tsx">Development repo</a>!</sup></p>
|
||||||
|
|
||||||
|
## Sponsors
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://github.com/sponsors/privatenumber">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/privatenumber/sponsors/sponsorkit/sponsors.svg">
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cjs/api/index.cjs
generated
vendored
Executable file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cjs/api/index.cjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
"use strict";require("../../get-pipe-path-BoR10qr8.cjs");var r=require("../../register-DCnOAxY2.cjs"),e=require("../../require-DBpSESet.cjs");require("module"),require("node:path"),require("../../temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:module"),require("node:url"),require("get-tsconfig"),require("node:fs"),require("../../index-B4SIRlEU.cjs"),require("esbuild"),require("node:crypto"),require("../../client-D6NvIMSC.cjs"),require("node:net"),exports.register=r.register,exports.require=e.tsxRequire;
|
35
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cjs/api/index.d.cts
generated
vendored
Normal file
35
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cjs/api/index.d.cts
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
import { R as RequiredProperty } from '../../types-Cxp8y2TL.js';
|
||||||
|
|
||||||
|
type RegisterOptions = {
|
||||||
|
namespace?: string;
|
||||||
|
};
|
||||||
|
type Unregister = () => void;
|
||||||
|
type ScopedRequire = (id: string, fromFile: string | URL) => any;
|
||||||
|
type ScopedResolve = (id: string, fromFile: string | URL, resolveOptions?: {
|
||||||
|
paths?: string[] | undefined;
|
||||||
|
}) => string;
|
||||||
|
type NamespacedUnregister = Unregister & {
|
||||||
|
require: ScopedRequire;
|
||||||
|
resolve: ScopedResolve;
|
||||||
|
unregister: Unregister;
|
||||||
|
};
|
||||||
|
type Register = {
|
||||||
|
(options: RequiredProperty<RegisterOptions, 'namespace'>): NamespacedUnregister;
|
||||||
|
(options?: RegisterOptions): Unregister;
|
||||||
|
};
|
||||||
|
declare const register: Register;
|
||||||
|
|
||||||
|
declare const tsxRequire: {
|
||||||
|
(id: string, fromFile: string | URL): any;
|
||||||
|
resolve: {
|
||||||
|
(id: string, fromFile: string | URL, options?: {
|
||||||
|
paths?: string[] | undefined;
|
||||||
|
}): string;
|
||||||
|
paths: (request: string) => string[] | null;
|
||||||
|
};
|
||||||
|
main: NodeJS.Module | undefined;
|
||||||
|
extensions: NodeJS.RequireExtensions;
|
||||||
|
cache: NodeJS.Dict<NodeModule>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export { register, tsxRequire as require };
|
35
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cjs/api/index.d.mts
generated
vendored
Normal file
35
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cjs/api/index.d.mts
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
import { R as RequiredProperty } from '../../types-Cxp8y2TL.js';
|
||||||
|
|
||||||
|
type RegisterOptions = {
|
||||||
|
namespace?: string;
|
||||||
|
};
|
||||||
|
type Unregister = () => void;
|
||||||
|
type ScopedRequire = (id: string, fromFile: string | URL) => any;
|
||||||
|
type ScopedResolve = (id: string, fromFile: string | URL, resolveOptions?: {
|
||||||
|
paths?: string[] | undefined;
|
||||||
|
}) => string;
|
||||||
|
type NamespacedUnregister = Unregister & {
|
||||||
|
require: ScopedRequire;
|
||||||
|
resolve: ScopedResolve;
|
||||||
|
unregister: Unregister;
|
||||||
|
};
|
||||||
|
type Register = {
|
||||||
|
(options: RequiredProperty<RegisterOptions, 'namespace'>): NamespacedUnregister;
|
||||||
|
(options?: RegisterOptions): Unregister;
|
||||||
|
};
|
||||||
|
declare const register: Register;
|
||||||
|
|
||||||
|
declare const tsxRequire: {
|
||||||
|
(id: string, fromFile: string | URL): any;
|
||||||
|
resolve: {
|
||||||
|
(id: string, fromFile: string | URL, options?: {
|
||||||
|
paths?: string[] | undefined;
|
||||||
|
}): string;
|
||||||
|
paths: (request: string) => string[] | null;
|
||||||
|
};
|
||||||
|
main: NodeJS.Module | undefined;
|
||||||
|
extensions: NodeJS.RequireExtensions;
|
||||||
|
cache: NodeJS.Dict<NodeModule>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export { register, tsxRequire as require };
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cjs/api/index.mjs
generated
vendored
Executable file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cjs/api/index.mjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
import"../../get-pipe-path-BHW2eJdv.mjs";import{r as d}from"../../register-C3TE0KFF.mjs";import{t as j}from"../../require-BnyFnlmk.mjs";import"module";import"node:path";import"../../temporary-directory-CwHp0_NW.mjs";import"node:os";import"node:module";import"node:url";import"get-tsconfig";import"node:fs";import"../../index-DlKgSVBb.mjs";import"esbuild";import"node:crypto";import"../../client-BQVF1NaW.mjs";import"node:net";export{d as register,j as require};
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cjs/index.cjs
generated
vendored
Executable file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cjs/index.cjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
"use strict";var r=require("../register-DCnOAxY2.cjs");require("../get-pipe-path-BoR10qr8.cjs"),require("module"),require("node:path"),require("../temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:module"),require("node:url"),require("get-tsconfig"),require("node:fs"),require("../index-B4SIRlEU.cjs"),require("esbuild"),require("node:crypto"),require("../client-D6NvIMSC.cjs"),require("node:net"),r.register();
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cjs/index.mjs
generated
vendored
Executable file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cjs/index.mjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
import{r}from"../register-C3TE0KFF.mjs";import"../get-pipe-path-BHW2eJdv.mjs";import"module";import"node:path";import"../temporary-directory-CwHp0_NW.mjs";import"node:os";import"node:module";import"node:url";import"get-tsconfig";import"node:fs";import"../index-DlKgSVBb.mjs";import"esbuild";import"node:crypto";import"../client-BQVF1NaW.mjs";import"node:net";r();
|
54
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cli.cjs
generated
vendored
Executable file
54
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cli.cjs
generated
vendored
Executable file
File diff suppressed because one or more lines are too long
55
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cli.mjs
generated
vendored
Executable file
55
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/cli.mjs
generated
vendored
Executable file
File diff suppressed because one or more lines are too long
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/client-BQVF1NaW.mjs
generated
vendored
Normal file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/client-BQVF1NaW.mjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
var a=Object.defineProperty;var o=(e,n)=>a(e,"name",{value:n,configurable:!0});import p from"node:net";import{g}from"./get-pipe-path-BHW2eJdv.mjs";const m=o(()=>new Promise(e=>{const n=g(process.ppid),t=p.createConnection(n,()=>{e(o(i=>{const r=Buffer.from(JSON.stringify(i)),s=Buffer.alloc(4);s.writeInt32BE(r.length,0),t.write(Buffer.concat([s,r]))},"sendToParent"))});t.on("error",()=>{e()}),t.unref()}),"connectToServer"),c={send:void 0},f=m();f.then(e=>{c.send=e},()=>{});export{f as c,c as p};
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/client-D6NvIMSC.cjs
generated
vendored
Normal file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/client-D6NvIMSC.cjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
"use strict";var f=Object.defineProperty;var r=(e,n)=>f(e,"name",{value:n,configurable:!0});var p=require("node:net"),u=require("./get-pipe-path-BoR10qr8.cjs");const g=r(()=>new Promise(e=>{const n=u.getPipePath(process.ppid),t=p.createConnection(n,()=>{e(r(a=>{const o=Buffer.from(JSON.stringify(a)),c=Buffer.alloc(4);c.writeInt32BE(o.length,0),t.write(Buffer.concat([c,o]))},"sendToParent"))});t.on("error",()=>{e()}),t.unref()}),"connectToServer"),s={send:void 0},i=g();i.then(e=>{s.send=e},()=>{}),exports.connectingToServer=i,exports.parent=s;
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/esm/api/index.cjs
generated
vendored
Executable file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/esm/api/index.cjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
"use strict";var m=Object.defineProperty;var a=(r,e)=>m(r,"name",{value:e,configurable:!0});var n=require("../../register-CVZT-Tul.cjs");require("../../get-pipe-path-BoR10qr8.cjs");var t=require("../../register-DCnOAxY2.cjs");require("../../require-DBpSESet.cjs");var q=require("../../node-features-roYmp9jK.cjs");require("node:module"),require("node:worker_threads"),require("node:url"),require("module"),require("node:path"),require("../../temporary-directory-B83uKxJF.cjs"),require("node:os"),require("get-tsconfig"),require("node:fs"),require("../../index-B4SIRlEU.cjs"),require("esbuild"),require("node:crypto"),require("../../client-D6NvIMSC.cjs"),require("node:net");const c=a((r,e)=>{if(!e||typeof e=="object"&&!e.parentURL)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const i=typeof e=="string",u=i?e:e.parentURL,s=Date.now().toString(),o=t.register({namespace:s});return!q.isFeatureSupported(q.esmLoadReadFile)&&!t.isBarePackageNamePattern.test(r)&&t.cjsExtensionPattern.test(r)?Promise.resolve(o.require(r,u)):n.register({namespace:s,...i?{}:e}).import(r,u)},"tsImport");exports.register=n.register,exports.tsImport=c;
|
35
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/esm/api/index.d.cts
generated
vendored
Normal file
35
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/esm/api/index.d.cts
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
import { MessagePort } from 'node:worker_threads';
|
||||||
|
import { R as RequiredProperty } from '../../types-Cxp8y2TL.js';
|
||||||
|
|
||||||
|
type ScopedImport = (specifier: string, parent: string) => Promise<any>;
|
||||||
|
|
||||||
|
type TsconfigOptions = false | string;
|
||||||
|
type InitializationOptions = {
|
||||||
|
namespace?: string;
|
||||||
|
port?: MessagePort;
|
||||||
|
tsconfig?: TsconfigOptions;
|
||||||
|
};
|
||||||
|
type RegisterOptions = {
|
||||||
|
namespace?: string;
|
||||||
|
onImport?: (url: string) => void;
|
||||||
|
tsconfig?: TsconfigOptions;
|
||||||
|
};
|
||||||
|
type Unregister = () => Promise<void>;
|
||||||
|
type NamespacedUnregister = Unregister & {
|
||||||
|
import: ScopedImport;
|
||||||
|
unregister: Unregister;
|
||||||
|
};
|
||||||
|
type Register = {
|
||||||
|
(options: RequiredProperty<RegisterOptions, 'namespace'>): NamespacedUnregister;
|
||||||
|
(options?: RegisterOptions): Unregister;
|
||||||
|
};
|
||||||
|
declare const register: Register;
|
||||||
|
|
||||||
|
type Options = {
|
||||||
|
parentURL: string;
|
||||||
|
onImport?: (url: string) => void;
|
||||||
|
tsconfig?: TsconfigOptions;
|
||||||
|
};
|
||||||
|
declare const tsImport: (specifier: string, options: string | Options) => Promise<any>;
|
||||||
|
|
||||||
|
export { type InitializationOptions, type NamespacedUnregister, type Register, type RegisterOptions, type ScopedImport, type Unregister, register, tsImport };
|
35
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/esm/api/index.d.mts
generated
vendored
Normal file
35
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/esm/api/index.d.mts
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
import { MessagePort } from 'node:worker_threads';
|
||||||
|
import { R as RequiredProperty } from '../../types-Cxp8y2TL.js';
|
||||||
|
|
||||||
|
type ScopedImport = (specifier: string, parent: string) => Promise<any>;
|
||||||
|
|
||||||
|
type TsconfigOptions = false | string;
|
||||||
|
type InitializationOptions = {
|
||||||
|
namespace?: string;
|
||||||
|
port?: MessagePort;
|
||||||
|
tsconfig?: TsconfigOptions;
|
||||||
|
};
|
||||||
|
type RegisterOptions = {
|
||||||
|
namespace?: string;
|
||||||
|
onImport?: (url: string) => void;
|
||||||
|
tsconfig?: TsconfigOptions;
|
||||||
|
};
|
||||||
|
type Unregister = () => Promise<void>;
|
||||||
|
type NamespacedUnregister = Unregister & {
|
||||||
|
import: ScopedImport;
|
||||||
|
unregister: Unregister;
|
||||||
|
};
|
||||||
|
type Register = {
|
||||||
|
(options: RequiredProperty<RegisterOptions, 'namespace'>): NamespacedUnregister;
|
||||||
|
(options?: RegisterOptions): Unregister;
|
||||||
|
};
|
||||||
|
declare const register: Register;
|
||||||
|
|
||||||
|
type Options = {
|
||||||
|
parentURL: string;
|
||||||
|
onImport?: (url: string) => void;
|
||||||
|
tsconfig?: TsconfigOptions;
|
||||||
|
};
|
||||||
|
declare const tsImport: (specifier: string, options: string | Options) => Promise<any>;
|
||||||
|
|
||||||
|
export { type InitializationOptions, type NamespacedUnregister, type Register, type RegisterOptions, type ScopedImport, type Unregister, register, tsImport };
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/esm/api/index.mjs
generated
vendored
Executable file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/esm/api/index.mjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
var s=Object.defineProperty;var i=(r,t)=>s(r,"name",{value:t,configurable:!0});import{r as p}from"../../register-RyGUjI6j.mjs";import"../../get-pipe-path-BHW2eJdv.mjs";import{r as n,i as c,c as u}from"../../register-C3TE0KFF.mjs";import"../../require-BnyFnlmk.mjs";import{i as g,e as d}from"../../node-features-_8ZFwP_x.mjs";import"node:module";import"node:worker_threads";import"node:url";import"module";import"node:path";import"../../temporary-directory-CwHp0_NW.mjs";import"node:os";import"get-tsconfig";import"node:fs";import"../../index-DlKgSVBb.mjs";import"esbuild";import"node:crypto";import"../../client-BQVF1NaW.mjs";import"node:net";const f=i((r,t)=>{if(!t||typeof t=="object"&&!t.parentURL)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const e=typeof t=="string",o=e?t:t.parentURL,m=Date.now().toString(),a=n({namespace:m});return!g(d)&&!c.test(r)&&u.test(r)?Promise.resolve(a.require(r,o)):p({namespace:m,...e?{}:t}).import(r,o)},"tsImport");export{p as register,f as tsImport};
|
2
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/esm/index.cjs
generated
vendored
Executable file
2
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/esm/index.cjs
generated
vendored
Executable file
File diff suppressed because one or more lines are too long
2
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/esm/index.mjs
generated
vendored
Executable file
2
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/esm/index.mjs
generated
vendored
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
var b=Object.defineProperty;var c=(t,a)=>b(t,"name",{value:a,configurable:!0});import{isMainThread as j}from"node:worker_threads";import{i as g,a as v,e as M,m as W}from"../node-features-_8ZFwP_x.mjs";import{r as A}from"../register-RyGUjI6j.mjs";import"../get-pipe-path-BHW2eJdv.mjs";import"node:module";import f from"node:path";import{fileURLToPath as R,pathToFileURL as U}from"node:url";import"get-tsconfig";import{l as k,t as l,b as I,f as w,d as E,e as T,g as D,h as _,j as C,m as $,k as q,n as G}from"../register-C3TE0KFF.mjs";import S from"node:fs";import"esbuild";import"node:crypto";import{i as H,a as X,t as B,b as Q,r as z}from"../index-DlKgSVBb.mjs";import{p as L}from"../client-BQVF1NaW.mjs";import"../require-BnyFnlmk.mjs";import{readFile as K}from"node:fs/promises";import"module";import"../temporary-directory-CwHp0_NW.mjs";import"node:os";import"node:net";const m={active:!0},x=c(async t=>{if(!t)throw new Error(`tsx must be loaded with --import instead of --loader
|
||||||
|
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);m.namespace=t.namespace,t.tsconfig!==!1&&k(t.tsconfig??process.env.TSX_TSCONFIG_PATH),t.port&&(m.port=t.port,t.port.on("message",a=>{a==="deactivate"&&(m.active=!1,t.port.postMessage({type:"deactivated"}))}))},"initialize"),V=c(()=>(k(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"globalPreload"),d=new Map,Y=c(async t=>{if(d.has(t))return d.get(t);if(!await S.promises.access(t).then(()=>!0,()=>!1)){d.set(t,void 0);return}const r=await S.promises.readFile(t,"utf8");try{const e=JSON.parse(r);return d.set(t,e),e}catch{throw new Error(`Error parsing: ${t}`)}},"readPackageJson"),Z=c(async t=>{let a=new URL("package.json",t);for(;!a.pathname.endsWith("/node_modules/package.json");){const r=R(a),e=await Y(r);if(e)return e;const s=a;if(a=new URL("../package.json",a),a.pathname===s.pathname)break}},"findPackageJson"),tt=c(async t=>(await Z(t))?.type??"commonjs","getPackageType"),at=c(t=>{[t]=t.split("?");const a=f.extname(t);if(a===".mts")return"module";if(a===".cts")return"commonjs"},"getFormatFromExtension"),et=c(t=>{const a=at(t);if(a)return a;if(l.test(t))return tt(t)},"getFormatFromFileUrl"),u="tsx-namespace=",P=c(t=>{const a=t.indexOf(u);if(a===-1)return;const r=t[a-1];if(r!=="?"&&r!=="&")return;const e=a+u.length,s=t.indexOf("&",e);return s===-1?t.slice(e):t.slice(e,s)},"getNamespace"),y=g(v)?"importAttributes":"importAssertions",st=c(async(t,a,r)=>{if(!m.active)return r(t,a);const e=P(t);if(m.namespace&&m.namespace!==e)return r(t,a);if(m.port){const n=new URL(t);n.searchParams.delete("tsx-namespace"),m.port.postMessage({type:"load",url:n.toString()})}L.send&&L.send({type:"dependency",path:t}),I.test(t)&&(a[y]||(a[y]={}),a[y].type="json");const s=await r(t,a),o=t.startsWith(w)?R(t):t;if(s.format==="commonjs"&&g(M)&&s.responseURL?.startsWith("file:")&&!o.endsWith(".cjs")){const n=await K(new URL(t),"utf8");if(!o.endsWith(".js")||H(n)){const p=X(n,o,{tsconfigRaw:E?.(o)}),O=e?`${o}?namespace=${encodeURIComponent(e)}`:o;return s.responseURL=`data:text/javascript,${encodeURIComponent(p.code)}?filePath=${encodeURIComponent(O)}`,s}}if(!s.source)return s;const i=s.source.toString();if(s.format==="json"||l.test(t)){const n=await B(i,o,{tsconfigRaw:f.isAbsolute(o)?E?.(o):void 0});return{format:"module",source:T(n)}}if(s.format==="module"){const n=Q(o,i);n&&(s.source=T(n))}return s},"load"),F=c(t=>{if(t.url)return t.url;const a=t.message.match(/^Cannot find module '([^']+)'/);if(a){const[,e]=a;return e}const r=t.message.match(/^Cannot find package '([^']+)'/);if(r){const[,e]=r;if(!f.isAbsolute(e))return;const s=U(e);if(s.pathname.endsWith("/")&&(s.pathname+="package.json"),s.pathname.endsWith("/package.json")){const o=z(s);if(o?.main)return new URL(o.main,s).toString()}else return s.toString()}},"getMissingPathFromNotFound"),h=c(async(t,a,r,e)=>{const s=$(t);if(!s)return;let o;for(const i of s)try{return await r(i,a)}catch(n){const{code:p}=n;if(p!=="ERR_MODULE_NOT_FOUND"&&p!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw n;o=n}if(e)throw o},"resolveExtensions"),rt=c(async(t,a,r)=>{if((t.startsWith(w)||q(t))&&(l.test(a.parentURL)||G)){const e=await h(t,a,r);if(e)return e}try{return await r(t,a)}catch(e){if(e instanceof Error){const s=e;if(s.code==="ERR_MODULE_NOT_FOUND"){const o=F(s);if(o){const i=await h(o,a,r);if(i)return i}}}throw e}},"resolveBase"),J=c(async(t,a,r)=>{if((t==="."||t===".."||t.endsWith("/.."))&&(t+="/"),C.test(t)){const e=new URL(t,a.parentURL);return e.pathname=f.join(e.pathname,"index"),await h(e.toString(),a,r,!0)}try{return await rt(t,a,r)}catch(e){if(e instanceof Error){const s=e;if(s.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const o=F(s);if(o)try{return await h(`${o}/index`,a,r,!0)}catch(i){const n=i,{message:p}=n;throw n.message=n.message.replace(`${"/index".replace("/",f.sep)}'`,"'"),n.stack=n.stack.replace(p,n.message),n}}}throw e}},"resolveDirectory"),nt=c(async(t,a,r)=>{if(!D(t)&&_&&!a.parentURL?.includes("/node_modules/")){const e=_(t);for(const s of e)try{return await J(U(s).toString(),a,r)}catch{}}return J(t,a,r)},"resolveTsPaths"),N="tsx://",ot=c(async(t,a,r)=>{if(!m.active||t.startsWith("node:"))return r(t,a);let e=P(t)??(a.parentURL&&P(a.parentURL));if(m.namespace){let n;if(t.startsWith(N)){try{n=JSON.parse(t.slice(N.length))}catch{}n?.namespace&&(e=n.namespace)}if(m.namespace!==e)return r(t,a);n&&(t=n.specifier,a.parentURL=n.parentURL)}const[s,o]=t.split("?"),i=await nt(s,a,r);return i.format==="builtin"||(!i.format&&i.url.startsWith(w)&&(i.format=await et(i.url)),o&&(i.url+=`?${o}`),e&&!i.url.includes(u)&&(i.url+=(i.url.includes("?")?"&":"?")+u+e)),i},"resolve");g(W)&&j&&A();export{V as globalPreload,x as initialize,st as load,ot as resolve};
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs
generated
vendored
Normal file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
var p=Object.defineProperty;var e=(t,r)=>p(t,"name",{value:r,configurable:!0});import{createRequire as o}from"module";import a from"node:path";import{t as s}from"./temporary-directory-CwHp0_NW.mjs";var m=o(import.meta.url);const i=process.platform==="win32",n=e(t=>{const r=a.join(s,`${t}.pipe`);return i?`\\\\?\\pipe\\${r}`:r},"getPipePath");export{n as g,i,m as r};
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/get-pipe-path-BoR10qr8.cjs
generated
vendored
Normal file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/get-pipe-path-BoR10qr8.cjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
"use strict";var u=Object.defineProperty;var t=(r,e)=>u(r,"name",{value:e,configurable:!0});var d=require("module"),n=require("node:path"),p=require("./temporary-directory-B83uKxJF.cjs"),s=typeof document<"u"?document.currentScript:null,o=require;const i=process.platform==="win32",c=t(r=>{const e=n.join(p.tmpdir,`${r}.pipe`);return i?`\\\\?\\pipe\\${e}`:e},"getPipePath");exports.getPipePath=c,exports.isWindows=i,exports.require=o;
|
16
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/index-B4SIRlEU.cjs
generated
vendored
Normal file
16
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/index-B4SIRlEU.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
16
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/index-DlKgSVBb.mjs
generated
vendored
Normal file
16
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/index-DlKgSVBb.mjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/loader.cjs
generated
vendored
Executable file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/loader.cjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
"use strict";var r=require("./get-pipe-path-BoR10qr8.cjs"),e=require("./esm/index.cjs");require("module"),require("node:path"),require("./temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:worker_threads"),require("./node-features-roYmp9jK.cjs"),require("./register-CVZT-Tul.cjs"),require("node:module"),require("./register-DCnOAxY2.cjs"),require("node:url"),require("get-tsconfig"),require("node:fs"),require("./index-B4SIRlEU.cjs"),require("esbuild"),require("node:crypto"),require("./client-D6NvIMSC.cjs"),require("node:net"),require("./require-DBpSESet.cjs"),require("node:fs/promises"),r.require("./cjs/index.cjs"),exports.globalPreload=e.globalPreload,exports.initialize=e.initialize,exports.load=e.load,exports.resolve=e.resolve;
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/loader.mjs
generated
vendored
Executable file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/loader.mjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
import{r}from"./get-pipe-path-BHW2eJdv.mjs";import{globalPreload as h,initialize as k,load as w,resolve as y}from"./esm/index.mjs";import"module";import"node:path";import"./temporary-directory-CwHp0_NW.mjs";import"node:os";import"node:worker_threads";import"./node-features-_8ZFwP_x.mjs";import"./register-RyGUjI6j.mjs";import"node:module";import"./register-C3TE0KFF.mjs";import"node:url";import"get-tsconfig";import"node:fs";import"./index-DlKgSVBb.mjs";import"esbuild";import"node:crypto";import"./client-BQVF1NaW.mjs";import"node:net";import"./require-BnyFnlmk.mjs";import"node:fs/promises";r("./cjs/index.cjs");export{h as globalPreload,k as initialize,w as load,y as resolve};
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs
generated
vendored
Normal file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
var i=Object.defineProperty;var o=(e,t)=>i(e,"name",{value:t,configurable:!0});const n=o((e,t)=>{const r=e[0]-t[0];if(r===0){const s=e[1]-t[1];return s===0?e[2]>=t[2]:s>0}return r>0},"isVersionGreaterOrEqual"),a=process.versions.node.split(".").map(Number),u=o((e,t=a)=>{for(let r=0;r<e.length;r+=1){const s=e[r];if(r===e.length-1||t[0]===s[0])return n(t,s)}return!1},"isFeatureSupported"),c=[[18,19,0],[20,6,0]],f=[[18,19,0],[20,10,0],[21,0,0]],l=[[21,0,0]],m=[[20,11,0],[21,3,0]];export{f as a,m as e,u as i,c as m,l as t};
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/node-features-roYmp9jK.cjs
generated
vendored
Normal file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/node-features-roYmp9jK.cjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
"use strict";var i=Object.defineProperty;var s=(e,t)=>i(e,"name",{value:t,configurable:!0});const n=s((e,t)=>{const r=e[0]-t[0];if(r===0){const o=e[1]-t[1];return o===0?e[2]>=t[2]:o>0}return r>0},"isVersionGreaterOrEqual"),u=process.versions.node.split(".").map(Number),l=s((e,t=u)=>{for(let r=0;r<e.length;r+=1){const o=e[r];if(r===e.length-1||t[0]===o[0])return n(t,o)}return!1},"isFeatureSupported"),a=[[18,19,0],[20,6,0]],c=[[18,19,0],[20,10,0],[21,0,0]],d=[[21,0,0]],f=[[20,11,0],[21,3,0]];exports.esmLoadReadFile=f,exports.importAttributes=c,exports.isFeatureSupported=l,exports.moduleRegister=a,exports.testRunnerGlob=d;
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/package-Cnq4Dx54.mjs
generated
vendored
Normal file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/package-Cnq4Dx54.mjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
var r="4.19.2";export{r as v};
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/package-Da8mCwBa.cjs
generated
vendored
Normal file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/package-Da8mCwBa.cjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
"use strict";var r="4.19.2";exports.version=r;
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/patch-repl.cjs
generated
vendored
Executable file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/patch-repl.cjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
"use strict";var i=Object.defineProperty;var a=(r,t)=>i(r,"name",{value:t,configurable:!0});var n=require("node:repl"),u=require("esbuild");const f=a(r=>{const{eval:t}=r,c=a(async function(e,l,s,o){try{e=(await u.transform(e,{sourcefile:s,loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}})).code}catch{}return t.call(this,e,l,s,o)},"preEval");r.eval=c},"patchEval"),{start:p}=n;n.start=function(){const r=Reflect.apply(p,this,arguments);return f(r),r};
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/patch-repl.mjs
generated
vendored
Executable file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/patch-repl.mjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
var i=Object.defineProperty;var a=(t,r)=>i(t,"name",{value:r,configurable:!0});import s from"node:repl";import{transform as f}from"esbuild";const p=a(t=>{const{eval:r}=t,n=a(async function(e,c,o,l){try{e=(await f(e,{sourcefile:o,loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}})).code}catch{}return r.call(this,e,c,o,l)},"preEval");t.eval=n},"patchEval"),{start:u}=s;s.start=function(){const t=Reflect.apply(u,this,arguments);return p(t),t};
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/preflight.cjs
generated
vendored
Executable file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/preflight.cjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
"use strict";var u=Object.defineProperty;var t=(e,n)=>u(e,"name",{value:n,configurable:!0});var a=require("./get-pipe-path-BoR10qr8.cjs"),l=require("node:os"),f=require("node:worker_threads"),p=require("./client-D6NvIMSC.cjs");require("./suppress-warnings.cjs"),require("module"),require("node:path"),require("./temporary-directory-B83uKxJF.cjs"),require("node:net");const d=t((e,n)=>{for(const r of e)process.on(r,s=>{n(s),process.listenerCount(r)===0&&process.exit(128+l.constants.signals[r])});const{listenerCount:i,listeners:o}=process;process.listenerCount=function(r){let s=Reflect.apply(i,this,arguments);return e.includes(r)&&(s-=1),s},process.listeners=function(r){const s=Reflect.apply(o,this,arguments);return e.includes(r)?s.filter(c=>c!==n):s}},"bindHiddenSignalsHandler");f.isMainThread&&(a.require("./cjs/index.cjs"),(async()=>{const e=await p.connectingToServer;e&&d(["SIGINT","SIGTERM"],n=>{e({type:"signal",signal:n})})})());
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/preflight.mjs
generated
vendored
Executable file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/preflight.mjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
var p=Object.defineProperty;var n=(t,s)=>p(t,"name",{value:s,configurable:!0});import{r as f}from"./get-pipe-path-BHW2eJdv.mjs";import{constants as l}from"node:os";import{isMainThread as a}from"node:worker_threads";import{c as m}from"./client-BQVF1NaW.mjs";import"./suppress-warnings.mjs";import"module";import"node:path";import"./temporary-directory-CwHp0_NW.mjs";import"node:net";const u=n((t,s)=>{for(const e of t)process.on(e,r=>{s(r),process.listenerCount(e)===0&&process.exit(128+l.signals[e])});const{listenerCount:i,listeners:o}=process;process.listenerCount=function(e){let r=Reflect.apply(i,this,arguments);return t.includes(e)&&(r-=1),r},process.listeners=function(e){const r=Reflect.apply(o,this,arguments);return t.includes(e)?r.filter(c=>c!==s):r}},"bindHiddenSignalsHandler");a&&(f("./cjs/index.cjs"),(async()=>{const t=await m;t&&u(["SIGINT","SIGTERM"],s=>{t({type:"signal",signal:s})})})());
|
3
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/register-C3TE0KFF.mjs
generated
vendored
Normal file
3
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/register-C3TE0KFF.mjs
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
var z=Object.defineProperty;var o=(s,e)=>z(s,"name",{value:e,configurable:!0});import{r as G}from"./get-pipe-path-BHW2eJdv.mjs";import d from"node:module";import h from"node:path";import{fileURLToPath as F}from"node:url";import{parseTsconfig as H,getTsconfig as X,createFilesMatcher as K,createPathsMatcher as V}from"get-tsconfig";import Y from"node:fs";import{b as Z,i as q,a as ee}from"./index-DlKgSVBb.mjs";import{p as U}from"./client-BQVF1NaW.mjs";const W=o(s=>{if(!s.startsWith("data:text/javascript,"))return;const e=s.indexOf("?");if(e===-1)return;const n=new URLSearchParams(s.slice(e+1)).get("filePath");if(n)return n},"getOriginalFilePath"),$=o(s=>{const e=W(s);return e&&(d._cache[e]=d._cache[s],delete d._cache[s],s=e),s},"interopCjsExports"),se=o(s=>{const e=s.indexOf(":");if(e!==-1)return s.slice(0,e)},"getScheme"),L=o(s=>s[0]==="."&&(s[1]==="/"||s[1]==="."||s[2]==="/"),"isRelativePath"),y=o(s=>L(s)||h.isAbsolute(s),"isFilePath"),te=o(s=>{if(y(s))return!0;const e=se(s);return e&&e!=="node"},"requestAcceptsQuery"),x="file://",R=/\.([cm]?ts|[tj]sx)($|\?)/,ne=/[/\\].+\.(?:cts|cjs)(?:$|\?)/,ae=/\.json($|\?)/,_=/\/(?:$|\?)/,re=/^(?:@[^/]+\/)?[^/\\]+$/,D=`${h.sep}node_modules${h.sep}`;let S,E,w=!1;const N=o(s=>{let e=null;if(s){const a=h.resolve(s);e={path:a,config:H(a)}}else{try{e=X()}catch{}if(!e)return}S=K(e),E=V(e),w=e?.config.compilerOptions?.allowJs??!1},"loadTsconfig"),M=o(s=>Array.from(s).length>0?`?${s.toString()}`:"","urlSearchParamsStringify"),oe=`
|
||||||
|
//# sourceMappingURL=data:application/json;base64,`,C=o(()=>process.sourceMapsEnabled??!0,"shouldApplySourceMap"),v=o(({code:s,map:e})=>s+oe+Buffer.from(JSON.stringify(e),"utf8").toString("base64"),"inlineSourceMap"),ce=[".cts",".mts",".ts",".tsx",".jsx"],ie=[".js",".cjs",".mjs"],A=[".ts",".tsx",".jsx"],T=o((s,e,a,n)=>{const t=Object.getOwnPropertyDescriptor(s,e);t?.set?s[e]=a:(!t||t.configurable)&&Object.defineProperty(s,e,{value:a,enumerable:t?.enumerable||n?.enumerable,writable:n?.writable??(t?t.writable:!0),configurable:n?.configurable??(t?t.configurable:!0)})},"safeSet"),le=o((s,e,a)=>{const n=e[".js"],t=o((r,c)=>{if(s.enabled===!1)return n(r,c);const[l,f]=c.split("?");if((new URLSearchParams(f).get("namespace")??void 0)!==a)return n(r,c);r.id.startsWith("data:text/javascript,")&&(r.path=h.dirname(l)),U?.send&&U.send({type:"dependency",path:l});const u=ce.some(m=>l.endsWith(m)),P=ie.some(m=>l.endsWith(m));if(!u&&!P)return n(r,l);let p=Y.readFileSync(l,"utf8");if(l.endsWith(".cjs")){const m=Z(c,p);m&&(p=C()?v(m):m.code)}else if(u||q(p)){const m=ee(p,c,{tsconfigRaw:S?.(l)});p=C()?v(m):m.code}r._compile(p,l)},"transformer");T(e,".js",t);for(const r of A)T(e,r,t,{enumerable:!a,writable:!0,configurable:!0});return T(e,".mjs",t,{writable:!0,configurable:!0}),()=>{e[".js"]===t&&(e[".js"]=n);for(const r of[...A,".mjs"])e[r]===t&&delete e[r]}},"createExtensions"),fe=o(s=>e=>{if((e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),_.test(e)){let a=h.join(e,"index.js");e.startsWith("./")&&(a=`./${a}`);try{return s(a)}catch{}}try{return s(e)}catch(a){const n=a;if(n.code==="MODULE_NOT_FOUND")try{return s(`${e}${h.sep}index.js`)}catch{}throw n}},"createImplicitResolver"),Q=[".js",".json"],I=[".ts",".tsx",".jsx"],me=[...I,...Q],he=[...Q,...I],g=Object.create(null);g[".js"]=[".ts",".tsx",".js",".jsx"],g[".jsx"]=[".tsx",".ts",".jsx",".js"],g[".cjs"]=[".cts"],g[".mjs"]=[".mts"];const k=o(s=>{const e=s.split("?"),a=e[1]?`?${e[1]}`:"",[n]=e,t=h.extname(n),r=[],c=g[t];if(c){const f=n.slice(0,-t.length);r.push(...c.map(i=>f+i+a))}const l=!(s.startsWith(x)||y(n))||n.includes(D)||n.includes("/node_modules/")?he:me;return r.push(...l.map(f=>n+f+a)),r},"mapTsExtensions"),b=o((s,e,a)=>{if(_.test(e)||!a&&!w)return;const n=k(e);if(n)for(const t of n)try{return s(t)}catch(r){const{code:c}=r;if(c!=="MODULE_NOT_FOUND"&&c!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw r}},"resolveTsFilename"),pe=o((s,e)=>a=>{if(y(a)){const n=b(s,a,e);if(n)return n}try{return s(a)}catch(n){const t=n;if(t.code==="MODULE_NOT_FOUND"){if(typeof t.path=="string"&&t.path.endsWith(`${h.sep}package.json`)){const c=t.message.match(/^Cannot find module '([^']+)'$/);if(c){const f=c[1],i=b(s,f,e);if(i)return i}const l=t.message.match(/^Cannot find module '([^']+)'. Please verify that the package.json has a valid "main" entry$/);if(l){const f=l[1],i=b(s,f,e);if(i)return i}}const r=b(s,a,e);if(r)return r}throw t}},"createTsExtensionResolver"),J="at cjsPreparseModuleExports (node:internal",de=o(s=>{const e=s.stack.split(`
|
||||||
|
`).slice(1);return e[1].includes(J)||e[2].includes(J)},"isFromCjsLexer"),ue=o((s,e)=>{const a=s.split("?"),n=new URLSearchParams(a[1]);if(e?.filename){const t=W(e.filename);let r;if(t){const f=t.split("?"),i=f[0];r=f[1],e.filename=i,e.path=h.dirname(i),e.paths=d._nodeModulePaths(e.path),d._cache[i]=e}r||(r=e.filename.split("?")[1]);const l=new URLSearchParams(r).get("namespace");l&&n.append("namespace",l)}return[a[0],n,(t,r)=>(h.isAbsolute(t)&&!t.endsWith(".json")&&!t.endsWith(".node")&&!(r===0&&de(new Error))&&(t+=M(n)),t)]},"preserveQuery"),Pe=o((s,e,a)=>{if(s.startsWith(x)&&(s=F(s)),E&&!y(s)&&!e?.filename?.includes(D)){const n=E(s);for(const t of n)try{return a(t)}catch{}}return a(s)},"resolveTsPaths"),ge=o((s,e,a)=>(n,t,...r)=>{if(s.enabled===!1)return e(n,t,...r);n=$(n);const[c,l,f]=ue(n,t);if((l.get("namespace")??void 0)!==a)return e(n,t,...r);let i=o(P=>e(P,t,...r),"nextResolveSimple");i=pe(i,!!(a||t?.filename&&R.test(t.filename))),i=fe(i);const u=Pe(c,t,i);return f(u,r.length)},"createResolveFilename"),B=o((s,e)=>{if(!e)throw new Error("The current file path (__filename or import.meta.url) must be provided in the second argument of tsx.require()");return s.startsWith(".")?((typeof e=="string"&&e.startsWith(x)||e instanceof URL)&&(e=F(e)),h.resolve(h.dirname(e),s)):s},"resolveContext"),je=o(s=>{const{sourceMapsEnabled:e}=process,a={enabled:!0};N(process.env.TSX_TSCONFIG_PATH),process.setSourceMapsEnabled(!0);const n=d._resolveFilename,t=ge(a,n,s?.namespace);d._resolveFilename=t;const r=le(a,d._extensions,s?.namespace),c=o(()=>{e===!1&&process.setSourceMapsEnabled(!1),a.enabled=!1,d._resolveFilename===t&&(d._resolveFilename=n),r()},"unregister");if(s?.namespace){const l=o((i,u)=>{const P=B(i,u),[p,m]=P.split("?"),j=new URLSearchParams(m);return s.namespace&&!p.startsWith("node:")&&j.set("namespace",s.namespace),G(p+M(j))},"scopedRequire");c.require=l;const f=o((i,u,P)=>{const p=B(i,u),[m,j]=p.split("?"),O=new URLSearchParams(j);return s.namespace&&!m.startsWith("node:")&&O.set("namespace",s.namespace),t(m+M(O),module,!1,P)},"scopedResolve");c.resolve=f,c.unregister=c}return c},"register");export{$ as a,ae as b,ne as c,S as d,v as e,x as f,te as g,E as h,re as i,_ as j,L as k,N as l,k as m,w as n,je as r,R as t};
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/register-CVZT-Tul.cjs
generated
vendored
Normal file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/register-CVZT-Tul.cjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
"use strict";var g=Object.defineProperty;var o=(r,s)=>g(r,"name",{value:s,configurable:!0});var p=require("node:module"),v=require("node:worker_threads"),f=require("./register-DCnOAxY2.cjs"),h=require("node:url"),m=typeof document<"u"?document.currentScript:null;const w=o(r=>(s,e)=>{if(!e)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const n=e.startsWith(f.fileUrlPrefix)?e:h.pathToFileURL(e).toString();return import(`tsx://${JSON.stringify({specifier:s,parentURL:n,namespace:r})}`)},"createScopedImport");let l=!1;const _=o(r=>{if(!p.register)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!l){const{_resolveFilename:t}=p;p._resolveFilename=(c,...u)=>t(f.interopCjsExports(c),...u),l=!0}const{sourceMapsEnabled:s}=process;process.setSourceMapsEnabled(!0);const{port1:e,port2:n}=new v.MessageChannel;p.register(`./esm/index.mjs?${Date.now()}`,{parentURL:typeof document>"u"?require("url").pathToFileURL(__filename).href:m&&m.src||new URL("register-CVZT-Tul.cjs",document.baseURI).href,data:{port:n,namespace:r?.namespace,tsconfig:r?.tsconfig},transferList:[n]});const d=r?.onImport,a=d&&(t=>{t.type==="load"&&d(t.url)});a&&(e.on("message",a),e.unref());const i=o(()=>(s===!1&&process.setSourceMapsEnabled(!1),a&&e.off("message",a),e.postMessage("deactivate"),new Promise(t=>{const c=o(u=>{u.type==="deactivated"&&(t(),e.off("message",c))},"onDeactivated");e.on("message",c)})),"unregister");return r?.namespace&&(i.import=w(r.namespace),i.unregister=i),i},"register");exports.register=_;
|
3
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/register-DCnOAxY2.cjs
generated
vendored
Normal file
3
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/register-DCnOAxY2.cjs
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
"use strict";var B=Object.defineProperty;var c=(t,e)=>B(t,"name",{value:e,configurable:!0});var z=require("./get-pipe-path-BoR10qr8.cjs"),p=require("node:module"),m=require("node:path"),O=require("node:url"),x=require("get-tsconfig"),G=require("node:fs"),v=require("./index-B4SIRlEU.cjs"),U=require("./client-D6NvIMSC.cjs");const F=c(t=>{if(!t.startsWith("data:text/javascript,"))return;const e=t.indexOf("?");if(e===-1)return;const n=new URLSearchParams(t.slice(e+1)).get("filePath");if(n)return n},"getOriginalFilePath"),R=c(t=>{const e=F(t);return e&&(p._cache[e]=p._cache[t],delete p._cache[t],t=e),t},"interopCjsExports"),H=c(t=>{const e=t.indexOf(":");if(e!==-1)return t.slice(0,e)},"getScheme"),W=c(t=>t[0]==="."&&(t[1]==="/"||t[1]==="."||t[2]==="/"),"isRelativePath"),y=c(t=>W(t)||m.isAbsolute(t),"isFilePath"),X=c(t=>{if(y(t))return!0;const e=H(t);return e&&e!=="node"},"requestAcceptsQuery"),E="file://",L=/\.([cm]?ts|[tj]sx)($|\?)/,K=/[/\\].+\.(?:cts|cjs)(?:$|\?)/,V=/\.json($|\?)/,_=/\/(?:$|\?)/,Y=/^(?:@[^/]+\/)?[^/\\]+$/,$=`${m.sep}node_modules${m.sep}`;exports.fileMatcher=void 0,exports.tsconfigPathsMatcher=void 0,exports.allowJs=!1;const D=c(t=>{let e=null;if(t){const r=m.resolve(t);e={path:r,config:x.parseTsconfig(r)}}else{try{e=x.getTsconfig()}catch{}if(!e)return}exports.fileMatcher=x.createFilesMatcher(e),exports.tsconfigPathsMatcher=x.createPathsMatcher(e),exports.allowJs=e?.config.compilerOptions?.allowJs??!1},"loadTsconfig"),M=c(t=>Array.from(t).length>0?`?${t.toString()}`:"","urlSearchParamsStringify"),Z=`
|
||||||
|
//# sourceMappingURL=data:application/json;base64,`,N=c(()=>process.sourceMapsEnabled??!0,"shouldApplySourceMap"),S=c(({code:t,map:e})=>t+Z+Buffer.from(JSON.stringify(e),"utf8").toString("base64"),"inlineSourceMap"),q=[".cts",".mts",".ts",".tsx",".jsx"],ee=[".js",".cjs",".mjs"],C=[".ts",".tsx",".jsx"],w=c((t,e,r,n)=>{const s=Object.getOwnPropertyDescriptor(t,e);s?.set?t[e]=r:(!s||s.configurable)&&Object.defineProperty(t,e,{value:r,enumerable:s?.enumerable||n?.enumerable,writable:n?.writable??(s?s.writable:!0),configurable:n?.configurable??(s?s.configurable:!0)})},"safeSet"),te=c((t,e,r)=>{const n=e[".js"],s=c((a,i)=>{if(t.enabled===!1)return n(a,i);const[l,f]=i.split("?");if((new URLSearchParams(f).get("namespace")??void 0)!==r)return n(a,i);a.id.startsWith("data:text/javascript,")&&(a.path=m.dirname(l)),U.parent?.send&&U.parent.send({type:"dependency",path:l});const d=q.some(h=>l.endsWith(h)),P=ee.some(h=>l.endsWith(h));if(!d&&!P)return n(a,l);let u=G.readFileSync(l,"utf8");if(l.endsWith(".cjs")){const h=v.transformDynamicImport(i,u);h&&(u=N()?S(h):h.code)}else if(d||v.isESM(u)){const h=v.transformSync(u,i,{tsconfigRaw:exports.fileMatcher?.(l)});u=N()?S(h):h.code}a._compile(u,l)},"transformer");w(e,".js",s);for(const a of C)w(e,a,s,{enumerable:!r,writable:!0,configurable:!0});return w(e,".mjs",s,{writable:!0,configurable:!0}),()=>{e[".js"]===s&&(e[".js"]=n);for(const a of[...C,".mjs"])e[a]===s&&delete e[a]}},"createExtensions"),se=c(t=>e=>{if((e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),_.test(e)){let r=m.join(e,"index.js");e.startsWith("./")&&(r=`./${r}`);try{return t(r)}catch{}}try{return t(e)}catch(r){const n=r;if(n.code==="MODULE_NOT_FOUND")try{return t(`${e}${m.sep}index.js`)}catch{}throw n}},"createImplicitResolver"),A=[".js",".json"],J=[".ts",".tsx",".jsx"],ne=[...J,...A],re=[...A,...J],g=Object.create(null);g[".js"]=[".ts",".tsx",".js",".jsx"],g[".jsx"]=[".tsx",".ts",".jsx",".js"],g[".cjs"]=[".cts"],g[".mjs"]=[".mts"];const Q=c(t=>{const e=t.split("?"),r=e[1]?`?${e[1]}`:"",[n]=e,s=m.extname(n),a=[],i=g[s];if(i){const f=n.slice(0,-s.length);a.push(...i.map(o=>f+o+r))}const l=!(t.startsWith(E)||y(n))||n.includes($)||n.includes("/node_modules/")?re:ne;return a.push(...l.map(f=>n+f+r)),a},"mapTsExtensions"),b=c((t,e,r)=>{if(_.test(e)||!r&&!exports.allowJs)return;const n=Q(e);if(n)for(const s of n)try{return t(s)}catch(a){const{code:i}=a;if(i!=="MODULE_NOT_FOUND"&&i!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw a}},"resolveTsFilename"),ae=c((t,e)=>r=>{if(y(r)){const n=b(t,r,e);if(n)return n}try{return t(r)}catch(n){const s=n;if(s.code==="MODULE_NOT_FOUND"){if(typeof s.path=="string"&&s.path.endsWith(`${m.sep}package.json`)){const i=s.message.match(/^Cannot find module '([^']+)'$/);if(i){const f=i[1],o=b(t,f,e);if(o)return o}const l=s.message.match(/^Cannot find module '([^']+)'. Please verify that the package.json has a valid "main" entry$/);if(l){const f=l[1],o=b(t,f,e);if(o)return o}}const a=b(t,r,e);if(a)return a}throw s}},"createTsExtensionResolver"),I="at cjsPreparseModuleExports (node:internal",ce=c(t=>{const e=t.stack.split(`
|
||||||
|
`).slice(1);return e[1].includes(I)||e[2].includes(I)},"isFromCjsLexer"),ie=c((t,e)=>{const r=t.split("?"),n=new URLSearchParams(r[1]);if(e?.filename){const s=F(e.filename);let a;if(s){const f=s.split("?"),o=f[0];a=f[1],e.filename=o,e.path=m.dirname(o),e.paths=p._nodeModulePaths(e.path),p._cache[o]=e}a||(a=e.filename.split("?")[1]);const l=new URLSearchParams(a).get("namespace");l&&n.append("namespace",l)}return[r[0],n,(s,a)=>(m.isAbsolute(s)&&!s.endsWith(".json")&&!s.endsWith(".node")&&!(a===0&&ce(new Error))&&(s+=M(n)),s)]},"preserveQuery"),oe=c((t,e,r)=>{if(t.startsWith(E)&&(t=O.fileURLToPath(t)),exports.tsconfigPathsMatcher&&!y(t)&&!e?.filename?.includes($)){const n=exports.tsconfigPathsMatcher(t);for(const s of n)try{return r(s)}catch{}}return r(t)},"resolveTsPaths"),le=c((t,e,r)=>(n,s,...a)=>{if(t.enabled===!1)return e(n,s,...a);n=R(n);const[i,l,f]=ie(n,s);if((l.get("namespace")??void 0)!==r)return e(n,s,...a);let o=c(P=>e(P,s,...a),"nextResolveSimple");o=ae(o,!!(r||s?.filename&&L.test(s.filename))),o=se(o);const d=oe(i,s,o);return f(d,a.length)},"createResolveFilename"),k=c((t,e)=>{if(!e)throw new Error("The current file path (__filename or import.meta.url) must be provided in the second argument of tsx.require()");return t.startsWith(".")?((typeof e=="string"&&e.startsWith(E)||e instanceof URL)&&(e=O.fileURLToPath(e)),m.resolve(m.dirname(e),t)):t},"resolveContext"),fe=c(t=>{const{sourceMapsEnabled:e}=process,r={enabled:!0};D(process.env.TSX_TSCONFIG_PATH),process.setSourceMapsEnabled(!0);const n=p._resolveFilename,s=le(r,n,t?.namespace);p._resolveFilename=s;const a=te(r,p._extensions,t?.namespace),i=c(()=>{e===!1&&process.setSourceMapsEnabled(!1),r.enabled=!1,p._resolveFilename===s&&(p._resolveFilename=n),a()},"unregister");if(t?.namespace){const l=c((o,d)=>{const P=k(o,d),[u,h]=P.split("?"),j=new URLSearchParams(h);return t.namespace&&!u.startsWith("node:")&&j.set("namespace",t.namespace),z.require(u+M(j))},"scopedRequire");i.require=l;const f=c((o,d,P)=>{const u=k(o,d),[h,j]=u.split("?"),T=new URLSearchParams(j);return t.namespace&&!h.startsWith("node:")&&T.set("namespace",t.namespace),s(h+M(T),module,!1,P)},"scopedResolve");i.resolve=f,i.unregister=i}return i},"register");exports.cjsExtensionPattern=K,exports.fileUrlPrefix=E,exports.inlineSourceMap=S,exports.interopCjsExports=R,exports.isBarePackageNamePattern=Y,exports.isDirectoryPattern=_,exports.isJsonPattern=V,exports.isRelativePath=W,exports.loadTsconfig=D,exports.mapTsExtensions=Q,exports.register=fe,exports.requestAcceptsQuery=X,exports.tsExtensionsPattern=L;
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/register-RyGUjI6j.mjs
generated
vendored
Normal file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/register-RyGUjI6j.mjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
var d=Object.defineProperty;var o=(r,s)=>d(r,"name",{value:s,configurable:!0});import m from"node:module";import{MessageChannel as u}from"node:worker_threads";import{f as g,a as v}from"./register-C3TE0KFF.mjs";import{pathToFileURL as h}from"node:url";const w=o(r=>(s,e)=>{if(!e)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const a=e.startsWith(g)?e:h(e).toString();return import(`tsx://${JSON.stringify({specifier:s,parentURL:a,namespace:r})}`)},"createScopedImport");let l=!1;const E=o(r=>{if(!m.register)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!l){const{_resolveFilename:t}=m;m._resolveFilename=(p,...c)=>t(v(p),...c),l=!0}const{sourceMapsEnabled:s}=process;process.setSourceMapsEnabled(!0);const{port1:e,port2:a}=new u;m.register(`./esm/index.mjs?${Date.now()}`,{parentURL:import.meta.url,data:{port:a,namespace:r?.namespace,tsconfig:r?.tsconfig},transferList:[a]});const f=r?.onImport,n=f&&(t=>{t.type==="load"&&f(t.url)});n&&(e.on("message",n),e.unref());const i=o(()=>(s===!1&&process.setSourceMapsEnabled(!1),n&&e.off("message",n),e.postMessage("deactivate"),new Promise(t=>{const p=o(c=>{c.type==="deactivated"&&(t(),e.off("message",p))},"onDeactivated");e.on("message",p)})),"unregister");return r?.namespace&&(i.import=w(r.namespace),i.unregister=i),i},"register");export{E as r};
|
3
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/repl.cjs
generated
vendored
Executable file
3
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/repl.cjs
generated
vendored
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
"use strict";var c=Object.defineProperty;var s=(e,r)=>c(e,"name",{value:r,configurable:!0});var l=require("node:repl"),u=require("./package-Da8mCwBa.cjs"),q=require("./index-B4SIRlEU.cjs");require("node:url"),require("esbuild"),require("node:crypto"),require("node:fs"),require("node:path"),require("node:os"),require("./temporary-directory-B83uKxJF.cjs"),console.log(`Welcome to tsx v${u.version} (Node.js ${process.version}).
|
||||||
|
Type ".help" for more information.`);const t=l.start(),{eval:p}=t,v=s(async function(e,r,o,i){const a=await q.transform(e,o,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(n=>(console.log(n.message),{code:`
|
||||||
|
`}));return p.call(this,a.code,r,o,i)},"preEval");t.eval=v;
|
3
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/repl.mjs
generated
vendored
Executable file
3
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/repl.mjs
generated
vendored
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
var m=Object.defineProperty;var t=(o,r)=>m(o,"name",{value:r,configurable:!0});import p from"node:repl";import{v as l}from"./package-Cnq4Dx54.mjs";import{t as c}from"./index-DlKgSVBb.mjs";import"node:url";import"esbuild";import"node:crypto";import"node:fs";import"node:path";import"node:os";import"./temporary-directory-CwHp0_NW.mjs";console.log(`Welcome to tsx v${l} (Node.js ${process.version}).
|
||||||
|
Type ".help" for more information.`);const s=p.start(),{eval:f}=s,v=t(async function(o,r,e,i){const n=await c(o,e,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(a=>(console.log(a.message),{code:`
|
||||||
|
`}));return f.call(this,n.code,r,e,i)},"preEval");s.eval=v;
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/require-BnyFnlmk.mjs
generated
vendored
Normal file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/require-BnyFnlmk.mjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
var m=Object.defineProperty;var a=(r,t)=>m(r,"name",{value:t,configurable:!0});import{r as o}from"./get-pipe-path-BHW2eJdv.mjs";import{r as n}from"./register-C3TE0KFF.mjs";let e;const s=a((r,t)=>(e||(e=n({namespace:Date.now().toString()})),e.require(r,t)),"tsxRequire"),i=a((r,t,c)=>(e||(e=n({namespace:Date.now().toString()})),e.resolve(r,t,c)),"resolve");i.paths=o.resolve.paths,s.resolve=i,s.main=o.main,s.extensions=o.extensions,s.cache=o.cache;export{s as t};
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/require-DBpSESet.cjs
generated
vendored
Normal file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/require-DBpSESet.cjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
"use strict";var c=Object.defineProperty;var a=(r,t)=>c(r,"name",{value:t,configurable:!0});var s=require("./get-pipe-path-BoR10qr8.cjs"),n=require("./register-DCnOAxY2.cjs");let e;const i=a((r,t)=>(e||(e=n.register({namespace:Date.now().toString()})),e.require(r,t)),"tsxRequire"),o=a((r,t,u)=>(e||(e=n.register({namespace:Date.now().toString()})),e.resolve(r,t,u)),"resolve");o.paths=s.require.resolve.paths,i.resolve=o,i.main=s.require.main,i.extensions=s.require.extensions,i.cache=s.require.cache,exports.tsxRequire=i;
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/suppress-warnings.cjs
generated
vendored
Executable file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/suppress-warnings.cjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
"use strict";const a=new Set(["Custom ESM Loaders is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature and might change at any time","Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js."]),{emit:n}=process;process.emit=function(e,t){if(!(e==="warning"&&a.has(t.message)))return Reflect.apply(n,this,arguments)};
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/suppress-warnings.mjs
generated
vendored
Executable file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/suppress-warnings.mjs
generated
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
const t=new Set(["Custom ESM Loaders is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature and might change at any time","Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js."]),{emit:n}=process;process.emit=function(e,a){if(!(e==="warning"&&t.has(a.message)))return Reflect.apply(n,this,arguments)};
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/temporary-directory-B83uKxJF.cjs
generated
vendored
Normal file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/temporary-directory-B83uKxJF.cjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
"use strict";var s=require("node:path"),r=require("node:os");const{geteuid:e}=process,t=e?e():r.userInfo().username,i=s.join(r.tmpdir(),`tsx-${t}`);exports.tmpdir=i;
|
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs
generated
vendored
Normal file
1
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
import r from"node:path";import o from"node:os";const{geteuid:t}=process,s=t?t():o.userInfo().username,e=r.join(o.tmpdir(),`tsx-${s}`);export{e as t};
|
5
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/types-Cxp8y2TL.d.ts
generated
vendored
Normal file
5
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/types-Cxp8y2TL.d.ts
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
type RequiredProperty<Type, Keys extends keyof Type> = Type & {
|
||||||
|
[P in Keys]-?: Type[P];
|
||||||
|
};
|
||||||
|
|
||||||
|
export type { RequiredProperty as R };
|
14
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/node_modules/.bin/esbuild
generated
vendored
Executable file
14
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/node_modules/.bin/esbuild
generated
vendored
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -z "$NODE_PATH" ]; then
|
||||||
|
export NODE_PATH="/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/bin/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/node_modules"
|
||||||
|
else
|
||||||
|
export NODE_PATH="/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/bin/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules/esbuild/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/esbuild@0.23.1/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||||
|
fi
|
||||||
|
"$basedir/../../../../../esbuild@0.23.1/node_modules/esbuild/bin/esbuild" "$@"
|
||||||
|
exit $?
|
17
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/node_modules/.bin/tsx
generated
vendored
Executable file
17
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/node_modules/.bin/tsx
generated
vendored
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -z "$NODE_PATH" ]; then
|
||||||
|
export NODE_PATH="/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/tsx@4.19.2/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/node_modules"
|
||||||
|
else
|
||||||
|
export NODE_PATH="/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/dist/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/tsx@4.19.2/node_modules:/Users/taollin/Desktop/test/docker-time/node_modules/.pnpm/node_modules:$NODE_PATH"
|
||||||
|
fi
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../../dist/cli.mjs" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../../dist/cli.mjs" "$@"
|
||||||
|
fi
|
68
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/package.json
generated
vendored
Normal file
68
node_modules/.pnpm/tsx@4.19.2/node_modules/tsx/package.json
generated
vendored
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
{
|
||||||
|
"name": "tsx",
|
||||||
|
"version": "4.19.2",
|
||||||
|
"description": "TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files",
|
||||||
|
"keywords": [
|
||||||
|
"cli",
|
||||||
|
"runtime",
|
||||||
|
"node",
|
||||||
|
"cjs",
|
||||||
|
"commonjs",
|
||||||
|
"esm",
|
||||||
|
"typescript",
|
||||||
|
"typescript runner"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": "privatenumber/tsx",
|
||||||
|
"author": {
|
||||||
|
"name": "Hiroki Osame",
|
||||||
|
"email": "hiroki.osame@gmail.com"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
|
"type": "module",
|
||||||
|
"bin": "./dist/cli.mjs",
|
||||||
|
"exports": {
|
||||||
|
"./package.json": "./package.json",
|
||||||
|
".": "./dist/loader.mjs",
|
||||||
|
"./patch-repl": "./dist/patch-repl.cjs",
|
||||||
|
"./cjs": "./dist/cjs/index.cjs",
|
||||||
|
"./cjs/api": {
|
||||||
|
"import": {
|
||||||
|
"types": "./dist/cjs/api/index.d.mts",
|
||||||
|
"default": "./dist/cjs/api/index.mjs"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"types": "./dist/cjs/api/index.d.cts",
|
||||||
|
"default": "./dist/cjs/api/index.cjs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"./esm": "./dist/esm/index.mjs",
|
||||||
|
"./esm/api": {
|
||||||
|
"import": {
|
||||||
|
"types": "./dist/esm/api/index.d.mts",
|
||||||
|
"default": "./dist/esm/api/index.mjs"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"types": "./dist/esm/api/index.d.cts",
|
||||||
|
"default": "./dist/esm/api/index.cjs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"./cli": "./dist/cli.mjs",
|
||||||
|
"./suppress-warnings": "./dist/suppress-warnings.cjs",
|
||||||
|
"./preflight": "./dist/preflight.cjs",
|
||||||
|
"./repl": "./dist/repl.mjs"
|
||||||
|
},
|
||||||
|
"homepage": "https://tsx.is",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"esbuild": "~0.23.0",
|
||||||
|
"get-tsconfig": "^4.7.5"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"fsevents": "~2.3.3"
|
||||||
|
}
|
||||||
|
}
|
1
node_modules/tsx
generated
vendored
Symbolic link
1
node_modules/tsx
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
.pnpm/tsx@4.19.2/node_modules/tsx
|
16
package.json
Normal file
16
package.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"name": "docker-time",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"packageManager": "pnpm@8.10.2+sha1.e0b68270e89c817ff88b7be62466a2128c53af02",
|
||||||
|
"devDependencies": {
|
||||||
|
"tsx": "^4.19.2"
|
||||||
|
}
|
||||||
|
}
|
289
pnpm-lock.yaml
Normal file
289
pnpm-lock.yaml
Normal file
@ -0,0 +1,289 @@
|
|||||||
|
lockfileVersion: '6.0'
|
||||||
|
|
||||||
|
settings:
|
||||||
|
autoInstallPeers: true
|
||||||
|
excludeLinksFromLockfile: false
|
||||||
|
|
||||||
|
devDependencies:
|
||||||
|
tsx:
|
||||||
|
specifier: ^4.19.2
|
||||||
|
version: 4.19.2
|
||||||
|
|
||||||
|
packages:
|
||||||
|
|
||||||
|
/@esbuild/aix-ppc64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-6VhYk1diRqrhBAqpJEdjASR/+WVRtfjpqKuNw11cLiaWpAT/Uu+nokB+UJnevzy/P9C/ty6AOe0dwueMrGh/iQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [ppc64]
|
||||||
|
os: [aix]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/android-arm64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-xw50ipykXcLstLeWH7WRdQuysJqejuAGPd30vd1i5zSyKK3WE+ijzHmLKxdiCMtH1pHz78rOg0BKSYOSB/2Khw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [android]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/android-arm@0.23.1:
|
||||||
|
resolution: {integrity: sha512-uz6/tEy2IFm9RYOyvKl88zdzZfwEfKZmnX9Cj1BHjeSGNuGLuMD1kR8y5bteYmwqKm1tj8m4cb/aKEorr6fHWQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm]
|
||||||
|
os: [android]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/android-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-nlN9B69St9BwUoB+jkyU090bru8L0NA3yFvAd7k8dNsVH8bi9a8cUAUSEcEEgTp2z3dbEDGJGfP6VUnkQnlReg==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [android]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/darwin-arm64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-YsS2e3Wtgnw7Wq53XXBLcV6JhRsEq8hkfg91ESVadIrzr9wO6jJDMZnCQbHm1Guc5t/CdDiFSSfWP58FNuvT3Q==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [darwin]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/darwin-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-aClqdgTDVPSEGgoCS8QDG37Gu8yc9lTHNAQlsztQ6ENetKEO//b8y31MMu2ZaPbn4kVsIABzVLXYLhCGekGDqw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [darwin]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/freebsd-arm64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-h1k6yS8/pN/NHlMl5+v4XPfikhJulk4G+tKGFIOwURBSFzE8bixw1ebjluLOjfwtLqY0kewfjLSrO6tN2MgIhA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [freebsd]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/freebsd-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-lK1eJeyk1ZX8UklqFd/3A60UuZ/6UVfGT2LuGo3Wp4/z7eRTRYY+0xOu2kpClP+vMTi9wKOfXi2vjUpO1Ro76g==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [freebsd]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-arm64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-/93bf2yxencYDnItMYV/v116zff6UyTjo4EtEQjUBeGiVpMmffDNUyD9UN2zV+V3LRV3/on4xdZ26NKzn6754g==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-arm@0.23.1:
|
||||||
|
resolution: {integrity: sha512-CXXkzgn+dXAPs3WBwE+Kvnrf4WECwBdfjfeYHpMeVxWE0EceB6vhWGShs6wi0IYEqMSIzdOF1XjQ/Mkm5d7ZdQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-ia32@0.23.1:
|
||||||
|
resolution: {integrity: sha512-VTN4EuOHwXEkXzX5nTvVY4s7E/Krz7COC8xkftbbKRYAl96vPiUssGkeMELQMOnLOJ8k3BY1+ZY52tttZnHcXQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [ia32]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-loong64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-Vx09LzEoBa5zDnieH8LSMRToj7ir/Jeq0Gu6qJ/1GcBq9GkfoEAoXvLiW1U9J1qE/Y/Oyaq33w5p2ZWrNNHNEw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [loong64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-mips64el@0.23.1:
|
||||||
|
resolution: {integrity: sha512-nrFzzMQ7W4WRLNUOU5dlWAqa6yVeI0P78WKGUo7lg2HShq/yx+UYkeNSE0SSfSure0SqgnsxPvmAUu/vu0E+3Q==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [mips64el]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-ppc64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-dKN8fgVqd0vUIjxuJI6P/9SSSe/mB9rvA98CSH2sJnlZ/OCZWO1DJvxj8jvKTfYUdGfcq2dDxoKaC6bHuTlgcw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [ppc64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-riscv64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-5AV4Pzp80fhHL83JM6LoA6pTQVWgB1HovMBsLQ9OZWLDqVY8MVobBXNSmAJi//Csh6tcY7e7Lny2Hg1tElMjIA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [riscv64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-s390x@0.23.1:
|
||||||
|
resolution: {integrity: sha512-9ygs73tuFCe6f6m/Tb+9LtYxWR4c9yg7zjt2cYkjDbDpV/xVn+68cQxMXCjUpYwEkze2RcU/rMnfIXNRFmSoDw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [s390x]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/linux-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-EV6+ovTsEXCPAp58g2dD68LxoP/wK5pRvgy0J/HxPGB009omFPv3Yet0HiaqvrIrgPTBuC6wCH1LTOY91EO5hQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/netbsd-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-aevEkCNu7KlPRpYLjwmdcuNz6bDFiE7Z8XC4CPqExjTvrHugh28QzUXVOZtiYghciKUacNktqxdpymplil1beA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [netbsd]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/openbsd-arm64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [openbsd]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/openbsd-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-aY2gMmKmPhxfU+0EdnN+XNtGbjfQgwZj43k8G3fyrDM/UdZww6xrWxmDkuz2eCZchqVeABjV5BpildOrUbBTqA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [openbsd]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/sunos-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-RBRT2gqEl0IKQABT4XTj78tpk9v7ehp+mazn2HbUeZl1YMdaGAQqhapjGTCe7uw7y0frDi4gS0uHzhvpFuI1sA==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [sunos]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/win32-arm64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-4O+gPR5rEBe2FpKOVyiJ7wNDPA8nGzDuJ6gN4okSA1gEOYZ67N8JPk58tkWtdtPeLz7lBnY6I5L3jdsr3S+A6A==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [win32]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/win32-ia32@0.23.1:
|
||||||
|
resolution: {integrity: sha512-BcaL0Vn6QwCwre3Y717nVHZbAa4UBEigzFm6VdsVdT/MbZ38xoj1X9HPkZhbmaBGUD1W8vxAfffbDe8bA6AKnQ==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [ia32]
|
||||||
|
os: [win32]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@esbuild/win32-x64@0.23.1:
|
||||||
|
resolution: {integrity: sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [win32]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/esbuild@0.23.1:
|
||||||
|
resolution: {integrity: sha512-VVNz/9Sa0bs5SELtn3f7qhJCDPCF5oMEl5cO9/SSinpE9hbPVvxbd572HH5AKiP7WD8INO53GgfDDhRjkylHEg==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
hasBin: true
|
||||||
|
requiresBuild: true
|
||||||
|
optionalDependencies:
|
||||||
|
'@esbuild/aix-ppc64': 0.23.1
|
||||||
|
'@esbuild/android-arm': 0.23.1
|
||||||
|
'@esbuild/android-arm64': 0.23.1
|
||||||
|
'@esbuild/android-x64': 0.23.1
|
||||||
|
'@esbuild/darwin-arm64': 0.23.1
|
||||||
|
'@esbuild/darwin-x64': 0.23.1
|
||||||
|
'@esbuild/freebsd-arm64': 0.23.1
|
||||||
|
'@esbuild/freebsd-x64': 0.23.1
|
||||||
|
'@esbuild/linux-arm': 0.23.1
|
||||||
|
'@esbuild/linux-arm64': 0.23.1
|
||||||
|
'@esbuild/linux-ia32': 0.23.1
|
||||||
|
'@esbuild/linux-loong64': 0.23.1
|
||||||
|
'@esbuild/linux-mips64el': 0.23.1
|
||||||
|
'@esbuild/linux-ppc64': 0.23.1
|
||||||
|
'@esbuild/linux-riscv64': 0.23.1
|
||||||
|
'@esbuild/linux-s390x': 0.23.1
|
||||||
|
'@esbuild/linux-x64': 0.23.1
|
||||||
|
'@esbuild/netbsd-x64': 0.23.1
|
||||||
|
'@esbuild/openbsd-arm64': 0.23.1
|
||||||
|
'@esbuild/openbsd-x64': 0.23.1
|
||||||
|
'@esbuild/sunos-x64': 0.23.1
|
||||||
|
'@esbuild/win32-arm64': 0.23.1
|
||||||
|
'@esbuild/win32-ia32': 0.23.1
|
||||||
|
'@esbuild/win32-x64': 0.23.1
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/fsevents@2.3.3:
|
||||||
|
resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
|
||||||
|
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
|
||||||
|
os: [darwin]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/get-tsconfig@4.8.1:
|
||||||
|
resolution: {integrity: sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==}
|
||||||
|
dependencies:
|
||||||
|
resolve-pkg-maps: 1.0.0
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/resolve-pkg-maps@1.0.0:
|
||||||
|
resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/tsx@4.19.2:
|
||||||
|
resolution: {integrity: sha512-pOUl6Vo2LUq/bSa8S5q7b91cgNSjctn9ugq/+Mvow99qW6x/UZYwzxy/3NmqoT66eHYfCVvFvACC58UBPFf28g==}
|
||||||
|
engines: {node: '>=18.0.0'}
|
||||||
|
hasBin: true
|
||||||
|
dependencies:
|
||||||
|
esbuild: 0.23.1
|
||||||
|
get-tsconfig: 4.8.1
|
||||||
|
optionalDependencies:
|
||||||
|
fsevents: 2.3.3
|
||||||
|
dev: true
|
Loading…
Reference in New Issue
Block a user