react-scripts-intlayer 6.1.6-canary.0 → 7.0.0-canary.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/cjs/_virtual/rolldown_runtime.cjs +35 -0
  2. package/dist/cjs/cli/react-scripts-intlayer.cjs +34 -59
  3. package/dist/cjs/cli/react-scripts-intlayer.cjs.map +1 -1
  4. package/dist/cjs/craco.config.cjs +13 -10
  5. package/dist/cjs/craco.config.cjs.map +1 -1
  6. package/dist/cjs/index.cjs +11 -24
  7. package/dist/cjs/index.cjs.map +1 -1
  8. package/dist/cjs/intlayerCracoPlugin.cjs +70 -94
  9. package/dist/cjs/intlayerCracoPlugin.cjs.map +1 -1
  10. package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.cjs +36 -0
  11. package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.cjs.map +1 -0
  12. package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.cjs +49 -0
  13. package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.cjs.map +1 -0
  14. package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.cjs +74 -0
  15. package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.cjs.map +1 -0
  16. package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.cjs +30 -0
  17. package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.cjs.map +1 -0
  18. package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.cjs +29 -0
  19. package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.cjs.map +1 -0
  20. package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.cjs +43 -0
  21. package/dist/cjs/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.cjs.map +1 -0
  22. package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.cjs +54 -0
  23. package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.cjs.map +1 -0
  24. package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.cjs +40 -0
  25. package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.cjs.map +1 -0
  26. package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.cjs +40 -0
  27. package/dist/cjs/node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.cjs.map +1 -0
  28. package/dist/cjs/node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.cjs +21 -0
  29. package/dist/cjs/node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.cjs.map +1 -0
  30. package/dist/cjs/node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.cjs +24 -0
  31. package/dist/cjs/node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.cjs.map +1 -0
  32. package/dist/cjs/node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.cjs +15 -0
  33. package/dist/cjs/node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.cjs.map +1 -0
  34. package/dist/cjs/node_modules/.bun/which@2.0.2/node_modules/which/which.cjs +83 -0
  35. package/dist/cjs/node_modules/.bun/which@2.0.2/node_modules/which/which.cjs.map +1 -0
  36. package/dist/esm/_virtual/rolldown_runtime.mjs +35 -0
  37. package/dist/esm/cli/react-scripts-intlayer.mjs +32 -35
  38. package/dist/esm/cli/react-scripts-intlayer.mjs.map +1 -1
  39. package/dist/esm/craco.config.mjs +13 -16
  40. package/dist/esm/craco.config.mjs.map +1 -1
  41. package/dist/esm/index.mjs +9 -2
  42. package/dist/esm/index.mjs.map +1 -1
  43. package/dist/esm/intlayerCracoPlugin.mjs +61 -70
  44. package/dist/esm/intlayerCracoPlugin.mjs.map +1 -1
  45. package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.mjs +33 -0
  46. package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.mjs.map +1 -0
  47. package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.mjs +46 -0
  48. package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.mjs.map +1 -0
  49. package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.mjs +71 -0
  50. package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.mjs.map +1 -0
  51. package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.mjs +27 -0
  52. package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.mjs.map +1 -0
  53. package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.mjs +26 -0
  54. package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.mjs.map +1 -0
  55. package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.mjs +40 -0
  56. package/dist/esm/node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.mjs.map +1 -0
  57. package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.mjs +51 -0
  58. package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.mjs.map +1 -0
  59. package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.mjs +37 -0
  60. package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.mjs.map +1 -0
  61. package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.mjs +37 -0
  62. package/dist/esm/node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.mjs.map +1 -0
  63. package/dist/esm/node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.mjs +18 -0
  64. package/dist/esm/node_modules/.bun/path-key@3.1.1/node_modules/path-key/index.mjs.map +1 -0
  65. package/dist/esm/node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.mjs +21 -0
  66. package/dist/esm/node_modules/.bun/shebang-command@2.0.0/node_modules/shebang-command/index.mjs.map +1 -0
  67. package/dist/esm/node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.mjs +12 -0
  68. package/dist/esm/node_modules/.bun/shebang-regex@3.0.0/node_modules/shebang-regex/index.mjs.map +1 -0
  69. package/dist/esm/node_modules/.bun/which@2.0.2/node_modules/which/which.mjs +80 -0
  70. package/dist/esm/node_modules/.bun/which@2.0.2/node_modules/which/which.mjs.map +1 -0
  71. package/dist/types/cli/react-scripts-intlayer.d.ts +1 -9
  72. package/dist/types/craco.config.d.ts +1 -2
  73. package/dist/types/index.d.ts +2 -3
  74. package/dist/types/intlayerCracoPlugin.d.ts +14 -5
  75. package/dist/types/intlayerCracoPlugin.d.ts.map +1 -1
  76. package/package.json +38 -44
  77. package/LICENSE +0 -202
  78. package/dist/esm/chunk-ZD7AOCMD.mjs +0 -9
  79. package/dist/esm/chunk-ZD7AOCMD.mjs.map +0 -1
  80. package/dist/types/cli/react-scripts-intlayer.d.ts.map +0 -1
  81. package/dist/types/craco.config.d.ts.map +0 -1
  82. package/dist/types/index.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/craco.config.ts"],"sourcesContent":["import type { CracoConfig } from '@craco/types';\nimport { intlayerCracoPlugin } from './intlayerCracoPlugin';\n\n// Usage Example\nconst cracoConfig = {\n plugins: [\n {\n plugin: intlayerCracoPlugin,\n },\n ],\n} satisfies CracoConfig;\n\n// Necessary Exporting as CJS for CRACO to work\nmodule.exports = cracoConfig;\n"],"mappings":";;;AACA,SAAS,2BAA2B;AADpC;AAAA;AAIA,UAAM,cAAc;AAAA,MAClB,SAAS;AAAA,QACP;AAAA,UACE,QAAQ;AAAA,QACV;AAAA,MACF;AAAA,IACF;AAGA,WAAO,UAAU;AAAA;AAAA;","names":[]}
