@samchon/ts-patch 3.2.2-dev.20241204-2 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1377) hide show
  1. package/.editorconfig +371 -0
  2. package/.gitattributes +2 -0
  3. package/.github/FUNDING.yml +1 -0
  4. package/.github/workflows/build.yml +49 -0
  5. package/.github/workflows/publish.yml +47 -0
  6. package/.idea/codeStyles/Project.xml +28 -0
  7. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  8. package/.idea/compiler.xml +6 -0
  9. package/.idea/inspectionProfiles/Project_Default.xml +98 -0
  10. package/.idea/jsonSchemas.xml +28 -0
  11. package/.idea/misc.xml +9 -0
  12. package/.idea/modules.xml +8 -0
  13. package/.idea/ts-patch.iml +22 -0
  14. package/.idea/vcs.xml +12 -0
  15. package/.idea/webResources.xml +15 -0
  16. package/CHANGELOG.md +7 -0
  17. package/dist/CHANGELOG.md +275 -0
  18. package/dist/LICENSE.md +13 -0
  19. package/dist/README.md +348 -0
  20. package/dist/actions/check.js +53 -0
  21. package/dist/actions/check.js.map +1 -0
  22. package/dist/actions/patch.js +88 -0
  23. package/dist/actions/patch.js.map +1 -0
  24. package/dist/actions/unpatch.js +87 -0
  25. package/dist/actions/unpatch.js.map +1 -0
  26. package/dist/bin/ts-patch.js +43 -0
  27. package/dist/bin/ts-patch.js.map +1 -0
  28. package/dist/cli/cli.js +106 -0
  29. package/dist/cli/cli.js.map +1 -0
  30. package/dist/cli/commands.js +49 -0
  31. package/dist/cli/commands.js.map +1 -0
  32. package/dist/config.js +50 -0
  33. package/dist/config.js.map +1 -0
  34. package/dist/module/module-file.d.ts +10 -0
  35. package/dist/module/module-file.js +102 -0
  36. package/dist/module/module-file.js.map +1 -0
  37. package/dist/module/ts-module.d.ts +40 -0
  38. package/dist/module/ts-module.js +131 -0
  39. package/dist/module/ts-module.js.map +1 -0
  40. package/dist/node_modules/.bin/resolve +15 -0
  41. package/dist/node_modules/.bin/resolve.cmd +7 -0
  42. package/dist/node_modules/.bin/semver +15 -0
  43. package/dist/node_modules/.bin/semver.cmd +7 -0
  44. package/dist/package.json +106 -0
  45. package/dist/patch/get-patched-source.js +69 -0
  46. package/dist/patch/get-patched-source.js.map +1 -0
  47. package/dist/patch/transformers/fix-ts-early-return.js +61 -0
  48. package/dist/patch/transformers/fix-ts-early-return.js.map +1 -0
  49. package/dist/resources/module-patch.js +623 -0
  50. package/dist/system/cache.js +79 -0
  51. package/dist/system/cache.js.map +1 -0
  52. package/dist/utils/file-utils.js +98 -0
  53. package/dist/utils/file-utils.js.map +1 -0
  54. package/jest.config.ts +26 -0
  55. package/package.json +60 -11
  56. package/projects/core/plugin.ts +42 -0
  57. package/projects/core/resolver-hook.js +55 -0
  58. package/projects/core/shared/plugin-types.ts +159 -0
  59. package/projects/core/src/actions/check.ts +79 -0
  60. package/projects/core/src/actions/index.ts +5 -0
  61. package/projects/core/src/actions/install.ts +23 -0
  62. package/projects/core/src/actions/patch.ts +110 -0
  63. package/projects/core/src/actions/uninstall.ts +24 -0
  64. package/projects/core/src/actions/unpatch.ts +109 -0
  65. package/projects/core/src/bin/ts-patch.ts +7 -0
  66. package/projects/core/src/bin/tspc.ts +12 -0
  67. package/projects/core/src/cli/cli.ts +94 -0
  68. package/projects/core/src/cli/commands.ts +55 -0
  69. package/projects/core/src/cli/help-menu.ts +48 -0
  70. package/projects/core/src/cli/options.ts +83 -0
  71. package/projects/core/src/compiler/package.json +4 -0
  72. package/projects/core/src/compiler/tsc.js +19 -0
  73. package/projects/core/src/compiler/tsserver.js +19 -0
  74. package/projects/core/src/compiler/tsserverlibrary.js +19 -0
  75. package/projects/core/src/compiler/typescript.js +19 -0
  76. package/projects/core/src/config.ts +65 -0
  77. package/projects/core/src/index.ts +4 -0
  78. package/projects/core/src/module/get-live-module.ts +25 -0
  79. package/projects/core/src/module/index.ts +4 -0
  80. package/projects/core/src/module/module-file.ts +127 -0
  81. package/projects/core/src/module/module-source.ts +59 -0
  82. package/projects/core/src/module/source-section.ts +110 -0
  83. package/projects/core/src/module/ts-module.ts +187 -0
  84. package/projects/core/src/options.ts +55 -0
  85. package/projects/core/src/patch/get-patched-source.ts +85 -0
  86. package/projects/core/src/patch/patch-detail.ts +106 -0
  87. package/projects/core/src/patch/patch-module.ts +213 -0
  88. package/projects/core/src/patch/transformers/add-original-create-program.ts +129 -0
  89. package/projects/core/src/patch/transformers/fix-ts-early-return.ts +46 -0
  90. package/projects/core/src/patch/transformers/hook-tsc-exec.ts +52 -0
  91. package/projects/core/src/patch/transformers/index.ts +6 -0
  92. package/projects/core/src/patch/transformers/merge-statements.ts +61 -0
  93. package/projects/core/src/patch/transformers/patch-create-program.ts +68 -0
  94. package/projects/core/src/patch/transformers/patch-emitter.ts +75 -0
  95. package/projects/core/src/slice/module-slice.ts +59 -0
  96. package/projects/core/src/slice/ts54.ts +79 -0
  97. package/projects/core/src/slice/ts55.ts +80 -0
  98. package/projects/core/src/slice/ts552.ts +80 -0
  99. package/projects/core/src/system/cache.ts +48 -0
  100. package/projects/core/src/system/errors.ts +39 -0
  101. package/projects/core/src/system/index.ts +4 -0
  102. package/projects/core/src/system/logger.ts +53 -0
  103. package/projects/core/src/system/types.ts +11 -0
  104. package/projects/core/src/ts-package.ts +99 -0
  105. package/projects/core/src/utils/file-utils.ts +104 -0
  106. package/projects/core/src/utils/find-cache-dir.ts +122 -0
  107. package/projects/core/src/utils/general.ts +24 -0
  108. package/projects/core/src/utils/index.ts +3 -0
  109. package/projects/core/tsconfig.json +20 -0
  110. package/projects/patch/package.json +8 -0
  111. package/projects/patch/plugin.ts +128 -0
  112. package/projects/patch/src/plugin/esm-intercept.ts +141 -0
  113. package/projects/patch/src/plugin/plugin-creator.ts +254 -0
  114. package/projects/patch/src/plugin/plugin.ts +193 -0
  115. package/projects/patch/src/plugin/register-plugin.ts +141 -0
  116. package/projects/patch/src/shared.ts +59 -0
  117. package/projects/patch/src/ts/create-program.ts +156 -0
  118. package/projects/patch/src/ts/shim.ts +43 -0
  119. package/projects/patch/src/types/plugin-types.ts +51 -0
  120. package/projects/patch/src/types/typescript.ts +11 -0
  121. package/projects/patch/tsconfig.json +34 -0
  122. package/scripts/postbuild.js +66 -0
  123. package/test/.yarnrc +1 -0
  124. package/test/assets/projects/main/package.json +5 -0
  125. package/test/assets/projects/main/src/index.ts +0 -0
  126. package/test/assets/projects/main/tsconfig.json +16 -0
  127. package/test/assets/projects/package-config/plugin/package.json +8 -0
  128. package/test/assets/projects/package-config/plugin/plugin.js +9 -0
  129. package/test/assets/projects/package-config/plugin/transformers/transformer1.js +28 -0
  130. package/test/assets/projects/package-config/plugin/transformers/transformer2.js +22 -0
  131. package/test/assets/projects/package-config/run-transform.js +72 -0
  132. package/test/assets/projects/package-config/src/index.ts +6 -0
  133. package/test/assets/projects/package-config/tsconfig.json +13 -0
  134. package/test/assets/projects/path-mapping/base.ts +1 -0
  135. package/test/assets/projects/path-mapping/package.json +8 -0
  136. package/test/assets/projects/path-mapping/src/a/a.ts +1 -0
  137. package/test/assets/projects/path-mapping/src/b.ts +1 -0
  138. package/test/assets/projects/path-mapping/src/index.ts +29 -0
  139. package/test/assets/projects/path-mapping/tsconfig.json +18 -0
  140. package/test/assets/projects/path-mapping/tsconfig.plugin.json +15 -0
  141. package/test/assets/projects/transform/package.json +9 -0
  142. package/test/assets/projects/transform/run-transform.js +56 -0
  143. package/test/assets/projects/transform/src/index.ts +4 -0
  144. package/test/assets/projects/transform/transformers/cjs/js-plugin.cjs +19 -0
  145. package/test/assets/projects/transform/transformers/cjs/package.json +3 -0
  146. package/test/assets/projects/transform/transformers/cjs/plugin.cts +17 -0
  147. package/test/assets/projects/transform/transformers/cjs/tsconfig.json +7 -0
  148. package/test/assets/projects/transform/transformers/esm/js-plugin.mjs +17 -0
  149. package/test/assets/projects/transform/transformers/esm/package.json +3 -0
  150. package/test/assets/projects/transform/transformers/esm/plugin.mts +19 -0
  151. package/test/assets/projects/transform/transformers/esm/plugin.ts +19 -0
  152. package/test/assets/projects/transform/transformers/esm/tsconfig.json +7 -0
  153. package/test/assets/projects/transform/tsconfig.cjs.json +12 -0
  154. package/test/assets/projects/transform/tsconfig.cts.json +12 -0
  155. package/test/assets/projects/transform/tsconfig.json +9 -0
  156. package/test/assets/projects/transform/tsconfig.mjs.json +12 -0
  157. package/test/assets/projects/transform/tsconfig.mts.json +11 -0
  158. package/test/assets/projects/transform/tsconfig.ts.json +11 -0
  159. package/test/assets/projects/webpack/esm-plugin.mjs +5 -0
  160. package/test/assets/projects/webpack/esm-plugin.mts +5 -0
  161. package/test/assets/projects/webpack/hide-module.js +24 -0
  162. package/test/assets/projects/webpack/package.json +14 -0
  163. package/test/assets/projects/webpack/plugin.ts +7 -0
  164. package/test/assets/projects/webpack/src/index.ts +0 -0
  165. package/test/assets/projects/webpack/tsconfig.esm.json +8 -0
  166. package/test/assets/projects/webpack/tsconfig.esmts.json +8 -0
  167. package/test/assets/projects/webpack/tsconfig.json +14 -0
  168. package/test/assets/projects/webpack/webpack.config.js +24 -0
  169. package/test/node_modules/.bin/acorn +15 -0
  170. package/test/node_modules/.bin/acorn.cmd +7 -0
  171. package/test/node_modules/.bin/json5 +15 -0
  172. package/test/node_modules/.bin/json5.cmd +7 -0
  173. package/test/node_modules/.bin/node-which +15 -0
  174. package/test/node_modules/.bin/node-which.cmd +7 -0
  175. package/test/node_modules/.bin/resolve +15 -0
  176. package/test/node_modules/.bin/resolve.cmd +7 -0
  177. package/test/node_modules/.bin/semver +15 -0
  178. package/test/node_modules/.bin/semver.cmd +7 -0
  179. package/test/node_modules/.bin/ts-node +15 -0
  180. package/test/node_modules/.bin/ts-node-cwd +15 -0
  181. package/test/node_modules/.bin/ts-node-cwd.cmd +7 -0
  182. package/test/node_modules/.bin/ts-node-esm +15 -0
  183. package/test/node_modules/.bin/ts-node-esm.cmd +7 -0
  184. package/test/node_modules/.bin/ts-node-script +15 -0
  185. package/test/node_modules/.bin/ts-node-script.cmd +7 -0
  186. package/test/node_modules/.bin/ts-node-transpile-only +15 -0
  187. package/test/node_modules/.bin/ts-node-transpile-only.cmd +7 -0
  188. package/test/node_modules/.bin/ts-node.cmd +7 -0
  189. package/test/node_modules/.bin/ts-script +15 -0
  190. package/test/node_modules/.bin/ts-script.cmd +7 -0
  191. package/test/node_modules/.bin/tsc +15 -0
  192. package/test/node_modules/.bin/tsc.cmd +7 -0
  193. package/test/node_modules/.bin/tsserver +15 -0
  194. package/test/node_modules/.bin/tsserver.cmd +7 -0
  195. package/test/node_modules/.yarn-integrity +73 -0
  196. package/test/node_modules/@cspotcode/source-map-support/LICENSE.md +21 -0
  197. package/test/node_modules/@cspotcode/source-map-support/README.md +289 -0
  198. package/test/node_modules/@cspotcode/source-map-support/browser-source-map-support.js +114 -0
  199. package/test/node_modules/@cspotcode/source-map-support/package.json +50 -0
  200. package/test/node_modules/@cspotcode/source-map-support/register-hook-require.d.ts +7 -0
  201. package/test/node_modules/@cspotcode/source-map-support/register-hook-require.js +3 -0
  202. package/test/node_modules/@cspotcode/source-map-support/register.d.ts +7 -0
  203. package/test/node_modules/@cspotcode/source-map-support/register.js +1 -0
  204. package/test/node_modules/@cspotcode/source-map-support/source-map-support.d.ts +76 -0
  205. package/test/node_modules/@cspotcode/source-map-support/source-map-support.js +938 -0
  206. package/test/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
  207. package/test/node_modules/@jridgewell/resolve-uri/README.md +40 -0
  208. package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +232 -0
  209. package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
  210. package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +240 -0
  211. package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
  212. package/test/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
  213. package/test/node_modules/@jridgewell/resolve-uri/package.json +69 -0
  214. package/test/node_modules/@jridgewell/sourcemap-codec/LICENSE +19 -0
  215. package/test/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
  216. package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +423 -0
  217. package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +6 -0
  218. package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +464 -0
  219. package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +6 -0
  220. package/test/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
  221. package/test/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +345 -0
  222. package/test/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +111 -0
  223. package/test/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +65 -0
  224. package/test/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +55 -0
  225. package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +50 -0
  226. package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -0
  227. package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
  228. package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -0
  229. package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +9 -0
  230. package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -0
  231. package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
  232. package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -0
  233. package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +16 -0
  234. package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +1 -0
  235. package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
  236. package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +1 -0
  237. package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +7 -0
  238. package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -0
  239. package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
  240. package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -0
  241. package/test/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
  242. package/test/node_modules/@jridgewell/trace-mapping/README.md +193 -0
  243. package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +514 -0
  244. package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
  245. package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +528 -0
  246. package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
  247. package/test/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
  248. package/test/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
  249. package/test/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
  250. package/test/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
  251. package/test/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
  252. package/test/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
  253. package/test/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
  254. package/test/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +70 -0
  255. package/test/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +85 -0
  256. package/test/node_modules/@jridgewell/trace-mapping/package.json +70 -0
  257. package/test/node_modules/@tsconfig/node10/LICENSE +21 -0
  258. package/test/node_modules/@tsconfig/node10/README.md +38 -0
  259. package/test/node_modules/@tsconfig/node10/package.json +15 -0
  260. package/test/node_modules/@tsconfig/node10/tsconfig.json +14 -0
  261. package/test/node_modules/@tsconfig/node12/LICENSE +21 -0
  262. package/test/node_modules/@tsconfig/node12/README.md +40 -0
  263. package/test/node_modules/@tsconfig/node12/package.json +1 -0
  264. package/test/node_modules/@tsconfig/node12/tsconfig.json +16 -0
  265. package/test/node_modules/@tsconfig/node14/LICENSE +21 -0
  266. package/test/node_modules/@tsconfig/node14/README.md +40 -0
  267. package/test/node_modules/@tsconfig/node14/package.json +1 -0
  268. package/test/node_modules/@tsconfig/node14/tsconfig.json +16 -0
  269. package/test/node_modules/@tsconfig/node16/LICENSE +21 -0
  270. package/test/node_modules/@tsconfig/node16/README.md +40 -0
  271. package/test/node_modules/@tsconfig/node16/package.json +15 -0
  272. package/test/node_modules/@tsconfig/node16/tsconfig.json +16 -0
  273. package/test/node_modules/@types/fs-extra/LICENSE +21 -0
  274. package/test/node_modules/@types/fs-extra/README.md +16 -0
  275. package/test/node_modules/@types/fs-extra/index.d.ts +563 -0
  276. package/test/node_modules/@types/fs-extra/package.json +67 -0
  277. package/test/node_modules/@types/node/LICENSE +21 -0
  278. package/test/node_modules/@types/node/README.md +15 -0
  279. package/test/node_modules/@types/node/assert/strict.d.ts +105 -0
  280. package/test/node_modules/@types/node/assert.d.ts +955 -0
  281. package/test/node_modules/@types/node/async_hooks.d.ts +623 -0
  282. package/test/node_modules/@types/node/buffer.buffer.d.ts +466 -0
  283. package/test/node_modules/@types/node/buffer.d.ts +1810 -0
  284. package/test/node_modules/@types/node/child_process.d.ts +1433 -0
  285. package/test/node_modules/@types/node/cluster.d.ts +486 -0
  286. package/test/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  287. package/test/node_modules/@types/node/console.d.ts +151 -0
  288. package/test/node_modules/@types/node/constants.d.ts +20 -0
  289. package/test/node_modules/@types/node/crypto.d.ts +4065 -0
  290. package/test/node_modules/@types/node/dgram.d.ts +564 -0
  291. package/test/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
  292. package/test/node_modules/@types/node/dns/promises.d.ts +503 -0
  293. package/test/node_modules/@types/node/dns.d.ts +922 -0
  294. package/test/node_modules/@types/node/domain.d.ts +166 -0
  295. package/test/node_modules/@types/node/events.d.ts +1047 -0
  296. package/test/node_modules/@types/node/fs/promises.d.ts +1329 -0
  297. package/test/node_modules/@types/node/fs.d.ts +4678 -0
  298. package/test/node_modules/@types/node/globals.d.ts +150 -0
  299. package/test/node_modules/@types/node/globals.typedarray.d.ts +101 -0
  300. package/test/node_modules/@types/node/http.d.ts +2188 -0
  301. package/test/node_modules/@types/node/http2.d.ts +2480 -0
  302. package/test/node_modules/@types/node/https.d.ts +405 -0
  303. package/test/node_modules/@types/node/index.d.ts +115 -0
  304. package/test/node_modules/@types/node/inspector/promises.d.ts +41 -0
  305. package/test/node_modules/@types/node/inspector.d.ts +269 -0
  306. package/test/node_modules/@types/node/inspector.generated.d.ts +4401 -0
  307. package/test/node_modules/@types/node/module.d.ts +757 -0
  308. package/test/node_modules/@types/node/net.d.ts +933 -0
  309. package/test/node_modules/@types/node/os.d.ts +507 -0
  310. package/test/node_modules/@types/node/package.json +155 -0
  311. package/test/node_modules/@types/node/path/posix.d.ts +8 -0
  312. package/test/node_modules/@types/node/path/win32.d.ts +8 -0
  313. package/test/node_modules/@types/node/path.d.ts +187 -0
  314. package/test/node_modules/@types/node/perf_hooks.d.ts +643 -0
  315. package/test/node_modules/@types/node/process.d.ts +2175 -0
  316. package/test/node_modules/@types/node/punycode.d.ts +117 -0
  317. package/test/node_modules/@types/node/querystring.d.ts +152 -0
  318. package/test/node_modules/@types/node/quic.d.ts +910 -0
  319. package/test/node_modules/@types/node/readline/promises.d.ts +161 -0
  320. package/test/node_modules/@types/node/readline.d.ts +542 -0
  321. package/test/node_modules/@types/node/repl.d.ts +415 -0
  322. package/test/node_modules/@types/node/sea.d.ts +162 -0
  323. package/test/node_modules/@types/node/sqlite.d.ts +1065 -0
  324. package/test/node_modules/@types/node/stream/consumers.d.ts +38 -0
  325. package/test/node_modules/@types/node/stream/promises.d.ts +211 -0
  326. package/test/node_modules/@types/node/stream/web.d.ts +296 -0
  327. package/test/node_modules/@types/node/stream.d.ts +1770 -0
  328. package/test/node_modules/@types/node/string_decoder.d.ts +67 -0
  329. package/test/node_modules/@types/node/test/reporters.d.ts +96 -0
  330. package/test/node_modules/@types/node/test.d.ts +2275 -0
  331. package/test/node_modules/@types/node/timers/promises.d.ts +108 -0
  332. package/test/node_modules/@types/node/timers.d.ts +159 -0
  333. package/test/node_modules/@types/node/tls.d.ts +1203 -0
  334. package/test/node_modules/@types/node/trace_events.d.ts +197 -0
  335. package/test/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
  336. package/test/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  337. package/test/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  338. package/test/node_modules/@types/node/ts5.6/index.d.ts +117 -0
  339. package/test/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  340. package/test/node_modules/@types/node/ts5.7/index.d.ts +117 -0
  341. package/test/node_modules/@types/node/tty.d.ts +250 -0
  342. package/test/node_modules/@types/node/url.d.ts +541 -0
  343. package/test/node_modules/@types/node/util/types.d.ts +558 -0
  344. package/test/node_modules/@types/node/util.d.ts +1687 -0
  345. package/test/node_modules/@types/node/v8.d.ts +988 -0
  346. package/test/node_modules/@types/node/vm.d.ts +1208 -0
  347. package/test/node_modules/@types/node/wasi.d.ts +202 -0
  348. package/test/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
  349. package/test/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  350. package/test/node_modules/@types/node/web-globals/console.d.ts +9 -0
  351. package/test/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
  352. package/test/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  353. package/test/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  354. package/test/node_modules/@types/node/web-globals/events.d.ts +106 -0
  355. package/test/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
  356. package/test/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  357. package/test/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  358. package/test/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  359. package/test/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  360. package/test/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  361. package/test/node_modules/@types/node/web-globals/streams.d.ts +115 -0
  362. package/test/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  363. package/test/node_modules/@types/node/web-globals/url.d.ts +24 -0
  364. package/test/node_modules/@types/node/worker_threads.d.ts +717 -0
  365. package/test/node_modules/@types/node/zlib.d.ts +682 -0
  366. package/test/node_modules/acorn/CHANGELOG.md +972 -0
  367. package/test/node_modules/acorn/LICENSE +21 -0
  368. package/test/node_modules/acorn/README.md +301 -0
  369. package/test/node_modules/acorn/bin/acorn +4 -0
  370. package/test/node_modules/acorn/dist/acorn.d.mts +883 -0
  371. package/test/node_modules/acorn/dist/acorn.d.ts +883 -0
  372. package/test/node_modules/acorn/dist/acorn.js +6295 -0
  373. package/test/node_modules/acorn/dist/acorn.mjs +6266 -0
  374. package/test/node_modules/acorn/dist/bin.js +90 -0
  375. package/test/node_modules/acorn/package.json +50 -0
  376. package/test/node_modules/acorn-walk/CHANGELOG.md +209 -0
  377. package/test/node_modules/acorn-walk/LICENSE +21 -0
  378. package/test/node_modules/acorn-walk/README.md +124 -0
  379. package/test/node_modules/acorn-walk/dist/walk.d.mts +152 -0
  380. package/test/node_modules/acorn-walk/dist/walk.d.ts +152 -0
  381. package/test/node_modules/acorn-walk/dist/walk.js +485 -0
  382. package/test/node_modules/acorn-walk/dist/walk.mjs +467 -0
  383. package/test/node_modules/acorn-walk/node_modules/.bin/acorn +15 -0
  384. package/test/node_modules/acorn-walk/node_modules/.bin/acorn.cmd +7 -0
  385. package/test/node_modules/acorn-walk/package.json +50 -0
  386. package/test/node_modules/ansi-regex/index.d.ts +37 -0
  387. package/test/node_modules/ansi-regex/index.js +10 -0
  388. package/test/node_modules/ansi-regex/license +9 -0
  389. package/test/node_modules/ansi-regex/package.json +55 -0
  390. package/test/node_modules/ansi-regex/readme.md +78 -0
  391. package/test/node_modules/ansi-styles/index.d.ts +345 -0
  392. package/test/node_modules/ansi-styles/index.js +163 -0
  393. package/test/node_modules/ansi-styles/license +9 -0
  394. package/test/node_modules/ansi-styles/package.json +56 -0
  395. package/test/node_modules/ansi-styles/readme.md +152 -0
  396. package/test/node_modules/arg/LICENSE.md +21 -0
  397. package/test/node_modules/arg/README.md +280 -0
  398. package/test/node_modules/arg/index.d.ts +31 -0
  399. package/test/node_modules/arg/index.js +144 -0
  400. package/test/node_modules/arg/package.json +30 -0
  401. package/test/node_modules/chalk/index.d.ts +415 -0
  402. package/test/node_modules/chalk/license +9 -0
  403. package/test/node_modules/chalk/package.json +68 -0
  404. package/test/node_modules/chalk/readme.md +341 -0
  405. package/test/node_modules/chalk/source/index.js +229 -0
  406. package/test/node_modules/chalk/source/templates.js +134 -0
  407. package/test/node_modules/chalk/source/util.js +39 -0
  408. package/test/node_modules/color-convert/CHANGELOG.md +54 -0
  409. package/test/node_modules/color-convert/LICENSE +21 -0
  410. package/test/node_modules/color-convert/README.md +68 -0
  411. package/test/node_modules/color-convert/conversions.js +839 -0
  412. package/test/node_modules/color-convert/index.js +81 -0
  413. package/test/node_modules/color-convert/package.json +48 -0
  414. package/test/node_modules/color-convert/route.js +97 -0
  415. package/test/node_modules/color-name/LICENSE +8 -0
  416. package/test/node_modules/color-name/README.md +11 -0
  417. package/test/node_modules/color-name/index.js +152 -0
  418. package/test/node_modules/color-name/package.json +28 -0
  419. package/test/node_modules/create-require/CHANGELOG.md +33 -0
  420. package/test/node_modules/create-require/LICENSE +25 -0
  421. package/test/node_modules/create-require/README.md +46 -0
  422. package/test/node_modules/create-require/create-require.d.ts +3 -0
  423. package/test/node_modules/create-require/create-require.js +49 -0
  424. package/test/node_modules/create-require/package.json +39 -0
  425. package/test/node_modules/diff/CONTRIBUTING.md +39 -0
  426. package/test/node_modules/diff/LICENSE +31 -0
  427. package/test/node_modules/diff/README.md +207 -0
  428. package/test/node_modules/diff/dist/diff.js +1548 -0
  429. package/test/node_modules/diff/dist/diff.min.js +1 -0
  430. package/test/node_modules/diff/lib/convert/dmp.js +32 -0
  431. package/test/node_modules/diff/lib/convert/xml.js +42 -0
  432. package/test/node_modules/diff/lib/diff/array.js +45 -0
  433. package/test/node_modules/diff/lib/diff/base.js +304 -0
  434. package/test/node_modules/diff/lib/diff/character.js +37 -0
  435. package/test/node_modules/diff/lib/diff/css.js +41 -0
  436. package/test/node_modules/diff/lib/diff/json.js +163 -0
  437. package/test/node_modules/diff/lib/diff/line.js +89 -0
  438. package/test/node_modules/diff/lib/diff/sentence.js +41 -0
  439. package/test/node_modules/diff/lib/diff/word.js +107 -0
  440. package/test/node_modules/diff/lib/index.es6.js +1519 -0
  441. package/test/node_modules/diff/lib/index.js +216 -0
  442. package/test/node_modules/diff/lib/patch/apply.js +243 -0
  443. package/test/node_modules/diff/lib/patch/create.js +247 -0
  444. package/test/node_modules/diff/lib/patch/merge.js +609 -0
  445. package/test/node_modules/diff/lib/patch/parse.js +156 -0
  446. package/test/node_modules/diff/lib/util/array.js +32 -0
  447. package/test/node_modules/diff/lib/util/distance-iterator.js +57 -0
  448. package/test/node_modules/diff/lib/util/params.js +24 -0
  449. package/test/node_modules/diff/package.json +74 -0
  450. package/test/node_modules/diff/release-notes.md +261 -0
  451. package/test/node_modules/diff/runtime.js +3 -0
  452. package/test/node_modules/fs-extra/LICENSE +15 -0
  453. package/test/node_modules/fs-extra/README.md +262 -0
  454. package/test/node_modules/fs-extra/lib/copy/copy-sync.js +169 -0
  455. package/test/node_modules/fs-extra/lib/copy/copy.js +235 -0
  456. package/test/node_modules/fs-extra/lib/copy/index.js +7 -0
  457. package/test/node_modules/fs-extra/lib/empty/index.js +39 -0
  458. package/test/node_modules/fs-extra/lib/ensure/file.js +69 -0
  459. package/test/node_modules/fs-extra/lib/ensure/index.js +23 -0
  460. package/test/node_modules/fs-extra/lib/ensure/link.js +64 -0
  461. package/test/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
  462. package/test/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
  463. package/test/node_modules/fs-extra/lib/ensure/symlink.js +82 -0
  464. package/test/node_modules/fs-extra/lib/fs/index.js +128 -0
  465. package/test/node_modules/fs-extra/lib/index.js +16 -0
  466. package/test/node_modules/fs-extra/lib/json/index.js +16 -0
  467. package/test/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
  468. package/test/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
  469. package/test/node_modules/fs-extra/lib/json/output-json.js +12 -0
  470. package/test/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  471. package/test/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
  472. package/test/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
  473. package/test/node_modules/fs-extra/lib/move/index.js +7 -0
  474. package/test/node_modules/fs-extra/lib/move/move-sync.js +54 -0
  475. package/test/node_modules/fs-extra/lib/move/move.js +75 -0
  476. package/test/node_modules/fs-extra/lib/output-file/index.js +40 -0
  477. package/test/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  478. package/test/node_modules/fs-extra/lib/remove/index.js +22 -0
  479. package/test/node_modules/fs-extra/lib/remove/rimraf.js +302 -0
  480. package/test/node_modules/fs-extra/lib/util/stat.js +154 -0
  481. package/test/node_modules/fs-extra/lib/util/utimes.js +26 -0
  482. package/test/node_modules/fs-extra/package.json +67 -0
  483. package/test/node_modules/function-bind/.eslintrc +21 -0
  484. package/test/node_modules/function-bind/.github/FUNDING.yml +12 -0
  485. package/test/node_modules/function-bind/.github/SECURITY.md +3 -0
  486. package/test/node_modules/function-bind/.nycrc +13 -0
  487. package/test/node_modules/function-bind/CHANGELOG.md +136 -0
  488. package/test/node_modules/function-bind/LICENSE +20 -0
  489. package/test/node_modules/function-bind/README.md +46 -0
  490. package/test/node_modules/function-bind/implementation.js +84 -0
  491. package/test/node_modules/function-bind/index.js +5 -0
  492. package/test/node_modules/function-bind/package.json +87 -0
  493. package/test/node_modules/function-bind/test/.eslintrc +9 -0
  494. package/test/node_modules/function-bind/test/index.js +252 -0
  495. package/test/node_modules/global-prefix/LICENSE +21 -0
  496. package/test/node_modules/global-prefix/README.md +92 -0
  497. package/test/node_modules/global-prefix/index.js +85 -0
  498. package/test/node_modules/global-prefix/node_modules/.bin/node-which +15 -0
  499. package/test/node_modules/global-prefix/node_modules/.bin/node-which.cmd +7 -0
  500. package/test/node_modules/global-prefix/package.json +49 -0
  501. package/test/node_modules/graceful-fs/LICENSE +15 -0
  502. package/test/node_modules/graceful-fs/README.md +143 -0
  503. package/test/node_modules/graceful-fs/clone.js +23 -0
  504. package/test/node_modules/graceful-fs/graceful-fs.js +448 -0
  505. package/test/node_modules/graceful-fs/legacy-streams.js +118 -0
  506. package/test/node_modules/graceful-fs/package.json +53 -0
  507. package/test/node_modules/graceful-fs/polyfills.js +355 -0
  508. package/test/node_modules/has-flag/index.d.ts +39 -0
  509. package/test/node_modules/has-flag/index.js +8 -0
  510. package/test/node_modules/has-flag/license +9 -0
  511. package/test/node_modules/has-flag/package.json +46 -0
  512. package/test/node_modules/has-flag/readme.md +89 -0
  513. package/test/node_modules/hasown/.eslintrc +5 -0
  514. package/test/node_modules/hasown/.github/FUNDING.yml +12 -0
  515. package/test/node_modules/hasown/.nycrc +13 -0
  516. package/test/node_modules/hasown/CHANGELOG.md +40 -0
  517. package/test/node_modules/hasown/LICENSE +21 -0
  518. package/test/node_modules/hasown/README.md +40 -0
  519. package/test/node_modules/hasown/index.d.ts +3 -0
  520. package/test/node_modules/hasown/index.js +8 -0
  521. package/test/node_modules/hasown/package.json +92 -0
  522. package/test/node_modules/hasown/tsconfig.json +6 -0
  523. package/test/node_modules/ini/LICENSE +15 -0
  524. package/test/node_modules/ini/README.md +180 -0
  525. package/test/node_modules/ini/lib/ini.js +280 -0
  526. package/test/node_modules/ini/package.json +45 -0
  527. package/test/node_modules/is-core-module/.eslintrc +18 -0
  528. package/test/node_modules/is-core-module/.nycrc +9 -0
  529. package/test/node_modules/is-core-module/CHANGELOG.md +218 -0
  530. package/test/node_modules/is-core-module/LICENSE +20 -0
  531. package/test/node_modules/is-core-module/README.md +40 -0
  532. package/test/node_modules/is-core-module/core.json +162 -0
  533. package/test/node_modules/is-core-module/index.js +69 -0
  534. package/test/node_modules/is-core-module/package.json +76 -0
  535. package/test/node_modules/is-core-module/test/index.js +157 -0
  536. package/test/node_modules/isexe/LICENSE.md +55 -0
  537. package/test/node_modules/isexe/README.md +80 -0
  538. package/test/node_modules/isexe/dist/commonjs/index.d.ts +14 -0
  539. package/test/node_modules/isexe/dist/commonjs/index.d.ts.map +1 -0
  540. package/test/node_modules/isexe/dist/commonjs/index.js +56 -0
  541. package/test/node_modules/isexe/dist/commonjs/index.js.map +1 -0
  542. package/test/node_modules/isexe/dist/commonjs/index.min.js +2 -0
  543. package/test/node_modules/isexe/dist/commonjs/index.min.js.map +7 -0
  544. package/test/node_modules/isexe/dist/commonjs/options.d.ts +32 -0
  545. package/test/node_modules/isexe/dist/commonjs/options.d.ts.map +1 -0
  546. package/test/node_modules/isexe/dist/commonjs/options.js +3 -0
  547. package/test/node_modules/isexe/dist/commonjs/options.js.map +1 -0
  548. package/test/node_modules/isexe/dist/commonjs/package.json +3 -0
  549. package/test/node_modules/isexe/dist/commonjs/posix.d.ts +18 -0
  550. package/test/node_modules/isexe/dist/commonjs/posix.d.ts.map +1 -0
  551. package/test/node_modules/isexe/dist/commonjs/posix.js +67 -0
  552. package/test/node_modules/isexe/dist/commonjs/posix.js.map +1 -0
  553. package/test/node_modules/isexe/dist/commonjs/win32.d.ts +18 -0
  554. package/test/node_modules/isexe/dist/commonjs/win32.d.ts.map +1 -0
  555. package/test/node_modules/isexe/dist/commonjs/win32.js +63 -0
  556. package/test/node_modules/isexe/dist/commonjs/win32.js.map +1 -0
  557. package/test/node_modules/isexe/dist/esm/index.d.ts +14 -0
  558. package/test/node_modules/isexe/dist/esm/index.d.ts.map +1 -0
  559. package/test/node_modules/isexe/dist/esm/index.js +16 -0
  560. package/test/node_modules/isexe/dist/esm/index.js.map +1 -0
  561. package/test/node_modules/isexe/dist/esm/index.min.js +2 -0
  562. package/test/node_modules/isexe/dist/esm/index.min.js.map +7 -0
  563. package/test/node_modules/isexe/dist/esm/options.d.ts +32 -0
  564. package/test/node_modules/isexe/dist/esm/options.d.ts.map +1 -0
  565. package/test/node_modules/isexe/dist/esm/options.js +2 -0
  566. package/test/node_modules/isexe/dist/esm/options.js.map +1 -0
  567. package/test/node_modules/isexe/dist/esm/package.json +3 -0
  568. package/test/node_modules/isexe/dist/esm/posix.d.ts +18 -0
  569. package/test/node_modules/isexe/dist/esm/posix.d.ts.map +1 -0
  570. package/test/node_modules/isexe/dist/esm/posix.js +62 -0
  571. package/test/node_modules/isexe/dist/esm/posix.js.map +1 -0
  572. package/test/node_modules/isexe/dist/esm/win32.d.ts +18 -0
  573. package/test/node_modules/isexe/dist/esm/win32.d.ts.map +1 -0
  574. package/test/node_modules/isexe/dist/esm/win32.js +58 -0
  575. package/test/node_modules/isexe/dist/esm/win32.js.map +1 -0
  576. package/test/node_modules/isexe/package.json +78 -0
  577. package/test/node_modules/json5/LICENSE.md +23 -0
  578. package/test/node_modules/json5/README.md +282 -0
  579. package/test/node_modules/json5/dist/index.js +1737 -0
  580. package/test/node_modules/json5/dist/index.min.js +1 -0
  581. package/test/node_modules/json5/dist/index.min.mjs +1 -0
  582. package/test/node_modules/json5/dist/index.mjs +1426 -0
  583. package/test/node_modules/json5/lib/cli.js +152 -0
  584. package/test/node_modules/json5/lib/index.d.ts +4 -0
  585. package/test/node_modules/json5/lib/index.js +9 -0
  586. package/test/node_modules/json5/lib/parse.d.ts +15 -0
  587. package/test/node_modules/json5/lib/parse.js +1114 -0
  588. package/test/node_modules/json5/lib/register.js +13 -0
  589. package/test/node_modules/json5/lib/require.js +4 -0
  590. package/test/node_modules/json5/lib/stringify.d.ts +89 -0
  591. package/test/node_modules/json5/lib/stringify.js +261 -0
  592. package/test/node_modules/json5/lib/unicode.d.ts +3 -0
  593. package/test/node_modules/json5/lib/unicode.js +4 -0
  594. package/test/node_modules/json5/lib/util.d.ts +5 -0
  595. package/test/node_modules/json5/lib/util.js +35 -0
  596. package/test/node_modules/json5/package.json +72 -0
  597. package/test/node_modules/jsonfile/LICENSE +15 -0
  598. package/test/node_modules/jsonfile/README.md +230 -0
  599. package/test/node_modules/jsonfile/index.js +88 -0
  600. package/test/node_modules/jsonfile/package.json +40 -0
  601. package/test/node_modules/jsonfile/utils.js +14 -0
  602. package/test/node_modules/kind-of/CHANGELOG.md +160 -0
  603. package/test/node_modules/kind-of/LICENSE +21 -0
  604. package/test/node_modules/kind-of/README.md +367 -0
  605. package/test/node_modules/kind-of/index.js +129 -0
  606. package/test/node_modules/kind-of/package.json +88 -0
  607. package/test/node_modules/make-error/LICENSE +5 -0
  608. package/test/node_modules/make-error/README.md +112 -0
  609. package/test/node_modules/make-error/dist/make-error.js +1 -0
  610. package/test/node_modules/make-error/index.d.ts +47 -0
  611. package/test/node_modules/make-error/index.js +151 -0
  612. package/test/node_modules/make-error/package.json +62 -0
  613. package/test/node_modules/minimist/.eslintrc +29 -0
  614. package/test/node_modules/minimist/.github/FUNDING.yml +12 -0
  615. package/test/node_modules/minimist/.nycrc +14 -0
  616. package/test/node_modules/minimist/CHANGELOG.md +298 -0
  617. package/test/node_modules/minimist/LICENSE +18 -0
  618. package/test/node_modules/minimist/README.md +121 -0
  619. package/test/node_modules/minimist/example/parse.js +4 -0
  620. package/test/node_modules/minimist/index.js +263 -0
  621. package/test/node_modules/minimist/package.json +75 -0
  622. package/test/node_modules/minimist/test/all_bool.js +34 -0
  623. package/test/node_modules/minimist/test/bool.js +177 -0
  624. package/test/node_modules/minimist/test/dash.js +43 -0
  625. package/test/node_modules/minimist/test/default_bool.js +37 -0
  626. package/test/node_modules/minimist/test/dotted.js +24 -0
  627. package/test/node_modules/minimist/test/kv_short.js +32 -0
  628. package/test/node_modules/minimist/test/long.js +33 -0
  629. package/test/node_modules/minimist/test/num.js +38 -0
  630. package/test/node_modules/minimist/test/parse.js +209 -0
  631. package/test/node_modules/minimist/test/parse_modified.js +11 -0
  632. package/test/node_modules/minimist/test/proto.js +64 -0
  633. package/test/node_modules/minimist/test/short.js +69 -0
  634. package/test/node_modules/minimist/test/stop_early.js +17 -0
  635. package/test/node_modules/minimist/test/unknown.js +104 -0
  636. package/test/node_modules/minimist/test/whitespace.js +10 -0
  637. package/test/node_modules/path-parse/LICENSE +21 -0
  638. package/test/node_modules/path-parse/README.md +42 -0
  639. package/test/node_modules/path-parse/index.js +75 -0
  640. package/test/node_modules/path-parse/package.json +33 -0
  641. package/test/node_modules/resolve/.editorconfig +37 -0
  642. package/test/node_modules/resolve/.eslintrc +65 -0
  643. package/test/node_modules/resolve/.github/FUNDING.yml +12 -0
  644. package/test/node_modules/resolve/.github/INCIDENT_RESPONSE_PROCESS.md +119 -0
  645. package/test/node_modules/resolve/.github/THREAT_MODEL.md +74 -0
  646. package/test/node_modules/resolve/LICENSE +21 -0
  647. package/test/node_modules/resolve/SECURITY.md +11 -0
  648. package/test/node_modules/resolve/async.js +3 -0
  649. package/test/node_modules/resolve/bin/resolve +50 -0
  650. package/test/node_modules/resolve/example/async.js +5 -0
  651. package/test/node_modules/resolve/example/sync.js +3 -0
  652. package/test/node_modules/resolve/index.js +6 -0
  653. package/test/node_modules/resolve/lib/async.js +333 -0
  654. package/test/node_modules/resolve/lib/caller.js +8 -0
  655. package/test/node_modules/resolve/lib/core.js +12 -0
  656. package/test/node_modules/resolve/lib/core.json +162 -0
  657. package/test/node_modules/resolve/lib/homedir.js +24 -0
  658. package/test/node_modules/resolve/lib/is-core.js +5 -0
  659. package/test/node_modules/resolve/lib/node-modules-paths.js +45 -0
  660. package/test/node_modules/resolve/lib/normalize-options.js +10 -0
  661. package/test/node_modules/resolve/lib/sync.js +212 -0
  662. package/test/node_modules/resolve/package.json +75 -0
  663. package/test/node_modules/resolve/readme.markdown +301 -0
  664. package/test/node_modules/resolve/sync.js +3 -0
  665. package/test/node_modules/resolve/test/core.js +88 -0
  666. package/test/node_modules/resolve/test/dotdot/abc/index.js +2 -0
  667. package/test/node_modules/resolve/test/dotdot/index.js +1 -0
  668. package/test/node_modules/resolve/test/dotdot.js +29 -0
  669. package/test/node_modules/resolve/test/faulty_basedir.js +29 -0
  670. package/test/node_modules/resolve/test/filter.js +34 -0
  671. package/test/node_modules/resolve/test/filter_sync.js +33 -0
  672. package/test/node_modules/resolve/test/home_paths.js +127 -0
  673. package/test/node_modules/resolve/test/home_paths_sync.js +114 -0
  674. package/test/node_modules/resolve/test/mock.js +315 -0
  675. package/test/node_modules/resolve/test/mock_sync.js +214 -0
  676. package/test/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
  677. package/test/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
  678. package/test/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
  679. package/test/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
  680. package/test/node_modules/resolve/test/module_dir.js +56 -0
  681. package/test/node_modules/resolve/test/node-modules-paths.js +143 -0
  682. package/test/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
  683. package/test/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
  684. package/test/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
  685. package/test/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
  686. package/test/node_modules/resolve/test/node_path.js +70 -0
  687. package/test/node_modules/resolve/test/nonstring.js +9 -0
  688. package/test/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
  689. package/test/node_modules/resolve/test/pathfilter.js +75 -0
  690. package/test/node_modules/resolve/test/precedence/aaa/index.js +1 -0
  691. package/test/node_modules/resolve/test/precedence/aaa/main.js +1 -0
  692. package/test/node_modules/resolve/test/precedence/aaa.js +1 -0
  693. package/test/node_modules/resolve/test/precedence/bbb/main.js +1 -0
  694. package/test/node_modules/resolve/test/precedence/bbb.js +1 -0
  695. package/test/node_modules/resolve/test/precedence.js +23 -0
  696. package/test/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  697. package/test/node_modules/resolve/test/resolver/baz/package.json +4 -0
  698. package/test/node_modules/resolve/test/resolver/baz/quux.js +1 -0
  699. package/test/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
  700. package/test/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
  701. package/test/node_modules/resolve/test/resolver/browser_field/package.json +5 -0
  702. package/test/node_modules/resolve/test/resolver/cup.coffee +1 -0
  703. package/test/node_modules/resolve/test/resolver/dot_main/index.js +1 -0
  704. package/test/node_modules/resolve/test/resolver/dot_main/package.json +3 -0
  705. package/test/node_modules/resolve/test/resolver/dot_slash_main/index.js +1 -0
  706. package/test/node_modules/resolve/test/resolver/dot_slash_main/package.json +3 -0
  707. package/test/node_modules/resolve/test/resolver/false_main/index.js +0 -0
  708. package/test/node_modules/resolve/test/resolver/false_main/package.json +4 -0
  709. package/test/node_modules/resolve/test/resolver/foo.js +1 -0
  710. package/test/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
  711. package/test/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
  712. package/test/node_modules/resolve/test/resolver/invalid_main/package.json +7 -0
  713. package/test/node_modules/resolve/test/resolver/mug.coffee +0 -0
  714. package/test/node_modules/resolve/test/resolver/mug.js +0 -0
  715. package/test/node_modules/resolve/test/resolver/multirepo/lerna.json +6 -0
  716. package/test/node_modules/resolve/test/resolver/multirepo/package.json +20 -0
  717. package/test/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +35 -0
  718. package/test/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +14 -0
  719. package/test/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
  720. package/test/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +14 -0
  721. package/test/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +26 -0
  722. package/test/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +15 -0
  723. package/test/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +12 -0
  724. package/test/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  725. package/test/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  726. package/test/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
  727. package/test/node_modules/resolve/test/resolver/same_names/foo/index.js +1 -0
  728. package/test/node_modules/resolve/test/resolver/same_names/foo.js +1 -0
  729. package/test/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
  730. package/test/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
  731. package/test/node_modules/resolve/test/resolver/symlinked/package/bar.js +1 -0
  732. package/test/node_modules/resolve/test/resolver/symlinked/package/package.json +3 -0
  733. package/test/node_modules/resolve/test/resolver/without_basedir/main.js +5 -0
  734. package/test/node_modules/resolve/test/resolver.js +597 -0
  735. package/test/node_modules/resolve/test/resolver_sync.js +730 -0
  736. package/test/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
  737. package/test/node_modules/resolve/test/shadowed_core.js +54 -0
  738. package/test/node_modules/resolve/test/subdirs.js +13 -0
  739. package/test/node_modules/resolve/test/symlinks.js +176 -0
  740. package/test/node_modules/semver/LICENSE +15 -0
  741. package/test/node_modules/semver/README.md +665 -0
  742. package/test/node_modules/semver/bin/semver.js +191 -0
  743. package/test/node_modules/semver/classes/comparator.js +143 -0
  744. package/test/node_modules/semver/classes/index.js +7 -0
  745. package/test/node_modules/semver/classes/range.js +557 -0
  746. package/test/node_modules/semver/classes/semver.js +333 -0
  747. package/test/node_modules/semver/functions/clean.js +8 -0
  748. package/test/node_modules/semver/functions/cmp.js +54 -0
  749. package/test/node_modules/semver/functions/coerce.js +62 -0
  750. package/test/node_modules/semver/functions/compare-build.js +9 -0
  751. package/test/node_modules/semver/functions/compare-loose.js +5 -0
  752. package/test/node_modules/semver/functions/compare.js +7 -0
  753. package/test/node_modules/semver/functions/diff.js +60 -0
  754. package/test/node_modules/semver/functions/eq.js +5 -0
  755. package/test/node_modules/semver/functions/gt.js +5 -0
  756. package/test/node_modules/semver/functions/gte.js +5 -0
  757. package/test/node_modules/semver/functions/inc.js +21 -0
  758. package/test/node_modules/semver/functions/lt.js +5 -0
  759. package/test/node_modules/semver/functions/lte.js +5 -0
  760. package/test/node_modules/semver/functions/major.js +5 -0
  761. package/test/node_modules/semver/functions/minor.js +5 -0
  762. package/test/node_modules/semver/functions/neq.js +5 -0
  763. package/test/node_modules/semver/functions/parse.js +18 -0
  764. package/test/node_modules/semver/functions/patch.js +5 -0
  765. package/test/node_modules/semver/functions/prerelease.js +8 -0
  766. package/test/node_modules/semver/functions/rcompare.js +5 -0
  767. package/test/node_modules/semver/functions/rsort.js +5 -0
  768. package/test/node_modules/semver/functions/satisfies.js +12 -0
  769. package/test/node_modules/semver/functions/sort.js +5 -0
  770. package/test/node_modules/semver/functions/valid.js +8 -0
  771. package/test/node_modules/semver/index.js +91 -0
  772. package/test/node_modules/semver/internal/constants.js +37 -0
  773. package/test/node_modules/semver/internal/debug.js +11 -0
  774. package/test/node_modules/semver/internal/identifiers.js +29 -0
  775. package/test/node_modules/semver/internal/lrucache.js +42 -0
  776. package/test/node_modules/semver/internal/parse-options.js +17 -0
  777. package/test/node_modules/semver/internal/re.js +223 -0
  778. package/test/node_modules/semver/package.json +78 -0
  779. package/test/node_modules/semver/preload.js +4 -0
  780. package/test/node_modules/semver/range.bnf +16 -0
  781. package/test/node_modules/semver/ranges/gtr.js +6 -0
  782. package/test/node_modules/semver/ranges/intersects.js +9 -0
  783. package/test/node_modules/semver/ranges/ltr.js +6 -0
  784. package/test/node_modules/semver/ranges/max-satisfying.js +27 -0
  785. package/test/node_modules/semver/ranges/min-satisfying.js +26 -0
  786. package/test/node_modules/semver/ranges/min-version.js +63 -0
  787. package/test/node_modules/semver/ranges/outside.js +82 -0
  788. package/test/node_modules/semver/ranges/simplify.js +49 -0
  789. package/test/node_modules/semver/ranges/subset.js +249 -0
  790. package/test/node_modules/semver/ranges/to-comparators.js +10 -0
  791. package/test/node_modules/semver/ranges/valid.js +13 -0
  792. package/test/node_modules/strip-ansi/index.d.ts +17 -0
  793. package/test/node_modules/strip-ansi/index.js +4 -0
  794. package/test/node_modules/strip-ansi/license +9 -0
  795. package/test/node_modules/strip-ansi/package.json +54 -0
  796. package/test/node_modules/strip-ansi/readme.md +46 -0
  797. package/test/node_modules/strip-bom/index.js +14 -0
  798. package/test/node_modules/strip-bom/license +21 -0
  799. package/test/node_modules/strip-bom/package.json +40 -0
  800. package/test/node_modules/strip-bom/readme.md +36 -0
  801. package/test/node_modules/supports-color/browser.js +5 -0
  802. package/test/node_modules/supports-color/index.js +135 -0
  803. package/test/node_modules/supports-color/license +9 -0
  804. package/test/node_modules/supports-color/package.json +53 -0
  805. package/test/node_modules/supports-color/readme.md +76 -0
  806. package/test/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
  807. package/test/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
  808. package/test/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
  809. package/test/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
  810. package/test/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
  811. package/test/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
  812. package/test/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
  813. package/test/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
  814. package/test/node_modules/supports-preserve-symlinks-flag/package.json +70 -0
  815. package/test/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
  816. package/test/node_modules/ts-latest/LICENSE.txt +55 -0
  817. package/test/node_modules/ts-latest/README.md +50 -0
  818. package/test/node_modules/ts-latest/SECURITY.md +39 -0
  819. package/test/node_modules/ts-latest/ThirdPartyNoticeText.txt +193 -0
  820. package/test/node_modules/ts-latest/bin/tsc +2 -0
  821. package/test/node_modules/ts-latest/bin/tsserver +2 -0
  822. package/test/node_modules/ts-latest/lib/_tsc.js +134440 -0
  823. package/test/node_modules/ts-latest/lib/_tsserver.js +659 -0
  824. package/test/node_modules/ts-latest/lib/_typingsInstaller.js +222 -0
  825. package/test/node_modules/ts-latest/lib/cs/diagnosticMessages.generated.json +2129 -0
  826. package/test/node_modules/ts-latest/lib/de/diagnosticMessages.generated.json +2125 -0
  827. package/test/node_modules/ts-latest/lib/es/diagnosticMessages.generated.json +2129 -0
  828. package/test/node_modules/ts-latest/lib/fr/diagnosticMessages.generated.json +2129 -0
  829. package/test/node_modules/ts-latest/lib/it/diagnosticMessages.generated.json +2125 -0
  830. package/test/node_modules/ts-latest/lib/ja/diagnosticMessages.generated.json +2129 -0
  831. package/test/node_modules/ts-latest/lib/ko/diagnosticMessages.generated.json +2129 -0
  832. package/test/node_modules/ts-latest/lib/lib.d.ts +20 -0
  833. package/test/node_modules/ts-latest/lib/lib.decorators.d.ts +382 -0
  834. package/test/node_modules/ts-latest/lib/lib.decorators.legacy.d.ts +20 -0
  835. package/test/node_modules/ts-latest/lib/lib.dom.asynciterable.d.ts +18 -0
  836. package/test/node_modules/ts-latest/lib/lib.dom.d.ts +44303 -0
  837. package/test/node_modules/ts-latest/lib/lib.dom.iterable.d.ts +18 -0
  838. package/test/node_modules/ts-latest/lib/lib.es2015.collection.d.ts +150 -0
  839. package/test/node_modules/ts-latest/lib/lib.es2015.core.d.ts +595 -0
  840. package/test/node_modules/ts-latest/lib/lib.es2015.d.ts +26 -0
  841. package/test/node_modules/ts-latest/lib/lib.es2015.generator.d.ts +75 -0
  842. package/test/node_modules/ts-latest/lib/lib.es2015.iterable.d.ts +603 -0
  843. package/test/node_modules/ts-latest/lib/lib.es2015.promise.d.ts +79 -0
  844. package/test/node_modules/ts-latest/lib/lib.es2015.proxy.d.ts +126 -0
  845. package/test/node_modules/ts-latest/lib/lib.es2015.reflect.d.ts +142 -0
  846. package/test/node_modules/ts-latest/lib/lib.es2015.symbol.d.ts +44 -0
  847. package/test/node_modules/ts-latest/lib/lib.es2015.symbol.wellknown.d.ts +324 -0
  848. package/test/node_modules/ts-latest/lib/lib.es2016.array.include.d.ts +114 -0
  849. package/test/node_modules/ts-latest/lib/lib.es2016.d.ts +19 -0
  850. package/test/node_modules/ts-latest/lib/lib.es2016.full.d.ts +21 -0
  851. package/test/node_modules/ts-latest/lib/lib.es2016.intl.d.ts +29 -0
  852. package/test/node_modules/ts-latest/lib/lib.es2017.arraybuffer.d.ts +19 -0
  853. package/test/node_modules/ts-latest/lib/lib.es2017.d.ts +24 -0
  854. package/test/node_modules/ts-latest/lib/lib.es2017.date.d.ts +29 -0
  855. package/test/node_modules/ts-latest/lib/lib.es2017.full.d.ts +21 -0
  856. package/test/node_modules/ts-latest/lib/lib.es2017.intl.d.ts +42 -0
  857. package/test/node_modules/ts-latest/lib/lib.es2017.object.d.ts +47 -0
  858. package/test/node_modules/ts-latest/lib/lib.es2017.sharedmemory.d.ts +133 -0
  859. package/test/node_modules/ts-latest/lib/lib.es2017.string.d.ts +43 -0
  860. package/test/node_modules/ts-latest/lib/lib.es2017.typedarrays.d.ts +51 -0
  861. package/test/node_modules/ts-latest/lib/lib.es2018.asyncgenerator.d.ts +75 -0
  862. package/test/node_modules/ts-latest/lib/lib.es2018.asynciterable.d.ts +51 -0
  863. package/test/node_modules/ts-latest/lib/lib.es2018.d.ts +22 -0
  864. package/test/node_modules/ts-latest/lib/lib.es2018.full.d.ts +22 -0
  865. package/test/node_modules/ts-latest/lib/lib.es2018.intl.d.ts +81 -0
  866. package/test/node_modules/ts-latest/lib/lib.es2018.promise.d.ts +28 -0
  867. package/test/node_modules/ts-latest/lib/lib.es2018.regexp.d.ts +35 -0
  868. package/test/node_modules/ts-latest/lib/lib.es2019.array.d.ts +77 -0
  869. package/test/node_modules/ts-latest/lib/lib.es2019.d.ts +22 -0
  870. package/test/node_modules/ts-latest/lib/lib.es2019.full.d.ts +22 -0
  871. package/test/node_modules/ts-latest/lib/lib.es2019.intl.d.ts +21 -0
  872. package/test/node_modules/ts-latest/lib/lib.es2019.object.d.ts +31 -0
  873. package/test/node_modules/ts-latest/lib/lib.es2019.string.d.ts +35 -0
  874. package/test/node_modules/ts-latest/lib/lib.es2019.symbol.d.ts +22 -0
  875. package/test/node_modules/ts-latest/lib/lib.es2020.bigint.d.ts +763 -0
  876. package/test/node_modules/ts-latest/lib/lib.es2020.d.ts +25 -0
  877. package/test/node_modules/ts-latest/lib/lib.es2020.date.d.ts +40 -0
  878. package/test/node_modules/ts-latest/lib/lib.es2020.full.d.ts +22 -0
  879. package/test/node_modules/ts-latest/lib/lib.es2020.intl.d.ts +472 -0
  880. package/test/node_modules/ts-latest/lib/lib.es2020.number.d.ts +26 -0
  881. package/test/node_modules/ts-latest/lib/lib.es2020.promise.d.ts +45 -0
  882. package/test/node_modules/ts-latest/lib/lib.es2020.sharedmemory.d.ts +97 -0
  883. package/test/node_modules/ts-latest/lib/lib.es2020.string.d.ts +42 -0
  884. package/test/node_modules/ts-latest/lib/lib.es2020.symbol.wellknown.d.ts +39 -0
  885. package/test/node_modules/ts-latest/lib/lib.es2021.d.ts +21 -0
  886. package/test/node_modules/ts-latest/lib/lib.es2021.full.d.ts +22 -0
  887. package/test/node_modules/ts-latest/lib/lib.es2021.intl.d.ts +164 -0
  888. package/test/node_modules/ts-latest/lib/lib.es2021.promise.d.ts +46 -0
  889. package/test/node_modules/ts-latest/lib/lib.es2021.string.d.ts +31 -0
  890. package/test/node_modules/ts-latest/lib/lib.es2021.weakref.d.ts +76 -0
  891. package/test/node_modules/ts-latest/lib/lib.es2022.array.d.ts +119 -0
  892. package/test/node_modules/ts-latest/lib/lib.es2022.d.ts +23 -0
  893. package/test/node_modules/ts-latest/lib/lib.es2022.error.d.ts +73 -0
  894. package/test/node_modules/ts-latest/lib/lib.es2022.full.d.ts +22 -0
  895. package/test/node_modules/ts-latest/lib/lib.es2022.intl.d.ts +143 -0
  896. package/test/node_modules/ts-latest/lib/lib.es2022.object.d.ts +24 -0
  897. package/test/node_modules/ts-latest/lib/lib.es2022.regexp.d.ts +37 -0
  898. package/test/node_modules/ts-latest/lib/lib.es2022.string.d.ts +23 -0
  899. package/test/node_modules/ts-latest/lib/lib.es2023.array.d.ts +922 -0
  900. package/test/node_modules/ts-latest/lib/lib.es2023.collection.d.ts +19 -0
  901. package/test/node_modules/ts-latest/lib/lib.es2023.d.ts +20 -0
  902. package/test/node_modules/ts-latest/lib/lib.es2023.full.d.ts +22 -0
  903. package/test/node_modules/ts-latest/lib/lib.es2023.intl.d.ts +62 -0
  904. package/test/node_modules/ts-latest/lib/lib.es2024.arraybuffer.d.ts +63 -0
  905. package/test/node_modules/ts-latest/lib/lib.es2024.collection.d.ts +27 -0
  906. package/test/node_modules/ts-latest/lib/lib.es2024.d.ts +24 -0
  907. package/test/node_modules/ts-latest/lib/lib.es2024.full.d.ts +22 -0
  908. package/test/node_modules/ts-latest/lib/lib.es2024.object.d.ts +27 -0
  909. package/test/node_modules/ts-latest/lib/lib.es2024.promise.d.ts +33 -0
  910. package/test/node_modules/ts-latest/lib/lib.es2024.regexp.d.ts +23 -0
  911. package/test/node_modules/ts-latest/lib/lib.es2024.sharedmemory.d.ts +66 -0
  912. package/test/node_modules/ts-latest/lib/lib.es2024.string.d.ts +27 -0
  913. package/test/node_modules/ts-latest/lib/lib.es2025.collection.d.ts +94 -0
  914. package/test/node_modules/ts-latest/lib/lib.es2025.d.ts +23 -0
  915. package/test/node_modules/ts-latest/lib/lib.es2025.float16.d.ts +443 -0
  916. package/test/node_modules/ts-latest/lib/lib.es2025.full.d.ts +22 -0
  917. package/test/node_modules/ts-latest/lib/lib.es2025.intl.d.ts +200 -0
  918. package/test/node_modules/ts-latest/lib/lib.es2025.iterator.d.ts +146 -0
  919. package/test/node_modules/ts-latest/lib/lib.es2025.promise.d.ts +32 -0
  920. package/test/node_modules/ts-latest/lib/lib.es2025.regexp.d.ts +30 -0
  921. package/test/node_modules/ts-latest/lib/lib.es5.d.ts +4599 -0
  922. package/test/node_modules/ts-latest/lib/lib.es6.d.ts +21 -0
  923. package/test/node_modules/ts-latest/lib/lib.esnext.array.d.ts +33 -0
  924. package/test/node_modules/ts-latest/lib/lib.esnext.collection.d.ts +47 -0
  925. package/test/node_modules/ts-latest/lib/lib.esnext.d.ts +27 -0
  926. package/test/node_modules/ts-latest/lib/lib.esnext.date.d.ts +21 -0
  927. package/test/node_modules/ts-latest/lib/lib.esnext.decorators.d.ts +26 -0
  928. package/test/node_modules/ts-latest/lib/lib.esnext.disposable.d.ts +191 -0
  929. package/test/node_modules/ts-latest/lib/lib.esnext.error.d.ts +22 -0
  930. package/test/node_modules/ts-latest/lib/lib.esnext.full.d.ts +22 -0
  931. package/test/node_modules/ts-latest/lib/lib.esnext.intl.d.ts +107 -0
  932. package/test/node_modules/ts-latest/lib/lib.esnext.sharedmemory.d.ts +23 -0
  933. package/test/node_modules/ts-latest/lib/lib.esnext.temporal.d.ts +473 -0
  934. package/test/node_modules/ts-latest/lib/lib.esnext.typedarrays.d.ts +90 -0
  935. package/test/node_modules/ts-latest/lib/lib.scripthost.d.ts +320 -0
  936. package/test/node_modules/ts-latest/lib/lib.webworker.asynciterable.d.ts +18 -0
  937. package/test/node_modules/ts-latest/lib/lib.webworker.d.ts +14814 -0
  938. package/test/node_modules/ts-latest/lib/lib.webworker.importscripts.d.ts +21 -0
  939. package/test/node_modules/ts-latest/lib/lib.webworker.iterable.d.ts +18 -0
  940. package/test/node_modules/ts-latest/lib/pl/diagnosticMessages.generated.json +2129 -0
  941. package/test/node_modules/ts-latest/lib/pt-br/diagnosticMessages.generated.json +2129 -0
  942. package/test/node_modules/ts-latest/lib/ru/diagnosticMessages.generated.json +2125 -0
  943. package/test/node_modules/ts-latest/lib/tr/diagnosticMessages.generated.json +2129 -0
  944. package/test/node_modules/ts-latest/lib/tsc.js +8 -0
  945. package/test/node_modules/ts-latest/lib/tsserver.js +8 -0
  946. package/test/node_modules/ts-latest/lib/tsserverlibrary.d.ts +17 -0
  947. package/test/node_modules/ts-latest/lib/tsserverlibrary.js +21 -0
  948. package/test/node_modules/ts-latest/lib/typesMap.json +497 -0
  949. package/test/node_modules/ts-latest/lib/typescript.d.ts +11448 -0
  950. package/test/node_modules/ts-latest/lib/typescript.js +200997 -0
  951. package/test/node_modules/ts-latest/lib/typingsInstaller.js +8 -0
  952. package/test/node_modules/ts-latest/lib/watchGuard.js +53 -0
  953. package/test/node_modules/ts-latest/lib/zh-cn/diagnosticMessages.generated.json +2129 -0
  954. package/test/node_modules/ts-latest/lib/zh-tw/diagnosticMessages.generated.json +2125 -0
  955. package/test/node_modules/ts-latest/package.json +119 -0
  956. package/test/node_modules/ts-node/LICENSE +21 -0
  957. package/test/node_modules/ts-node/README.md +1442 -0
  958. package/test/node_modules/ts-node/child-loader.mjs +8 -0
  959. package/test/node_modules/ts-node/dist/bin-cwd.d.ts +2 -0
  960. package/test/node_modules/ts-node/dist/bin-cwd.js +6 -0
  961. package/test/node_modules/ts-node/dist/bin-cwd.js.map +1 -0
  962. package/test/node_modules/ts-node/dist/bin-esm.d.ts +2 -0
  963. package/test/node_modules/ts-node/dist/bin-esm.js +6 -0
  964. package/test/node_modules/ts-node/dist/bin-esm.js.map +1 -0
  965. package/test/node_modules/ts-node/dist/bin-script-deprecated.d.ts +2 -0
  966. package/test/node_modules/ts-node/dist/bin-script-deprecated.js +7 -0
  967. package/test/node_modules/ts-node/dist/bin-script-deprecated.js.map +1 -0
  968. package/test/node_modules/ts-node/dist/bin-script.d.ts +2 -0
  969. package/test/node_modules/ts-node/dist/bin-script.js +6 -0
  970. package/test/node_modules/ts-node/dist/bin-script.js.map +1 -0
  971. package/test/node_modules/ts-node/dist/bin-transpile.d.ts +2 -0
  972. package/test/node_modules/ts-node/dist/bin-transpile.js +6 -0
  973. package/test/node_modules/ts-node/dist/bin-transpile.js.map +1 -0
  974. package/test/node_modules/ts-node/dist/bin.d.ts +11 -0
  975. package/test/node_modules/ts-node/dist/bin.js +581 -0
  976. package/test/node_modules/ts-node/dist/bin.js.map +1 -0
  977. package/test/node_modules/ts-node/dist/child/argv-payload.d.ts +1 -0
  978. package/test/node_modules/ts-node/dist/child/argv-payload.js +19 -0
  979. package/test/node_modules/ts-node/dist/child/argv-payload.js.map +1 -0
  980. package/test/node_modules/ts-node/dist/child/child-entrypoint.d.ts +1 -0
  981. package/test/node_modules/ts-node/dist/child/child-entrypoint.js +24 -0
  982. package/test/node_modules/ts-node/dist/child/child-entrypoint.js.map +1 -0
  983. package/test/node_modules/ts-node/dist/child/child-loader.d.ts +1 -0
  984. package/test/node_modules/ts-node/dist/child/child-loader.js +32 -0
  985. package/test/node_modules/ts-node/dist/child/child-loader.js.map +1 -0
  986. package/test/node_modules/ts-node/dist/child/child-require.d.ts +7 -0
  987. package/test/node_modules/ts-node/dist/child/child-require.js +22 -0
  988. package/test/node_modules/ts-node/dist/child/child-require.js.map +1 -0
  989. package/test/node_modules/ts-node/dist/child/spawn-child.d.ts +1 -0
  990. package/test/node_modules/ts-node/dist/child/spawn-child.js +49 -0
  991. package/test/node_modules/ts-node/dist/child/spawn-child.js.map +1 -0
  992. package/test/node_modules/ts-node/dist/cjs-resolve-hooks.d.ts +1 -0
  993. package/test/node_modules/ts-node/dist/cjs-resolve-hooks.js +29 -0
  994. package/test/node_modules/ts-node/dist/cjs-resolve-hooks.js.map +1 -0
  995. package/test/node_modules/ts-node/dist/configuration.d.ts +1 -0
  996. package/test/node_modules/ts-node/dist/configuration.js +308 -0
  997. package/test/node_modules/ts-node/dist/configuration.js.map +1 -0
  998. package/test/node_modules/ts-node/dist/esm.d.ts +53 -0
  999. package/test/node_modules/ts-node/dist/esm.js +228 -0
  1000. package/test/node_modules/ts-node/dist/esm.js.map +1 -0
  1001. package/test/node_modules/ts-node/dist/file-extensions.d.ts +1 -0
  1002. package/test/node_modules/ts-node/dist/file-extensions.js +133 -0
  1003. package/test/node_modules/ts-node/dist/file-extensions.js.map +1 -0
  1004. package/test/node_modules/ts-node/dist/index.d.ts +332 -0
  1005. package/test/node_modules/ts-node/dist/index.js +953 -0
  1006. package/test/node_modules/ts-node/dist/index.js.map +1 -0
  1007. package/test/node_modules/ts-node/dist/module-type-classifier.d.ts +1 -0
  1008. package/test/node_modules/ts-node/dist/module-type-classifier.js +64 -0
  1009. package/test/node_modules/ts-node/dist/module-type-classifier.js.map +1 -0
  1010. package/test/node_modules/ts-node/dist/node-module-type-classifier.d.ts +1 -0
  1011. package/test/node_modules/ts-node/dist/node-module-type-classifier.js +39 -0
  1012. package/test/node_modules/ts-node/dist/node-module-type-classifier.js.map +1 -0
  1013. package/test/node_modules/ts-node/dist/repl.d.ts +78 -0
  1014. package/test/node_modules/ts-node/dist/repl.js +561 -0
  1015. package/test/node_modules/ts-node/dist/repl.js.map +1 -0
  1016. package/test/node_modules/ts-node/dist/resolver-functions.d.ts +1 -0
  1017. package/test/node_modules/ts-node/dist/resolver-functions.js +143 -0
  1018. package/test/node_modules/ts-node/dist/resolver-functions.js.map +1 -0
  1019. package/test/node_modules/ts-node/dist/transpilers/swc.d.ts +11 -0
  1020. package/test/node_modules/ts-node/dist/transpilers/swc.js +218 -0
  1021. package/test/node_modules/ts-node/dist/transpilers/swc.js.map +1 -0
  1022. package/test/node_modules/ts-node/dist/transpilers/types.d.ts +35 -0
  1023. package/test/node_modules/ts-node/dist/transpilers/types.js +3 -0
  1024. package/test/node_modules/ts-node/dist/transpilers/types.js.map +1 -0
  1025. package/test/node_modules/ts-node/dist/ts-compiler-types.d.ts +63 -0
  1026. package/test/node_modules/ts-node/dist/ts-compiler-types.js +3 -0
  1027. package/test/node_modules/ts-node/dist/ts-compiler-types.js.map +1 -0
  1028. package/test/node_modules/ts-node/dist/ts-internals.d.ts +6 -0
  1029. package/test/node_modules/ts-node/dist/ts-internals.js +321 -0
  1030. package/test/node_modules/ts-node/dist/ts-internals.js.map +1 -0
  1031. package/test/node_modules/ts-node/dist/ts-transpile-module.d.ts +1 -0
  1032. package/test/node_modules/ts-node/dist/ts-transpile-module.js +100 -0
  1033. package/test/node_modules/ts-node/dist/ts-transpile-module.js.map +1 -0
  1034. package/test/node_modules/ts-node/dist/tsconfig-schema.d.ts +13 -0
  1035. package/test/node_modules/ts-node/dist/tsconfig-schema.js +3 -0
  1036. package/test/node_modules/ts-node/dist/tsconfig-schema.js.map +1 -0
  1037. package/test/node_modules/ts-node/dist/tsconfigs.d.ts +1 -0
  1038. package/test/node_modules/ts-node/dist/tsconfigs.js +36 -0
  1039. package/test/node_modules/ts-node/dist/tsconfigs.js.map +1 -0
  1040. package/test/node_modules/ts-node/dist/util.d.ts +4 -0
  1041. package/test/node_modules/ts-node/dist/util.js +175 -0
  1042. package/test/node_modules/ts-node/dist/util.js.map +1 -0
  1043. package/test/node_modules/ts-node/dist-raw/NODE-LICENSE.md +24 -0
  1044. package/test/node_modules/ts-node/dist-raw/README.md +36 -0
  1045. package/test/node_modules/ts-node/dist-raw/node-internal-constants.js +4 -0
  1046. package/test/node_modules/ts-node/dist-raw/node-internal-errors.js +82 -0
  1047. package/test/node_modules/ts-node/dist-raw/node-internal-modules-cjs-helpers.js +89 -0
  1048. package/test/node_modules/ts-node/dist-raw/node-internal-modules-cjs-loader.js +593 -0
  1049. package/test/node_modules/ts-node/dist-raw/node-internal-modules-esm-get_format.js +106 -0
  1050. package/test/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js +962 -0
  1051. package/test/node_modules/ts-node/dist-raw/node-internal-modules-package_json_reader.js +44 -0
  1052. package/test/node_modules/ts-node/dist-raw/node-internal-repl-await.js +254 -0
  1053. package/test/node_modules/ts-node/dist-raw/node-internalBinding-fs.js +58 -0
  1054. package/test/node_modules/ts-node/dist-raw/node-nativemodule.js +9 -0
  1055. package/test/node_modules/ts-node/dist-raw/node-options.js +103 -0
  1056. package/test/node_modules/ts-node/dist-raw/node-primordials.js +37 -0
  1057. package/test/node_modules/ts-node/dist-raw/runmain-hack.js +9 -0
  1058. package/test/node_modules/ts-node/esm/transpile-only.mjs +8 -0
  1059. package/test/node_modules/ts-node/esm.mjs +8 -0
  1060. package/test/node_modules/ts-node/node10/tsconfig.json +3 -0
  1061. package/test/node_modules/ts-node/node12/tsconfig.json +3 -0
  1062. package/test/node_modules/ts-node/node14/tsconfig.json +3 -0
  1063. package/test/node_modules/ts-node/node16/tsconfig.json +3 -0
  1064. package/test/node_modules/ts-node/node_modules/.bin/acorn +15 -0
  1065. package/test/node_modules/ts-node/node_modules/.bin/acorn.cmd +7 -0
  1066. package/test/node_modules/ts-node/package.json +182 -0
  1067. package/test/node_modules/ts-node/register/files.js +3 -0
  1068. package/test/node_modules/ts-node/register/index.js +1 -0
  1069. package/test/node_modules/ts-node/register/transpile-only.js +3 -0
  1070. package/test/node_modules/ts-node/register/type-check.js +3 -0
  1071. package/test/node_modules/ts-node/transpilers/swc-experimental.js +1 -0
  1072. package/test/node_modules/ts-node/transpilers/swc.js +1 -0
  1073. package/test/node_modules/ts-node/tsconfig.schema.json +183 -0
  1074. package/test/node_modules/ts-node/tsconfig.schemastore-schema.json +1326 -0
  1075. package/test/node_modules/tsconfig-paths/CHANGELOG.md +407 -0
  1076. package/test/node_modules/tsconfig-paths/LICENSE +21 -0
  1077. package/test/node_modules/tsconfig-paths/README.md +269 -0
  1078. package/test/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.d.ts +1 -0
  1079. package/test/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js +87 -0
  1080. package/test/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js.map +1 -0
  1081. package/test/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.d.ts +17 -0
  1082. package/test/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js +216 -0
  1083. package/test/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js.map +1 -0
  1084. package/test/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.d.ts +1 -0
  1085. package/test/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js +56 -0
  1086. package/test/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js.map +1 -0
  1087. package/test/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.d.ts +1 -0
  1088. package/test/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js +39 -0
  1089. package/test/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js.map +1 -0
  1090. package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.d.ts +1 -0
  1091. package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js +18 -0
  1092. package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js.map +1 -0
  1093. package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.d.ts +1 -0
  1094. package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js +14 -0
  1095. package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js.map +1 -0
  1096. package/test/node_modules/tsconfig-paths/lib/__tests__/try-path.test.d.ts +1 -0
  1097. package/test/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js +124 -0
  1098. package/test/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js.map +1 -0
  1099. package/test/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.d.ts +1 -0
  1100. package/test/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js +328 -0
  1101. package/test/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js.map +1 -0
  1102. package/test/node_modules/tsconfig-paths/lib/config-loader.d.ts +33 -0
  1103. package/test/node_modules/tsconfig-paths/lib/config-loader.js +48 -0
  1104. package/test/node_modules/tsconfig-paths/lib/config-loader.js.map +1 -0
  1105. package/test/node_modules/tsconfig-paths/lib/filesystem.d.ts +34 -0
  1106. package/test/node_modules/tsconfig-paths/lib/filesystem.js +61 -0
  1107. package/test/node_modules/tsconfig-paths/lib/filesystem.js.map +1 -0
  1108. package/test/node_modules/tsconfig-paths/lib/index.d.ts +5 -0
  1109. package/test/node_modules/tsconfig-paths/lib/index.js +15 -0
  1110. package/test/node_modules/tsconfig-paths/lib/index.js.map +1 -0
  1111. package/test/node_modules/tsconfig-paths/lib/mapping-entry.d.ts +18 -0
  1112. package/test/node_modules/tsconfig-paths/lib/mapping-entry.js +54 -0
  1113. package/test/node_modules/tsconfig-paths/lib/mapping-entry.js.map +1 -0
  1114. package/test/node_modules/tsconfig-paths/lib/match-path-async.d.ts +21 -0
  1115. package/test/node_modules/tsconfig-paths/lib/match-path-async.js +116 -0
  1116. package/test/node_modules/tsconfig-paths/lib/match-path-async.js.map +1 -0
  1117. package/test/node_modules/tsconfig-paths/lib/match-path-sync.d.ts +32 -0
  1118. package/test/node_modules/tsconfig-paths/lib/match-path-sync.js +91 -0
  1119. package/test/node_modules/tsconfig-paths/lib/match-path-sync.js.map +1 -0
  1120. package/test/node_modules/tsconfig-paths/lib/register.d.ts +12 -0
  1121. package/test/node_modules/tsconfig-paths/lib/register.js +112 -0
  1122. package/test/node_modules/tsconfig-paths/lib/register.js.map +1 -0
  1123. package/test/node_modules/tsconfig-paths/lib/try-path.d.ts +15 -0
  1124. package/test/node_modules/tsconfig-paths/lib/try-path.js +91 -0
  1125. package/test/node_modules/tsconfig-paths/lib/try-path.js.map +1 -0
  1126. package/test/node_modules/tsconfig-paths/lib/tsconfig-loader.d.ts +28 -0
  1127. package/test/node_modules/tsconfig-paths/lib/tsconfig-loader.js +148 -0
  1128. package/test/node_modules/tsconfig-paths/lib/tsconfig-loader.js.map +1 -0
  1129. package/test/node_modules/tsconfig-paths/node_modules/.bin/json5 +15 -0
  1130. package/test/node_modules/tsconfig-paths/node_modules/.bin/json5.cmd +7 -0
  1131. package/test/node_modules/tsconfig-paths/package.json +74 -0
  1132. package/test/node_modules/tsconfig-paths/register.js +1 -0
  1133. package/test/node_modules/tsconfig-paths/src/__tests__/config-loader.test.ts +101 -0
  1134. package/test/node_modules/tsconfig-paths/src/__tests__/data/match-path-data.ts +230 -0
  1135. package/test/node_modules/tsconfig-paths/src/__tests__/filesystem.test.ts +57 -0
  1136. package/test/node_modules/tsconfig-paths/src/__tests__/mapping-entry.test.ts +43 -0
  1137. package/test/node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts +26 -0
  1138. package/test/node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts +22 -0
  1139. package/test/node_modules/tsconfig-paths/src/__tests__/try-path.test.ts +141 -0
  1140. package/test/node_modules/tsconfig-paths/src/__tests__/tsconfig-loader.test.ts +428 -0
  1141. package/test/node_modules/tsconfig-paths/src/__tests__/tsconfig-named.json +10 -0
  1142. package/test/node_modules/tsconfig-paths/src/config-loader.ts +89 -0
  1143. package/test/node_modules/tsconfig-paths/src/filesystem.ts +93 -0
  1144. package/test/node_modules/tsconfig-paths/src/index.ts +24 -0
  1145. package/test/node_modules/tsconfig-paths/src/mapping-entry.ts +65 -0
  1146. package/test/node_modules/tsconfig-paths/src/match-path-async.ts +223 -0
  1147. package/test/node_modules/tsconfig-paths/src/match-path-sync.ts +146 -0
  1148. package/test/node_modules/tsconfig-paths/src/register.ts +123 -0
  1149. package/test/node_modules/tsconfig-paths/src/try-path.ts +103 -0
  1150. package/test/node_modules/tsconfig-paths/src/tsconfig-loader.ts +229 -0
  1151. package/test/node_modules/undici-types/LICENSE +21 -0
  1152. package/test/node_modules/undici-types/README.md +6 -0
  1153. package/test/node_modules/undici-types/agent.d.ts +32 -0
  1154. package/test/node_modules/undici-types/api.d.ts +43 -0
  1155. package/test/node_modules/undici-types/balanced-pool.d.ts +30 -0
  1156. package/test/node_modules/undici-types/cache-interceptor.d.ts +173 -0
  1157. package/test/node_modules/undici-types/cache.d.ts +36 -0
  1158. package/test/node_modules/undici-types/client-stats.d.ts +15 -0
  1159. package/test/node_modules/undici-types/client.d.ts +108 -0
  1160. package/test/node_modules/undici-types/connector.d.ts +34 -0
  1161. package/test/node_modules/undici-types/content-type.d.ts +21 -0
  1162. package/test/node_modules/undici-types/cookies.d.ts +30 -0
  1163. package/test/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  1164. package/test/node_modules/undici-types/dispatcher.d.ts +276 -0
  1165. package/test/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  1166. package/test/node_modules/undici-types/errors.d.ts +161 -0
  1167. package/test/node_modules/undici-types/eventsource.d.ts +66 -0
  1168. package/test/node_modules/undici-types/fetch.d.ts +211 -0
  1169. package/test/node_modules/undici-types/formdata.d.ts +108 -0
  1170. package/test/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  1171. package/test/node_modules/undici-types/global-origin.d.ts +7 -0
  1172. package/test/node_modules/undici-types/h2c-client.d.ts +73 -0
  1173. package/test/node_modules/undici-types/handlers.d.ts +15 -0
  1174. package/test/node_modules/undici-types/header.d.ts +160 -0
  1175. package/test/node_modules/undici-types/index.d.ts +88 -0
  1176. package/test/node_modules/undici-types/interceptors.d.ts +73 -0
  1177. package/test/node_modules/undici-types/mock-agent.d.ts +68 -0
  1178. package/test/node_modules/undici-types/mock-call-history.d.ts +111 -0
  1179. package/test/node_modules/undici-types/mock-client.d.ts +27 -0
  1180. package/test/node_modules/undici-types/mock-errors.d.ts +12 -0
  1181. package/test/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  1182. package/test/node_modules/undici-types/mock-pool.d.ts +27 -0
  1183. package/test/node_modules/undici-types/package.json +55 -0
  1184. package/test/node_modules/undici-types/patch.d.ts +29 -0
  1185. package/test/node_modules/undici-types/pool-stats.d.ts +19 -0
  1186. package/test/node_modules/undici-types/pool.d.ts +41 -0
  1187. package/test/node_modules/undici-types/proxy-agent.d.ts +29 -0
  1188. package/test/node_modules/undici-types/readable.d.ts +68 -0
  1189. package/test/node_modules/undici-types/retry-agent.d.ts +8 -0
  1190. package/test/node_modules/undici-types/retry-handler.d.ts +125 -0
  1191. package/test/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  1192. package/test/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  1193. package/test/node_modules/undici-types/util.d.ts +18 -0
  1194. package/test/node_modules/undici-types/utility.d.ts +7 -0
  1195. package/test/node_modules/undici-types/webidl.d.ts +341 -0
  1196. package/test/node_modules/undici-types/websocket.d.ts +186 -0
  1197. package/test/node_modules/universalify/LICENSE +20 -0
  1198. package/test/node_modules/universalify/README.md +76 -0
  1199. package/test/node_modules/universalify/index.js +24 -0
  1200. package/test/node_modules/universalify/package.json +34 -0
  1201. package/test/node_modules/v8-compile-cache-lib/CHANGELOG.md +53 -0
  1202. package/test/node_modules/v8-compile-cache-lib/LICENSE +21 -0
  1203. package/test/node_modules/v8-compile-cache-lib/README.md +60 -0
  1204. package/test/node_modules/v8-compile-cache-lib/package.json +35 -0
  1205. package/test/node_modules/v8-compile-cache-lib/v8-compile-cache.d.ts +7 -0
  1206. package/test/node_modules/v8-compile-cache-lib/v8-compile-cache.js +391 -0
  1207. package/test/node_modules/which/LICENSE +15 -0
  1208. package/test/node_modules/which/README.md +51 -0
  1209. package/test/node_modules/which/bin/which.js +52 -0
  1210. package/test/node_modules/which/lib/index.js +111 -0
  1211. package/test/node_modules/which/package.json +57 -0
  1212. package/test/node_modules/yn/index.d.ts +65 -0
  1213. package/test/node_modules/yn/index.js +33 -0
  1214. package/test/node_modules/yn/lenient.js +105 -0
  1215. package/test/node_modules/yn/license +9 -0
  1216. package/test/node_modules/yn/package.json +42 -0
  1217. package/test/node_modules/yn/readme.md +83 -0
  1218. package/test/package.json +14 -0
  1219. package/test/src/cleanup.ts +10 -0
  1220. package/test/src/config.ts +35 -0
  1221. package/test/src/perf.ts +110 -0
  1222. package/test/src/prepare.ts +10 -0
  1223. package/test/src/project.ts +134 -0
  1224. package/test/src/utils/general.ts +8 -0
  1225. package/test/tests/actions.test.ts +274 -0
  1226. package/test/tests/package-config.test.ts +40 -0
  1227. package/test/tests/path-mapping.test.ts +47 -0
  1228. package/test/tests/transformer.test.ts +44 -0
  1229. package/test/tests/webpack.test.ts +71 -0
  1230. package/test/tsconfig.json +12 -0
  1231. package/tsconfig.base.json +21 -0
  1232. package/actions/check.js +0 -45
  1233. package/actions/check.js.map +0 -1
  1234. package/actions/patch.js +0 -82
  1235. package/actions/patch.js.map +0 -1
  1236. package/actions/unpatch.js +0 -82
  1237. package/actions/unpatch.js.map +0 -1
  1238. package/bin/ts-patch.js +0 -33
  1239. package/bin/ts-patch.js.map +0 -1
  1240. package/cli/cli.js +0 -96
  1241. package/cli/cli.js.map +0 -1
  1242. package/cli/commands.js +0 -49
  1243. package/cli/commands.js.map +0 -1
  1244. package/config.js +0 -50
  1245. package/config.js.map +0 -1
  1246. package/module/module-file.d.ts +0 -9
  1247. package/module/module-file.js +0 -97
  1248. package/module/module-file.js.map +0 -1
  1249. package/module/ts-module.d.ts +0 -35
  1250. package/module/ts-module.js +0 -100
  1251. package/module/ts-module.js.map +0 -1
  1252. package/patch/get-patched-source.js +0 -69
  1253. package/patch/get-patched-source.js.map +0 -1
  1254. package/patch/transformers/fix-ts-early-return.js +0 -51
  1255. package/patch/transformers/fix-ts-early-return.js.map +0 -1
  1256. package/resources/module-patch.js +0 -609
  1257. package/system/cache.js +0 -69
  1258. package/system/cache.js.map +0 -1
  1259. package/tsconfig.tsbuildinfo +0 -1
  1260. package/utils/file-utils.js +0 -98
  1261. package/utils/file-utils.js.map +0 -1
  1262. /package/{actions → dist/actions}/check.d.ts +0 -0
  1263. /package/{actions → dist/actions}/index.d.ts +0 -0
  1264. /package/{actions → dist/actions}/index.js +0 -0
  1265. /package/{actions → dist/actions}/index.js.map +0 -0
  1266. /package/{actions → dist/actions}/install.d.ts +0 -0
  1267. /package/{actions → dist/actions}/install.js +0 -0
  1268. /package/{actions → dist/actions}/install.js.map +0 -0
  1269. /package/{actions → dist/actions}/patch.d.ts +0 -0
  1270. /package/{actions → dist/actions}/uninstall.d.ts +0 -0
  1271. /package/{actions → dist/actions}/uninstall.js +0 -0
  1272. /package/{actions → dist/actions}/uninstall.js.map +0 -0
  1273. /package/{actions → dist/actions}/unpatch.d.ts +0 -0
  1274. /package/{bin → dist/bin}/ts-patch.d.ts +0 -0
  1275. /package/{bin → dist/bin}/tspc.d.ts +0 -0
  1276. /package/{bin → dist/bin}/tspc.js +0 -0
  1277. /package/{bin → dist/bin}/tspc.js.map +0 -0
  1278. /package/{cli → dist/cli}/cli.d.ts +0 -0
  1279. /package/{cli → dist/cli}/commands.d.ts +0 -0
  1280. /package/{cli → dist/cli}/help-menu.d.ts +0 -0
  1281. /package/{cli → dist/cli}/help-menu.js +0 -0
  1282. /package/{cli → dist/cli}/help-menu.js.map +0 -0
  1283. /package/{cli → dist/cli}/options.d.ts +0 -0
  1284. /package/{cli → dist/cli}/options.js +0 -0
  1285. /package/{cli → dist/cli}/options.js.map +0 -0
  1286. /package/{compiler → dist/compiler}/package.json +0 -0
  1287. /package/{compiler → dist/compiler}/tsc.js +0 -0
  1288. /package/{compiler → dist/compiler}/tsserver.js +0 -0
  1289. /package/{compiler → dist/compiler}/tsserverlibrary.js +0 -0
  1290. /package/{compiler → dist/compiler}/typescript.js +0 -0
  1291. /package/{config.d.ts → dist/config.d.ts} +0 -0
  1292. /package/{index.d.ts → dist/index.d.ts} +0 -0
  1293. /package/{index.js → dist/index.js} +0 -0
  1294. /package/{index.js.map → dist/index.js.map} +0 -0
  1295. /package/{module → dist/module}/get-live-module.d.ts +0 -0
  1296. /package/{module → dist/module}/get-live-module.js +0 -0
  1297. /package/{module → dist/module}/get-live-module.js.map +0 -0
  1298. /package/{module → dist/module}/index.d.ts +0 -0
  1299. /package/{module → dist/module}/index.js +0 -0
  1300. /package/{module → dist/module}/index.js.map +0 -0
  1301. /package/{module → dist/module}/module-source.d.ts +0 -0
  1302. /package/{module → dist/module}/module-source.js +0 -0
  1303. /package/{module → dist/module}/module-source.js.map +0 -0
  1304. /package/{module → dist/module}/source-section.d.ts +0 -0
  1305. /package/{module → dist/module}/source-section.js +0 -0
  1306. /package/{module → dist/module}/source-section.js.map +0 -0
  1307. /package/{options.d.ts → dist/options.d.ts} +0 -0
  1308. /package/{options.js → dist/options.js} +0 -0
  1309. /package/{options.js.map → dist/options.js.map} +0 -0
  1310. /package/{patch → dist/patch}/get-patched-source.d.ts +0 -0
  1311. /package/{patch → dist/patch}/patch-detail.d.ts +0 -0
  1312. /package/{patch → dist/patch}/patch-detail.js +0 -0
  1313. /package/{patch → dist/patch}/patch-detail.js.map +0 -0
  1314. /package/{patch → dist/patch}/patch-module.d.ts +0 -0
  1315. /package/{patch → dist/patch}/patch-module.js +0 -0
  1316. /package/{patch → dist/patch}/patch-module.js.map +0 -0
  1317. /package/{patch → dist/patch}/transformers/add-original-create-program.d.ts +0 -0
  1318. /package/{patch → dist/patch}/transformers/add-original-create-program.js +0 -0
  1319. /package/{patch → dist/patch}/transformers/add-original-create-program.js.map +0 -0
  1320. /package/{patch → dist/patch}/transformers/fix-ts-early-return.d.ts +0 -0
  1321. /package/{patch → dist/patch}/transformers/hook-tsc-exec.d.ts +0 -0
  1322. /package/{patch → dist/patch}/transformers/hook-tsc-exec.js +0 -0
  1323. /package/{patch → dist/patch}/transformers/hook-tsc-exec.js.map +0 -0
  1324. /package/{patch → dist/patch}/transformers/index.d.ts +0 -0
  1325. /package/{patch → dist/patch}/transformers/index.js +0 -0
  1326. /package/{patch → dist/patch}/transformers/index.js.map +0 -0
  1327. /package/{patch → dist/patch}/transformers/merge-statements.d.ts +0 -0
  1328. /package/{patch → dist/patch}/transformers/merge-statements.js +0 -0
  1329. /package/{patch → dist/patch}/transformers/merge-statements.js.map +0 -0
  1330. /package/{patch → dist/patch}/transformers/patch-create-program.d.ts +0 -0
  1331. /package/{patch → dist/patch}/transformers/patch-create-program.js +0 -0
  1332. /package/{patch → dist/patch}/transformers/patch-create-program.js.map +0 -0
  1333. /package/{patch → dist/patch}/transformers/patch-emitter.d.ts +0 -0
  1334. /package/{patch → dist/patch}/transformers/patch-emitter.js +0 -0
  1335. /package/{patch → dist/patch}/transformers/patch-emitter.js.map +0 -0
  1336. /package/{plugin-types.d.ts → dist/plugin-types.d.ts} +0 -0
  1337. /package/{plugin-types.js → dist/plugin-types.js} +0 -0
  1338. /package/{plugin-types.js.map → dist/plugin-types.js.map} +0 -0
  1339. /package/{resources → dist/resources}/module-patch.d.ts +0 -0
  1340. /package/{slice → dist/slice}/module-slice.d.ts +0 -0
  1341. /package/{slice → dist/slice}/module-slice.js +0 -0
  1342. /package/{slice → dist/slice}/module-slice.js.map +0 -0
  1343. /package/{slice → dist/slice}/ts54.d.ts +0 -0
  1344. /package/{slice → dist/slice}/ts54.js +0 -0
  1345. /package/{slice → dist/slice}/ts54.js.map +0 -0
  1346. /package/{slice → dist/slice}/ts55.d.ts +0 -0
  1347. /package/{slice → dist/slice}/ts55.js +0 -0
  1348. /package/{slice → dist/slice}/ts55.js.map +0 -0
  1349. /package/{slice → dist/slice}/ts552.d.ts +0 -0
  1350. /package/{slice → dist/slice}/ts552.js +0 -0
  1351. /package/{slice → dist/slice}/ts552.js.map +0 -0
  1352. /package/{system → dist/system}/cache.d.ts +0 -0
  1353. /package/{system → dist/system}/errors.d.ts +0 -0
  1354. /package/{system → dist/system}/errors.js +0 -0
  1355. /package/{system → dist/system}/errors.js.map +0 -0
  1356. /package/{system → dist/system}/index.d.ts +0 -0
  1357. /package/{system → dist/system}/index.js +0 -0
  1358. /package/{system → dist/system}/index.js.map +0 -0
  1359. /package/{system → dist/system}/logger.d.ts +0 -0
  1360. /package/{system → dist/system}/logger.js +0 -0
  1361. /package/{system → dist/system}/logger.js.map +0 -0
  1362. /package/{system → dist/system}/types.d.ts +0 -0
  1363. /package/{system → dist/system}/types.js +0 -0
  1364. /package/{system → dist/system}/types.js.map +0 -0
  1365. /package/{ts-package.d.ts → dist/ts-package.d.ts} +0 -0
  1366. /package/{ts-package.js → dist/ts-package.js} +0 -0
  1367. /package/{ts-package.js.map → dist/ts-package.js.map} +0 -0
  1368. /package/{utils → dist/utils}/file-utils.d.ts +0 -0
  1369. /package/{utils → dist/utils}/find-cache-dir.d.ts +0 -0
  1370. /package/{utils → dist/utils}/find-cache-dir.js +0 -0
  1371. /package/{utils → dist/utils}/find-cache-dir.js.map +0 -0
  1372. /package/{utils → dist/utils}/general.d.ts +0 -0
  1373. /package/{utils → dist/utils}/general.js +0 -0
  1374. /package/{utils → dist/utils}/general.js.map +0 -0
  1375. /package/{utils → dist/utils}/index.d.ts +0 -0
  1376. /package/{utils → dist/utils}/index.js +0 -0
  1377. /package/{utils → dist/utils}/index.js.map +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";;;;AAEA,+BAA4E;AAC5E,+BAA+B;AAC/B,iCAAkC;AAClC,IAAI,GAAyB,CAAC;AAC9B,iCAA4E;AAC5E,iCAWgB;AAChB,mCAQiB;AAEjB,qGAAuF;AACvF,qDAAkD;AAClD,mDAAoD;AAEpD;;;;;;;;GAQG;AACH,SAAgB,IAAI,CAClB,OAAiB,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EACtC,iBAAsC,EAAE;IAExC,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAC7C,MAAM,KAAK,GAAmB;QAC5B,qBAAqB,EAAE,KAAK;QAC5B,gBAAgB,EAAE,KAAK;QACvB,KAAK,EAAE,IAAI;QACX,YAAY,EAAE,UAAU;QACxB,eAAe,EAAE,IAAI;KACtB,CAAC;IACF,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC;AAC1B,CAAC;AAbD,oBAaC;AAqBD,gBAAgB;AAChB,SAAgB,SAAS,CAAC,KAAqB;IAC7C,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE;QACvB,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QACnC,IAAI,KAAK,CAAC,qBAAqB,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE;YAC1D,kEAAkE;YAClE,uDAAuD;YACvD,OAAO,IAAA,yBAAW,EAAC,KAAK,CAAC,CAAC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AE,CAAC;SACtD;KACF,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,SAAS,oBAAoB,CAC3B,WAAwB,EACxB,MAAc,EACd,IAAY,EACZ,SAAkB,EAClB,kBAAoC;IAEpC,IAAI,MAAW,CAAC;IAChB,IAAA,mBAAY,EAAC,MAAM,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAEjD,IAAI;QACF,MAAM,GAAG,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;KACrC;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,KAAK,YAAY,eAAO,EAAE;YAC5B,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SACjB;QAED,MAAM,KAAK,CAAC;KACb;IAED,IAAI,SAAS,EAAE;QACb,OAAO,CAAC,GAAG,CACT,OAAO,MAAM,KAAK,QAAQ;YACxB,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,IAAA,cAAO,EAAC,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CACtD,CAAC;KACH;AACH,CAAC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE;IAC3B,IAAI,EAAE,CAAC;CACR","sourcesContent":["#!/usr/bin/env node\n\nimport { join, resolve, dirname, parse as parsePath, relative } from 'path';\nimport { inspect } from 'util';\nimport Module = require('module');\nlet arg: typeof import('arg');\nimport { parse, createRequire, hasOwnProperty, versionGteLt } from './util';\nimport {\n EVAL_FILENAME,\n EvalState,\n createRepl,\n ReplService,\n setupContext,\n STDIN_FILENAME,\n EvalAwarePartialHost,\n EVAL_NAME,\n STDIN_NAME,\n REPL_FILENAME,\n} from './repl';\nimport {\n VERSION,\n TSError,\n register,\n createEsmHooks,\n createFromPreloadedConfig,\n DEFAULTS,\n ExperimentalSpecifierResolution,\n} from './index';\nimport type { TSInternal } from './ts-compiler-types';\nimport { addBuiltinLibsToObject } from '../dist-raw/node-internal-modules-cjs-helpers';\nimport { callInChild } from './child/spawn-child';\nimport { findAndReadConfig } from './configuration';\n\n/**\n * Main `bin` functionality.\n *\n * This file is split into a chain of functions (phases), each one adding to a shared state object.\n * This is done so that the next function can either be invoked in-process or, if necessary, invoked in a child process.\n *\n * The functions are intentionally given uncreative names and left in the same order as the original code, to make a\n * smaller git diff.\n */\nexport function main(\n argv: string[] = process.argv.slice(2),\n entrypointArgs: Record<string, any> = {}\n) {\n const args = parseArgv(argv, entrypointArgs);\n const state: BootstrapState = {\n shouldUseChildProcess: false,\n isInChildProcess: false,\n isCli: true,\n tsNodeScript: __filename,\n parseArgvResult: args,\n };\n return bootstrap(state);\n}\n\n/**\n * @internal\n * Describes state of CLI bootstrapping.\n * Can be marshalled when necessary to resume bootstrapping in a child process.\n */\nexport interface BootstrapState {\n isInChildProcess: boolean;\n shouldUseChildProcess: boolean;\n /**\n * True if bootstrapping the ts-node CLI process or the direct child necessitated by `--esm`.\n * false if bootstrapping a subsequently `fork()`ed child.\n */\n isCli: boolean;\n tsNodeScript: string;\n parseArgvResult: ReturnType<typeof parseArgv>;\n phase2Result?: ReturnType<typeof phase2>;\n phase3Result?: ReturnType<typeof phase3>;\n}\n\n/** @internal */\nexport function bootstrap(state: BootstrapState) {\n if (!state.phase2Result) {\n state.phase2Result = phase2(state);\n if (state.shouldUseChildProcess && !state.isInChildProcess) {\n // Note: When transitioning into the child-process after `phase2`,\n // the updated working directory needs to be preserved.\n return callInChild(state);\n }\n }\n if (!state.phase3Result) {\n state.phase3Result = phase3(state);\n if (state.shouldUseChildProcess && !state.isInChildProcess) {\n // Note: When transitioning into the child-process after `phase2`,\n // the updated working directory needs to be preserved.\n return callInChild(state);\n }\n }\n return phase4(state);\n}\n\nfunction parseArgv(argv: string[], entrypointArgs: Record<string, any>) {\n arg ??= require('arg');\n // HACK: technically, this function is not marked @internal so it's possible\n // that libraries in the wild are doing `require('ts-node/dist/bin').main({'--transpile-only': true})`\n // We can mark this function @internal in next major release.\n // For now, rewrite args to avoid a breaking change.\n entrypointArgs = { ...entrypointArgs };\n for (const key of Object.keys(entrypointArgs)) {\n entrypointArgs[\n key.replace(\n /([a-z])-([a-z])/g,\n (_$0, $1, $2: string) => `${$1}${$2.toUpperCase()}`\n )\n ] = entrypointArgs[key];\n }\n\n const args = {\n ...entrypointArgs,\n ...arg(\n {\n // Node.js-like options.\n '--eval': String,\n '--interactive': Boolean,\n '--print': Boolean,\n '--require': [String],\n\n // CLI options.\n '--help': Boolean,\n '--cwdMode': Boolean,\n '--scriptMode': Boolean,\n '--version': arg.COUNT,\n '--showConfig': Boolean,\n '--esm': Boolean,\n\n // Project options.\n '--cwd': String,\n '--files': Boolean,\n '--compiler': String,\n '--compilerOptions': parse,\n '--project': String,\n '--ignoreDiagnostics': [String],\n '--ignore': [String],\n '--transpileOnly': Boolean,\n '--transpiler': String,\n '--swc': Boolean,\n '--typeCheck': Boolean,\n '--compilerHost': Boolean,\n '--pretty': Boolean,\n '--skipProject': Boolean,\n '--skipIgnore': Boolean,\n '--preferTsExts': Boolean,\n '--logError': Boolean,\n '--emit': Boolean,\n '--scope': Boolean,\n '--scopeDir': String,\n '--noExperimentalReplAwait': Boolean,\n '--experimentalSpecifierResolution': String,\n\n // Aliases.\n '-e': '--eval',\n '-i': '--interactive',\n '-p': '--print',\n '-r': '--require',\n '-h': '--help',\n '-s': '--script-mode',\n '-v': '--version',\n '-T': '--transpileOnly',\n '-H': '--compilerHost',\n '-I': '--ignore',\n '-P': '--project',\n '-C': '--compiler',\n '-D': '--ignoreDiagnostics',\n '-O': '--compilerOptions',\n '--dir': '--cwd',\n\n // Support both tsc-style camelCase and node-style hypen-case for *all* flags\n '--cwd-mode': '--cwdMode',\n '--script-mode': '--scriptMode',\n '--show-config': '--showConfig',\n '--compiler-options': '--compilerOptions',\n '--ignore-diagnostics': '--ignoreDiagnostics',\n '--transpile-only': '--transpileOnly',\n '--type-check': '--typeCheck',\n '--compiler-host': '--compilerHost',\n '--skip-project': '--skipProject',\n '--skip-ignore': '--skipIgnore',\n '--prefer-ts-exts': '--preferTsExts',\n '--log-error': '--logError',\n '--scope-dir': '--scopeDir',\n '--no-experimental-repl-await': '--noExperimentalReplAwait',\n '--experimental-specifier-resolution':\n '--experimentalSpecifierResolution',\n },\n {\n argv,\n stopAtPositional: true,\n }\n ),\n };\n\n // Only setting defaults for CLI-specific flags\n // Anything passed to `register()` can be `undefined`; `create()` will apply\n // defaults.\n const {\n '--cwd': cwdArg,\n '--help': help = false,\n '--scriptMode': scriptMode,\n '--cwdMode': cwdMode,\n '--version': version = 0,\n '--showConfig': showConfig,\n '--require': argsRequire = [],\n '--eval': code = undefined,\n '--print': print = false,\n '--interactive': interactive = false,\n '--files': files,\n '--compiler': compiler,\n '--compilerOptions': compilerOptions,\n '--project': project,\n '--ignoreDiagnostics': ignoreDiagnostics,\n '--ignore': ignore,\n '--transpileOnly': transpileOnly,\n '--typeCheck': typeCheck,\n '--transpiler': transpiler,\n '--swc': swc,\n '--compilerHost': compilerHost,\n '--pretty': pretty,\n '--skipProject': skipProject,\n '--skipIgnore': skipIgnore,\n '--preferTsExts': preferTsExts,\n '--logError': logError,\n '--emit': emit,\n '--scope': scope = undefined,\n '--scopeDir': scopeDir = undefined,\n '--noExperimentalReplAwait': noExperimentalReplAwait,\n '--experimentalSpecifierResolution': experimentalSpecifierResolution,\n '--esm': esm,\n _: restArgs,\n } = args;\n return {\n // Note: argv and restArgs may be overwritten by child process\n argv: process.argv,\n restArgs,\n\n cwdArg,\n help,\n scriptMode,\n cwdMode,\n version,\n showConfig,\n argsRequire,\n code,\n print,\n interactive,\n files,\n compiler,\n compilerOptions,\n project,\n ignoreDiagnostics,\n ignore,\n transpileOnly,\n typeCheck,\n transpiler,\n swc,\n compilerHost,\n pretty,\n skipProject,\n skipIgnore,\n preferTsExts,\n logError,\n emit,\n scope,\n scopeDir,\n noExperimentalReplAwait,\n experimentalSpecifierResolution,\n esm,\n };\n}\n\nfunction phase2(payload: BootstrapState) {\n const { help, version, cwdArg, esm } = payload.parseArgvResult;\n\n if (help) {\n console.log(`\nUsage: ts-node [options] [ -e script | script.ts ] [arguments]\n\nOptions:\n\n -e, --eval [code] Evaluate code\n -p, --print Print result of \\`--eval\\`\n -r, --require [path] Require a node module before execution\n -i, --interactive Opens the REPL even if stdin does not appear to be a terminal\n\n --esm Bootstrap with the ESM loader, enabling full ESM support\n --swc Use the faster swc transpiler\n\n -h, --help Print CLI usage\n -v, --version Print module version information. -vvv to print additional information\n --showConfig Print resolved configuration and exit\n\n -T, --transpileOnly Use TypeScript's faster \\`transpileModule\\` or a third-party transpiler\n -H, --compilerHost Use TypeScript's compiler host API\n -I, --ignore [pattern] Override the path patterns to skip compilation\n -P, --project [path] Path to TypeScript JSON project file\n -C, --compiler [name] Specify a custom TypeScript compiler\n --transpiler [name] Specify a third-party, non-typechecking transpiler\n -D, --ignoreDiagnostics [code] Ignore TypeScript warnings by diagnostic code\n -O, --compilerOptions [opts] JSON object to merge with compiler options\n\n --cwd Behave as if invoked within this working directory.\n --files Load \\`files\\`, \\`include\\` and \\`exclude\\` from \\`tsconfig.json\\` on startup\n --pretty Use pretty diagnostic formatter (usually enabled by default)\n --cwdMode Use current directory instead of <script.ts> for config resolution\n --skipProject Skip reading \\`tsconfig.json\\`\n --skipIgnore Skip \\`--ignore\\` checks\n --emit Emit output files into \\`.ts-node\\` directory\n --scope Scope compiler to files within \\`scopeDir\\`. Anything outside this directory is ignored.\n --scopeDir Directory for \\`--scope\\`\n --preferTsExts Prefer importing TypeScript files over JavaScript files\n --logError Logs TypeScript errors to stderr instead of throwing exceptions\n --noExperimentalReplAwait Disable top-level await in REPL. Equivalent to node's --no-experimental-repl-await\n --experimentalSpecifierResolution [node|explicit]\n Equivalent to node's --experimental-specifier-resolution\n`);\n\n process.exit(0);\n }\n\n // Output project information.\n if (version === 1) {\n console.log(`v${VERSION}`);\n process.exit(0);\n }\n\n const cwd = cwdArg ? resolve(cwdArg) : process.cwd();\n\n // If ESM is explicitly enabled through the flag, stage3 should be run in a child process\n // with the ESM loaders configured.\n if (esm) payload.shouldUseChildProcess = true;\n\n return {\n cwd,\n };\n}\n\nfunction phase3(payload: BootstrapState) {\n const {\n emit,\n files,\n pretty,\n transpileOnly,\n transpiler,\n noExperimentalReplAwait,\n typeCheck,\n swc,\n compilerHost,\n ignore,\n preferTsExts,\n logError,\n scriptMode,\n cwdMode,\n project,\n skipProject,\n skipIgnore,\n compiler,\n ignoreDiagnostics,\n compilerOptions,\n argsRequire,\n scope,\n scopeDir,\n esm,\n experimentalSpecifierResolution,\n } = payload.parseArgvResult;\n const { cwd } = payload.phase2Result!;\n\n // NOTE: When we transition to a child process for ESM, the entry-point script determined\n // here might not be the one used later in `phase4`. This can happen when we execute the\n // original entry-point but then the process forks itself using e.g. `child_process.fork`.\n // We will always use the original TS project in forked processes anyway, so it is\n // expected and acceptable to retrieve the entry-point information here in `phase2`.\n // See: https://github.com/TypeStrong/ts-node/issues/1812.\n const { entryPointPath } = getEntryPointInfo(payload);\n\n const preloadedConfig = findAndReadConfig({\n cwd,\n emit,\n files,\n pretty,\n transpileOnly: transpileOnly ?? transpiler != null ? true : undefined,\n experimentalReplAwait: noExperimentalReplAwait ? false : undefined,\n typeCheck,\n transpiler,\n swc,\n compilerHost,\n ignore,\n logError,\n projectSearchDir: getProjectSearchDir(\n cwd,\n scriptMode,\n cwdMode,\n entryPointPath\n ),\n project,\n skipProject,\n skipIgnore,\n compiler,\n ignoreDiagnostics,\n compilerOptions,\n require: argsRequire,\n scope,\n scopeDir,\n preferTsExts,\n esm,\n experimentalSpecifierResolution:\n experimentalSpecifierResolution as ExperimentalSpecifierResolution,\n });\n\n // If ESM is enabled through the parsed tsconfig, stage4 should be run in a child\n // process with the ESM loaders configured.\n if (preloadedConfig.options.esm) payload.shouldUseChildProcess = true;\n\n return { preloadedConfig };\n}\n\n/**\n * Determines the entry-point information from the argv and phase2 result. This\n * method will be invoked in two places:\n *\n * 1. In phase 3 to be able to find a project from the potential entry-point script.\n * 2. In phase 4 to determine the actual entry-point script.\n *\n * Note that we need to explicitly re-resolve the entry-point information in the final\n * stage because the previous stage information could be modified when the bootstrap\n * invocation transitioned into a child process for ESM.\n *\n * Stages before (phase 4) can and will be cached by the child process through the Brotli\n * configuration and entry-point information is only reliable in the final phase. More\n * details can be found in here: https://github.com/TypeStrong/ts-node/issues/1812.\n */\nfunction getEntryPointInfo(state: BootstrapState) {\n const { code, interactive, restArgs } = state.parseArgvResult!;\n const { cwd } = state.phase2Result!;\n const { isCli } = state;\n\n // Figure out which we are executing: piped stdin, --eval, REPL, and/or entrypoint\n // This is complicated because node's behavior is complicated\n // `node -e code -i ./script.js` ignores -e\n const executeEval = code != null && !(interactive && restArgs.length);\n const executeEntrypoint = !executeEval && restArgs.length > 0;\n const executeRepl =\n !executeEntrypoint &&\n (interactive || (process.stdin.isTTY && !executeEval));\n const executeStdin = !executeEval && !executeRepl && !executeEntrypoint;\n\n /**\n * Unresolved. May point to a symlink, not realpath. May be missing file extension\n * NOTE: resolution relative to cwd option (not `process.cwd()`) is legacy backwards-compat; should be changed in next major: https://github.com/TypeStrong/ts-node/issues/1834\n */\n const entryPointPath = executeEntrypoint\n ? isCli\n ? resolve(cwd, restArgs[0])\n : resolve(restArgs[0])\n : undefined;\n\n return {\n executeEval,\n executeEntrypoint,\n executeRepl,\n executeStdin,\n entryPointPath,\n };\n}\n\nfunction phase4(payload: BootstrapState) {\n const { isInChildProcess, tsNodeScript } = payload;\n const { version, showConfig, restArgs, code, print, argv } =\n payload.parseArgvResult;\n const { cwd } = payload.phase2Result!;\n const { preloadedConfig } = payload.phase3Result!;\n\n const {\n entryPointPath,\n executeEntrypoint,\n executeEval,\n executeRepl,\n executeStdin,\n } = getEntryPointInfo(payload);\n\n /**\n * <repl>, [stdin], and [eval] are all essentially virtual files that do not exist on disc and are backed by a REPL\n * service to handle eval-ing of code.\n */\n interface VirtualFileState {\n state: EvalState;\n repl: ReplService;\n module?: Module;\n }\n let evalStuff: VirtualFileState | undefined;\n let replStuff: VirtualFileState | undefined;\n let stdinStuff: VirtualFileState | undefined;\n let evalAwarePartialHost: EvalAwarePartialHost | undefined = undefined;\n if (executeEval) {\n const state = new EvalState(join(cwd, EVAL_FILENAME));\n evalStuff = {\n state,\n repl: createRepl({\n state,\n composeWithEvalAwarePartialHost: evalAwarePartialHost,\n ignoreDiagnosticsThatAreAnnoyingInInteractiveRepl: false,\n }),\n };\n ({ evalAwarePartialHost } = evalStuff.repl);\n // Create a local module instance based on `cwd`.\n const module = (evalStuff.module = new Module(EVAL_NAME));\n module.filename = evalStuff.state.path;\n module.paths = (Module as any)._nodeModulePaths(cwd);\n }\n if (executeStdin) {\n const state = new EvalState(join(cwd, STDIN_FILENAME));\n stdinStuff = {\n state,\n repl: createRepl({\n state,\n composeWithEvalAwarePartialHost: evalAwarePartialHost,\n ignoreDiagnosticsThatAreAnnoyingInInteractiveRepl: false,\n }),\n };\n ({ evalAwarePartialHost } = stdinStuff.repl);\n // Create a local module instance based on `cwd`.\n const module = (stdinStuff.module = new Module(STDIN_NAME));\n module.filename = stdinStuff.state.path;\n module.paths = (Module as any)._nodeModulePaths(cwd);\n }\n if (executeRepl) {\n const state = new EvalState(join(cwd, REPL_FILENAME));\n replStuff = {\n state,\n repl: createRepl({\n state,\n composeWithEvalAwarePartialHost: evalAwarePartialHost,\n }),\n };\n ({ evalAwarePartialHost } = replStuff.repl);\n }\n\n // Register the TypeScript compiler instance.\n const service = createFromPreloadedConfig({\n // Since this struct may have been marshalled across thread or process boundaries, we must restore\n // un-marshall-able values.\n ...preloadedConfig,\n options: {\n ...preloadedConfig.options,\n readFile: evalAwarePartialHost?.readFile ?? undefined,\n fileExists: evalAwarePartialHost?.fileExists ?? undefined,\n tsTrace: DEFAULTS.tsTrace,\n },\n });\n register(service);\n if (isInChildProcess)\n (\n require('./child/child-loader') as typeof import('./child/child-loader')\n ).lateBindHooks(createEsmHooks(service));\n\n // Bind REPL service to ts-node compiler service (chicken-and-egg problem)\n replStuff?.repl.setService(service);\n evalStuff?.repl.setService(service);\n stdinStuff?.repl.setService(service);\n\n // Output project information.\n if (version === 2) {\n console.log(`ts-node v${VERSION}`);\n console.log(`node ${process.version}`);\n console.log(`compiler v${service.ts.version}`);\n process.exit(0);\n }\n if (version >= 3) {\n console.log(`ts-node v${VERSION} ${dirname(__dirname)}`);\n console.log(`node ${process.version}`);\n console.log(\n `compiler v${service.ts.version} ${service.compilerPath ?? ''}`\n );\n process.exit(0);\n }\n\n if (showConfig) {\n const ts = service.ts as any as TSInternal;\n if (typeof ts.convertToTSConfig !== 'function') {\n console.error(\n 'Error: --showConfig requires a typescript versions >=3.2 that support --showConfig'\n );\n process.exit(1);\n }\n let moduleTypes = undefined;\n if (service.options.moduleTypes) {\n // Assumption: this codepath requires CLI invocation, so moduleTypes must have come from a tsconfig, not API.\n const showRelativeTo = dirname(service.configFilePath!);\n moduleTypes = {} as Record<string, string>;\n for (const [key, value] of Object.entries(service.options.moduleTypes)) {\n moduleTypes[\n relative(\n showRelativeTo,\n resolve(service.options.optionBasePaths?.moduleTypes!, key)\n )\n ] = value;\n }\n }\n const json = {\n ['ts-node']: {\n ...service.options,\n require: service.options.require?.length\n ? service.options.require\n : undefined,\n moduleTypes,\n optionBasePaths: undefined,\n compilerOptions: undefined,\n project: service.configFilePath ?? service.options.project,\n },\n ...ts.convertToTSConfig(\n service.config,\n service.configFilePath ?? join(cwd, 'ts-node-implicit-tsconfig.json'),\n service.ts.sys\n ),\n };\n console.log(\n // Assumes that all configuration options which can possibly be specified via the CLI are JSON-compatible.\n // If, in the future, we must log functions, for example readFile and fileExists, then we can implement a JSON\n // replacer function.\n JSON.stringify(json, null, 2)\n );\n process.exit(0);\n }\n\n // Prepend `ts-node` arguments to CLI for child processes.\n process.execArgv.push(\n tsNodeScript,\n ...argv.slice(2, argv.length - restArgs.length)\n );\n\n // TODO this comes from BootstrapState\n process.argv = [process.argv[1]]\n .concat(executeEntrypoint ? ([entryPointPath] as string[]) : [])\n .concat(restArgs.slice(executeEntrypoint ? 1 : 0));\n\n // Execute the main contents (either eval, script or piped).\n if (executeEntrypoint) {\n if (\n payload.isInChildProcess &&\n versionGteLt(process.versions.node, '18.6.0')\n ) {\n // HACK workaround node regression\n require('../dist-raw/runmain-hack.js').run(entryPointPath);\n } else {\n Module.runMain();\n }\n } else {\n // Note: eval and repl may both run, but never with stdin.\n // If stdin runs, eval and repl will not.\n if (executeEval) {\n addBuiltinLibsToObject(global);\n evalAndExitOnTsError(\n evalStuff!.repl,\n evalStuff!.module!,\n code!,\n print,\n 'eval'\n );\n }\n\n if (executeRepl) {\n replStuff!.repl.start();\n }\n\n if (executeStdin) {\n let buffer = code || '';\n process.stdin.on('data', (chunk: Buffer) => (buffer += chunk));\n process.stdin.on('end', () => {\n evalAndExitOnTsError(\n stdinStuff!.repl,\n stdinStuff!.module!,\n buffer,\n // `echo 123 | node -p` still prints 123\n print,\n 'stdin'\n );\n });\n }\n }\n}\n\n/**\n * Get project search path from args.\n */\nfunction getProjectSearchDir(\n cwd?: string,\n scriptMode?: boolean,\n cwdMode?: boolean,\n scriptPath?: string\n) {\n // Validate `--script-mode` / `--cwd-mode` / `--cwd` usage is correct.\n if (scriptMode && cwdMode) {\n throw new TypeError('--cwd-mode cannot be combined with --script-mode');\n }\n if (scriptMode && !scriptPath) {\n throw new TypeError(\n '--script-mode must be used with a script name, e.g. `ts-node --script-mode <script.ts>`'\n );\n }\n const doScriptMode =\n scriptMode === true ? true : cwdMode === true ? false : !!scriptPath;\n if (doScriptMode) {\n // Use node's own resolution behavior to ensure we follow symlinks.\n // scriptPath may omit file extension or point to a directory with or without package.json.\n // This happens before we are registered, so we tell node's resolver to consider ts, tsx, and jsx files.\n // In extremely rare cases, is is technically possible to resolve the wrong directory,\n // because we do not yet know preferTsExts, jsx, nor allowJs.\n // See also, justification why this will not happen in real-world situations:\n // https://github.com/TypeStrong/ts-node/pull/1009#issuecomment-613017081\n const exts = ['.js', '.jsx', '.ts', '.tsx'];\n const extsTemporarilyInstalled: string[] = [];\n for (const ext of exts) {\n if (!hasOwnProperty(require.extensions, ext)) {\n extsTemporarilyInstalled.push(ext);\n require.extensions[ext] = function () {};\n }\n }\n try {\n return dirname(requireResolveNonCached(scriptPath!));\n } finally {\n for (const ext of extsTemporarilyInstalled) {\n delete require.extensions[ext];\n }\n }\n }\n\n return cwd;\n}\n\nconst guaranteedNonexistentDirectoryPrefix = resolve(__dirname, 'doesnotexist');\nlet guaranteedNonexistentDirectorySuffix = 0;\n\n/**\n * require.resolve an absolute path, tricking node into *not* caching the results.\n * Necessary so that we do not pollute require.resolve cache prior to installing require.extensions\n *\n * Is a terrible hack, because node does not expose the necessary cache invalidation APIs\n * https://stackoverflow.com/questions/59865584/how-to-invalidate-cached-require-resolve-results\n */\nfunction requireResolveNonCached(absoluteModuleSpecifier: string) {\n // node <= 12.1.x fallback: The trick below triggers a node bug on old versions.\n // On these old versions, pollute the require cache instead. This is a deliberate\n // ts-node limitation that will *rarely* manifest, and will not matter once node 12\n // is end-of-life'd on 2022-04-30\n const isSupportedNodeVersion = versionGteLt(process.versions.node, '12.2.0');\n if (!isSupportedNodeVersion) return require.resolve(absoluteModuleSpecifier);\n\n const { dir, base } = parsePath(absoluteModuleSpecifier);\n const relativeModuleSpecifier = `./${base}`;\n\n const req = createRequire(\n join(dir, 'imaginaryUncacheableRequireResolveScript')\n );\n return req.resolve(relativeModuleSpecifier, {\n paths: [\n `${guaranteedNonexistentDirectoryPrefix}${guaranteedNonexistentDirectorySuffix++}`,\n ...(req.resolve.paths(relativeModuleSpecifier) || []),\n ],\n });\n}\n\n/**\n * Evaluate an [eval] or [stdin] script\n */\nfunction evalAndExitOnTsError(\n replService: ReplService,\n module: Module,\n code: string,\n isPrinted: boolean,\n filenameAndDirname: 'eval' | 'stdin'\n) {\n let result: any;\n setupContext(global, module, filenameAndDirname);\n\n try {\n result = replService.evalCode(code);\n } catch (error) {\n if (error instanceof TSError) {\n console.error(error);\n process.exit(1);\n }\n\n throw error;\n }\n\n if (isPrinted) {\n console.log(\n typeof result === 'string'\n ? result\n : inspect(result, { colors: process.stdout.isTTY })\n );\n }\n}\n\nif (require.main === module) {\n main();\n}\n"]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.decompress = exports.compress = exports.argPrefix = void 0;
