@tomorrowos/sdk 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/dist/cli.js +27 -2
  2. package/package.json +1 -1
  3. package/templates/cms-starter/package.json +2 -2
  4. package/templates/cms-starter/public/methods.js +1 -1
  5. package/templates/cms-starter/node_modules/.bin/esbuild +0 -16
  6. package/templates/cms-starter/node_modules/.bin/esbuild.cmd +0 -17
  7. package/templates/cms-starter/node_modules/.bin/esbuild.ps1 +0 -28
  8. package/templates/cms-starter/node_modules/.bin/tomorrowos +0 -16
  9. package/templates/cms-starter/node_modules/.bin/tomorrowos.cmd +0 -17
  10. package/templates/cms-starter/node_modules/.bin/tomorrowos.ps1 +0 -28
  11. package/templates/cms-starter/node_modules/.bin/tsc +0 -16
  12. package/templates/cms-starter/node_modules/.bin/tsc.cmd +0 -17
  13. package/templates/cms-starter/node_modules/.bin/tsc.ps1 +0 -28
  14. package/templates/cms-starter/node_modules/.bin/tsserver +0 -16
  15. package/templates/cms-starter/node_modules/.bin/tsserver.cmd +0 -17
  16. package/templates/cms-starter/node_modules/.bin/tsserver.ps1 +0 -28
  17. package/templates/cms-starter/node_modules/.bin/tsx +0 -16
  18. package/templates/cms-starter/node_modules/.bin/tsx.cmd +0 -17
  19. package/templates/cms-starter/node_modules/.bin/tsx.ps1 +0 -28
  20. package/templates/cms-starter/node_modules/.package-lock.json +0 -140
  21. package/templates/cms-starter/node_modules/@esbuild/win32-x64/README.md +0 -3
  22. package/templates/cms-starter/node_modules/@esbuild/win32-x64/esbuild.exe +0 -0
  23. package/templates/cms-starter/node_modules/@esbuild/win32-x64/package.json +0 -20
  24. package/templates/cms-starter/node_modules/@types/node/LICENSE +0 -21
  25. package/templates/cms-starter/node_modules/@types/node/README.md +0 -15
  26. package/templates/cms-starter/node_modules/@types/node/assert/strict.d.ts +0 -8
  27. package/templates/cms-starter/node_modules/@types/node/assert.d.ts +0 -1062
  28. package/templates/cms-starter/node_modules/@types/node/async_hooks.d.ts +0 -605
  29. package/templates/cms-starter/node_modules/@types/node/buffer.buffer.d.ts +0 -471
  30. package/templates/cms-starter/node_modules/@types/node/buffer.d.ts +0 -1936
  31. package/templates/cms-starter/node_modules/@types/node/child_process.d.ts +0 -1475
  32. package/templates/cms-starter/node_modules/@types/node/cluster.d.ts +0 -577
  33. package/templates/cms-starter/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  34. package/templates/cms-starter/node_modules/@types/node/compatibility/index.d.ts +0 -9
  35. package/templates/cms-starter/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  36. package/templates/cms-starter/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  37. package/templates/cms-starter/node_modules/@types/node/console.d.ts +0 -452
  38. package/templates/cms-starter/node_modules/@types/node/constants.d.ts +0 -21
  39. package/templates/cms-starter/node_modules/@types/node/crypto.d.ts +0 -4590
  40. package/templates/cms-starter/node_modules/@types/node/dgram.d.ts +0 -597
  41. package/templates/cms-starter/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  42. package/templates/cms-starter/node_modules/@types/node/dns/promises.d.ts +0 -479
  43. package/templates/cms-starter/node_modules/@types/node/dns.d.ts +0 -871
  44. package/templates/cms-starter/node_modules/@types/node/domain.d.ts +0 -170
  45. package/templates/cms-starter/node_modules/@types/node/events.d.ts +0 -977
  46. package/templates/cms-starter/node_modules/@types/node/fs/promises.d.ts +0 -1270
  47. package/templates/cms-starter/node_modules/@types/node/fs.d.ts +0 -4375
  48. package/templates/cms-starter/node_modules/@types/node/globals.d.ts +0 -172
  49. package/templates/cms-starter/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  50. package/templates/cms-starter/node_modules/@types/node/http.d.ts +0 -2049
  51. package/templates/cms-starter/node_modules/@types/node/http2.d.ts +0 -2708
  52. package/templates/cms-starter/node_modules/@types/node/https.d.ts +0 -578
  53. package/templates/cms-starter/node_modules/@types/node/index.d.ts +0 -93
  54. package/templates/cms-starter/node_modules/@types/node/inspector.generated.d.ts +0 -3966
  55. package/templates/cms-starter/node_modules/@types/node/module.d.ts +0 -539
  56. package/templates/cms-starter/node_modules/@types/node/net.d.ts +0 -1031
  57. package/templates/cms-starter/node_modules/@types/node/os.d.ts +0 -506
  58. package/templates/cms-starter/node_modules/@types/node/package.json +0 -140
  59. package/templates/cms-starter/node_modules/@types/node/path.d.ts +0 -200
  60. package/templates/cms-starter/node_modules/@types/node/perf_hooks.d.ts +0 -961
  61. package/templates/cms-starter/node_modules/@types/node/process.d.ts +0 -1961
  62. package/templates/cms-starter/node_modules/@types/node/punycode.d.ts +0 -117
  63. package/templates/cms-starter/node_modules/@types/node/querystring.d.ts +0 -152
  64. package/templates/cms-starter/node_modules/@types/node/readline/promises.d.ts +0 -162
  65. package/templates/cms-starter/node_modules/@types/node/readline.d.ts +0 -589
  66. package/templates/cms-starter/node_modules/@types/node/repl.d.ts +0 -430
  67. package/templates/cms-starter/node_modules/@types/node/sea.d.ts +0 -153
  68. package/templates/cms-starter/node_modules/@types/node/stream/consumers.d.ts +0 -38
  69. package/templates/cms-starter/node_modules/@types/node/stream/promises.d.ts +0 -90
  70. package/templates/cms-starter/node_modules/@types/node/stream/web.d.ts +0 -533
  71. package/templates/cms-starter/node_modules/@types/node/stream.d.ts +0 -1698
  72. package/templates/cms-starter/node_modules/@types/node/string_decoder.d.ts +0 -67
  73. package/templates/cms-starter/node_modules/@types/node/test.d.ts +0 -1787
  74. package/templates/cms-starter/node_modules/@types/node/timers/promises.d.ts +0 -108
  75. package/templates/cms-starter/node_modules/@types/node/timers.d.ts +0 -286
  76. package/templates/cms-starter/node_modules/@types/node/tls.d.ts +0 -1259
  77. package/templates/cms-starter/node_modules/@types/node/trace_events.d.ts +0 -197
  78. package/templates/cms-starter/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  79. package/templates/cms-starter/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  80. package/templates/cms-starter/node_modules/@types/node/ts5.6/index.d.ts +0 -93
  81. package/templates/cms-starter/node_modules/@types/node/tty.d.ts +0 -208
  82. package/templates/cms-starter/node_modules/@types/node/url.d.ts +0 -964
  83. package/templates/cms-starter/node_modules/@types/node/util.d.ts +0 -2331
  84. package/templates/cms-starter/node_modules/@types/node/v8.d.ts +0 -809
  85. package/templates/cms-starter/node_modules/@types/node/vm.d.ts +0 -1001
  86. package/templates/cms-starter/node_modules/@types/node/wasi.d.ts +0 -181
  87. package/templates/cms-starter/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  88. package/templates/cms-starter/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  89. package/templates/cms-starter/node_modules/@types/node/web-globals/events.d.ts +0 -97
  90. package/templates/cms-starter/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
  91. package/templates/cms-starter/node_modules/@types/node/worker_threads.d.ts +0 -715
  92. package/templates/cms-starter/node_modules/@types/node/zlib.d.ts +0 -598
  93. package/templates/cms-starter/node_modules/esbuild/LICENSE.md +0 -21
  94. package/templates/cms-starter/node_modules/esbuild/README.md +0 -3
  95. package/templates/cms-starter/node_modules/esbuild/bin/esbuild +0 -223
  96. package/templates/cms-starter/node_modules/esbuild/install.js +0 -300
  97. package/templates/cms-starter/node_modules/esbuild/lib/main.d.ts +0 -716
  98. package/templates/cms-starter/node_modules/esbuild/lib/main.js +0 -2532
  99. package/templates/cms-starter/node_modules/esbuild/package.json +0 -74
  100. package/templates/cms-starter/node_modules/tsx/LICENSE +0 -21
  101. package/templates/cms-starter/node_modules/tsx/README.md +0 -32
  102. package/templates/cms-starter/node_modules/tsx/dist/cjs/api/index.cjs +0 -1
  103. package/templates/cms-starter/node_modules/tsx/dist/cjs/api/index.d.cts +0 -35
  104. package/templates/cms-starter/node_modules/tsx/dist/cjs/api/index.d.mts +0 -35
  105. package/templates/cms-starter/node_modules/tsx/dist/cjs/api/index.mjs +0 -1
  106. package/templates/cms-starter/node_modules/tsx/dist/cjs/index.cjs +0 -1
  107. package/templates/cms-starter/node_modules/tsx/dist/cjs/index.mjs +0 -1
  108. package/templates/cms-starter/node_modules/tsx/dist/cli.cjs +0 -54
  109. package/templates/cms-starter/node_modules/tsx/dist/cli.mjs +0 -55
  110. package/templates/cms-starter/node_modules/tsx/dist/client-D3mGB526.cjs +0 -1
  111. package/templates/cms-starter/node_modules/tsx/dist/client-D_mPDF5S.mjs +0 -1
  112. package/templates/cms-starter/node_modules/tsx/dist/esm/api/index.cjs +0 -1
  113. package/templates/cms-starter/node_modules/tsx/dist/esm/api/index.d.cts +0 -35
  114. package/templates/cms-starter/node_modules/tsx/dist/esm/api/index.d.mts +0 -35
  115. package/templates/cms-starter/node_modules/tsx/dist/esm/api/index.mjs +0 -1
  116. package/templates/cms-starter/node_modules/tsx/dist/esm/index.cjs +0 -1
  117. package/templates/cms-starter/node_modules/tsx/dist/esm/index.mjs +0 -1
  118. package/templates/cms-starter/node_modules/tsx/dist/get-pipe-path-D4YM6rQt.cjs +0 -1
  119. package/templates/cms-starter/node_modules/tsx/dist/get-pipe-path-_tAJyU_v.mjs +0 -1
  120. package/templates/cms-starter/node_modules/tsx/dist/index-BWFBUo6r.cjs +0 -1
  121. package/templates/cms-starter/node_modules/tsx/dist/index-D9F1FXzN.cjs +0 -14
  122. package/templates/cms-starter/node_modules/tsx/dist/index-XurvG3JN.mjs +0 -14
  123. package/templates/cms-starter/node_modules/tsx/dist/index-gbaejti9.mjs +0 -1
  124. package/templates/cms-starter/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +0 -3
  125. package/templates/cms-starter/node_modules/tsx/dist/lexer-DgIbo0BU.cjs +0 -3
  126. package/templates/cms-starter/node_modules/tsx/dist/loader.cjs +0 -1
  127. package/templates/cms-starter/node_modules/tsx/dist/loader.mjs +0 -1
  128. package/templates/cms-starter/node_modules/tsx/dist/node-features-B9BBLzwu.mjs +0 -1
  129. package/templates/cms-starter/node_modules/tsx/dist/node-features-CQLdkVE6.cjs +0 -1
  130. package/templates/cms-starter/node_modules/tsx/dist/package-CGdS2_oX.cjs +0 -1
  131. package/templates/cms-starter/node_modules/tsx/dist/package-DyJMwVU5.mjs +0 -1
  132. package/templates/cms-starter/node_modules/tsx/dist/patch-repl.cjs +0 -1
  133. package/templates/cms-starter/node_modules/tsx/dist/patch-repl.mjs +0 -1
  134. package/templates/cms-starter/node_modules/tsx/dist/preflight.cjs +0 -1
  135. package/templates/cms-starter/node_modules/tsx/dist/preflight.mjs +0 -1
  136. package/templates/cms-starter/node_modules/tsx/dist/register-BOkp8V6j.cjs +0 -10
  137. package/templates/cms-starter/node_modules/tsx/dist/register-BnTWPeIB.mjs +0 -10
  138. package/templates/cms-starter/node_modules/tsx/dist/register-CHVGxKtC.cjs +0 -2
  139. package/templates/cms-starter/node_modules/tsx/dist/register-D_B8UL5H.mjs +0 -2
  140. package/templates/cms-starter/node_modules/tsx/dist/repl.cjs +0 -3
  141. package/templates/cms-starter/node_modules/tsx/dist/repl.mjs +0 -3
  142. package/templates/cms-starter/node_modules/tsx/dist/require-CjvaJWEr.cjs +0 -1
  143. package/templates/cms-starter/node_modules/tsx/dist/require-DzmC1hVr.mjs +0 -1
  144. package/templates/cms-starter/node_modules/tsx/dist/suppress-warnings.cjs +0 -1
  145. package/templates/cms-starter/node_modules/tsx/dist/suppress-warnings.mjs +0 -1
  146. package/templates/cms-starter/node_modules/tsx/dist/temporary-directory-B83uKxJF.cjs +0 -1
  147. package/templates/cms-starter/node_modules/tsx/dist/temporary-directory-BDDVQOvU.mjs +0 -1
  148. package/templates/cms-starter/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +0 -5
  149. package/templates/cms-starter/node_modules/tsx/package.json +0 -67
  150. package/templates/cms-starter/node_modules/typescript/LICENSE.txt +0 -55
  151. package/templates/cms-starter/node_modules/typescript/README.md +0 -50
  152. package/templates/cms-starter/node_modules/typescript/SECURITY.md +0 -41
  153. package/templates/cms-starter/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
  154. package/templates/cms-starter/node_modules/typescript/bin/tsc +0 -2
  155. package/templates/cms-starter/node_modules/typescript/bin/tsserver +0 -2
  156. package/templates/cms-starter/node_modules/typescript/lib/_tsc.js +0 -133818
  157. package/templates/cms-starter/node_modules/typescript/lib/_tsserver.js +0 -659
  158. package/templates/cms-starter/node_modules/typescript/lib/_typingsInstaller.js +0 -222
  159. package/templates/cms-starter/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2122
  160. package/templates/cms-starter/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2122
  161. package/templates/cms-starter/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2122
  162. package/templates/cms-starter/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2122
  163. package/templates/cms-starter/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2122
  164. package/templates/cms-starter/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2122
  165. package/templates/cms-starter/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2122
  166. package/templates/cms-starter/node_modules/typescript/lib/lib.d.ts +0 -22
  167. package/templates/cms-starter/node_modules/typescript/lib/lib.decorators.d.ts +0 -384
  168. package/templates/cms-starter/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
  169. package/templates/cms-starter/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -41
  170. package/templates/cms-starter/node_modules/typescript/lib/lib.dom.d.ts +0 -39429
  171. package/templates/cms-starter/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -571
  172. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
  173. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
  174. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
  175. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
  176. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -605
  177. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
  178. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
  179. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
  180. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
  181. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
  182. package/templates/cms-starter/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
  183. package/templates/cms-starter/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
  184. package/templates/cms-starter/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
  185. package/templates/cms-starter/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
  186. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
  187. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.d.ts +0 -26
  188. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
  189. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
  190. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
  191. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
  192. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
  193. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
  194. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
  195. package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
  196. package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -53
  197. package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
  198. package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
  199. package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
  200. package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
  201. package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
  202. package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
  203. package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
  204. package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
  205. package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
  206. package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
  207. package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
  208. package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
  209. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -765
  210. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
  211. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
  212. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
  213. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
  214. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
  215. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
  216. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -99
  217. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -44
  218. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -41
  219. package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
  220. package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
  221. package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
  222. package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
  223. package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
  224. package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -78
  225. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
  226. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.d.ts +0 -25
  227. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -75
  228. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
  229. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -145
  230. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
  231. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
  232. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
  233. package/templates/cms-starter/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
  234. package/templates/cms-starter/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
  235. package/templates/cms-starter/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
  236. package/templates/cms-starter/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
  237. package/templates/cms-starter/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
  238. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
  239. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
  240. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
  241. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
  242. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -29
  243. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -35
  244. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -25
  245. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -68
  246. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -29
  247. package/templates/cms-starter/node_modules/typescript/lib/lib.es5.d.ts +0 -4601
  248. package/templates/cms-starter/node_modules/typescript/lib/lib.es6.d.ts +0 -23
  249. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
  250. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -96
  251. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.d.ts +0 -29
  252. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
  253. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -193
  254. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.error.d.ts +0 -24
  255. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.float16.d.ts +0 -445
  256. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
  257. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
  258. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.iterator.d.ts +0 -148
  259. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -34
  260. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +0 -25
  261. package/templates/cms-starter/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
  262. package/templates/cms-starter/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -41
  263. package/templates/cms-starter/node_modules/typescript/lib/lib.webworker.d.ts +0 -13150
  264. package/templates/cms-starter/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
  265. package/templates/cms-starter/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -340
  266. package/templates/cms-starter/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2122
  267. package/templates/cms-starter/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2122
  268. package/templates/cms-starter/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2122
  269. package/templates/cms-starter/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2122
  270. package/templates/cms-starter/node_modules/typescript/lib/tsc.js +0 -8
  271. package/templates/cms-starter/node_modules/typescript/lib/tsserver.js +0 -8
  272. package/templates/cms-starter/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  273. package/templates/cms-starter/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  274. package/templates/cms-starter/node_modules/typescript/lib/typesMap.json +0 -497
  275. package/templates/cms-starter/node_modules/typescript/lib/typescript.d.ts +0 -11437
  276. package/templates/cms-starter/node_modules/typescript/lib/typescript.js +0 -200276
  277. package/templates/cms-starter/node_modules/typescript/lib/typingsInstaller.js +0 -8
  278. package/templates/cms-starter/node_modules/typescript/lib/watchGuard.js +0 -53
  279. package/templates/cms-starter/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2122
  280. package/templates/cms-starter/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2122
  281. package/templates/cms-starter/node_modules/typescript/package.json +0 -120
  282. package/templates/cms-starter/node_modules/undici-types/LICENSE +0 -21
  283. package/templates/cms-starter/node_modules/undici-types/README.md +0 -6
  284. package/templates/cms-starter/node_modules/undici-types/agent.d.ts +0 -31
  285. package/templates/cms-starter/node_modules/undici-types/api.d.ts +0 -43
  286. package/templates/cms-starter/node_modules/undici-types/balanced-pool.d.ts +0 -29
  287. package/templates/cms-starter/node_modules/undici-types/cache.d.ts +0 -36
  288. package/templates/cms-starter/node_modules/undici-types/client.d.ts +0 -108
  289. package/templates/cms-starter/node_modules/undici-types/connector.d.ts +0 -34
  290. package/templates/cms-starter/node_modules/undici-types/content-type.d.ts +0 -21
  291. package/templates/cms-starter/node_modules/undici-types/cookies.d.ts +0 -28
  292. package/templates/cms-starter/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  293. package/templates/cms-starter/node_modules/undici-types/dispatcher.d.ts +0 -256
  294. package/templates/cms-starter/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  295. package/templates/cms-starter/node_modules/undici-types/errors.d.ts +0 -149
  296. package/templates/cms-starter/node_modules/undici-types/eventsource.d.ts +0 -61
  297. package/templates/cms-starter/node_modules/undici-types/fetch.d.ts +0 -209
  298. package/templates/cms-starter/node_modules/undici-types/file.d.ts +0 -39
  299. package/templates/cms-starter/node_modules/undici-types/filereader.d.ts +0 -54
  300. package/templates/cms-starter/node_modules/undici-types/formdata.d.ts +0 -108
  301. package/templates/cms-starter/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  302. package/templates/cms-starter/node_modules/undici-types/global-origin.d.ts +0 -7
  303. package/templates/cms-starter/node_modules/undici-types/handlers.d.ts +0 -15
  304. package/templates/cms-starter/node_modules/undici-types/header.d.ts +0 -4
  305. package/templates/cms-starter/node_modules/undici-types/index.d.ts +0 -71
  306. package/templates/cms-starter/node_modules/undici-types/interceptors.d.ts +0 -17
  307. package/templates/cms-starter/node_modules/undici-types/mock-agent.d.ts +0 -50
  308. package/templates/cms-starter/node_modules/undici-types/mock-client.d.ts +0 -25
  309. package/templates/cms-starter/node_modules/undici-types/mock-errors.d.ts +0 -12
  310. package/templates/cms-starter/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  311. package/templates/cms-starter/node_modules/undici-types/mock-pool.d.ts +0 -25
  312. package/templates/cms-starter/node_modules/undici-types/package.json +0 -55
  313. package/templates/cms-starter/node_modules/undici-types/patch.d.ts +0 -33
  314. package/templates/cms-starter/node_modules/undici-types/pool-stats.d.ts +0 -19
  315. package/templates/cms-starter/node_modules/undici-types/pool.d.ts +0 -39
  316. package/templates/cms-starter/node_modules/undici-types/proxy-agent.d.ts +0 -28
  317. package/templates/cms-starter/node_modules/undici-types/readable.d.ts +0 -65
  318. package/templates/cms-starter/node_modules/undici-types/retry-agent.d.ts +0 -8
  319. package/templates/cms-starter/node_modules/undici-types/retry-handler.d.ts +0 -116
  320. package/templates/cms-starter/node_modules/undici-types/util.d.ts +0 -18
  321. package/templates/cms-starter/node_modules/undici-types/webidl.d.ts +0 -228
  322. package/templates/cms-starter/node_modules/undici-types/websocket.d.ts +0 -150
  323. package/templates/cms-starter/package-lock.json +0 -592