1
+ {"version":3,"file":"craco.config.mjs","names":[],"sources":["../../src/craco.config.ts"],"sourcesContent":["import type { CracoConfig } from '@craco/types';\nimport { intlayerCracoPlugin } from './intlayerCracoPlugin';\n\n// Usage Example\nconst cracoConfig = {\n plugins: [\n {\n plugin: intlayerCracoPlugin,\n },\n ],\n} satisfies CracoConfig;\n\n// Necessary Exporting as CJS for CRACO to work\nmodule.exports = cracoConfig;\n"],"mappings":";;;;;2BAC4D;CAG5D,MAAM,cAAc,EAClB,SAAS,CACP,EACE,QAAQ,qBACT,CACF,EACF;AAGD,QAAO,UAAU"}
@@ -1,3 +1,10 @@
1
- export * from "./intlayerCracoPlugin.mjs";
2
- export * from "./craco.config.mjs";
1
+ import { __reExport, __toESM } from "./_virtual/rolldown_runtime.mjs";
2
+ import { init_intlayerCracoPlugin, intlayerCracoPlugin, overrideCracoConfig, overrideWebpackConfig } from "./intlayerCracoPlugin.mjs";
3
+ import { require_craco_config } from "./craco.config.mjs";
4
+
5
+ //#region src/index.ts
6
+ init_intlayerCracoPlugin();
7
+
8
+ //#endregion
9
+ export { intlayerCracoPlugin, overrideCracoConfig, overrideWebpackConfig };
3
10
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './intlayerCracoPlugin';\nexport * from './craco.config';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from './craco.config';\nexport * from './intlayerCracoPlugin';\n"],"mappings":""}
@@ -1,72 +1,63 @@
1
- import "./chunk-ZD7AOCMD.mjs";
1
+ import { __esm } from "./_virtual/rolldown_runtime.mjs";
2
2
  import { ESMxCJSRequire, getAlias, getConfiguration } from "@intlayer/config";
