react-scripts-intlayer 7.0.0-canary.2 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cli/react-scripts-intlayer.cjs +5 -6
- package/dist/cjs/cli/react-scripts-intlayer.cjs.map +1 -1
- package/dist/esm/_virtual/rolldown_runtime.mjs +1 -5
- package/dist/esm/cli/react-scripts-intlayer.mjs +4 -7
- package/dist/esm/cli/react-scripts-intlayer.mjs.map +1 -1
- package/package.json +10 -10
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.cjs +0 -36
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.cjs +0 -49
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.cjs +0 -74
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.cjs +0 -30
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.cjs +0 -29
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.cjs +0 -43
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.cjs +0 -54
- package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.cjs +0 -40
- package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.cjs +0 -40
- package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.cjs +0 -21
- package/dist/cjs/node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.cjs +0 -24
- package/dist/cjs/node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.cjs +0 -15
- package/dist/cjs/node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.cjs.map +0 -1
- package/dist/cjs/node_modules/.bun/which@2.0.2/node_modules/which/which.cjs +0 -83
- package/dist/cjs/node_modules/.bun/which@2.0.2/node_modules/which/which.cjs.map +0 -1
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.mjs +0 -33
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.mjs +0 -46
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.mjs +0 -71
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.mjs +0 -27
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.mjs +0 -26
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.mjs +0 -40
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.mjs +0 -51
- package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.mjs +0 -37
- package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.mjs +0 -37
- package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.mjs +0 -18
- package/dist/esm/node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.mjs +0 -21
- package/dist/esm/node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.mjs +0 -12
- package/dist/esm/node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.mjs.map +0 -1
- package/dist/esm/node_modules/.bun/which@2.0.2/node_modules/which/which.mjs +0 -80
- package/dist/esm/node_modules/.bun/which@2.0.2/node_modules/which/which.mjs.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
3
|
-
const require_index = require('../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.cjs');
|
|
4
3
|
let __intlayer_config = require("@intlayer/config");
|
|
5
4
|
__intlayer_config = require_rolldown_runtime.__toESM(__intlayer_config);
|
|
5
|
+
let node_child_process = require("node:child_process");
|
|
6
|
+
node_child_process = require_rolldown_runtime.__toESM(node_child_process);
|
|
6
7
|
|
|
7
8
|
//#region src/cli/react-scripts-intlayer.ts
|
|
8
|
-
var import_cross_spawn = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_index.require_cross_spawn());
|
|
9
9
|
const args = process.argv.slice(2);
|
|
10
|
-
const scriptIndex = args.findIndex((
|
|
10
|
+
const scriptIndex = args.findIndex((index) => index === "build" || index === "start" || index === "test");
|
|
11
11
|
const script = scriptIndex === -1 ? args[0] : args[scriptIndex];
|
|
12
12
|
switch (script) {
|
|
13
13
|
case "build":
|
|
@@ -16,12 +16,11 @@ switch (script) {
|
|
|
16
16
|
const nodeArgs = scriptIndex > 0 ? args.slice(0, scriptIndex) : [];
|
|
17
17
|
const scriptPath = __intlayer_config.ESMxCJSRequire.resolve(`@craco/craco/dist/scripts/${script}`);
|
|
18
18
|
const scriptArgs = args.slice(scriptIndex + 1);
|
|
19
|
-
const
|
|
19
|
+
const child = (0, node_child_process.spawnSync)("node", nodeArgs.concat(scriptPath).concat([
|
|
20
20
|
...scriptArgs,
|
|
21
21
|
"--config",
|
|
22
22
|
"./node_modules/react-scripts-intlayer/dist/cjs/craco.config.cjs"
|
|
23
|
-
]);
|
|
24
|
-
const child = import_cross_spawn.default.sync("node", processArgs, { stdio: "inherit" });
|
|
23
|
+
]), { stdio: "inherit" });
|
|
25
24
|
if (child.signal) {
|
|
26
25
|
if (child.signal === "SIGKILL") (0, __intlayer_config.logger)(`
|
|
27
26
|
The build failed because the process exited too early.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-scripts-intlayer.cjs","names":["ESMxCJSRequire"
|
|
1
|
+
{"version":3,"file":"react-scripts-intlayer.cjs","names":["ESMxCJSRequire"],"sources":["../../../src/cli/react-scripts-intlayer.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * To make the setup easier, we are using craco to override the webpack configuration.\n * This script is used to run the craco scripts with the custom configuration.\n *\n * The script is based on the original craco script from create-react-app.\n */\n\nimport { spawnSync } from 'node:child_process';\nimport { ESMxCJSRequire, logger } from '@intlayer/config';\n\nconst args = process.argv.slice(2);\nconst scriptIndex = args.findIndex(\n (index) => index === 'build' || index === 'start' || index === 'test'\n);\nconst script = scriptIndex === -1 ? args[0] : args[scriptIndex];\n\nswitch (script) {\n case 'build':\n case 'start':\n case 'test': {\n const nodeArgs = scriptIndex > 0 ? args.slice(0, scriptIndex) : [];\n const scriptPath = ESMxCJSRequire.resolve(\n `@craco/craco/dist/scripts/${script}`\n );\n\n const scriptArgs = args.slice(scriptIndex + 1);\n const processArgs = nodeArgs\n .concat(scriptPath)\n .concat([\n ...scriptArgs,\n '--config',\n './node_modules/react-scripts-intlayer/dist/cjs/craco.config.cjs',\n ]);\n\n const child = spawnSync('node', processArgs, {\n stdio: 'inherit',\n });\n\n if (child.signal) {\n if (child.signal === 'SIGKILL') {\n logger(`\n The build failed because the process exited too early.\n This probably means the system ran out of memory or someone called\n \\`kill -9\\` on the process.\n `);\n } else if (child.signal === 'SIGTERM') {\n logger(`\n The build failed because the process exited too early.\n Someone might have called \\`kill\\` or \\`killall\\`, or the system could\n be shutting down.\n `);\n }\n\n process.exit(1);\n }\n\n process.exit(child.status ?? undefined);\n break;\n }\n default:\n logger(`Unknown script \"${script}\".`);\n logger('Perhaps you need to update craco?');\n break;\n}\n"],"mappings":";;;;;;;;AAYA,MAAM,OAAO,QAAQ,KAAK,MAAM,EAAE;AAClC,MAAM,cAAc,KAAK,WACtB,UAAU,UAAU,WAAW,UAAU,WAAW,UAAU,OAChE;AACD,MAAM,SAAS,gBAAgB,KAAK,KAAK,KAAK,KAAK;AAEnD,QAAQ,QAAR;CACE,KAAK;CACL,KAAK;CACL,KAAK,QAAQ;EACX,MAAM,WAAW,cAAc,IAAI,KAAK,MAAM,GAAG,YAAY,GAAG,EAAE;EAClE,MAAM,aAAaA,iCAAe,QAChC,6BAA6B,SAC9B;EAED,MAAM,aAAa,KAAK,MAAM,cAAc,EAAE;EAS9C,MAAM,0CAAkB,QARJ,SACjB,OAAO,WAAW,CAClB,OAAO;GACN,GAAG;GACH;GACA;GACD,CAAC,EAEyC,EAC3C,OAAO,WACR,CAAC;AAEF,MAAI,MAAM,QAAQ;AAChB,OAAI,MAAM,WAAW,UACnB,+BAAO;;;;cAID;YACG,MAAM,WAAW,UAC1B,+BAAO;;;;cAID;AAGR,WAAQ,KAAK,EAAE;;AAGjB,UAAQ,KAAK,MAAM,UAAU,OAAU;AACvC;;CAEF;AACE,gCAAO,mBAAmB,OAAO,IAAI;AACrC,gCAAO,oCAAoC;AAC3C"}
|
|
@@ -26,10 +26,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
value: mod,
|
|
27
27
|
enumerable: true
|
|
28
28
|
}) : target, mod));
|
|
29
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
30
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
31
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
|
|
32
|
-
});
|
|
33
29
|
|
|
34
30
|
//#endregion
|
|
35
|
-
export { __commonJS, __esm, __reExport,
|
|
31
|
+
export { __commonJS, __esm, __reExport, __toESM };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { __toESM } from "../_virtual/rolldown_runtime.mjs";
|
|
3
|
-
import { require_cross_spawn } from "../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.mjs";
|
|
4
2
|
import { ESMxCJSRequire, logger } from "@intlayer/config";
|
|
3
|
+
import { spawnSync } from "node:child_process";
|
|
5
4
|
|
|
6
5
|
//#region src/cli/react-scripts-intlayer.ts
|
|
7
|
-
var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn());
|
|
8
6
|
const args = process.argv.slice(2);
|
|
9
|
-
const scriptIndex = args.findIndex((
|
|
7
|
+
const scriptIndex = args.findIndex((index) => index === "build" || index === "start" || index === "test");
|
|
10
8
|
const script = scriptIndex === -1 ? args[0] : args[scriptIndex];
|
|
11
9
|
switch (script) {
|
|
12
10
|
case "build":
|
|
@@ -15,12 +13,11 @@ switch (script) {
|
|
|
15
13
|
const nodeArgs = scriptIndex > 0 ? args.slice(0, scriptIndex) : [];
|
|
16
14
|
const scriptPath = ESMxCJSRequire.resolve(`@craco/craco/dist/scripts/${script}`);
|
|
17
15
|
const scriptArgs = args.slice(scriptIndex + 1);
|
|
18
|
-
const
|
|
16
|
+
const child = spawnSync("node", nodeArgs.concat(scriptPath).concat([
|
|
19
17
|
...scriptArgs,
|
|
20
18
|
"--config",
|
|
21
19
|
"./node_modules/react-scripts-intlayer/dist/cjs/craco.config.cjs"
|
|
22
|
-
]);
|
|
23
|
-
const child = import_cross_spawn.default.sync("node", processArgs, { stdio: "inherit" });
|
|
20
|
+
]), { stdio: "inherit" });
|
|
24
21
|
if (child.signal) {
|
|
25
22
|
if (child.signal === "SIGKILL") logger(`
|
|
26
23
|
The build failed because the process exited too early.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-scripts-intlayer.mjs","names":[
|
|
1
|
+
{"version":3,"file":"react-scripts-intlayer.mjs","names":[],"sources":["../../../src/cli/react-scripts-intlayer.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * To make the setup easier, we are using craco to override the webpack configuration.\n * This script is used to run the craco scripts with the custom configuration.\n *\n * The script is based on the original craco script from create-react-app.\n */\n\nimport { spawnSync } from 'node:child_process';\nimport { ESMxCJSRequire, logger } from '@intlayer/config';\n\nconst args = process.argv.slice(2);\nconst scriptIndex = args.findIndex(\n (index) => index === 'build' || index === 'start' || index === 'test'\n);\nconst script = scriptIndex === -1 ? args[0] : args[scriptIndex];\n\nswitch (script) {\n case 'build':\n case 'start':\n case 'test': {\n const nodeArgs = scriptIndex > 0 ? args.slice(0, scriptIndex) : [];\n const scriptPath = ESMxCJSRequire.resolve(\n `@craco/craco/dist/scripts/${script}`\n );\n\n const scriptArgs = args.slice(scriptIndex + 1);\n const processArgs = nodeArgs\n .concat(scriptPath)\n .concat([\n ...scriptArgs,\n '--config',\n './node_modules/react-scripts-intlayer/dist/cjs/craco.config.cjs',\n ]);\n\n const child = spawnSync('node', processArgs, {\n stdio: 'inherit',\n });\n\n if (child.signal) {\n if (child.signal === 'SIGKILL') {\n logger(`\n The build failed because the process exited too early.\n This probably means the system ran out of memory or someone called\n \\`kill -9\\` on the process.\n `);\n } else if (child.signal === 'SIGTERM') {\n logger(`\n The build failed because the process exited too early.\n Someone might have called \\`kill\\` or \\`killall\\`, or the system could\n be shutting down.\n `);\n }\n\n process.exit(1);\n }\n\n process.exit(child.status ?? undefined);\n break;\n }\n default:\n logger(`Unknown script \"${script}\".`);\n logger('Perhaps you need to update craco?');\n break;\n}\n"],"mappings":";;;;;AAYA,MAAM,OAAO,QAAQ,KAAK,MAAM,EAAE;AAClC,MAAM,cAAc,KAAK,WACtB,UAAU,UAAU,WAAW,UAAU,WAAW,UAAU,OAChE;AACD,MAAM,SAAS,gBAAgB,KAAK,KAAK,KAAK,KAAK;AAEnD,QAAQ,QAAR;CACE,KAAK;CACL,KAAK;CACL,KAAK,QAAQ;EACX,MAAM,WAAW,cAAc,IAAI,KAAK,MAAM,GAAG,YAAY,GAAG,EAAE;EAClE,MAAM,aAAa,eAAe,QAChC,6BAA6B,SAC9B;EAED,MAAM,aAAa,KAAK,MAAM,cAAc,EAAE;EAS9C,MAAM,QAAQ,UAAU,QARJ,SACjB,OAAO,WAAW,CAClB,OAAO;GACN,GAAG;GACH;GACA;GACD,CAAC,EAEyC,EAC3C,OAAO,WACR,CAAC;AAEF,MAAI,MAAM,QAAQ;AAChB,OAAI,MAAM,WAAW,UACnB,QAAO;;;;cAID;YACG,MAAM,WAAW,UAC1B,QAAO;;;;cAID;AAGR,WAAQ,KAAK,EAAE;;AAGjB,UAAQ,KAAK,MAAM,UAAU,OAAU;AACvC;;CAEF;AACE,SAAO,mBAAmB,OAAO,IAAI;AACrC,SAAO,oCAAoC;AAC3C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-scripts-intlayer",
|
|
3
|
-
"version": "7.0.0
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Integrate Intlayer with Create React App using custom React scripts for internationalization i18n and advanced Webpack configurations",
|
|
6
6
|
"keywords": [
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@craco/craco": "7.1.0",
|
|
79
|
-
"@intlayer/config": "7.0.0
|
|
80
|
-
"@intlayer/types": "7.0.0
|
|
81
|
-
"@intlayer/webpack": "7.0.0
|
|
79
|
+
"@intlayer/config": "7.0.0",
|
|
80
|
+
"@intlayer/types": "7.0.0",
|
|
81
|
+
"@intlayer/webpack": "7.0.0",
|
|
82
82
|
"node-loader": "2.1.0",
|
|
83
83
|
"process": "0.11.10",
|
|
84
84
|
"webpack": "5.98.0"
|
|
@@ -88,18 +88,18 @@
|
|
|
88
88
|
"@types/cross-spawn": "6.0.6",
|
|
89
89
|
"@types/node": "24.9.1",
|
|
90
90
|
"@types/webpack": "5.28.5",
|
|
91
|
-
"@utils/ts-config": "7.0.0
|
|
92
|
-
"@utils/ts-config-types": "7.0.0
|
|
93
|
-
"@utils/tsdown-config": "7.0.0
|
|
91
|
+
"@utils/ts-config": "7.0.0",
|
|
92
|
+
"@utils/ts-config-types": "7.0.0",
|
|
93
|
+
"@utils/tsdown-config": "7.0.0",
|
|
94
94
|
"rimraf": "6.0.1",
|
|
95
95
|
"tsdown": "0.15.9",
|
|
96
96
|
"typescript": "5.9.3",
|
|
97
97
|
"vitest": "4.0.3"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
|
-
"@intlayer/config": "7.0.0
|
|
101
|
-
"@intlayer/types": "7.0.0
|
|
102
|
-
"@intlayer/webpack": "7.0.0
|
|
100
|
+
"@intlayer/config": "7.0.0",
|
|
101
|
+
"@intlayer/types": "7.0.0",
|
|
102
|
+
"@intlayer/webpack": "7.0.0",
|
|
103
103
|
"webpack": ">=5.0.0"
|
|
104
104
|
},
|
|
105
105
|
"engines": {
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_parse$1 = require('./lib/parse.cjs');
|
|
3
|
-
const require_enoent$1 = require('./lib/enoent.cjs');
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
|
|
6
|
-
var require_cross_spawn = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.js": ((exports, module) => {
|
|
7
|
-
const cp = require("child_process");
|
|
8
|
-
const parse = require_parse$1.require_parse();
|
|
9
|
-
const enoent = require_enoent$1.require_enoent();
|
|
10
|
-
function spawn(command, args, options) {
|
|
11
|
-
const parsed = parse(command, args, options);
|
|
12
|
-
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
13
|
-
enoent.hookChildProcess(spawned, parsed);
|
|
14
|
-
return spawned;
|
|
15
|
-
}
|
|
16
|
-
function spawnSync(command, args, options) {
|
|
17
|
-
const parsed = parse(command, args, options);
|
|
18
|
-
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
19
|
-
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
20
|
-
return result;
|
|
21
|
-
}
|
|
22
|
-
module.exports = spawn;
|
|
23
|
-
module.exports.spawn = spawn;
|
|
24
|
-
module.exports.sync = spawnSync;
|
|
25
|
-
module.exports._parse = parse;
|
|
26
|
-
module.exports._enoent = enoent;
|
|
27
|
-
}) });
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
Object.defineProperty(exports, 'default', {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return require_cross_spawn();
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"],"sourcesContent":["'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;CAEA,MAAM,KAAK,QAAQ,gBAAgB;CACnC,MAAM;CACN,MAAM;CAEN,SAAS,MAAM,SAAS,MAAM,SAAS;EAEnC,MAAM,SAAS,MAAM,SAAS,MAAM,QAAQ;EAG5C,MAAM,UAAU,GAAG,MAAM,OAAO,SAAS,OAAO,MAAM,OAAO,QAAQ;AAIrE,SAAO,iBAAiB,SAAS,OAAO;AAExC,SAAO;;CAGX,SAAS,UAAU,SAAS,MAAM,SAAS;EAEvC,MAAM,SAAS,MAAM,SAAS,MAAM,QAAQ;EAG5C,MAAM,SAAS,GAAG,UAAU,OAAO,SAAS,OAAO,MAAM,OAAO,QAAQ;AAGxE,SAAO,QAAQ,OAAO,SAAS,OAAO,iBAAiB,OAAO,QAAQ,OAAO;AAE7E,SAAO;;AAGX,QAAO,UAAU;AACjB,QAAO,QAAQ,QAAQ;AACvB,QAAO,QAAQ,OAAO;AAEtB,QAAO,QAAQ,SAAS;AACxB,QAAO,QAAQ,UAAU"}
|
package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.cjs
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
4
|
-
var require_enoent = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js": ((exports, module) => {
|
|
5
|
-
const isWin = process.platform === "win32";
|
|
6
|
-
function notFoundError(original, syscall) {
|
|
7
|
-
return Object.assign(/* @__PURE__ */ new Error(`${syscall} ${original.command} ENOENT`), {
|
|
8
|
-
code: "ENOENT",
|
|
9
|
-
errno: "ENOENT",
|
|
10
|
-
syscall: `${syscall} ${original.command}`,
|
|
11
|
-
path: original.command,
|
|
12
|
-
spawnargs: original.args
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
function hookChildProcess(cp, parsed) {
|
|
16
|
-
if (!isWin) return;
|
|
17
|
-
const originalEmit = cp.emit;
|
|
18
|
-
cp.emit = function(name, arg1) {
|
|
19
|
-
if (name === "exit") {
|
|
20
|
-
const err = verifyENOENT(arg1, parsed);
|
|
21
|
-
if (err) return originalEmit.call(cp, "error", err);
|
|
22
|
-
}
|
|
23
|
-
return originalEmit.apply(cp, arguments);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function verifyENOENT(status, parsed) {
|
|
27
|
-
if (isWin && status === 1 && !parsed.file) return notFoundError(parsed.original, "spawn");
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
function verifyENOENTSync(status, parsed) {
|
|
31
|
-
if (isWin && status === 1 && !parsed.file) return notFoundError(parsed.original, "spawnSync");
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
module.exports = {
|
|
35
|
-
hookChildProcess,
|
|
36
|
-
verifyENOENT,
|
|
37
|
-
verifyENOENTSync,
|
|
38
|
-
notFoundError
|
|
39
|
-
};
|
|
40
|
-
}) });
|
|
41
|
-
|
|
42
|
-
//#endregion
|
|
43
|
-
Object.defineProperty(exports, 'default', {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return require_enoent();
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
//# sourceMappingURL=enoent.cjs.map
|
package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enoent.cjs","names":[],"sources":["../../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"],"sourcesContent":["'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed);\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;CAEA,MAAM,QAAQ,QAAQ,aAAa;CAEnC,SAAS,cAAc,UAAU,SAAS;AACtC,SAAO,OAAO,uBAAO,IAAI,MAAM,GAAG,QAAQ,GAAG,SAAS,QAAQ,SAAS,EAAE;GACrE,MAAM;GACN,OAAO;GACP,SAAS,GAAG,QAAQ,GAAG,SAAS;GAChC,MAAM,SAAS;GACf,WAAW,SAAS;GACvB,CAAC;;CAGN,SAAS,iBAAiB,IAAI,QAAQ;AAClC,MAAI,CAAC,MACD;EAGJ,MAAM,eAAe,GAAG;AAExB,KAAG,OAAO,SAAU,MAAM,MAAM;AAI5B,OAAI,SAAS,QAAQ;IACjB,MAAM,MAAM,aAAa,MAAM,OAAO;AAEtC,QAAI,IACA,QAAO,aAAa,KAAK,IAAI,SAAS,IAAI;;AAIlD,UAAO,aAAa,MAAM,IAAI,UAAU;;;CAIhD,SAAS,aAAa,QAAQ,QAAQ;AAClC,MAAI,SAAS,WAAW,KAAK,CAAC,OAAO,KACjC,QAAO,cAAc,OAAO,UAAU,QAAQ;AAGlD,SAAO;;CAGX,SAAS,iBAAiB,QAAQ,QAAQ;AACtC,MAAI,SAAS,WAAW,KAAK,CAAC,OAAO,KACjC,QAAO,cAAc,OAAO,UAAU,YAAY;AAGtD,SAAO;;AAGX,QAAO,UAAU;EACb;EACA;EACA;EACA;EACH"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_resolveCommand$1 = require('./util/resolveCommand.cjs');
|
|
3
|
-
const require_escape$1 = require('./util/escape.cjs');
|
|
4
|
-
const require_readShebang$1 = require('./util/readShebang.cjs');
|
|
5
|
-
|
|
6
|
-
//#region ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
7
|
-
var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js": ((exports, module) => {
|
|
8
|
-
const path = require("path");
|
|
9
|
-
const resolveCommand = require_resolveCommand$1.require_resolveCommand();
|
|
10
|
-
const escape = require_escape$1.require_escape();
|
|
11
|
-
const readShebang = require_readShebang$1.require_readShebang();
|
|
12
|
-
const isWin = process.platform === "win32";
|
|
13
|
-
const isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
14
|
-
const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
15
|
-
function detectShebang(parsed) {
|
|
16
|
-
parsed.file = resolveCommand(parsed);
|
|
17
|
-
const shebang = parsed.file && readShebang(parsed.file);
|
|
18
|
-
if (shebang) {
|
|
19
|
-
parsed.args.unshift(parsed.file);
|
|
20
|
-
parsed.command = shebang;
|
|
21
|
-
return resolveCommand(parsed);
|
|
22
|
-
}
|
|
23
|
-
return parsed.file;
|
|
24
|
-
}
|
|
25
|
-
function parseNonShell(parsed) {
|
|
26
|
-
if (!isWin) return parsed;
|
|
27
|
-
const commandFile = detectShebang(parsed);
|
|
28
|
-
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
29
|
-
if (parsed.options.forceShell || needsShell) {
|
|
30
|
-
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
31
|
-
parsed.command = path.normalize(parsed.command);
|
|
32
|
-
parsed.command = escape.command(parsed.command);
|
|
33
|
-
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
34
|
-
parsed.args = [
|
|
35
|
-
"/d",
|
|
36
|
-
"/s",
|
|
37
|
-
"/c",
|
|
38
|
-
`"${[parsed.command].concat(parsed.args).join(" ")}"`
|
|
39
|
-
];
|
|
40
|
-
parsed.command = process.env.comspec || "cmd.exe";
|
|
41
|
-
parsed.options.windowsVerbatimArguments = true;
|
|
42
|
-
}
|
|
43
|
-
return parsed;
|
|
44
|
-
}
|
|
45
|
-
function parse(command, args, options) {
|
|
46
|
-
if (args && !Array.isArray(args)) {
|
|
47
|
-
options = args;
|
|
48
|
-
args = null;
|
|
49
|
-
}
|
|
50
|
-
args = args ? args.slice(0) : [];
|
|
51
|
-
options = Object.assign({}, options);
|
|
52
|
-
const parsed = {
|
|
53
|
-
command,
|
|
54
|
-
args,
|
|
55
|
-
options,
|
|
56
|
-
file: void 0,
|
|
57
|
-
original: {
|
|
58
|
-
command,
|
|
59
|
-
args
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
return options.shell ? parsed : parseNonShell(parsed);
|
|
63
|
-
}
|
|
64
|
-
module.exports = parse;
|
|
65
|
-
}) });
|
|
66
|
-
|
|
67
|
-
//#endregion
|
|
68
|
-
Object.defineProperty(exports, 'default', {
|
|
69
|
-
enumerable: true,
|
|
70
|
-
get: function () {
|
|
71
|
-
return require_parse();
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
//# sourceMappingURL=parse.cjs.map
|
package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse.cjs","names":[],"sources":["../../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"],"sourcesContent":["'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;CAEA,MAAM,OAAO,QAAQ,OAAO;CAC5B,MAAM;CACN,MAAM;CACN,MAAM;CAEN,MAAM,QAAQ,QAAQ,aAAa;CACnC,MAAM,qBAAqB;CAC3B,MAAM,kBAAkB;CAExB,SAAS,cAAc,QAAQ;AAC3B,SAAO,OAAO,eAAe,OAAO;EAEpC,MAAM,UAAU,OAAO,QAAQ,YAAY,OAAO,KAAK;AAEvD,MAAI,SAAS;AACT,UAAO,KAAK,QAAQ,OAAO,KAAK;AAChC,UAAO,UAAU;AAEjB,UAAO,eAAe,OAAO;;AAGjC,SAAO,OAAO;;CAGlB,SAAS,cAAc,QAAQ;AAC3B,MAAI,CAAC,MACD,QAAO;EAIX,MAAM,cAAc,cAAc,OAAO;EAGzC,MAAM,aAAa,CAAC,mBAAmB,KAAK,YAAY;AAIxD,MAAI,OAAO,QAAQ,cAAc,YAAY;GAKzC,MAAM,6BAA6B,gBAAgB,KAAK,YAAY;AAIpE,UAAO,UAAU,KAAK,UAAU,OAAO,QAAQ;AAG/C,UAAO,UAAU,OAAO,QAAQ,OAAO,QAAQ;AAC/C,UAAO,OAAO,OAAO,KAAK,KAAK,QAAQ,OAAO,SAAS,KAAK,2BAA2B,CAAC;AAIxF,UAAO,OAAO;IAAC;IAAM;IAAM;IAAM,IAFZ,CAAC,OAAO,QAAQ,CAAC,OAAO,OAAO,KAAK,CAAC,KAAK,IAAI,CAEjB;IAAG;AACrD,UAAO,UAAU,QAAQ,IAAI,WAAW;AACxC,UAAO,QAAQ,2BAA2B;;AAG9C,SAAO;;CAGX,SAAS,MAAM,SAAS,MAAM,SAAS;AAEnC,MAAI,QAAQ,CAAC,MAAM,QAAQ,KAAK,EAAE;AAC9B,aAAU;AACV,UAAO;;AAGX,SAAO,OAAO,KAAK,MAAM,EAAE,GAAG,EAAE;AAChC,YAAU,OAAO,OAAO,EAAE,EAAE,QAAQ;EAGpC,MAAM,SAAS;GACX;GACA;GACA;GACA,MAAM;GACN,UAAU;IACN;IACA;IACH;GACJ;AAGD,SAAO,QAAQ,QAAQ,SAAS,cAAc,OAAO;;AAGzD,QAAO,UAAU"}
|
package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.cjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
4
|
-
var require_escape = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js": ((exports, module) => {
|
|
5
|
-
const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
6
|
-
function escapeCommand(arg) {
|
|
7
|
-
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
8
|
-
return arg;
|
|
9
|
-
}
|
|
10
|
-
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
11
|
-
arg = `${arg}`;
|
|
12
|
-
arg = arg.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
|
|
13
|
-
arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
|
|
14
|
-
arg = `"${arg}"`;
|
|
15
|
-
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
16
|
-
if (doubleEscapeMetaChars) arg = arg.replace(metaCharsRegExp, "^$1");
|
|
17
|
-
return arg;
|
|
18
|
-
}
|
|
19
|
-
module.exports.command = escapeCommand;
|
|
20
|
-
module.exports.argument = escapeArgument;
|
|
21
|
-
}) });
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
Object.defineProperty(exports, 'default', {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return require_escape();
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=escape.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"escape.cjs","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"],"sourcesContent":["'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n // It's slightly altered to disable JS backtracking to avoid hanging on specially crafted input\n // Please see https://github.com/moxystudio/node-cross-spawn/pull/160 for more information\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(?=(\\\\+?)?)\\1\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(?=(\\\\+?)?)\\1$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n"],"x_google_ignoreList":[0],"mappings":";;;;CAGA,MAAM,kBAAkB;CAExB,SAAS,cAAc,KAAK;AAExB,QAAM,IAAI,QAAQ,iBAAiB,MAAM;AAEzC,SAAO;;CAGX,SAAS,eAAe,KAAK,uBAAuB;AAEhD,QAAM,GAAG;AAQT,QAAM,IAAI,QAAQ,mBAAmB,WAAU;AAK/C,QAAM,IAAI,QAAQ,kBAAkB,OAAO;AAK3C,QAAM,IAAI,IAAI;AAGd,QAAM,IAAI,QAAQ,iBAAiB,MAAM;AAGzC,MAAI,sBACA,OAAM,IAAI,QAAQ,iBAAiB,MAAM;AAG7C,SAAO;;AAGX,QAAO,QAAQ,UAAU;AACzB,QAAO,QAAQ,WAAW"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_index = require('../../../../../shebang-command@2.0.0/node_modules/shebang-command/index.cjs');
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
5
|
-
var require_readShebang = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js": ((exports, module) => {
|
|
6
|
-
const fs = require("fs");
|
|
7
|
-
const shebangCommand = require_index.require_shebang_command();
|
|
8
|
-
function readShebang(command) {
|
|
9
|
-
const size = 150;
|
|
10
|
-
const buffer = Buffer.alloc(size);
|
|
11
|
-
let fd;
|
|
12
|
-
try {
|
|
13
|
-
fd = fs.openSync(command, "r");
|
|
14
|
-
fs.readSync(fd, buffer, 0, size, 0);
|
|
15
|
-
fs.closeSync(fd);
|
|
16
|
-
} catch (e) {}
|
|
17
|
-
return shebangCommand(buffer.toString());
|
|
18
|
-
}
|
|
19
|
-
module.exports = readShebang;
|
|
20
|
-
}) });
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
Object.defineProperty(exports, 'default', {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () {
|
|
26
|
-
return require_readShebang();
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
//# sourceMappingURL=readShebang.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readShebang.cjs","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"],"sourcesContent":["'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n"],"x_google_ignoreList":[0],"mappings":";;;;;CAEA,MAAM,KAAK,QAAQ,KAAK;CACxB,MAAM;CAEN,SAAS,YAAY,SAAS;EAE1B,MAAM,OAAO;EACb,MAAM,SAAS,OAAO,MAAM,KAAK;EAEjC,IAAI;AAEJ,MAAI;AACA,QAAK,GAAG,SAAS,SAAS,IAAI;AAC9B,MAAG,SAAS,IAAI,QAAQ,GAAG,MAAM,EAAE;AACnC,MAAG,UAAU,GAAG;WACX,GAAG;AAGZ,SAAO,eAAe,OAAO,UAAU,CAAC;;AAG5C,QAAO,UAAU"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_which$1 = require('../../../../../which@2.0.2/node_modules/which/which.cjs');
|
|
3
|
-
const require_index = require('../../../../../path-key@3.1.1/node_modules/path-key/index.cjs');
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
6
|
-
var require_resolveCommand = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js": ((exports, module) => {
|
|
7
|
-
const path = require("path");
|
|
8
|
-
const which = require_which$1.require_which();
|
|
9
|
-
const getPathKey = require_index.require_path_key();
|
|
10
|
-
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
11
|
-
const env = parsed.options.env || process.env;
|
|
12
|
-
const cwd = process.cwd();
|
|
13
|
-
const hasCustomCwd = parsed.options.cwd != null;
|
|
14
|
-
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
15
|
-
if (shouldSwitchCwd) try {
|
|
16
|
-
process.chdir(parsed.options.cwd);
|
|
17
|
-
} catch (err) {}
|
|
18
|
-
let resolved;
|
|
19
|
-
try {
|
|
20
|
-
resolved = which.sync(parsed.command, {
|
|
21
|
-
path: env[getPathKey({ env })],
|
|
22
|
-
pathExt: withoutPathExt ? path.delimiter : void 0
|
|
23
|
-
});
|
|
24
|
-
} catch (e) {} finally {
|
|
25
|
-
if (shouldSwitchCwd) process.chdir(cwd);
|
|
26
|
-
}
|
|
27
|
-
if (resolved) resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
28
|
-
return resolved;
|
|
29
|
-
}
|
|
30
|
-
function resolveCommand(parsed) {
|
|
31
|
-
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
|
32
|
-
}
|
|
33
|
-
module.exports = resolveCommand;
|
|
34
|
-
}) });
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
Object.defineProperty(exports, 'default', {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () {
|
|
40
|
-
return require_resolveCommand();
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=resolveCommand.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolveCommand.cjs","names":[],"sources":["../../../../../../../../../../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"],"sourcesContent":["'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;CAEA,MAAM,OAAO,QAAQ,OAAO;CAC5B,MAAM;CACN,MAAM;CAEN,SAAS,sBAAsB,QAAQ,gBAAgB;EACnD,MAAM,MAAM,OAAO,QAAQ,OAAO,QAAQ;EAC1C,MAAM,MAAM,QAAQ,KAAK;EACzB,MAAM,eAAe,OAAO,QAAQ,OAAO;EAE3C,MAAM,kBAAkB,gBAAgB,QAAQ,UAAU,UAAa,CAAC,QAAQ,MAAM;AAItF,MAAI,gBACA,KAAI;AACA,WAAQ,MAAM,OAAO,QAAQ,IAAI;WAC5B,KAAK;EAKlB,IAAI;AAEJ,MAAI;AACA,cAAW,MAAM,KAAK,OAAO,SAAS;IAClC,MAAM,IAAI,WAAW,EAAE,KAAK,CAAC;IAC7B,SAAS,iBAAiB,KAAK,YAAY;IAC9C,CAAC;WACG,GAAG,WAEF;AACN,OAAI,gBACA,SAAQ,MAAM,IAAI;;AAM1B,MAAI,SACA,YAAW,KAAK,QAAQ,eAAe,OAAO,QAAQ,MAAM,IAAI,SAAS;AAG7E,SAAO;;CAGX,SAAS,eAAe,QAAQ;AAC5B,SAAO,sBAAsB,OAAO,IAAI,sBAAsB,QAAQ,KAAK;;AAG/E,QAAO,UAAU"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_windows$1 = require('./windows.cjs');
|
|
3
|
-
const require_mode$1 = require('./mode.cjs');
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.js
|
|
6
|
-
var require_isexe = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.js": ((exports, module) => {
|
|
7
|
-
require("fs");
|
|
8
|
-
var core;
|
|
9
|
-
if (process.platform === "win32" || global.TESTING_WINDOWS) core = require_windows$1.require_windows();
|
|
10
|
-
else core = require_mode$1.require_mode();
|
|
11
|
-
module.exports = isexe;
|
|
12
|
-
isexe.sync = sync;
|
|
13
|
-
function isexe(path, options, cb) {
|
|
14
|
-
if (typeof options === "function") {
|
|
15
|
-
cb = options;
|
|
16
|
-
options = {};
|
|
17
|
-
}
|
|
18
|
-
if (!cb) {
|
|
19
|
-
if (typeof Promise !== "function") throw new TypeError("callback not provided");
|
|
20
|
-
return new Promise(function(resolve, reject) {
|
|
21
|
-
isexe(path, options || {}, function(er, is) {
|
|
22
|
-
if (er) reject(er);
|
|
23
|
-
else resolve(is);
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
core(path, options || {}, function(er, is) {
|
|
28
|
-
if (er) {
|
|
29
|
-
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
30
|
-
er = null;
|
|
31
|
-
is = false;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
cb(er, is);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
function sync(path, options) {
|
|
38
|
-
try {
|
|
39
|
-
return core.sync(path, options || {});
|
|
40
|
-
} catch (er) {
|
|
41
|
-
if (options && options.ignoreErrors || er.code === "EACCES") return false;
|
|
42
|
-
else throw er;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}) });
|
|
46
|
-
|
|
47
|
-
//#endregion
|
|
48
|
-
Object.defineProperty(exports, 'default', {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return require_isexe();
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.js"],"sourcesContent":["var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;AAAS,SAAQ,KAAK;CACtB,IAAI;AACJ,KAAI,QAAQ,aAAa,WAAW,OAAO,gBACzC;KAEA;AAGF,QAAO,UAAU;AACjB,OAAM,OAAO;CAEb,SAAS,MAAO,MAAM,SAAS,IAAI;AACjC,MAAI,OAAO,YAAY,YAAY;AACjC,QAAK;AACL,aAAU,EAAE;;AAGd,MAAI,CAAC,IAAI;AACP,OAAI,OAAO,YAAY,WACrB,OAAM,IAAI,UAAU,wBAAwB;AAG9C,UAAO,IAAI,QAAQ,SAAU,SAAS,QAAQ;AAC5C,UAAM,MAAM,WAAW,EAAE,EAAE,SAAU,IAAI,IAAI;AAC3C,SAAI,GACF,QAAO,GAAG;SAEV,SAAQ,GAAG;MAEb;KACF;;AAGJ,OAAK,MAAM,WAAW,EAAE,EAAE,SAAU,IAAI,IAAI;AAE1C,OAAI,IACF;QAAI,GAAG,SAAS,YAAY,WAAW,QAAQ,cAAc;AAC3D,UAAK;AACL,UAAK;;;AAGT,MAAG,IAAI,GAAG;IACV;;CAGJ,SAAS,KAAM,MAAM,SAAS;AAE5B,MAAI;AACF,UAAO,KAAK,KAAK,MAAM,WAAW,EAAE,CAAC;WAC9B,IAAI;AACX,OAAI,WAAW,QAAQ,gBAAgB,GAAG,SAAS,SACjD,QAAO;OAEP,OAAM"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.js
|
|
4
|
-
var require_mode = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.js": ((exports, module) => {
|
|
5
|
-
module.exports = isexe;
|
|
6
|
-
isexe.sync = sync;
|
|
7
|
-
var fs = require("fs");
|
|
8
|
-
function isexe(path, options, cb) {
|
|
9
|
-
fs.stat(path, function(er, stat) {
|
|
10
|
-
cb(er, er ? false : checkStat(stat, options));
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
function sync(path, options) {
|
|
14
|
-
return checkStat(fs.statSync(path), options);
|
|
15
|
-
}
|
|
16
|
-
function checkStat(stat, options) {
|
|
17
|
-
return stat.isFile() && checkMode(stat, options);
|
|
18
|
-
}
|
|
19
|
-
function checkMode(stat, options) {
|
|
20
|
-
var mod = stat.mode;
|
|
21
|
-
var uid = stat.uid;
|
|
22
|
-
var gid = stat.gid;
|
|
23
|
-
var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
|
|
24
|
-
var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
|
|
25
|
-
var u = parseInt("100", 8);
|
|
26
|
-
var g = parseInt("010", 8);
|
|
27
|
-
var o = parseInt("001", 8);
|
|
28
|
-
var ug = u | g;
|
|
29
|
-
return mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
|
|
30
|
-
}
|
|
31
|
-
}) });
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
34
|
-
Object.defineProperty(exports, 'default', {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function () {
|
|
37
|
-
return require_mode();
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
//# sourceMappingURL=mode.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mode.cjs","names":[],"sources":["../../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.js"],"sourcesContent":["module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;AAAA,QAAO,UAAU;AACjB,OAAM,OAAO;CAEb,IAAI,KAAK,QAAQ,KAAK;CAEtB,SAAS,MAAO,MAAM,SAAS,IAAI;AACjC,KAAG,KAAK,MAAM,SAAU,IAAI,MAAM;AAChC,MAAG,IAAI,KAAK,QAAQ,UAAU,MAAM,QAAQ,CAAC;IAC7C;;CAGJ,SAAS,KAAM,MAAM,SAAS;AAC5B,SAAO,UAAU,GAAG,SAAS,KAAK,EAAE,QAAQ;;CAG9C,SAAS,UAAW,MAAM,SAAS;AACjC,SAAO,KAAK,QAAQ,IAAI,UAAU,MAAM,QAAQ;;CAGlD,SAAS,UAAW,MAAM,SAAS;EACjC,IAAI,MAAM,KAAK;EACf,IAAI,MAAM,KAAK;EACf,IAAI,MAAM,KAAK;EAEf,IAAI,QAAQ,QAAQ,QAAQ,SAC1B,QAAQ,MAAM,QAAQ,UAAU,QAAQ,QAAQ;EAClD,IAAI,QAAQ,QAAQ,QAAQ,SAC1B,QAAQ,MAAM,QAAQ,UAAU,QAAQ,QAAQ;EAElD,IAAI,IAAI,SAAS,OAAO,EAAE;EAC1B,IAAI,IAAI,SAAS,OAAO,EAAE;EAC1B,IAAI,IAAI,SAAS,OAAO,EAAE;EAC1B,IAAI,KAAK,IAAI;AAOb,SALW,MAAM,KACd,MAAM,KAAM,QAAQ,SACpB,MAAM,KAAM,QAAQ,SACpB,MAAM,MAAO,UAAU"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.js
|
|
4
|
-
var require_windows = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.js": ((exports, module) => {
|
|
5
|
-
module.exports = isexe;
|
|
6
|
-
isexe.sync = sync;
|
|
7
|
-
var fs = require("fs");
|
|
8
|
-
function checkPathExt(path, options) {
|
|
9
|
-
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
10
|
-
if (!pathext) return true;
|
|
11
|
-
pathext = pathext.split(";");
|
|
12
|
-
if (pathext.indexOf("") !== -1) return true;
|
|
13
|
-
for (var i = 0; i < pathext.length; i++) {
|
|
14
|
-
var p = pathext[i].toLowerCase();
|
|
15
|
-
if (p && path.substr(-p.length).toLowerCase() === p) return true;
|
|
16
|
-
}
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
function checkStat(stat, path, options) {
|
|
20
|
-
if (!stat.isSymbolicLink() && !stat.isFile()) return false;
|
|
21
|
-
return checkPathExt(path, options);
|
|
22
|
-
}
|
|
23
|
-
function isexe(path, options, cb) {
|
|
24
|
-
fs.stat(path, function(er, stat) {
|
|
25
|
-
cb(er, er ? false : checkStat(stat, path, options));
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
function sync(path, options) {
|
|
29
|
-
return checkStat(fs.statSync(path), path, options);
|
|
30
|
-
}
|
|
31
|
-
}) });
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
34
|
-
Object.defineProperty(exports, 'default', {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function () {
|
|
37
|
-
return require_windows();
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
//# sourceMappingURL=windows.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"windows.cjs","names":[],"sources":["../../../../../../../../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.js"],"sourcesContent":["module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;AAAA,QAAO,UAAU;AACjB,OAAM,OAAO;CAEb,IAAI,KAAK,QAAQ,KAAK;CAEtB,SAAS,aAAc,MAAM,SAAS;EACpC,IAAI,UAAU,QAAQ,YAAY,SAChC,QAAQ,UAAU,QAAQ,IAAI;AAEhC,MAAI,CAAC,QACH,QAAO;AAGT,YAAU,QAAQ,MAAM,IAAI;AAC5B,MAAI,QAAQ,QAAQ,GAAG,KAAK,GAC1B,QAAO;AAET,OAAK,IAAI,IAAI,GAAG,IAAI,QAAQ,QAAQ,KAAK;GACvC,IAAI,IAAI,QAAQ,GAAG,aAAa;AAChC,OAAI,KAAK,KAAK,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,KAAK,EAChD,QAAO;;AAGX,SAAO;;CAGT,SAAS,UAAW,MAAM,MAAM,SAAS;AACvC,MAAI,CAAC,KAAK,gBAAgB,IAAI,CAAC,KAAK,QAAQ,CAC1C,QAAO;AAET,SAAO,aAAa,MAAM,QAAQ;;CAGpC,SAAS,MAAO,MAAM,SAAS,IAAI;AACjC,KAAG,KAAK,MAAM,SAAU,IAAI,MAAM;AAChC,MAAG,IAAI,KAAK,QAAQ,UAAU,MAAM,MAAM,QAAQ,CAAC;IACnD;;CAGJ,SAAS,KAAM,MAAM,SAAS;AAC5B,SAAO,UAAU,GAAG,SAAS,KAAK,EAAE,MAAM,QAAQ"}
|