@@ -1,223 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
18
- // If the importer is in node compatibility mode or this is not an ESM
19
- // file that has been converted to a CommonJS file using a Babel-
20
- // compatible transform (i.e. "__esModule" has not been set), then set
21
- // "default" to the CommonJS "module.exports" for node compatibility.
22
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
23
- mod
24
- ));
25
-
26
- // lib/npm/node-platform.ts
27
- var fs = require("fs");
28
- var os = require("os");
29
- var path = require("path");
30
- var ESBUILD_BINARY_PATH = process.env.ESBUILD_BINARY_PATH || ESBUILD_BINARY_PATH;
31
- var isValidBinaryPath = (x) => !!x && x !== "/usr/bin/esbuild";
32
- var packageDarwin_arm64 = "@esbuild/darwin-arm64";
33
- var packageDarwin_x64 = "@esbuild/darwin-x64";
34
- var knownWindowsPackages = {
35
- "win32 arm64 LE": "@esbuild/win32-arm64",
36
- "win32 ia32 LE": "@esbuild/win32-ia32",
37
- "win32 x64 LE": "@esbuild/win32-x64"
38
- };
39
- var knownUnixlikePackages = {
40
- "aix ppc64 BE": "@esbuild/aix-ppc64",
41
- "android arm64 LE": "@esbuild/android-arm64",
42
- "darwin arm64 LE": "@esbuild/darwin-arm64",
43
- "darwin x64 LE": "@esbuild/darwin-x64",
44
- "freebsd arm64 LE": "@esbuild/freebsd-arm64",
45
- "freebsd x64 LE": "@esbuild/freebsd-x64",
46
- "linux arm LE": "@esbuild/linux-arm",
47
- "linux arm64 LE": "@esbuild/linux-arm64",
48
- "linux ia32 LE": "@esbuild/linux-ia32",
49
- "linux mips64el LE": "@esbuild/linux-mips64el",
50
- "linux ppc64 LE": "@esbuild/linux-ppc64",
51
- "linux riscv64 LE": "@esbuild/linux-riscv64",
52
- "linux s390x BE": "@esbuild/linux-s390x",
53
- "linux x64 LE": "@esbuild/linux-x64",
54
- "linux loong64 LE": "@esbuild/linux-loong64",
55
- "netbsd arm64 LE": "@esbuild/netbsd-arm64",
56
- "netbsd x64 LE": "@esbuild/netbsd-x64",
57
- "openbsd arm64 LE": "@esbuild/openbsd-arm64",
58
- "openbsd x64 LE": "@esbuild/openbsd-x64",
59
- "sunos x64 LE": "@esbuild/sunos-x64"
60
- };
61
- var knownWebAssemblyFallbackPackages = {
62
- "android arm LE": "@esbuild/android-arm",
63
- "android x64 LE": "@esbuild/android-x64",
64
- "openharmony arm64 LE": "@esbuild/openharmony-arm64"
65
- };
66
- function pkgAndSubpathForCurrentPlatform() {
67
- let pkg;
68
- let subpath;
69
- let isWASM2 = false;
70
- let platformKey = `${process.platform} ${os.arch()} ${os.endianness()}`;
71
- if (platformKey in knownWindowsPackages) {
72
- pkg = knownWindowsPackages[platformKey];
73
- subpath = "esbuild.exe";
74
- } else if (platformKey in knownUnixlikePackages) {
75
- pkg = knownUnixlikePackages[platformKey];
76
- subpath = "bin/esbuild";
77
- } else if (platformKey in knownWebAssemblyFallbackPackages) {
78
- pkg = knownWebAssemblyFallbackPackages[platformKey];
79
- subpath = "bin/esbuild";
80
- isWASM2 = true;
81
- } else {
82
- throw new Error(`Unsupported platform: ${platformKey}`);
83
- }
84
- return { pkg, subpath, isWASM: isWASM2 };
85
- }
86
- function pkgForSomeOtherPlatform() {
87
- const libMainJS = require.resolve("esbuild");
88
- const nodeModulesDirectory = path.dirname(path.dirname(path.dirname(libMainJS)));
89
- if (path.basename(nodeModulesDirectory) === "node_modules") {
90
- for (const unixKey in knownUnixlikePackages) {
91
- try {
92
- const pkg = knownUnixlikePackages[unixKey];
93
- if (fs.existsSync(path.join(nodeModulesDirectory, pkg))) return pkg;
94
- } catch {
95
- }
96
- }
97
- for (const windowsKey in knownWindowsPackages) {
98
- try {
99
- const pkg = knownWindowsPackages[windowsKey];
100
- if (fs.existsSync(path.join(nodeModulesDirectory, pkg))) return pkg;
101
- } catch {
102
- }
103
- }
104
- }
105
- return null;
106
- }
107
- function downloadedBinPath(pkg, subpath) {
108
- const esbuildLibDir = path.dirname(require.resolve("esbuild"));
109
- return path.join(esbuildLibDir, `downloaded-${pkg.replace("/", "-")}-${path.basename(subpath)}`);
110
- }
111
- function generateBinPath() {
112
- if (isValidBinaryPath(ESBUILD_BINARY_PATH)) {
113
- if (!fs.existsSync(ESBUILD_BINARY_PATH)) {
114
- console.warn(`[esbuild] Ignoring bad configuration: ESBUILD_BINARY_PATH=${ESBUILD_BINARY_PATH}`);
115
- } else {
116
- return { binPath: ESBUILD_BINARY_PATH, isWASM: false };
117
- }
118
- }
119
- const { pkg, subpath, isWASM: isWASM2 } = pkgAndSubpathForCurrentPlatform();
120
- let binPath2;
121
- try {
122
- binPath2 = require.resolve(`${pkg}/${subpath}`);
123
- } catch (e) {
124
- binPath2 = downloadedBinPath(pkg, subpath);
125
- if (!fs.existsSync(binPath2)) {
126
- try {
127
- require.resolve(pkg);
128
- } catch {
129
- const otherPkg = pkgForSomeOtherPlatform();
130
- if (otherPkg) {
131
- let suggestions = `
132
- Specifically the "${otherPkg}" package is present but this platform
133
- needs the "${pkg}" package instead. People often get into this
134
- situation by installing esbuild on Windows or macOS and copying "node_modules"
135
- into a Docker image that runs Linux, or by copying "node_modules" between
136
- Windows and WSL environments.
137
-
138
- If you are installing with npm, you can try not copying the "node_modules"
139
- directory when you copy the files over, and running "npm ci" or "npm install"
140
- on the destination platform after the copy. Or you could consider using yarn
141
- instead of npm which has built-in support for installing a package on multiple
142
- platforms simultaneously.
143
-
144
- If you are installing with yarn, you can try listing both this platform and the
145
- other platform in your ".yarnrc.yml" file using the "supportedArchitectures"
146
- feature: https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
147
- Keep in mind that this means multiple copies of esbuild will be present.
148
- `;
149
- if (pkg === packageDarwin_x64 && otherPkg === packageDarwin_arm64 || pkg === packageDarwin_arm64 && otherPkg === packageDarwin_x64) {
150
- suggestions = `
151
- Specifically the "${otherPkg}" package is present but this platform
152
- needs the "${pkg}" package instead. People often get into this
153
- situation by installing esbuild with npm running inside of Rosetta 2 and then
154
- trying to use it with node running outside of Rosetta 2, or vice versa (Rosetta
155
- 2 is Apple's on-the-fly x86_64-to-arm64 translation service).
156
-
157
- If you are installing with npm, you can try ensuring that both npm and node are
158
- not running under Rosetta 2 and then reinstalling esbuild. This likely involves
159
- changing how you installed npm and/or node. For example, installing node with
160
- the universal installer here should work: https://nodejs.org/en/download/. Or
161
- you could consider using yarn instead of npm which has built-in support for
162
- installing a package on multiple platforms simultaneously.
163
-
164
- If you are installing with yarn, you can try listing both "arm64" and "x64"
165
- in your ".yarnrc.yml" file using the "supportedArchitectures" feature:
166
- https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
167
- Keep in mind that this means multiple copies of esbuild will be present.
168
- `;
169
- }
170
- throw new Error(`
171
- You installed esbuild for another platform than the one you're currently using.
172
- This won't work because esbuild is written with native code and needs to
173
- install a platform-specific binary executable.
174
- ${suggestions}
175
- Another alternative is to use the "esbuild-wasm" package instead, which works
176
- the same way on all platforms. But it comes with a heavy performance cost and
177
- can sometimes be 10x slower than the "esbuild" package, so you may also not
178
- want to do that.
179
- `);
180
- }
181
- throw new Error(`The package "${pkg}" could not be found, and is needed by esbuild.
182
-
183
- If you are installing esbuild with npm, make sure that you don't specify the
184
- "--no-optional" or "--omit=optional" flags. The "optionalDependencies" feature
185
- of "package.json" is used by esbuild to install the correct binary executable
186
- for your current platform.`);
187
- }
188
- throw e;
189
- }
190
- }
191
- if (/\.zip\//.test(binPath2)) {
192
- let pnpapi;
193
- try {
194
- pnpapi = require("pnpapi");
195
- } catch (e) {
196
- }
197
- if (pnpapi) {
198
- const root = pnpapi.getPackageInformation(pnpapi.topLevel).packageLocation;
199
- const binTargetPath = path.join(
200
- root,
201
- "node_modules",
202
- ".cache",
203
- "esbuild",
204
- `pnpapi-${pkg.replace("/", "-")}-${"0.28.0"}-${path.basename(subpath)}`
205
- );
206
- if (!fs.existsSync(binTargetPath)) {
207
- fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
208
- fs.copyFileSync(binPath2, binTargetPath);
209
- fs.chmodSync(binTargetPath, 493);
210
- }
211
- return { binPath: binTargetPath, isWASM: isWASM2 };
212
- }
213
- }
214
- return { binPath: binPath2, isWASM: isWASM2 };
215
- }
216
-
217
- // lib/npm/node-shim.ts
218
- var { binPath, isWASM } = generateBinPath();
219
- if (isWASM) {
220
- require("child_process").execFileSync("node", [binPath].concat(process.argv.slice(2)), { stdio: "inherit" });
221
- } else {
222
- require("child_process").execFileSync(binPath, process.argv.slice(2), { stdio: "inherit" });
223
- }
@@ -1,300 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (let key of __getOwnPropNames(from))
11
- if (!__hasOwnProp.call(to, key) && key !== except)
12
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- }
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
- mod
23
- ));
24
-
25
- // lib/npm/node-platform.ts
26
- var fs = require("fs");
27
- var os = require("os");
28
- var path = require("path");
29
- var ESBUILD_BINARY_PATH = process.env.ESBUILD_BINARY_PATH || ESBUILD_BINARY_PATH;
30
- var isValidBinaryPath = (x) => !!x && x !== "/usr/bin/esbuild";
31
- var knownWindowsPackages = {
32
- "win32 arm64 LE": "@esbuild/win32-arm64",
33
- "win32 ia32 LE": "@esbuild/win32-ia32",
34
- "win32 x64 LE": "@esbuild/win32-x64"
35
- };
36
- var knownUnixlikePackages = {
37
- "aix ppc64 BE": "@esbuild/aix-ppc64",
38
- "android arm64 LE": "@esbuild/android-arm64",
39
- "darwin arm64 LE": "@esbuild/darwin-arm64",
40
- "darwin x64 LE": "@esbuild/darwin-x64",
41
- "freebsd arm64 LE": "@esbuild/freebsd-arm64",
42
- "freebsd x64 LE": "@esbuild/freebsd-x64",
43
- "linux arm LE": "@esbuild/linux-arm",
44
- "linux arm64 LE": "@esbuild/linux-arm64",
45
- "linux ia32 LE": "@esbuild/linux-ia32",
46
- "linux mips64el LE": "@esbuild/linux-mips64el",
47
- "linux ppc64 LE": "@esbuild/linux-ppc64",
48
- "linux riscv64 LE": "@esbuild/linux-riscv64",
49
- "linux s390x BE": "@esbuild/linux-s390x",
50
- "linux x64 LE": "@esbuild/linux-x64",
51
- "linux loong64 LE": "@esbuild/linux-loong64",
52
- "netbsd arm64 LE": "@esbuild/netbsd-arm64",
53
- "netbsd x64 LE": "@esbuild/netbsd-x64",
54
- "openbsd arm64 LE": "@esbuild/openbsd-arm64",
55
- "openbsd x64 LE": "@esbuild/openbsd-x64",
56
- "sunos x64 LE": "@esbuild/sunos-x64"
57
- };
58
- var knownWebAssemblyFallbackPackages = {
59
- "android arm LE": "@esbuild/android-arm",
60
- "android x64 LE": "@esbuild/android-x64",
61
- "openharmony arm64 LE": "@esbuild/openharmony-arm64"
62
- };
63
- function pkgAndSubpathForCurrentPlatform() {
64
- let pkg;
65
- let subpath;
66
- let isWASM = false;
67
- let platformKey = `${process.platform} ${os.arch()} ${os.endianness()}`;
68
- if (platformKey in knownWindowsPackages) {
69
- pkg = knownWindowsPackages[platformKey];
70
- subpath = "esbuild.exe";
71
- } else if (platformKey in knownUnixlikePackages) {
72
- pkg = knownUnixlikePackages[platformKey];
73
- subpath = "bin/esbuild";
74
- } else if (platformKey in knownWebAssemblyFallbackPackages) {
75
- pkg = knownWebAssemblyFallbackPackages[platformKey];
76
- subpath = "bin/esbuild";
77
- isWASM = true;
78
- } else {
79
- throw new Error(`Unsupported platform: ${platformKey}`);
80
- }
81
- return { pkg, subpath, isWASM };
82
- }
83
- function downloadedBinPath(pkg, subpath) {
84
- const esbuildLibDir = path.dirname(require.resolve("esbuild"));
85
- return path.join(esbuildLibDir, `downloaded-${pkg.replace("/", "-")}-${path.basename(subpath)}`);
86
- }
87
-
88
- // lib/npm/node-install.ts
89
- var fs2 = require("fs");
90
- var os2 = require("os");
91
- var path2 = require("path");
92
- var zlib = require("zlib");
93
- var https = require("https");
94
- var crypto = require("crypto");
95
- var child_process = require("child_process");
96
- var packageJSON = require(path2.join(__dirname, "package.json"));
97
- var toPath = path2.join(__dirname, "bin", "esbuild");
98
- var isToPathJS = true;
99
- function validateBinaryVersion(...command) {
100
- command.push("--version");
101
- let stdout;
102
- try {
103
- stdout = child_process.execFileSync(command.shift(), command, {
104
- // Without this, this install script strangely crashes with the error
105
- // "EACCES: permission denied, write" but only on Ubuntu Linux when node is
106
- // installed from the Snap Store. This is not a problem when you download
107
- // the official version of node. The problem appears to be that stderr
108
- // (i.e. file descriptor 2) isn't writable?
109
- //
110
- // More info:
111
- // - https://snapcraft.io/ (what the Snap Store is)
112
- // - https://nodejs.org/dist/ (download the official version of node)
113
- // - https://github.com/evanw/esbuild/issues/1711#issuecomment-1027554035
114
- //
115
- stdio: "pipe"
116
- }).toString().trim();
117
- } catch (err) {
118
- if (os2.platform() === "darwin" && /_SecTrustEvaluateWithError/.test(err + "")) {
119
- let os3 = "this version of macOS";
120
- try {
121
- os3 = "macOS " + child_process.execFileSync("sw_vers", ["-productVersion"]).toString().trim();
122
- } catch {
123
- }
124
- throw new Error(`The "esbuild" package cannot be installed because ${os3} is too outdated.
125
-
126
- The Go compiler (which esbuild relies on) no longer supports ${os3},
127
- which means the "esbuild" binary executable can't be run. You can either:
128
-
129
- * Update your version of macOS to one that the Go compiler supports
130
- * Use the "esbuild-wasm" package instead of the "esbuild" package
131
- * Build esbuild yourself using an older version of the Go compiler
132
- `);
133
- }
134
- throw err;
135
- }
136
- if (stdout !== packageJSON.version) {
137
- throw new Error(`Expected ${JSON.stringify(packageJSON.version)} but got ${JSON.stringify(stdout)}`);
138
- }
139
- }
140
- function isYarn() {
141
- const { npm_config_user_agent } = process.env;
142
- if (npm_config_user_agent) {
143
- return /\byarn\//.test(npm_config_user_agent);
144
- }
145
- return false;
146
- }
147
- function fetch(url) {
148
- return new Promise((resolve, reject) => {
149
- https.get(url, (res) => {
150
- if ((res.statusCode === 301 || res.statusCode === 302) && res.headers.location)
151
- return fetch(res.headers.location).then(resolve, reject);
152
- if (res.statusCode !== 200)
153
- return reject(new Error(`Server responded with ${res.statusCode}`));
154
- let chunks = [];
155
- res.on("data", (chunk) => chunks.push(chunk));
156
- res.on("end", () => resolve(Buffer.concat(chunks)));
157
- }).on("error", reject);
158
- });
159
- }
160
- function extractFileFromTarGzip(buffer, subpath) {
161
- try {
162
- buffer = zlib.unzipSync(buffer);
163
- } catch (err) {
164
- throw new Error(`Invalid gzip data in archive: ${err && err.message || err}`);
165
- }
166
- let str = (i, n) => String.fromCharCode(...buffer.subarray(i, i + n)).replace(/\0.*$/, "");
167
- let offset = 0;
168
- subpath = `package/${subpath}`;
169
- while (offset < buffer.length) {
170
- let name = str(offset, 100);
171
- let size = parseInt(str(offset + 124, 12), 8);
172
- offset += 512;
173
- if (!isNaN(size)) {
174
- if (name === subpath) return buffer.subarray(offset, offset + size);
175
- offset += size + 511 & ~511;
176
- }
177
- }
178
- throw new Error(`Could not find ${JSON.stringify(subpath)} in archive`);
179
- }
180
- function installUsingNPM(pkg, subpath, binPath) {
181
- const env = { ...process.env, npm_config_global: void 0 };
182
- const esbuildLibDir = path2.dirname(require.resolve("esbuild"));
183
- const installDir = path2.join(esbuildLibDir, "npm-install");
184
- fs2.mkdirSync(installDir);
185
- try {
186
- fs2.writeFileSync(path2.join(installDir, "package.json"), "{}");
187
- child_process.execSync(
188
- `npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${packageJSON.version}`,
189
- { cwd: installDir, stdio: "pipe", env }
190
- );
191
- const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath);
192
- binaryIntegrityCheck(pkg, subpath, fs2.readFileSync(installedBinPath));
193
- fs2.renameSync(installedBinPath, binPath);
194
- } finally {
195
- try {
196
- removeRecursive(installDir);
197
- } catch {
198
- }
199
- }
200
- }
201
- function removeRecursive(dir) {
202
- for (const entry of fs2.readdirSync(dir)) {
203
- const entryPath = path2.join(dir, entry);
204
- let stats;
205
- try {
206
- stats = fs2.lstatSync(entryPath);
207
- } catch {
208
- continue;
209
- }
210
- if (stats.isDirectory()) removeRecursive(entryPath);
211
- else fs2.unlinkSync(entryPath);
212
- }
213
- fs2.rmdirSync(dir);
214
- }
215
- function applyManualBinaryPathOverride(overridePath) {
216
- const pathString = JSON.stringify(overridePath);
217
- fs2.writeFileSync(toPath, `#!/usr/bin/env node
218
- require('child_process').execFileSync(${pathString}, process.argv.slice(2), { stdio: 'inherit' });
219
- `);
220
- const libMain = path2.join(__dirname, "lib", "main.js");
221
- const code = fs2.readFileSync(libMain, "utf8");
222
- fs2.writeFileSync(libMain, `var ESBUILD_BINARY_PATH = ${pathString};
223
- ${code}`);
224
- }
225
- function maybeOptimizePackage(binPath, isWASM) {
226
- if (os2.platform() !== "win32" && !isYarn() && !isWASM) {
227
- const tempPath = path2.join(__dirname, "bin-esbuild");
228
- try {
229
- fs2.linkSync(binPath, tempPath);
230
- fs2.renameSync(tempPath, toPath);
231
- isToPathJS = false;
232
- fs2.unlinkSync(tempPath);
233
- } catch {
234
- }
235
- }
236
- }
237
- function binaryIntegrityCheck(pkg, subpath, bytes) {
238
- const hash = crypto.createHash("sha256").update(bytes).digest("hex");
239
- const key = `${pkg}/${subpath}`;
240
- const expected = packageJSON["esbuild.binaryHashes"][key];
241
- if (!expected) throw new Error(`Missing hash for "${key}"`);
242
- if (hash !== expected) throw new Error(`"${hash.slice(0, 8)}..." doesn't match "${expected.slice(0, 8)}..."`);
243
- }
244
- async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
245
- const url = `https://registry.npmjs.org/${pkg}/-/${pkg.replace("@esbuild/", "")}-${packageJSON.version}.tgz`;
246
- console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`);
247
- try {
248
- const bytes = extractFileFromTarGzip(await fetch(url), subpath);
249
- binaryIntegrityCheck(pkg, subpath, bytes);
250
- fs2.writeFileSync(binPath, bytes);
251
- fs2.chmodSync(binPath, 493);
252
- } catch (e) {
253
- console.error(`[esbuild] Failed to download ${JSON.stringify(url)}: ${e && e.message || e}`);
254
- throw e;
255
- }
256
- }
257
- async function checkAndPreparePackage() {
258
- if (isValidBinaryPath(ESBUILD_BINARY_PATH)) {
259
- if (!fs2.existsSync(ESBUILD_BINARY_PATH)) {
260
- console.warn(`[esbuild] Ignoring bad configuration: ESBUILD_BINARY_PATH=${ESBUILD_BINARY_PATH}`);
261
- } else {
262
- applyManualBinaryPathOverride(ESBUILD_BINARY_PATH);
263
- return;
264
- }
265
- }
266
- const { pkg, subpath, isWASM } = pkgAndSubpathForCurrentPlatform();
267
- let binPath;
268
- try {
269
- binPath = require.resolve(`${pkg}/${subpath}`);
270
- } catch (e) {
271
- console.error(`[esbuild] Failed to find package "${pkg}" on the file system
272
-
273
- This can happen if you use the "--no-optional" flag. The "optionalDependencies"
274
- package.json feature is used by esbuild to install the correct binary executable
275
- for your current platform. This install script will now attempt to work around
276
- this. If that fails, you need to remove the "--no-optional" flag to use esbuild.
277
- `);
278
- if (isWASM) throw new Error(`Failed to install package "${pkg}"`);
279
- binPath = downloadedBinPath(pkg, subpath);
280
- try {
281
- console.error(`[esbuild] Trying to install package "${pkg}" using npm`);
282
- installUsingNPM(pkg, subpath, binPath);
283
- } catch (e2) {
284
- console.error(`[esbuild] Failed to install package "${pkg}" using npm: ${e2 && e2.message || e2}`);
285
- try {
286
- await downloadDirectlyFromNPM(pkg, subpath, binPath);
287
- } catch (e3) {
288
- throw new Error(`Failed to install package "${pkg}"`);
289
- }
290
- }
291
- }
292
- maybeOptimizePackage(binPath, isWASM);
293
- }
294
- checkAndPreparePackage().then(() => {
295
- if (isToPathJS) {
296
- validateBinaryVersion(process.execPath, toPath);
297
- } else {
298
- validateBinaryVersion(toPath);
299
- }
300
- });