react-scripts-intlayer 6.1.6 → 7.0.0-canary.3
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/_virtual/rolldown_runtime.cjs +35 -0
- package/dist/cjs/cli/react-scripts-intlayer.cjs +34 -59
- package/dist/cjs/cli/react-scripts-intlayer.cjs.map +1 -1
- package/dist/cjs/craco.config.cjs +13 -10
- package/dist/cjs/craco.config.cjs.map +1 -1
- package/dist/cjs/index.cjs +11 -24
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/intlayerCracoPlugin.cjs +70 -94
- package/dist/cjs/intlayerCracoPlugin.cjs.map +1 -1
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.cjs +36 -0
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.cjs.map +1 -0
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.cjs +49 -0
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.cjs.map +1 -0
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.cjs +74 -0
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.cjs.map +1 -0
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.cjs +30 -0
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.cjs.map +1 -0
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.cjs +29 -0
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.cjs.map +1 -0
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.cjs +43 -0
- package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.cjs.map +1 -0
- package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.cjs +54 -0
- package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.cjs.map +1 -0
- package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.cjs +40 -0
- package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.cjs.map +1 -0
- package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.cjs +40 -0
- package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.cjs.map +1 -0
- package/dist/cjs/node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.cjs +21 -0
- package/dist/cjs/node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.cjs.map +1 -0
- package/dist/cjs/node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.cjs +24 -0
- package/dist/cjs/node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.cjs.map +1 -0
- package/dist/cjs/node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.cjs +15 -0
- package/dist/cjs/node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.cjs.map +1 -0
- package/dist/cjs/node_modules/.bun/which@2.0.2/node_modules/which/which.cjs +83 -0
- package/dist/cjs/node_modules/.bun/which@2.0.2/node_modules/which/which.cjs.map +1 -0
- package/dist/esm/_virtual/rolldown_runtime.mjs +35 -0
- package/dist/esm/cli/react-scripts-intlayer.mjs +32 -35
- package/dist/esm/cli/react-scripts-intlayer.mjs.map +1 -1
- package/dist/esm/craco.config.mjs +13 -16
- package/dist/esm/craco.config.mjs.map +1 -1
- package/dist/esm/index.mjs +9 -2
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/intlayerCracoPlugin.mjs +61 -70
- package/dist/esm/intlayerCracoPlugin.mjs.map +1 -1
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.mjs +33 -0
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.mjs.map +1 -0
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.mjs +46 -0
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.mjs.map +1 -0
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.mjs +71 -0
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.mjs.map +1 -0
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.mjs +27 -0
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.mjs.map +1 -0
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.mjs +26 -0
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.mjs.map +1 -0
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.mjs +40 -0
- package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.mjs.map +1 -0
- package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.mjs +51 -0
- package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.mjs.map +1 -0
- package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.mjs +37 -0
- package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.mjs.map +1 -0
- package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.mjs +37 -0
- package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.mjs.map +1 -0
- package/dist/esm/node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.mjs +18 -0
- package/dist/esm/node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.mjs.map +1 -0
- package/dist/esm/node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.mjs +21 -0
- package/dist/esm/node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.mjs.map +1 -0
- package/dist/esm/node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.mjs +12 -0
- package/dist/esm/node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.mjs.map +1 -0
- package/dist/esm/node_modules/.bun/which@2.0.2/node_modules/which/which.mjs +80 -0
- package/dist/esm/node_modules/.bun/which@2.0.2/node_modules/which/which.mjs.map +1 -0
- package/dist/types/cli/react-scripts-intlayer.d.ts +1 -9
- package/dist/types/craco.config.d.ts +1 -2
- package/dist/types/index.d.ts +2 -3
- package/dist/types/intlayerCracoPlugin.d.ts +14 -5
- package/dist/types/intlayerCracoPlugin.d.ts.map +1 -1
- package/package.json +38 -44
- package/LICENSE +0 -202
- package/dist/esm/chunk-ZD7AOCMD.mjs +0 -9
- package/dist/esm/chunk-ZD7AOCMD.mjs.map +0 -1
- package/dist/types/cli/react-scripts-intlayer.d.ts.map +0 -1
- package/dist/types/craco.config.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.cjs
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.js
|
|
4
|
+
var require_path_key = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.js": ((exports, module) => {
|
|
5
|
+
const pathKey = (options = {}) => {
|
|
6
|
+
const environment = options.env || process.env;
|
|
7
|
+
if ((options.platform || process.platform) !== "win32") return "PATH";
|
|
8
|
+
return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
9
|
+
};
|
|
10
|
+
module.exports = pathKey;
|
|
11
|
+
module.exports.default = pathKey;
|
|
12
|
+
}) });
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
Object.defineProperty(exports, 'default', {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () {
|
|
18
|
+
return require_path_key();
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../../../../../../../../node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.js"],"sourcesContent":["'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n"],"x_google_ignoreList":[0],"mappings":";;;;CAEA,MAAM,WAAW,UAAU,EAAE,KAAK;EACjC,MAAM,cAAc,QAAQ,OAAO,QAAQ;AAG3C,OAFiB,QAAQ,YAAY,QAAQ,cAE5B,QAChB,QAAO;AAGR,SAAO,OAAO,KAAK,YAAY,CAAC,SAAS,CAAC,MAAK,QAAO,IAAI,aAAa,KAAK,OAAO,IAAI;;AAGxF,QAAO,UAAU;AAEjB,QAAO,QAAQ,UAAU"}
|
package/dist/cjs/node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.cjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_index = require('../../../shebang-regex@3.0.0/node_modules/shebang-regex/index.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
|
5
|
+
var require_shebang_command = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.js": ((exports, module) => {
|
|
6
|
+
const shebangRegex = require_index.require_shebang_regex();
|
|
7
|
+
module.exports = (string = "") => {
|
|
8
|
+
const match = string.match(shebangRegex);
|
|
9
|
+
if (!match) return null;
|
|
10
|
+
const [path, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
11
|
+
const binary = path.split("/").pop();
|
|
12
|
+
if (binary === "env") return argument;
|
|
13
|
+
return argument ? `${binary} ${argument}` : binary;
|
|
14
|
+
};
|
|
15
|
+
}) });
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
Object.defineProperty(exports, 'default', {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return require_shebang_command();
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../../../../../../../../node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.js"],"sourcesContent":["'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;CACA,MAAM;AAEN,QAAO,WAAW,SAAS,OAAO;EACjC,MAAM,QAAQ,OAAO,MAAM,aAAa;AAExC,MAAI,CAAC,MACJ,QAAO;EAGR,MAAM,CAAC,MAAM,YAAY,MAAM,GAAG,QAAQ,QAAQ,GAAG,CAAC,MAAM,IAAI;EAChE,MAAM,SAAS,KAAK,MAAM,IAAI,CAAC,KAAK;AAEpC,MAAI,WAAW,MACd,QAAO;AAGR,SAAO,WAAW,GAAG,OAAO,GAAG,aAAa"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
|
4
|
+
var require_shebang_regex = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.js": ((exports, module) => {
|
|
5
|
+
module.exports = /^#!(.*)/;
|
|
6
|
+
}) });
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
Object.defineProperty(exports, 'default', {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return require_shebang_regex();
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../../../../../../../../node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"],"sourcesContent":["'use strict';\nmodule.exports = /^#!(.*)/;\n"],"x_google_ignoreList":[0],"mappings":";;;;AACA,QAAO,UAAU"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_index = require('../../../isexe@2.0.0/node_modules/isexe/index.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.bun/which@2.0.2/node_modules/which/which.js
|
|
5
|
+
var require_which = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.bun/which@2.0.2/node_modules/which/which.js": ((exports, module) => {
|
|
6
|
+
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
7
|
+
const path = require("path");
|
|
8
|
+
const COLON = isWindows ? ";" : ":";
|
|
9
|
+
const isexe = require_index.require_isexe();
|
|
10
|
+
const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
11
|
+
const getPathInfo = (cmd, opt) => {
|
|
12
|
+
const colon = opt.colon || COLON;
|
|
13
|
+
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH || "").split(colon)];
|
|
14
|
+
const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
15
|
+
const pathExt = isWindows ? pathExtExe.split(colon) : [""];
|
|
16
|
+
if (isWindows) {
|
|
17
|
+
if (cmd.indexOf(".") !== -1 && pathExt[0] !== "") pathExt.unshift("");
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
pathEnv,
|
|
21
|
+
pathExt,
|
|
22
|
+
pathExtExe
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
const which = (cmd, opt, cb) => {
|
|
26
|
+
if (typeof opt === "function") {
|
|
27
|
+
cb = opt;
|
|
28
|
+
opt = {};
|
|
29
|
+
}
|
|
30
|
+
if (!opt) opt = {};
|
|
31
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
32
|
+
const found = [];
|
|
33
|
+
const step = (i) => new Promise((resolve, reject) => {
|
|
34
|
+
if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
35
|
+
const ppRaw = pathEnv[i];
|
|
36
|
+
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
37
|
+
const pCmd = path.join(pathPart, cmd);
|
|
38
|
+
resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i, 0));
|
|
39
|
+
});
|
|
40
|
+
const subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
41
|
+
if (ii === pathExt.length) return resolve(step(i + 1));
|
|
42
|
+
const ext = pathExt[ii];
|
|
43
|
+
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
44
|
+
if (!er && is) if (opt.all) found.push(p + ext);
|
|
45
|
+
else return resolve(p + ext);
|
|
46
|
+
return resolve(subStep(p, i, ii + 1));
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
50
|
+
};
|
|
51
|
+
const whichSync = (cmd, opt) => {
|
|
52
|
+
opt = opt || {};
|
|
53
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
54
|
+
const found = [];
|
|
55
|
+
for (let i = 0; i < pathEnv.length; i++) {
|
|
56
|
+
const ppRaw = pathEnv[i];
|
|
57
|
+
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
58
|
+
const pCmd = path.join(pathPart, cmd);
|
|
59
|
+
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
60
|
+
for (let j = 0; j < pathExt.length; j++) {
|
|
61
|
+
const cur = p + pathExt[j];
|
|
62
|
+
try {
|
|
63
|
+
if (isexe.sync(cur, { pathExt: pathExtExe })) if (opt.all) found.push(cur);
|
|
64
|
+
else return cur;
|
|
65
|
+
} catch (ex) {}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
if (opt.all && found.length) return found;
|
|
69
|
+
if (opt.nothrow) return null;
|
|
70
|
+
throw getNotFoundError(cmd);
|
|
71
|
+
};
|
|
72
|
+
module.exports = which;
|
|
73
|
+
which.sync = whichSync;
|
|
74
|
+
}) });
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
Object.defineProperty(exports, 'default', {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function () {
|
|
80
|
+
return require_which();
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
//# sourceMappingURL=which.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"which.cjs","names":[],"sources":["../../../../../../../../../node_modules/.bun/which@2.0.2/node_modules/which/which.js"],"sourcesContent":["const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __esm = (fn, res) => function() {
|
|
9
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
|
+
};
|
|
11
|
+
var __commonJS = (cb, mod) => function() {
|
|
12
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
16
|
+
key = keys[i];
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
18
|
+
get: ((k) => from[k]).bind(null, key),
|
|
19
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
+
value: mod,
|
|
27
|
+
enumerable: true
|
|
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
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { __commonJS, __esm, __reExport, __require, __toESM };
|
|
@@ -1,50 +1,47 @@
|
|
|
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";
|
|
2
4
|
import { ESMxCJSRequire, logger } from "@intlayer/config";
|
|
3
|
-
|
|
5
|
+
|
|
6
|
+
//#region src/cli/react-scripts-intlayer.ts
|
|
7
|
+
var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn());
|
|
4
8
|
const args = process.argv.slice(2);
|
|
5
|
-
const scriptIndex = args.findIndex(
|
|
6
|
-
(x) => x === "build" || x === "start" || x === "test"
|
|
7
|
-
);
|
|
9
|
+
const scriptIndex = args.findIndex((x) => x === "build" || x === "start" || x === "test");
|
|
8
10
|
const script = scriptIndex === -1 ? args[0] : args[scriptIndex];
|
|
9
11
|
switch (script) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
stdio: "inherit"
|
|
25
|
-
});
|
|
26
|
-
if (child.signal) {
|
|
27
|
-
if (child.signal === "SIGKILL") {
|
|
28
|
-
logger(`
|
|
12
|
+
case "build":
|
|
13
|
+
case "start":
|
|
14
|
+
case "test": {
|
|
15
|
+
const nodeArgs = scriptIndex > 0 ? args.slice(0, scriptIndex) : [];
|
|
16
|
+
const scriptPath = ESMxCJSRequire.resolve(`@craco/craco/dist/scripts/${script}`);
|
|
17
|
+
const scriptArgs = args.slice(scriptIndex + 1);
|
|
18
|
+
const processArgs = nodeArgs.concat(scriptPath).concat([
|
|
19
|
+
...scriptArgs,
|
|
20
|
+
"--config",
|
|
21
|
+
"./node_modules/react-scripts-intlayer/dist/cjs/craco.config.cjs"
|
|
22
|
+
]);
|
|
23
|
+
const child = import_cross_spawn.default.sync("node", processArgs, { stdio: "inherit" });
|
|
24
|
+
if (child.signal) {
|
|
25
|
+
if (child.signal === "SIGKILL") logger(`
|
|
29
26
|
The build failed because the process exited too early.
|
|
30
27
|
This probably means the system ran out of memory or someone called
|
|
31
28
|
\`kill -9\` on the process.
|
|
32
29
|
`);
|
|
33
|
-
|
|
34
|
-
logger(`
|
|
30
|
+
else if (child.signal === "SIGTERM") logger(`
|
|
35
31
|
The build failed because the process exited too early.
|
|
36
32
|
Someone might have called \`kill\` or \`killall\`, or the system could
|
|
37
33
|
be shutting down.
|
|
38
34
|
`);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
break;
|
|
35
|
+
process.exit(1);
|
|
36
|
+
}
|
|
37
|
+
process.exit(child.status ?? void 0);
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
default:
|
|
41
|
+
logger(`Unknown script "${script}".`);
|
|
42
|
+
logger("Perhaps you need to update craco?");
|
|
43
|
+
break;
|
|
49
44
|
}
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
50
47
|
//# sourceMappingURL=react-scripts-intlayer.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"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 { ESMxCJSRequire, logger } from '@intlayer/config';\nimport spawn from 'cross-spawn';\n\nconst args = process.argv.slice(2);\nconst scriptIndex = args.findIndex(\n (x) => x === 'build' || x === 'start' || x === '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 = spawn.sync('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":"
|
|
1
|
+
{"version":3,"file":"react-scripts-intlayer.mjs","names":["spawn"],"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 { ESMxCJSRequire, logger } from '@intlayer/config';\nimport spawn from 'cross-spawn';\n\nconst args = process.argv.slice(2);\nconst scriptIndex = args.findIndex(\n (x) => x === 'build' || x === 'start' || x === '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 = spawn.sync('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,MAAM,MAAM,WAAW,MAAM,WAAW,MAAM,OAChD;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;EAC9C,MAAM,cAAc,SACjB,OAAO,WAAW,CAClB,OAAO;GACN,GAAG;GACH;GACA;GACD,CAAC;EAEJ,MAAM,QAAQA,2BAAM,KAAK,QAAQ,aAAa,EAC5C,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"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var require_craco_config = __commonJS({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
]
|
|
13
|
-
};
|
|
14
|
-
module.exports = cracoConfig;
|
|
15
|
-
}
|
|
16
|
-
});
|
|
1
|
+
import { __commonJS } from "./_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { init_intlayerCracoPlugin, intlayerCracoPlugin } from "./intlayerCracoPlugin.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/craco.config.ts
|
|
5
|
+
var require_craco_config = /* @__PURE__ */ __commonJS({ "src/craco.config.ts": ((exports, module) => {
|
|
6
|
+
init_intlayerCracoPlugin();
|
|
7
|
+
const cracoConfig = { plugins: [{ plugin: intlayerCracoPlugin }] };
|
|
8
|
+
module.exports = cracoConfig;
|
|
9
|
+
}) });
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
17
12
|
export default require_craco_config();
|
|
13
|
+
|
|
14
|
+
export { require_craco_config };
|
|
18
15
|
//# sourceMappingURL=craco.config.mjs.map
|