4
+ const zlib_1 = require("zlib");
5
+ /** @internal */
6
+ exports.argPrefix = '--brotli-base64-config=';
7
+ /** @internal */
8
+ function compress(object) {
9
+ return (0, zlib_1.brotliCompressSync)(Buffer.from(JSON.stringify(object), 'utf8'), {
10
+ [zlib_1.constants.BROTLI_PARAM_QUALITY]: zlib_1.constants.BROTLI_MIN_QUALITY,
11
+ }).toString('base64');
12
+ }
13
+ exports.compress = compress;
14
+ /** @internal */
15
+ function decompress(str) {
16
+ return JSON.parse((0, zlib_1.brotliDecompressSync)(Buffer.from(str, 'base64')).toString());
17
+ }
18
+ exports.decompress = decompress;
19
+ //# sourceMappingURL=argv-payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"argv-payload.js","sourceRoot":"","sources":["../../src/child/argv-payload.ts"],"names":[],"mappings":";;;AAAA,+BAA2E;AAE3E,gBAAgB;AACH,QAAA,SAAS,GAAG,yBAAyB,CAAC;AAEnD,gBAAgB;AAChB,SAAgB,QAAQ,CAAC,MAAW;IAClC,OAAO,IAAA,yBAAkB,EAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,EAAE;QACrE,CAAC,gBAAS,CAAC,oBAAoB,CAAC,EAAE,gBAAS,CAAC,kBAAkB;KAC/D,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAJD,4BAIC;AAED,gBAAgB;AAChB,SAAgB,UAAU,CAAC,GAAW;IACpC,OAAO,IAAI,CAAC,KAAK,CACf,IAAA,2BAAoB,EAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAC5D,CAAC;AACJ,CAAC;AAJD,gCAIC","sourcesContent":["import { brotliCompressSync, brotliDecompressSync, constants } from 'zlib';\n\n/** @internal */\nexport const argPrefix = '--brotli-base64-config=';\n\n/** @internal */\nexport function compress(object: any) {\n return brotliCompressSync(Buffer.from(JSON.stringify(object), 'utf8'), {\n [constants.BROTLI_PARAM_QUALITY]: constants.BROTLI_MIN_QUALITY,\n }).toString('base64');\n}\n\n/** @internal */\nexport function decompress(str: string) {\n return JSON.parse(\n brotliDecompressSync(Buffer.from(str, 'base64')).toString()\n );\n}\n"]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const bin_1 = require("../bin");
4
+ const argv_payload_1 = require("./argv-payload");
5
+ const base64ConfigArg = process.argv[2];
6
+ if (!base64ConfigArg.startsWith(argv_payload_1.argPrefix))
7
+ throw new Error('unexpected argv');
8
+ const base64Payload = base64ConfigArg.slice(argv_payload_1.argPrefix.length);
9
+ const state = (0, argv_payload_1.decompress)(base64Payload);
10
+ state.isInChildProcess = true;
11
+ state.tsNodeScript = __filename;
12
+ state.parseArgvResult.argv = process.argv;
13
+ state.parseArgvResult.restArgs = process.argv.slice(3);
14
+ // Modify and re-compress the payload delivered to subsequent child processes.
15
+ // This logic may be refactored into bin.ts by https://github.com/TypeStrong/ts-node/issues/1831
16
+ if (state.isCli) {
17
+ const stateForChildren = {
18
+ ...state,
19
+ isCli: false,
20
+ };
21
+ state.parseArgvResult.argv[2] = `${argv_payload_1.argPrefix}${(0, argv_payload_1.compress)(stateForChildren)}`;
22
+ }
23
+ (0, bin_1.bootstrap)(state);
24
+ //# sourceMappingURL=child-entrypoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"child-entrypoint.js","sourceRoot":"","sources":["../../src/child/child-entrypoint.ts"],"names":[],"mappings":";;AAAA,gCAAmD;AACnD,iDAAiE;AAEjE,MAAM,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACxC,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,wBAAS,CAAC;IAAE,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAC/E,MAAM,aAAa,GAAG,eAAe,CAAC,KAAK,CAAC,wBAAS,CAAC,MAAM,CAAC,CAAC;AAC9D,MAAM,KAAK,GAAG,IAAA,yBAAU,EAAC,aAAa,CAAmB,CAAC;AAE1D,KAAK,CAAC,gBAAgB,GAAG,IAAI,CAAC;AAC9B,KAAK,CAAC,YAAY,GAAG,UAAU,CAAC;AAChC,KAAK,CAAC,eAAe,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAC1C,KAAK,CAAC,eAAe,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAEvD,8EAA8E;AAC9E,gGAAgG;AAChG,IAAI,KAAK,CAAC,KAAK,EAAE;IACf,MAAM,gBAAgB,GAAmB;QACvC,GAAG,KAAK;QACR,KAAK,EAAE,KAAK;KACb,CAAC;IACF,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,wBAAS,GAAG,IAAA,uBAAQ,EAAC,gBAAgB,CAAC,EAAE,CAAC;CAC7E;AAED,IAAA,eAAS,EAAC,KAAK,CAAC,CAAC","sourcesContent":["import { BootstrapState, bootstrap } from '../bin';\nimport { argPrefix, compress, decompress } from './argv-payload';\n\nconst base64ConfigArg = process.argv[2];\nif (!base64ConfigArg.startsWith(argPrefix)) throw new Error('unexpected argv');\nconst base64Payload = base64ConfigArg.slice(argPrefix.length);\nconst state = decompress(base64Payload) as BootstrapState;\n\nstate.isInChildProcess = true;\nstate.tsNodeScript = __filename;\nstate.parseArgvResult.argv = process.argv;\nstate.parseArgvResult.restArgs = process.argv.slice(3);\n\n// Modify and re-compress the payload delivered to subsequent child processes.\n// This logic may be refactored into bin.ts by https://github.com/TypeStrong/ts-node/issues/1831\nif (state.isCli) {\n const stateForChildren: BootstrapState = {\n ...state,\n isCli: false,\n };\n state.parseArgvResult.argv[2] = `${argPrefix}${compress(stateForChildren)}`;\n}\n\nbootstrap(state);\n"]}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.transformSource = exports.getFormat = exports.load = exports.resolve = exports.lateBindHooks = void 0;
5
+ const esm_1 = require("../esm");
6
+ let hooks;
7
+ /** @internal */
8
+ function lateBindHooks(_hooks) {
9
+ hooks = _hooks;
10
+ }
11
+ exports.lateBindHooks = lateBindHooks;
12
+ const proxy = {
13
+ resolve(...args) {
14
+ var _a;
15
+ return ((_a = hooks === null || hooks === void 0 ? void 0 : hooks.resolve) !== null && _a !== void 0 ? _a : args[2])(...args);
16
+ },
17
+ load(...args) {
18
+ var _a;
19
+ return ((_a = hooks === null || hooks === void 0 ? void 0 : hooks.load) !== null && _a !== void 0 ? _a : args[2])(...args);
20
+ },
21
+ getFormat(...args) {
22
+ var _a;
23
+ return ((_a = hooks === null || hooks === void 0 ? void 0 : hooks.getFormat) !== null && _a !== void 0 ? _a : args[2])(...args);
24
+ },
25
+ transformSource(...args) {
26
+ var _a;
27
+ return ((_a = hooks === null || hooks === void 0 ? void 0 : hooks.transformSource) !== null && _a !== void 0 ? _a : args[2])(...args);
28
+ },
29
+ };
30
+ /** @internal */
31
+ _a = (0, esm_1.filterHooksByAPIVersion)(proxy), exports.resolve = _a.resolve, exports.load = _a.load, exports.getFormat = _a.getFormat, exports.transformSource = _a.transformSource;
32
+ //# sourceMappingURL=child-loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"child-loader.js","sourceRoot":"","sources":["../../src/child/child-loader.ts"],"names":[],"mappings":";;;;AACA,gCAAiD;AAEjD,IAAI,KAAgD,CAAC;AAErD,gBAAgB;AAChB,SAAgB,aAAa,CAC3B,MAAiD;IAEjD,KAAK,GAAG,MAAmD,CAAC;AAC9D,CAAC;AAJD,sCAIC;AAED,MAAM,KAAK,GAA8C;IACvD,OAAO,CAAC,GAAG,IAAgD;;QACzD,OAAO,CAAC,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,mCAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC9C,CAAC;IACD,IAAI,CAAC,GAAG,IAA6C;;QACnD,OAAO,CAAC,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,mCAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC3C,CAAC;IACD,SAAS,CAAC,GAAG,IAAkD;;QAC7D,OAAO,CAAC,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,mCAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAChD,CAAC;IACD,eAAe,CAAC,GAAG,IAAwD;;QACzE,OAAO,CAAC,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,eAAe,mCAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACtD,CAAC;CACF,CAAC;AAEF,gBAAgB;AACH,KACX,IAAA,6BAAuB,EAAC,KAAK,CAA8C,EAD9D,eAAO,eAAE,YAAI,YAAE,iBAAS,iBAAE,uBAAe,sBACsB","sourcesContent":["import type { NodeLoaderHooksAPI1, NodeLoaderHooksAPI2 } from '..';\nimport { filterHooksByAPIVersion } from '../esm';\n\nlet hooks: NodeLoaderHooksAPI1 & NodeLoaderHooksAPI2;\n\n/** @internal */\nexport function lateBindHooks(\n _hooks: NodeLoaderHooksAPI1 | NodeLoaderHooksAPI2\n) {\n hooks = _hooks as NodeLoaderHooksAPI1 & NodeLoaderHooksAPI2;\n}\n\nconst proxy: NodeLoaderHooksAPI1 & NodeLoaderHooksAPI2 = {\n resolve(...args: Parameters<NodeLoaderHooksAPI1['resolve']>) {\n return (hooks?.resolve ?? args[2])(...args);\n },\n load(...args: Parameters<NodeLoaderHooksAPI2['load']>) {\n return (hooks?.load ?? args[2])(...args);\n },\n getFormat(...args: Parameters<NodeLoaderHooksAPI1['getFormat']>) {\n return (hooks?.getFormat ?? args[2])(...args);\n },\n transformSource(...args: Parameters<NodeLoaderHooksAPI1['transformSource']>) {\n return (hooks?.transformSource ?? args[2])(...args);\n },\n};\n\n/** @internal */\nexport const { resolve, load, getFormat, transformSource } =\n filterHooksByAPIVersion(proxy) as NodeLoaderHooksAPI1 & NodeLoaderHooksAPI2;\n"]}
@@ -0,0 +1,7 @@
1
+ interface EventEmitterInternals {
2
+ _events: Record<string, Function | Array<Function>>;
3
+ }
4
+ declare const _process: EventEmitterInternals;
5
+ declare let originalOnWarning: Function | undefined;
6
+ declare const messageMatch: RegExp;
7
+ declare function onWarning(this: any, warning: Error, ...rest: any[]): any;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ const _process = process;
3
+ // Not shown here: Additional logic to correctly interact with process's events, either using this direct manipulation, or via the API
4
+ let originalOnWarning;
5
+ if (Array.isArray(_process._events.warning)) {
6
+ originalOnWarning = _process._events.warning[0];
7
+ _process._events.warning[0] = onWarning;
8
+ }
9
+ else {
10
+ originalOnWarning = _process._events.warning;
11
+ _process._events.warning = onWarning;
12
+ }
13
+ const messageMatch = /(?:--(?:experimental-)?loader\b|\bCustom ESM Loaders\b)/;
14
+ function onWarning(warning, ...rest) {
15
+ // Suppress warning about how `--loader` is experimental
16
+ if ((warning === null || warning === void 0 ? void 0 : warning.name) === 'ExperimentalWarning' &&
17
+ messageMatch.test(warning === null || warning === void 0 ? void 0 : warning.message))
18
+ return;
19
+ // Will be undefined if `--no-warnings`
20
+ return originalOnWarning === null || originalOnWarning === void 0 ? void 0 : originalOnWarning.call(this, warning, ...rest);
21
+ }
22
+ //# sourceMappingURL=child-require.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"child-require.js","sourceRoot":"","sources":["../../src/child/child-require.ts"],"names":[],"mappings":";AAGA,MAAM,QAAQ,GAAG,OAAuC,CAAC;AAEzD,sIAAsI;AAEtI,IAAI,iBAAuC,CAAC;AAC5C,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;IAC3C,iBAAiB,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAChD,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;CACzC;KAAM;IACL,iBAAiB,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC;IAC7C,QAAQ,CAAC,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;CACtC;AAED,MAAM,YAAY,GAAG,yDAAyD,CAAC;AAC/E,SAAS,SAAS,CAAY,OAAc,EAAE,GAAG,IAAW;IAC1D,wDAAwD;IACxD,IACE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,MAAK,qBAAqB;QACvC,YAAY,CAAC,IAAI,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC;QAEnC,OAAO;IACT,uCAAuC;IACvC,OAAO,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;AACzD,CAAC","sourcesContent":["interface EventEmitterInternals {\n _events: Record<string, Function | Array<Function>>;\n}\nconst _process = process as any as EventEmitterInternals;\n\n// Not shown here: Additional logic to correctly interact with process's events, either using this direct manipulation, or via the API\n\nlet originalOnWarning: Function | undefined;\nif (Array.isArray(_process._events.warning)) {\n originalOnWarning = _process._events.warning[0];\n _process._events.warning[0] = onWarning;\n} else {\n originalOnWarning = _process._events.warning;\n _process._events.warning = onWarning;\n}\n\nconst messageMatch = /(?:--(?:experimental-)?loader\\b|\\bCustom ESM Loaders\\b)/;\nfunction onWarning(this: any, warning: Error, ...rest: any[]) {\n // Suppress warning about how `--loader` is experimental\n if (\n warning?.name === 'ExperimentalWarning' &&\n messageMatch.test(warning?.message)\n )\n return;\n // Will be undefined if `--no-warnings`\n return originalOnWarning?.call(this, warning, ...rest);\n}\n"]}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.callInChild = void 0;
4
+ const child_process_1 = require("child_process");
5
+ const url_1 = require("url");
6
+ const util_1 = require("../util");
7
+ const argv_payload_1 = require("./argv-payload");
8
+ /**
9
+ * @internal
10
+ * @param state Bootstrap state to be transferred into the child process.
11
+ * @param targetCwd Working directory to be preserved when transitioning to
12
+ * the child process.
13
+ */
14
+ function callInChild(state) {
15
+ if (!(0, util_1.versionGteLt)(process.versions.node, '12.17.0')) {
16
+ throw new Error('`ts-node-esm` and `ts-node --esm` require node version 12.17.0 or newer.');
17
+ }
18
+ const child = (0, child_process_1.spawn)(process.execPath, [
19
+ '--require',
20
+ require.resolve('./child-require.js'),
21
+ '--loader',
22
+ // Node on Windows doesn't like `c:\` absolute paths here; must be `file:///c:/`
23
+ (0, url_1.pathToFileURL)(require.resolve('../../child-loader.mjs')).toString(),
24
+ require.resolve('./child-entrypoint.js'),
25
+ `${argv_payload_1.argPrefix}${(0, argv_payload_1.compress)(state)}`,
26
+ ...state.parseArgvResult.restArgs,
27
+ ], {
28
+ stdio: 'inherit',
29
+ argv0: process.argv0,
30
+ });
31
+ child.on('error', (error) => {
32
+ console.error(error);
33
+ process.exit(1);
34
+ });
35
+ child.on('exit', (code) => {
36
+ child.removeAllListeners();
37
+ process.off('SIGINT', sendSignalToChild);
38
+ process.off('SIGTERM', sendSignalToChild);
39
+ process.exitCode = code === null ? 1 : code;
40
+ });
41
+ // Ignore sigint and sigterm in parent; pass them to child
42
+ process.on('SIGINT', sendSignalToChild);
43
+ process.on('SIGTERM', sendSignalToChild);
44
+ function sendSignalToChild(signal) {
45
+ process.kill(child.pid, signal);
46
+ }
47
+ }
48
+ exports.callInChild = callInChild;
49
+ //# sourceMappingURL=spawn-child.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spawn-child.js","sourceRoot":"","sources":["../../src/child/spawn-child.ts"],"names":[],"mappings":";;;AACA,iDAAsC;AACtC,6BAAoC;AACpC,kCAAuC;AACvC,iDAAqD;AAErD;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,KAAqB;IAC/C,IAAI,CAAC,IAAA,mBAAY,EAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE;QACnD,MAAM,IAAI,KAAK,CACb,0EAA0E,CAC3E,CAAC;KACH;IACD,MAAM,KAAK,GAAG,IAAA,qBAAK,EACjB,OAAO,CAAC,QAAQ,EAChB;QACE,WAAW;QACX,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC;QACrC,UAAU;QACV,gFAAgF;QAChF,IAAA,mBAAa,EAAC,OAAO,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,QAAQ,EAAE;QACnE,OAAO,CAAC,OAAO,CAAC,uBAAuB,CAAC;QACxC,GAAG,wBAAS,GAAG,IAAA,uBAAQ,EAAC,KAAK,CAAC,EAAE;QAChC,GAAG,KAAK,CAAC,eAAe,CAAC,QAAQ;KAClC,EACD;QACE,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CACF,CAAC;IACF,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;QAC1B,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;IACH,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACxB,KAAK,CAAC,kBAAkB,EAAE,CAAC;QAC3B,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;QACzC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;QAC1C,OAAO,CAAC,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC9C,CAAC,CAAC,CAAC;IACH,0DAA0D;IAC1D,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;IACxC,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;IACzC,SAAS,iBAAiB,CAAC,MAAc;QACvC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAClC,CAAC;AACH,CAAC;AAvCD,kCAuCC","sourcesContent":["import type { BootstrapState } from '../bin';\nimport { spawn } from 'child_process';\nimport { pathToFileURL } from 'url';\nimport { versionGteLt } from '../util';\nimport { argPrefix, compress } from './argv-payload';\n\n/**\n * @internal\n * @param state Bootstrap state to be transferred into the child process.\n * @param targetCwd Working directory to be preserved when transitioning to\n * the child process.\n */\nexport function callInChild(state: BootstrapState) {\n if (!versionGteLt(process.versions.node, '12.17.0')) {\n throw new Error(\n '`ts-node-esm` and `ts-node --esm` require node version 12.17.0 or newer.'\n );\n }\n const child = spawn(\n process.execPath,\n [\n '--require',\n require.resolve('./child-require.js'),\n '--loader',\n // Node on Windows doesn't like `c:\\` absolute paths here; must be `file:///c:/`\n pathToFileURL(require.resolve('../../child-loader.mjs')).toString(),\n require.resolve('./child-entrypoint.js'),\n `${argPrefix}${compress(state)}`,\n ...state.parseArgvResult.restArgs,\n ],\n {\n stdio: 'inherit',\n argv0: process.argv0,\n }\n );\n child.on('error', (error) => {\n console.error(error);\n process.exit(1);\n });\n child.on('exit', (code) => {\n child.removeAllListeners();\n process.off('SIGINT', sendSignalToChild);\n process.off('SIGTERM', sendSignalToChild);\n process.exitCode = code === null ? 1 : code;\n });\n // Ignore sigint and sigterm in parent; pass them to child\n process.on('SIGINT', sendSignalToChild);\n process.on('SIGTERM', sendSignalToChild);\n function sendSignalToChild(signal: string) {\n process.kill(child.pid, signal);\n }\n}\n"]}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.installCommonjsResolveHooksIfNecessary = void 0;
4
+ /**
5
+ * @internal
6
+ */
7
+ function installCommonjsResolveHooksIfNecessary(tsNodeService) {
8
+ const Module = require('module');
9
+ const originalResolveFilename = Module._resolveFilename;
10
+ const originalFindPath = Module._findPath;
11
+ const shouldInstallHook = tsNodeService.options.experimentalResolver;
12
+ if (shouldInstallHook) {
13
+ const { Module_findPath, Module_resolveFilename } = tsNodeService.getNodeCjsLoader();
14
+ Module._resolveFilename = _resolveFilename;
15
+ Module._findPath = _findPath;
16
+ function _resolveFilename(request, parent, isMain, options, ...rest) {
17
+ if (!tsNodeService.enabled())
18
+ return originalResolveFilename.call(this, request, parent, isMain, options, ...rest);
19
+ return Module_resolveFilename.call(this, request, parent, isMain, options, ...rest);
20
+ }
21
+ function _findPath() {
22
+ if (!tsNodeService.enabled())
23
+ return originalFindPath.apply(this, arguments);
24
+ return Module_findPath.apply(this, arguments);
25
+ }
26
+ }
27
+ }
28
+ exports.installCommonjsResolveHooksIfNecessary = installCommonjsResolveHooksIfNecessary;
29
+ //# sourceMappingURL=cjs-resolve-hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cjs-resolve-hooks.js","sourceRoot":"","sources":["../src/cjs-resolve-hooks.ts"],"names":[],"mappings":";;;AAoBA;;GAEG;AACH,SAAgB,sCAAsC,CAAC,aAAsB;IAC3E,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAmC,CAAC;IACnE,MAAM,uBAAuB,GAAG,MAAM,CAAC,gBAAgB,CAAC;IACxD,MAAM,gBAAgB,GAAG,MAAM,CAAC,SAAS,CAAC;IAC1C,MAAM,iBAAiB,GAAG,aAAa,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACrE,IAAI,iBAAiB,EAAE;QACrB,MAAM,EAAE,eAAe,EAAE,sBAAsB,EAAE,GAC/C,aAAa,CAAC,gBAAgB,EAAE,CAAC;QACnC,MAAM,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QAC3C,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC;QAC7B,SAAS,gBAAgB,CAEvB,OAAe,EACf,MAAe,EACf,MAAgB,EAChB,OAAsC,EACtC,GAAG,IAAQ;YAEX,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE;gBAC1B,OAAO,uBAAuB,CAAC,IAAI,CACjC,IAAI,EACJ,OAAO,EACP,MAAM,EACN,MAAM,EACN,OAAO,EACP,GAAG,IAAI,CACR,CAAC;YAEJ,OAAO,sBAAsB,CAAC,IAAI,CAChC,IAAI,EACJ,OAAO,EACP,MAAM,EACN,MAAM,EACN,OAAO,EACP,GAAG,IAAI,CACR,CAAC;QACJ,CAAC;QACD,SAAS,SAAS;YAChB,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE;gBAC1B,OAAO,gBAAgB,CAAC,KAAK,CAAC,IAAI,EAAE,SAAgB,CAAC,CAAC;YACxD,OAAO,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,SAAgB,CAAC,CAAC;QACvD,CAAC;KACF;AACH,CAAC;AA3CD,wFA2CC","sourcesContent":["import type Module = require('module');\nimport type { Service } from '.';\n\n/** @internal */\nexport type ModuleConstructorWithInternals = typeof Module & {\n _resolveFilename(\n request: string,\n parent?: Module,\n isMain?: boolean,\n options?: ModuleResolveFilenameOptions,\n ...rest: any[]\n ): string;\n _preloadModules(requests?: string[]): void;\n _findPath(request: string, paths: string[], isMain: boolean): string;\n};\n\ninterface ModuleResolveFilenameOptions {\n paths?: Array<string>;\n}\n\n/**\n * @internal\n */\nexport function installCommonjsResolveHooksIfNecessary(tsNodeService: Service) {\n const Module = require('module') as ModuleConstructorWithInternals;\n const originalResolveFilename = Module._resolveFilename;\n const originalFindPath = Module._findPath;\n const shouldInstallHook = tsNodeService.options.experimentalResolver;\n if (shouldInstallHook) {\n const { Module_findPath, Module_resolveFilename } =\n tsNodeService.getNodeCjsLoader();\n Module._resolveFilename = _resolveFilename;\n Module._findPath = _findPath;\n function _resolveFilename(\n this: any,\n request: string,\n parent?: Module,\n isMain?: boolean,\n options?: ModuleResolveFilenameOptions,\n ...rest: []\n ): string {\n if (!tsNodeService.enabled())\n return originalResolveFilename.call(\n this,\n request,\n parent,\n isMain,\n options,\n ...rest\n );\n\n return Module_resolveFilename.call(\n this,\n request,\n parent,\n isMain,\n options,\n ...rest\n );\n }\n function _findPath(this: any): string {\n if (!tsNodeService.enabled())\n return originalFindPath.apply(this, arguments as any);\n return Module_findPath.apply(this, arguments as any);\n }\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ export {};