3
- import { IntlayerPlugin as IntlayerWebpackPlugin } from "@intlayer/webpack";
4
- const intlayerConfig = getConfiguration();
5
- const overrideWebpackConfig = ({
6
- webpackConfig
7
- }) => {
8
- webpackConfig.externals = {
9
- ...typeof webpackConfig.externals === "object" ? webpackConfig.externals : {},
10
- esbuild: "esbuild"
11
- // keep only esbuild external
12
- };
13
- delete webpackConfig.externals.module;
14
- delete webpackConfig.externals.fs;
15
- delete webpackConfig.externals.path;
16
- delete webpackConfig.externals.vm;
17
- webpackConfig.module.rules.push({
18
- test: /\.node$/,
19
- use: "node-loader"
20
- });
21
- return webpackConfig;
22
- };
23
- const overrideCracoConfig = ({
24
- cracoConfig
25
- }) => {
26
- return {
27
- ...cracoConfig,
28
- webpack: {
29
- ...cracoConfig.webpack,
30
- plugins: {
31
- ...cracoConfig.webpack?.plugins,
32
- // Ensure we actually add IntlayerWebpackPlugin
33
- add: [
34
- ...cracoConfig.webpack?.plugins?.add ?? [],
35
- new IntlayerWebpackPlugin()
36
- ]
37
- },
38
- configure: {
39
- ...cracoConfig.webpack?.configure ?? {},
40
- resolve: {
41
- ...cracoConfig.webpack?.configure?.resolve ?? {},
42
- // 3) Provide browser fallbacks so these modules won’t error out in the browser.
43
- fallback: {
44
- ...cracoConfig.webpack?.configure?.resolve?.fallback ?? {},
45
- process: ESMxCJSRequire.resolve("process/browser"),
46
- fs: false,
47
- module: false,
48
- path: false,
49
- vm: false
50
- }
51
- }
52
- },
53
- // 4) Alias @intlayer/dictionaries-entry so it no longer tries to use the ESM that depends on `fs`, etc.
54
- alias: {
55
- ...cracoConfig.webpack?.alias,
56
- ...getAlias({
57
- configuration: intlayerConfig
58
- })
59
- }
60
- }
61
- };
62
- };
63
- const intlayerCracoPlugin = {
64
- overrideCracoConfig,
65
- overrideWebpackConfig
66
- };
67
- export {
68
- intlayerCracoPlugin,
69
- overrideCracoConfig,
70
- overrideWebpackConfig
71
- };
3
+ import { IntlayerPlugin } from "@intlayer/webpack";
4
+
5
+ //#region src/intlayerCracoPlugin.ts
6
+ var intlayerConfig, overrideWebpackConfig, overrideCracoConfig, intlayerCracoPlugin;
7
+ var init_intlayerCracoPlugin = __esm({ "src/intlayerCracoPlugin.ts": (() => {
8
+ intlayerConfig = getConfiguration();
9
+ overrideWebpackConfig = ({ webpackConfig }) => {
10
+ webpackConfig.externals = {
11
+ ...typeof webpackConfig.externals === "object" ? webpackConfig.externals : {},
12
+ esbuild: "esbuild"
13
+ };
14
+ webpackConfig.externals.module = void 0;
15
+ webpackConfig.externals.fs = void 0;
16
+ webpackConfig.externals.path = void 0;
17
+ webpackConfig.externals.vm = void 0;
18
+ webpackConfig.module.rules.push({
19
+ test: /\.node$/,
20
+ use: "node-loader"
21
+ });
22
+ return webpackConfig;
23
+ };
24
+ overrideCracoConfig = ({ cracoConfig }) => {
25
+ return {
26
+ ...cracoConfig,
27
+ webpack: {
28
+ ...cracoConfig.webpack,
29
+ plugins: {
30
+ ...cracoConfig.webpack?.plugins,
31
+ add: [...cracoConfig.webpack?.plugins?.add ?? [], new IntlayerPlugin(intlayerConfig)]
32
+ },
33
+ configure: {
34
+ ...cracoConfig.webpack?.configure ?? {},
35
+ resolve: {
36
+ ...cracoConfig.webpack?.configure?.resolve ?? {},
37
+ fallback: {
38
+ ...cracoConfig.webpack?.configure?.resolve?.fallback ?? {},
39
+ process: ESMxCJSRequire.resolve("process/browser"),
40
+ fs: false,
41
+ module: false,
42
+ path: false,
43
+ vm: false
44
+ }
45
+ }
46
+ },
47
+ alias: {
48
+ ...cracoConfig.webpack?.alias,
49
+ ...getAlias({ configuration: intlayerConfig })
50
+ }
51
+ }
52
+ };
53
+ };
54
+ intlayerCracoPlugin = {
55
+ overrideCracoConfig,
56
+ overrideWebpackConfig
57
+ };
58
+ }) });
59
+
60
+ //#endregion
61
+ init_intlayerCracoPlugin();
62
+ export { init_intlayerCracoPlugin, intlayerCracoPlugin, overrideCracoConfig, overrideWebpackConfig };
72
63
  //# sourceMappingURL=intlayerCracoPlugin.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/intlayerCracoPlugin.ts"],"sourcesContent":["// craco-intlayer-plugin.ts\n\n// @ts-nocheck\n\nimport type {\n CracoConfig,\n CracoConfigOverride,\n CracoPlugin,\n WebpackConfigOverride,\n} from '@craco/types';\nimport { ESMxCJSRequire, getAlias, getConfiguration } from '@intlayer/config';\nimport { IntlayerPlugin as IntlayerWebpackPlugin } from '@intlayer/webpack';\nimport type { Configuration as WebpackConfig } from 'webpack';\n\n// Get Intlayer configuration\nconst intlayerConfig = getConfiguration();\n\n/**\n * Override the final CRA Webpack config.\n */\nexport const overrideWebpackConfig = ({\n webpackConfig,\n}: WebpackConfigOverride): WebpackConfig => {\n // 1) Remove `module`, `fs`, `path`, `vm` from externals. In CRA, you usually\n // want these to be bundled (or set to fallbacks).\n webpackConfig.externals = {\n ...(typeof webpackConfig.externals === 'object'\n ? webpackConfig.externals\n : {}),\n esbuild: 'esbuild', // keep only esbuild external\n };\n delete webpackConfig.externals.module;\n delete webpackConfig.externals.fs;\n delete webpackConfig.externals.path;\n delete webpackConfig.externals.vm;\n\n // 2) Properly push node-loader rule instead of overwriting.\n webpackConfig.module.rules.push({\n test: /\\.node$/,\n use: 'node-loader',\n });\n\n return webpackConfig;\n};\n\n/**\n * Override the CRACO config itself to set up aliases, fallbacks, and plugins.\n */\nexport const overrideCracoConfig = ({\n cracoConfig,\n}: CracoConfigOverride): CracoConfig => {\n return {\n ...cracoConfig,\n webpack: {\n ...cracoConfig.webpack,\n plugins: {\n ...cracoConfig.webpack?.plugins,\n // Ensure we actually add IntlayerWebpackPlugin\n add: [\n ...(cracoConfig.webpack?.plugins?.add ?? []),\n new IntlayerWebpackPlugin(),\n ],\n },\n configure: {\n ...(cracoConfig.webpack?.configure ?? {}),\n resolve: {\n ...(cracoConfig.webpack?.configure?.resolve ?? {}),\n // 3) Provide browser fallbacks so these modules won’t error out in the browser.\n fallback: {\n ...(cracoConfig.webpack?.configure?.resolve?.fallback ?? {}),\n process: ESMxCJSRequire.resolve('process/browser'),\n fs: false,\n module: false,\n path: false,\n vm: false,\n },\n },\n },\n // 4) Alias @intlayer/dictionaries-entry so it no longer tries to use the ESM that depends on `fs`, etc.\n alias: {\n ...cracoConfig.webpack?.alias,\n ...getAlias({\n configuration: intlayerConfig,\n }),\n },\n },\n };\n};\n\n/**\n * A CRACO plugin that adds the Intlayer configuration to the webpack configuration and sets the environment variables.\n *\n * Usage:\n *\n * ```ts\n * const cracoConfig: CracoConfig = {\n * plugins: [\n * {\n * plugin: intlayerCracoPlugin,\n * },\n * ],\n * };\n *\n * export default cracoConfig;\n * ```\n */\nexport const intlayerCracoPlugin: CracoPlugin = {\n overrideCracoConfig,\n overrideWebpackConfig,\n};\n"],"mappings":";AAUA,SAAS,gBAAgB,UAAU,wBAAwB;AAC3D,SAAS,kBAAkB,6BAA6B;AAIxD,MAAM,iBAAiB,iBAAiB;AAKjC,MAAM,wBAAwB,CAAC;AAAA,EACpC;AACF,MAA4C;AAG1C,gBAAc,YAAY;AAAA,IACxB,GAAI,OAAO,cAAc,cAAc,WACnC,cAAc,YACd,CAAC;AAAA,IACL,SAAS;AAAA;AAAA,EACX;AACA,SAAO,cAAc,UAAU;AAC/B,SAAO,cAAc,UAAU;AAC/B,SAAO,cAAc,UAAU;AAC/B,SAAO,cAAc,UAAU;AAG/B,gBAAc,OAAO,MAAM,KAAK;AAAA,IAC9B,MAAM;AAAA,IACN,KAAK;AAAA,EACP,CAAC;AAED,SAAO;AACT;AAKO,MAAM,sBAAsB,CAAC;AAAA,EAClC;AACF,MAAwC;AACtC,SAAO;AAAA,IACL,GAAG;AAAA,IACH,SAAS;AAAA,MACP,GAAG,YAAY;AAAA,MACf,SAAS;AAAA,QACP,GAAG,YAAY,SAAS;AAAA;AAAA,QAExB,KAAK;AAAA,UACH,GAAI,YAAY,SAAS,SAAS,OAAO,CAAC;AAAA,UAC1C,IAAI,sBAAsB;AAAA,QAC5B;AAAA,MACF;AAAA,MACA,WAAW;AAAA,QACT,GAAI,YAAY,SAAS,aAAa,CAAC;AAAA,QACvC,SAAS;AAAA,UACP,GAAI,YAAY,SAAS,WAAW,WAAW,CAAC;AAAA;AAAA,UAEhD,UAAU;AAAA,YACR,GAAI,YAAY,SAAS,WAAW,SAAS,YAAY,CAAC;AAAA,YAC1D,SAAS,eAAe,QAAQ,iBAAiB;AAAA,YACjD,IAAI;AAAA,YACJ,QAAQ;AAAA,YACR,MAAM;AAAA,YACN,IAAI;AAAA,UACN;AAAA,QACF;AAAA,MACF;AAAA;AAAA,MAEA,OAAO;AAAA,QACL,GAAG,YAAY,SAAS;AAAA,QACxB,GAAG,SAAS;AAAA,UACV,eAAe;AAAA,QACjB,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF;AAmBO,MAAM,sBAAmC;AAAA,EAC9C;AAAA,EACA;AACF;","names":[]}
1
+ {"version":3,"file":"intlayerCracoPlugin.mjs","names":["IntlayerWebpackPlugin","intlayerCracoPlugin: CracoPlugin"],"sources":["../../src/intlayerCracoPlugin.ts"],"sourcesContent":["// craco-intlayer-plugin.ts\n\n// @ts-nocheck\n\nimport type {\n CracoConfig,\n CracoConfigOverride,\n CracoPlugin,\n WebpackConfigOverride,\n} from '@craco/types';\nimport { ESMxCJSRequire, getAlias, getConfiguration } from '@intlayer/config';\nimport { IntlayerPlugin as IntlayerWebpackPlugin } from '@intlayer/webpack';\nimport type { Configuration as WebpackConfig } from 'webpack';\n\n// Get Intlayer configuration\nconst intlayerConfig = getConfiguration();\n\n/**\n * Override the final CRA Webpack config.\n */\nexport const overrideWebpackConfig = ({\n webpackConfig,\n}: WebpackConfigOverride): WebpackConfig => {\n // 1) Remove `module`, `fs`, `path`, `vm` from externals. In CRA, you usually\n // want these to be bundled (or set to fallbacks).\n webpackConfig.externals = {\n ...(typeof webpackConfig.externals === 'object'\n ? webpackConfig.externals\n : {}),\n esbuild: 'esbuild', // keep only esbuild external\n };\n webpackConfig.externals.module = undefined;\n webpackConfig.externals.fs = undefined;\n webpackConfig.externals.path = undefined;\n webpackConfig.externals.vm = undefined;\n\n // 2) Properly push node-loader rule instead of overwriting.\n webpackConfig.module.rules.push({\n test: /\\.node$/,\n use: 'node-loader',\n });\n\n return webpackConfig;\n};\n\n/**\n * Override the CRACO config itself to set up aliases, fallbacks, and plugins.\n */\nexport const overrideCracoConfig = ({\n cracoConfig,\n}: CracoConfigOverride): CracoConfig => {\n return {\n ...cracoConfig,\n webpack: {\n ...cracoConfig.webpack,\n plugins: {\n ...cracoConfig.webpack?.plugins,\n // Ensure we actually add IntlayerWebpackPlugin\n add: [\n ...(cracoConfig.webpack?.plugins?.add ?? []),\n new IntlayerWebpackPlugin(intlayerConfig),\n ],\n },\n configure: {\n ...(cracoConfig.webpack?.configure ?? {}),\n resolve: {\n ...(cracoConfig.webpack?.configure?.resolve ?? {}),\n // 3) Provide browser fallbacks so these modules won’t error out in the browser.\n fallback: {\n ...(cracoConfig.webpack?.configure?.resolve?.fallback ?? {}),\n process: ESMxCJSRequire.resolve('process/browser'),\n fs: false,\n module: false,\n path: false,\n vm: false,\n },\n },\n },\n // 4) Alias @intlayer/dictionaries-entry so it no longer tries to use the ESM that depends on `fs`, etc.\n alias: {\n ...cracoConfig.webpack?.alias,\n ...getAlias({\n configuration: intlayerConfig,\n }),\n },\n },\n };\n};\n\n/**\n * A CRACO plugin that adds the Intlayer configuration to the webpack configuration and sets the environment variables.\n *\n * Usage:\n *\n * ```ts\n * const cracoConfig: CracoConfig = {\n * plugins: [\n * {\n * plugin: intlayerCracoPlugin,\n * },\n * ],\n * };\n *\n * export default cracoConfig;\n * ```\n */\nexport const intlayerCracoPlugin: CracoPlugin = {\n overrideCracoConfig,\n overrideWebpackConfig,\n};\n"],"mappings":";;;;;;;CAeM,iBAAiB,kBAAkB;CAK5B,yBAAyB,EACpC,oBAC0C;AAG1C,gBAAc,YAAY;GACxB,GAAI,OAAO,cAAc,cAAc,WACnC,cAAc,YACd,EAAE;GACN,SAAS;GACV;AACD,gBAAc,UAAU,SAAS;AACjC,gBAAc,UAAU,KAAK;AAC7B,gBAAc,UAAU,OAAO;AAC/B,gBAAc,UAAU,KAAK;AAG7B,gBAAc,OAAO,MAAM,KAAK;GAC9B,MAAM;GACN,KAAK;GACN,CAAC;AAEF,SAAO;;CAMI,uBAAuB,EAClC,kBACsC;AACtC,SAAO;GACL,GAAG;GACH,SAAS;IACP,GAAG,YAAY;IACf,SAAS;KACP,GAAG,YAAY,SAAS;KAExB,KAAK,CACH,GAAI,YAAY,SAAS,SAAS,OAAO,EAAE,EAC3C,IAAIA,eAAsB,eAAe,CAC1C;KACF;IACD,WAAW;KACT,GAAI,YAAY,SAAS,aAAa,EAAE;KACxC,SAAS;MACP,GAAI,YAAY,SAAS,WAAW,WAAW,EAAE;MAEjD,UAAU;OACR,GAAI,YAAY,SAAS,WAAW,SAAS,YAAY,EAAE;OAC3D,SAAS,eAAe,QAAQ,kBAAkB;OAClD,IAAI;OACJ,QAAQ;OACR,MAAM;OACN,IAAI;OACL;MACF;KACF;IAED,OAAO;KACL,GAAG,YAAY,SAAS;KACxB,GAAG,SAAS,EACV,eAAe,gBAChB,CAAC;KACH;IACF;GACF;;CAoBUC,sBAAmC;EAC9C;EACA;EACD"}
@@ -0,0 +1,33 @@
1
+ import { __commonJS, __require } from "../../../../../_virtual/rolldown_runtime.mjs";
2
+ import { require_parse } from "./lib/parse.mjs";
3
+ import { require_enoent } from "./lib/enoent.mjs";
4
+
5
+ //#region ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
6
+ var require_cross_spawn = /* @__PURE__ */ __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();
9
+ const enoent = 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
+ export default require_cross_spawn();
31
+
32
+ export { require_cross_spawn };
33
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","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,eAAa,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"}
@@ -0,0 +1,46 @@
1
+ import { __commonJS } from "../../../../../../_virtual/rolldown_runtime.mjs";
2
+
3
+ //#region ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
4
+ var require_enoent = /* @__PURE__ */ __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
+ export default require_enoent();
44
+
45
+ export { require_enoent };
46
+ //# sourceMappingURL=enoent.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enoent.mjs","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"}
@@ -0,0 +1,71 @@
1
+ import { __commonJS, __require } from "../../../../../../_virtual/rolldown_runtime.mjs";
2
+ import { require_resolveCommand } from "./util/resolveCommand.mjs";
3
+ import { require_escape } from "./util/escape.mjs";
4
+ import { require_readShebang } from "./util/readShebang.mjs";
5
+
6
+ //#region ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
7
+ var require_parse = /* @__PURE__ */ __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();
10
+ const escape = require_escape();
11
+ const readShebang = 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
+ export default require_parse();
69
+
70
+ export { require_parse };
71
+ //# sourceMappingURL=parse.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse.mjs","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,iBAAe,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"}
@@ -0,0 +1,27 @@
1
+ import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
+
3
+ //#region ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
4
+ var require_escape = /* @__PURE__ */ __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
+ export default require_escape();
25
+
26
+ export { require_escape };
27
+ //# sourceMappingURL=escape.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escape.mjs","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,26 @@
1
+ import { __commonJS, __require } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
+ import { require_shebang_command } from "../../../../../shebang-command@2.0.0/node_modules/shebang-command/index.mjs";
3
+
4
+ //#region ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
5
+ var require_readShebang = /* @__PURE__ */ __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_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
+ export default require_readShebang();
24
+
25
+ export { require_readShebang };
26
+ //# sourceMappingURL=readShebang.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readShebang.mjs","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,eAAa,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,40 @@
1
+ import { __commonJS, __require } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
+ import { require_which } from "../../../../../which@2.0.2/node_modules/which/which.mjs";
3
+ import { require_path_key } from "../../../../../path-key@3.1.1/node_modules/path-key/index.mjs";
4
+
5
+ //#region ../../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
6
+ var require_resolveCommand = /* @__PURE__ */ __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();
9
+ const getPathKey = 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
+ export default require_resolveCommand();
38
+
39
+ export { require_resolveCommand };
40
+ //# sourceMappingURL=resolveCommand.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveCommand.mjs","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,iBAAe,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,51 @@
1
+ import { __commonJS, __require } from "../../../../../_virtual/rolldown_runtime.mjs";
2
+ import { require_windows } from "./windows.mjs";
3
+ import { require_mode } from "./mode.mjs";
4
+
5
+ //#region ../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.js
6
+ var require_isexe = /* @__PURE__ */ __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();
10
+ else core = 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
+ export default require_isexe();
49
+
50
+ export { require_isexe };
51
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","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,WAAQ,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,37 @@
1
+ import { __commonJS, __require } from "../../../../../_virtual/rolldown_runtime.mjs";
2
+
3
+ //#region ../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.js
4
+ var require_mode = /* @__PURE__ */ __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
+ export default require_mode();
35
+
36
+ export { require_mode };
37
+ //# sourceMappingURL=mode.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mode.mjs","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,eAAa,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,37 @@
1
+ import { __commonJS, __require } from "../../../../../_virtual/rolldown_runtime.mjs";
2
+
3
+ //#region ../../node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.js
4
+ var require_windows = /* @__PURE__ */ __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
+ export default require_windows();
35
+
36
+ export { require_windows };
37
+ //# sourceMappingURL=windows.mjs.map