@epilot360/icons 0.0.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (624) hide show
  1. package/README.md +3 -5
  2. package/dist/bundle.js +1 -1
  3. package/dist/bundle.js.map +1 -1
  4. package/index.js.map +1 -1
  5. package/package.json +41 -8
  6. package/react/Account/index.d.ts +4 -0
  7. package/react/Account/index.js +41 -0
  8. package/react/Account/index.js.map +1 -0
  9. package/react/Add/index.d.ts +4 -0
  10. package/react/Add/index.js +41 -0
  11. package/react/Add/index.js.map +1 -0
  12. package/react/AddCircle/index.d.ts +4 -0
  13. package/react/AddCircle/index.js +41 -0
  14. package/react/AddCircle/index.js.map +1 -0
  15. package/react/Browse/index.d.ts +4 -0
  16. package/react/Browse/index.js +27 -0
  17. package/react/Browse/index.js.map +1 -0
  18. package/react/Calendar/index.d.ts +4 -0
  19. package/react/Calendar/index.js +41 -0
  20. package/react/Calendar/index.js.map +1 -0
  21. package/react/Cancel/index.d.ts +4 -0
  22. package/react/Cancel/index.js +41 -0
  23. package/react/Cancel/index.js.map +1 -0
  24. package/react/Check/index.d.ts +4 -0
  25. package/react/Check/index.js +41 -0
  26. package/react/Check/index.js.map +1 -0
  27. package/react/CheckCircle/index.d.ts +4 -0
  28. package/react/CheckCircle/index.js +41 -0
  29. package/react/CheckCircle/index.js.map +1 -0
  30. package/react/Close/index.d.ts +4 -0
  31. package/react/Close/index.js +41 -0
  32. package/react/Close/index.js.map +1 -0
  33. package/react/Compass/index.d.ts +4 -0
  34. package/react/Compass/index.js +27 -0
  35. package/react/Compass/index.js.map +1 -0
  36. package/react/Contact/index.d.ts +4 -0
  37. package/react/Contact/index.js +41 -0
  38. package/react/Contact/index.js.map +1 -0
  39. package/react/ContentCopy/index.d.ts +4 -0
  40. package/react/ContentCopy/index.js +41 -0
  41. package/react/ContentCopy/index.js.map +1 -0
  42. package/react/Contract/index.d.ts +4 -0
  43. package/react/Contract/index.js +41 -0
  44. package/react/Contract/index.js.map +1 -0
  45. package/react/Dashboard/index.d.ts +4 -0
  46. package/react/Dashboard/index.js +41 -0
  47. package/react/Dashboard/index.js.map +1 -0
  48. package/react/DataObject/index.d.ts +4 -0
  49. package/react/DataObject/index.js +41 -0
  50. package/react/DataObject/index.js.map +1 -0
  51. package/react/Delete/index.d.ts +4 -0
  52. package/react/Delete/index.js +41 -0
  53. package/react/Delete/index.js.map +1 -0
  54. package/react/Design/index.d.ts +4 -0
  55. package/react/Design/index.js +41 -0
  56. package/react/Design/index.js.map +1 -0
  57. package/react/Document/index.d.ts +4 -0
  58. package/react/Document/index.js +41 -0
  59. package/react/Document/index.js.map +1 -0
  60. package/react/Draft/index.d.ts +4 -0
  61. package/react/Draft/index.js +41 -0
  62. package/react/Draft/index.js.map +1 -0
  63. package/react/DragIndicator/index.d.ts +4 -0
  64. package/react/DragIndicator/index.js +41 -0
  65. package/react/DragIndicator/index.js.map +1 -0
  66. package/react/Edit/index.d.ts +4 -0
  67. package/react/Edit/index.js +41 -0
  68. package/react/Edit/index.js.map +1 -0
  69. package/react/Entity/index.d.ts +4 -0
  70. package/react/Entity/index.js +41 -0
  71. package/react/Entity/index.js.map +1 -0
  72. package/react/Epilot/index.d.ts +4 -0
  73. package/react/Epilot/index.js +40 -0
  74. package/react/Epilot/index.js.map +1 -0
  75. package/react/EpilotIcon.d.ts +110 -0
  76. package/react/EpilotIcon.js +130 -0
  77. package/react/EpilotIcon.js.map +1 -0
  78. package/react/ExpandLess/index.d.ts +4 -0
  79. package/react/ExpandLess/index.js +41 -0
  80. package/react/ExpandLess/index.js.map +1 -0
  81. package/react/ExpandMore/index.d.ts +4 -0
  82. package/react/ExpandMore/index.js +41 -0
  83. package/react/ExpandMore/index.js.map +1 -0
  84. package/react/Explore/index.d.ts +4 -0
  85. package/react/Explore/index.js +41 -0
  86. package/react/Explore/index.js.map +1 -0
  87. package/react/File/index.d.ts +4 -0
  88. package/react/File/index.js +41 -0
  89. package/react/File/index.js.map +1 -0
  90. package/react/Folder/index.d.ts +4 -0
  91. package/react/Folder/index.js +41 -0
  92. package/react/Folder/index.js.map +1 -0
  93. package/react/Help/index.d.ts +4 -0
  94. package/react/Help/index.js +41 -0
  95. package/react/Help/index.js.map +1 -0
  96. package/react/Info/index.d.ts +4 -0
  97. package/react/Info/index.js +41 -0
  98. package/react/Info/index.js.map +1 -0
  99. package/react/Journey/index.d.ts +4 -0
  100. package/react/Journey/index.js +41 -0
  101. package/react/Journey/index.js.map +1 -0
  102. package/react/Mail/index.d.ts +4 -0
  103. package/react/Mail/index.js +41 -0
  104. package/react/Mail/index.js.map +1 -0
  105. package/react/Menu/index.d.ts +4 -0
  106. package/react/Menu/index.js +41 -0
  107. package/react/Menu/index.js.map +1 -0
  108. package/react/Message/index.d.ts +4 -0
  109. package/react/Message/index.js +41 -0
  110. package/react/Message/index.js.map +1 -0
  111. package/react/Meter/index.d.ts +4 -0
  112. package/react/Meter/index.js +41 -0
  113. package/react/Meter/index.js.map +1 -0
  114. package/react/Notifications/index.d.ts +4 -0
  115. package/react/Notifications/index.js +41 -0
  116. package/react/Notifications/index.js.map +1 -0
  117. package/react/OpenInNew/index.d.ts +4 -0
  118. package/react/OpenInNew/index.js +41 -0
  119. package/react/OpenInNew/index.js.map +1 -0
  120. package/react/Opportunity/index.d.ts +4 -0
  121. package/react/Opportunity/index.js +41 -0
  122. package/react/Opportunity/index.js.map +1 -0
  123. package/react/Order/index.d.ts +4 -0
  124. package/react/Order/index.js +41 -0
  125. package/react/Order/index.js.map +1 -0
  126. package/react/Partner/index.d.ts +4 -0
  127. package/react/Partner/index.js +41 -0
  128. package/react/Partner/index.js.map +1 -0
  129. package/react/Price/index.d.ts +4 -0
  130. package/react/Price/index.js +41 -0
  131. package/react/Price/index.js.map +1 -0
  132. package/react/Product/index.d.ts +4 -0
  133. package/react/Product/index.js +41 -0
  134. package/react/Product/index.js.map +1 -0
  135. package/react/Refresh/index.d.ts +4 -0
  136. package/react/Refresh/index.js +41 -0
  137. package/react/Refresh/index.js.map +1 -0
  138. package/react/Search/index.d.ts +4 -0
  139. package/react/Search/index.js +41 -0
  140. package/react/Search/index.js.map +1 -0
  141. package/react/Settings/index.d.ts +4 -0
  142. package/react/Settings/index.js +41 -0
  143. package/react/Settings/index.js.map +1 -0
  144. package/react/Share/index.d.ts +4 -0
  145. package/react/Share/index.js +41 -0
  146. package/react/Share/index.js.map +1 -0
  147. package/react/Submission/index.d.ts +4 -0
  148. package/react/Submission/index.js +41 -0
  149. package/react/Submission/index.js.map +1 -0
  150. package/react/Tax/index.d.ts +4 -0
  151. package/react/Tax/index.js +41 -0
  152. package/react/Tax/index.js.map +1 -0
  153. package/react/Templates/index.d.ts +4 -0
  154. package/react/Templates/index.js +41 -0
  155. package/react/Templates/index.js.map +1 -0
  156. package/react/Visibility/index.d.ts +4 -0
  157. package/react/Visibility/index.js +41 -0
  158. package/react/Visibility/index.js.map +1 -0
  159. package/react/VisibilityOff/index.d.ts +4 -0
  160. package/react/VisibilityOff/index.js +41 -0
  161. package/react/VisibilityOff/index.js.map +1 -0
  162. package/react/Warning/index.d.ts +4 -0
  163. package/react/Warning/index.js +41 -0
  164. package/react/Warning/index.js.map +1 -0
  165. package/react/Webhook/index.d.ts +4 -0
  166. package/react/Webhook/index.js +41 -0
  167. package/react/Webhook/index.js.map +1 -0
  168. package/react/Workflow/index.d.ts +4 -0
  169. package/react/Workflow/index.js +41 -0
  170. package/react/Workflow/index.js.map +1 -0
  171. package/react/index.d.ts +50 -0
  172. package/react/index.js +50 -0
  173. package/react/index.js.map +1 -1
  174. package/react/types.d.ts +8 -0
  175. package/react/types.js +10 -0
  176. package/react/types.js.map +1 -0
  177. package/src/stories/Readme.mdx +53 -0
  178. package/iac/node_modules/@balena/dockerignore/LICENSE.md +0 -206
  179. package/iac/node_modules/@balena/dockerignore/README.md +0 -261
  180. package/iac/node_modules/@cspotcode/source-map-support/LICENSE.md +0 -21
  181. package/iac/node_modules/@cspotcode/source-map-support/README.md +0 -289
  182. package/iac/node_modules/@jridgewell/resolve-uri/LICENSE +0 -19
  183. package/iac/node_modules/@jridgewell/resolve-uri/README.md +0 -40
  184. package/iac/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +0 -1
  185. package/iac/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +0 -1
  186. package/iac/node_modules/@jridgewell/sourcemap-codec/LICENSE +0 -21
  187. package/iac/node_modules/@jridgewell/sourcemap-codec/README.md +0 -200
  188. package/iac/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +0 -1
  189. package/iac/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +0 -1
  190. package/iac/node_modules/@jridgewell/trace-mapping/LICENSE +0 -19
  191. package/iac/node_modules/@jridgewell/trace-mapping/README.md +0 -193
  192. package/iac/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +0 -1
  193. package/iac/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +0 -1
  194. package/iac/node_modules/@tsconfig/node10/LICENSE +0 -21
  195. package/iac/node_modules/@tsconfig/node10/README.md +0 -40
  196. package/iac/node_modules/@tsconfig/node12/LICENSE +0 -21
  197. package/iac/node_modules/@tsconfig/node12/README.md +0 -40
  198. package/iac/node_modules/@tsconfig/node14/LICENSE +0 -21
  199. package/iac/node_modules/@tsconfig/node14/README.md +0 -40
  200. package/iac/node_modules/@tsconfig/node16/LICENSE +0 -21
  201. package/iac/node_modules/@tsconfig/node16/README.md +0 -40
  202. package/iac/node_modules/@types/jest/LICENSE +0 -21
  203. package/iac/node_modules/@types/jest/README.md +0 -17
  204. package/iac/node_modules/@types/node/LICENSE +0 -21
  205. package/iac/node_modules/@types/node/README.md +0 -16
  206. package/iac/node_modules/@types/prettier/LICENSE +0 -21
  207. package/iac/node_modules/@types/prettier/README.md +0 -16
  208. package/iac/node_modules/acorn/LICENSE +0 -21
  209. package/iac/node_modules/acorn/README.md +0 -273
  210. package/iac/node_modules/acorn-walk/LICENSE +0 -21
  211. package/iac/node_modules/acorn-walk/README.md +0 -126
  212. package/iac/node_modules/ansi-regex/license +0 -9
  213. package/iac/node_modules/ansi-regex/readme.md +0 -78
  214. package/iac/node_modules/ansi-styles/license +0 -9
  215. package/iac/node_modules/ansi-styles/readme.md +0 -144
  216. package/iac/node_modules/arg/LICENSE.md +0 -21
  217. package/iac/node_modules/arg/README.md +0 -280
  218. package/iac/node_modules/at-least-node/LICENSE +0 -6
  219. package/iac/node_modules/at-least-node/README.md +0 -25
  220. package/iac/node_modules/aws-cdk/LICENSE +0 -201
  221. package/iac/node_modules/aws-cdk/README.md +0 -742
  222. package/iac/node_modules/aws-cdk/lib/init-templates/LICENSE +0 -16
  223. package/iac/node_modules/aws-cdk/lib/init-templates/app/csharp/README.md +0 -14
  224. package/iac/node_modules/aws-cdk/lib/init-templates/app/fsharp/README.md +0 -18
  225. package/iac/node_modules/aws-cdk/lib/init-templates/app/go/README.md +0 -12
  226. package/iac/node_modules/aws-cdk/lib/init-templates/app/java/README.md +0 -18
  227. package/iac/node_modules/aws-cdk/lib/init-templates/app/javascript/README.md +0 -12
  228. package/iac/node_modules/aws-cdk/lib/init-templates/app/python/README.template.md +0 -58
  229. package/iac/node_modules/aws-cdk/lib/init-templates/app/typescript/README.md +0 -14
  230. package/iac/node_modules/aws-cdk/lib/init-templates/lib/typescript/README.template.md +0 -12
  231. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/csharp/README.template.md +0 -19
  232. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/fsharp/README.template.md +0 -20
  233. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/go/README.md +0 -12
  234. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/java/README.template.md +0 -19
  235. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/javascript/README.template.md +0 -13
  236. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/python/README.template.md +0 -65
  237. package/iac/node_modules/aws-cdk/lib/init-templates/sample-app/typescript/README.template.md +0 -15
  238. package/iac/node_modules/aws-cdk/test/integ/cli/README.md +0 -48
  239. package/iac/node_modules/aws-cdk/test/integ/cli-regression-patches/README.md +0 -54
  240. package/iac/node_modules/aws-cdk-lib/LICENSE +0 -201
  241. package/iac/node_modules/aws-cdk-lib/README.md +0 -1119
  242. package/iac/node_modules/aws-cdk-lib/alexa-ask/README.md +0 -27
  243. package/iac/node_modules/aws-cdk-lib/assertions/README.md +0 -571
  244. package/iac/node_modules/aws-cdk-lib/assets/README.md +0 -4
  245. package/iac/node_modules/aws-cdk-lib/aws-accessanalyzer/README.md +0 -27
  246. package/iac/node_modules/aws-cdk-lib/aws-acmpca/README.md +0 -59
  247. package/iac/node_modules/aws-cdk-lib/aws-amazonmq/README.md +0 -27
  248. package/iac/node_modules/aws-cdk-lib/aws-amplify/README.md +0 -32
  249. package/iac/node_modules/aws-cdk-lib/aws-amplifyuibuilder/README.md +0 -27
  250. package/iac/node_modules/aws-cdk-lib/aws-apigateway/README.md +0 -1335
  251. package/iac/node_modules/aws-cdk-lib/aws-apigatewayv2/README.md +0 -32
  252. package/iac/node_modules/aws-cdk-lib/aws-appconfig/README.md +0 -27
  253. package/iac/node_modules/aws-cdk-lib/aws-appflow/README.md +0 -27
  254. package/iac/node_modules/aws-cdk-lib/aws-appintegrations/README.md +0 -27
  255. package/iac/node_modules/aws-cdk-lib/aws-applicationautoscaling/README.md +0 -246
  256. package/iac/node_modules/aws-cdk-lib/aws-applicationinsights/README.md +0 -27
  257. package/iac/node_modules/aws-cdk-lib/aws-appmesh/README.md +0 -883
  258. package/iac/node_modules/aws-cdk-lib/aws-apprunner/README.md +0 -32
  259. package/iac/node_modules/aws-cdk-lib/aws-appstream/README.md +0 -27
  260. package/iac/node_modules/aws-cdk-lib/aws-appsync/README.md +0 -32
  261. package/iac/node_modules/aws-cdk-lib/aws-aps/README.md +0 -27
  262. package/iac/node_modules/aws-cdk-lib/aws-athena/README.md +0 -27
  263. package/iac/node_modules/aws-cdk-lib/aws-auditmanager/README.md +0 -27
  264. package/iac/node_modules/aws-cdk-lib/aws-autoscaling/README.md +0 -540
  265. package/iac/node_modules/aws-cdk-lib/aws-autoscaling-common/README.md +0 -8
  266. package/iac/node_modules/aws-cdk-lib/aws-autoscaling-hooktargets/README.md +0 -18
  267. package/iac/node_modules/aws-cdk-lib/aws-autoscalingplans/README.md +0 -27
  268. package/iac/node_modules/aws-cdk-lib/aws-backup/README.md +0 -210
  269. package/iac/node_modules/aws-cdk-lib/aws-batch/README.md +0 -32
  270. package/iac/node_modules/aws-cdk-lib/aws-billingconductor/README.md +0 -27
  271. package/iac/node_modules/aws-cdk-lib/aws-budgets/README.md +0 -27
  272. package/iac/node_modules/aws-cdk-lib/aws-cassandra/README.md +0 -27
  273. package/iac/node_modules/aws-cdk-lib/aws-ce/README.md +0 -27
  274. package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/README.md +0 -166
  275. package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/lambda-packages/dns_validated_certificate_handler/README.md +0 -2
  276. package/iac/node_modules/aws-cdk-lib/aws-certificatemanager/suffixes/README.txt +0 -8
  277. package/iac/node_modules/aws-cdk-lib/aws-chatbot/README.md +0 -44
  278. package/iac/node_modules/aws-cdk-lib/aws-cloud9/README.md +0 -32
  279. package/iac/node_modules/aws-cdk-lib/aws-cloudformation/README.md +0 -4
  280. package/iac/node_modules/aws-cdk-lib/aws-cloudfront/README.md +0 -973
  281. package/iac/node_modules/aws-cdk-lib/aws-cloudfront-origins/README.md +0 -126
  282. package/iac/node_modules/aws-cdk-lib/aws-cloudtrail/README.md +0 -189
  283. package/iac/node_modules/aws-cdk-lib/aws-cloudwatch/README.md +0 -579
  284. package/iac/node_modules/aws-cdk-lib/aws-cloudwatch-actions/README.md +0 -43
  285. package/iac/node_modules/aws-cdk-lib/aws-codeartifact/README.md +0 -27
  286. package/iac/node_modules/aws-cdk-lib/aws-codebuild/README.md +0 -759
  287. package/iac/node_modules/aws-cdk-lib/aws-codecommit/README.md +0 -85
  288. package/iac/node_modules/aws-cdk-lib/aws-codedeploy/README.md +0 -319
  289. package/iac/node_modules/aws-cdk-lib/aws-codeguruprofiler/README.md +0 -37
  290. package/iac/node_modules/aws-cdk-lib/aws-codegurureviewer/README.md +0 -27
  291. package/iac/node_modules/aws-cdk-lib/aws-codepipeline/README.md +0 -481
  292. package/iac/node_modules/aws-cdk-lib/aws-codepipeline-actions/README.md +0 -1203
  293. package/iac/node_modules/aws-cdk-lib/aws-codestar/README.md +0 -32
  294. package/iac/node_modules/aws-cdk-lib/aws-codestarconnections/README.md +0 -27
  295. package/iac/node_modules/aws-cdk-lib/aws-codestarnotifications/README.md +0 -68
  296. package/iac/node_modules/aws-cdk-lib/aws-cognito/README.md +0 -843
  297. package/iac/node_modules/aws-cdk-lib/aws-config/README.md +0 -218
  298. package/iac/node_modules/aws-cdk-lib/aws-connect/README.md +0 -27
  299. package/iac/node_modules/aws-cdk-lib/aws-controltower/README.md +0 -27
  300. package/iac/node_modules/aws-cdk-lib/aws-cur/README.md +0 -27
  301. package/iac/node_modules/aws-cdk-lib/aws-customerprofiles/README.md +0 -27
  302. package/iac/node_modules/aws-cdk-lib/aws-databrew/README.md +0 -27
  303. package/iac/node_modules/aws-cdk-lib/aws-datapipeline/README.md +0 -27
  304. package/iac/node_modules/aws-cdk-lib/aws-datasync/README.md +0 -27
  305. package/iac/node_modules/aws-cdk-lib/aws-dax/README.md +0 -27
  306. package/iac/node_modules/aws-cdk-lib/aws-detective/README.md +0 -27
  307. package/iac/node_modules/aws-cdk-lib/aws-devopsguru/README.md +0 -27
  308. package/iac/node_modules/aws-cdk-lib/aws-directoryservice/README.md +0 -27
  309. package/iac/node_modules/aws-cdk-lib/aws-dlm/README.md +0 -27
  310. package/iac/node_modules/aws-cdk-lib/aws-dms/README.md +0 -27
  311. package/iac/node_modules/aws-cdk-lib/aws-docdb/README.md +0 -153
  312. package/iac/node_modules/aws-cdk-lib/aws-dynamodb/README.md +0 -200
  313. package/iac/node_modules/aws-cdk-lib/aws-ec2/README.md +0 -1514
  314. package/iac/node_modules/aws-cdk-lib/aws-ecr/README.md +0 -110
  315. package/iac/node_modules/aws-cdk-lib/aws-ecr-assets/README.md +0 -167
  316. package/iac/node_modules/aws-cdk-lib/aws-ecs/README.md +0 -1225
  317. package/iac/node_modules/aws-cdk-lib/aws-ecs-patterns/README.md +0 -980
  318. package/iac/node_modules/aws-cdk-lib/aws-efs/README.md +0 -154
  319. package/iac/node_modules/aws-cdk-lib/aws-eks/README.md +0 -1450
  320. package/iac/node_modules/aws-cdk-lib/aws-elasticache/README.md +0 -27
  321. package/iac/node_modules/aws-cdk-lib/aws-elasticbeanstalk/README.md +0 -27
  322. package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancing/README.md +0 -40
  323. package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2/README.md +0 -569
  324. package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2-actions/README.md +0 -68
  325. package/iac/node_modules/aws-cdk-lib/aws-elasticloadbalancingv2-targets/README.md +0 -4
  326. package/iac/node_modules/aws-cdk-lib/aws-elasticsearch/README.md +0 -441
  327. package/iac/node_modules/aws-cdk-lib/aws-emr/README.md +0 -27
  328. package/iac/node_modules/aws-cdk-lib/aws-emrcontainers/README.md +0 -27
  329. package/iac/node_modules/aws-cdk-lib/aws-emrserverless/README.md +0 -27
  330. package/iac/node_modules/aws-cdk-lib/aws-events/README.md +0 -249
  331. package/iac/node_modules/aws-cdk-lib/aws-events-targets/README.md +0 -339
  332. package/iac/node_modules/aws-cdk-lib/aws-eventschemas/README.md +0 -27
  333. package/iac/node_modules/aws-cdk-lib/aws-evidently/README.md +0 -27
  334. package/iac/node_modules/aws-cdk-lib/aws-finspace/README.md +0 -27
  335. package/iac/node_modules/aws-cdk-lib/aws-fis/README.md +0 -27
  336. package/iac/node_modules/aws-cdk-lib/aws-fms/README.md +0 -27
  337. package/iac/node_modules/aws-cdk-lib/aws-forecast/README.md +0 -27
  338. package/iac/node_modules/aws-cdk-lib/aws-frauddetector/README.md +0 -27
  339. package/iac/node_modules/aws-cdk-lib/aws-fsx/README.md +0 -200
  340. package/iac/node_modules/aws-cdk-lib/aws-gamelift/README.md +0 -27
  341. package/iac/node_modules/aws-cdk-lib/aws-globalaccelerator/README.md +0 -182
  342. package/iac/node_modules/aws-cdk-lib/aws-globalaccelerator-endpoints/README.md +0 -10
  343. package/iac/node_modules/aws-cdk-lib/aws-glue/README.md +0 -32
  344. package/iac/node_modules/aws-cdk-lib/aws-greengrass/README.md +0 -27
  345. package/iac/node_modules/aws-cdk-lib/aws-greengrassv2/README.md +0 -27
  346. package/iac/node_modules/aws-cdk-lib/aws-groundstation/README.md +0 -27
  347. package/iac/node_modules/aws-cdk-lib/aws-guardduty/README.md +0 -27
  348. package/iac/node_modules/aws-cdk-lib/aws-healthlake/README.md +0 -27
  349. package/iac/node_modules/aws-cdk-lib/aws-iam/README.md +0 -509
  350. package/iac/node_modules/aws-cdk-lib/aws-imagebuilder/README.md +0 -27
  351. package/iac/node_modules/aws-cdk-lib/aws-inspector/README.md +0 -27
  352. package/iac/node_modules/aws-cdk-lib/aws-inspectorv2/README.md +0 -27
  353. package/iac/node_modules/aws-cdk-lib/aws-iot/README.md +0 -32
  354. package/iac/node_modules/aws-cdk-lib/aws-iot1click/README.md +0 -27
  355. package/iac/node_modules/aws-cdk-lib/aws-iotanalytics/README.md +0 -27
  356. package/iac/node_modules/aws-cdk-lib/aws-iotcoredeviceadvisor/README.md +0 -27
  357. package/iac/node_modules/aws-cdk-lib/aws-iotevents/README.md +0 -32
  358. package/iac/node_modules/aws-cdk-lib/aws-iotfleethub/README.md +0 -27
  359. package/iac/node_modules/aws-cdk-lib/aws-iotsitewise/README.md +0 -27
  360. package/iac/node_modules/aws-cdk-lib/aws-iotthingsgraph/README.md +0 -27
  361. package/iac/node_modules/aws-cdk-lib/aws-iottwinmaker/README.md +0 -27
  362. package/iac/node_modules/aws-cdk-lib/aws-iotwireless/README.md +0 -27
  363. package/iac/node_modules/aws-cdk-lib/aws-ivs/README.md +0 -32
  364. package/iac/node_modules/aws-cdk-lib/aws-kafkaconnect/README.md +0 -27
  365. package/iac/node_modules/aws-cdk-lib/aws-kendra/README.md +0 -27
  366. package/iac/node_modules/aws-cdk-lib/aws-kinesis/README.md +0 -188
  367. package/iac/node_modules/aws-cdk-lib/aws-kinesisanalytics/README.md +0 -27
  368. package/iac/node_modules/aws-cdk-lib/aws-kinesisanalyticsv2/README.md +0 -27
  369. package/iac/node_modules/aws-cdk-lib/aws-kinesisfirehose/README.md +0 -32
  370. package/iac/node_modules/aws-cdk-lib/aws-kinesisvideo/README.md +0 -27
  371. package/iac/node_modules/aws-cdk-lib/aws-kms/README.md +0 -209
  372. package/iac/node_modules/aws-cdk-lib/aws-lakeformation/README.md +0 -27
  373. package/iac/node_modules/aws-cdk-lib/aws-lambda/README.md +0 -985
  374. package/iac/node_modules/aws-cdk-lib/aws-lambda-destinations/README.md +0 -147
  375. package/iac/node_modules/aws-cdk-lib/aws-lambda-event-sources/README.md +0 -281
  376. package/iac/node_modules/aws-cdk-lib/aws-lambda-nodejs/README.md +0 -317
  377. package/iac/node_modules/aws-cdk-lib/aws-lex/README.md +0 -27
  378. package/iac/node_modules/aws-cdk-lib/aws-licensemanager/README.md +0 -27
  379. package/iac/node_modules/aws-cdk-lib/aws-lightsail/README.md +0 -27
  380. package/iac/node_modules/aws-cdk-lib/aws-location/README.md +0 -27
  381. package/iac/node_modules/aws-cdk-lib/aws-logs/README.md +0 -322
  382. package/iac/node_modules/aws-cdk-lib/aws-logs-destinations/README.md +0 -7
  383. package/iac/node_modules/aws-cdk-lib/aws-lookoutequipment/README.md +0 -27
  384. package/iac/node_modules/aws-cdk-lib/aws-lookoutmetrics/README.md +0 -27
  385. package/iac/node_modules/aws-cdk-lib/aws-lookoutvision/README.md +0 -27
  386. package/iac/node_modules/aws-cdk-lib/aws-m2/README.md +0 -27
  387. package/iac/node_modules/aws-cdk-lib/aws-macie/README.md +0 -27
  388. package/iac/node_modules/aws-cdk-lib/aws-managedblockchain/README.md +0 -27
  389. package/iac/node_modules/aws-cdk-lib/aws-mediaconnect/README.md +0 -27
  390. package/iac/node_modules/aws-cdk-lib/aws-mediaconvert/README.md +0 -27
  391. package/iac/node_modules/aws-cdk-lib/aws-medialive/README.md +0 -27
  392. package/iac/node_modules/aws-cdk-lib/aws-mediapackage/README.md +0 -27
  393. package/iac/node_modules/aws-cdk-lib/aws-mediastore/README.md +0 -27
  394. package/iac/node_modules/aws-cdk-lib/aws-mediatailor/README.md +0 -27
  395. package/iac/node_modules/aws-cdk-lib/aws-memorydb/README.md +0 -27
  396. package/iac/node_modules/aws-cdk-lib/aws-msk/README.md +0 -32
  397. package/iac/node_modules/aws-cdk-lib/aws-mwaa/README.md +0 -27
  398. package/iac/node_modules/aws-cdk-lib/aws-neptune/README.md +0 -32
  399. package/iac/node_modules/aws-cdk-lib/aws-networkfirewall/README.md +0 -27
  400. package/iac/node_modules/aws-cdk-lib/aws-networkmanager/README.md +0 -27
  401. package/iac/node_modules/aws-cdk-lib/aws-nimblestudio/README.md +0 -27
  402. package/iac/node_modules/aws-cdk-lib/aws-opensearchservice/README.md +0 -378
  403. package/iac/node_modules/aws-cdk-lib/aws-opsworks/README.md +0 -27
  404. package/iac/node_modules/aws-cdk-lib/aws-opsworkscm/README.md +0 -27
  405. package/iac/node_modules/aws-cdk-lib/aws-panorama/README.md +0 -27
  406. package/iac/node_modules/aws-cdk-lib/aws-personalize/README.md +0 -27
  407. package/iac/node_modules/aws-cdk-lib/aws-pinpoint/README.md +0 -27
  408. package/iac/node_modules/aws-cdk-lib/aws-pinpointemail/README.md +0 -27
  409. package/iac/node_modules/aws-cdk-lib/aws-qldb/README.md +0 -27
  410. package/iac/node_modules/aws-cdk-lib/aws-quicksight/README.md +0 -27
  411. package/iac/node_modules/aws-cdk-lib/aws-ram/README.md +0 -27
  412. package/iac/node_modules/aws-cdk-lib/aws-rds/README.md +0 -704
  413. package/iac/node_modules/aws-cdk-lib/aws-redshift/README.md +0 -32
  414. package/iac/node_modules/aws-cdk-lib/aws-redshiftserverless/README.md +0 -27
  415. package/iac/node_modules/aws-cdk-lib/aws-refactorspaces/README.md +0 -27
  416. package/iac/node_modules/aws-cdk-lib/aws-rekognition/README.md +0 -27
  417. package/iac/node_modules/aws-cdk-lib/aws-resiliencehub/README.md +0 -27
  418. package/iac/node_modules/aws-cdk-lib/aws-resourcegroups/README.md +0 -27
  419. package/iac/node_modules/aws-cdk-lib/aws-robomaker/README.md +0 -27
  420. package/iac/node_modules/aws-cdk-lib/aws-route53/README.md +0 -281
  421. package/iac/node_modules/aws-cdk-lib/aws-route53-patterns/README.md +0 -45
  422. package/iac/node_modules/aws-cdk-lib/aws-route53-targets/README.md +0 -181
  423. package/iac/node_modules/aws-cdk-lib/aws-route53recoverycontrol/README.md +0 -27
  424. package/iac/node_modules/aws-cdk-lib/aws-route53recoveryreadiness/README.md +0 -27
  425. package/iac/node_modules/aws-cdk-lib/aws-route53resolver/README.md +0 -32
  426. package/iac/node_modules/aws-cdk-lib/aws-rum/README.md +0 -27
  427. package/iac/node_modules/aws-cdk-lib/aws-s3/README.md +0 -581
  428. package/iac/node_modules/aws-cdk-lib/aws-s3-assets/README.md +0 -179
  429. package/iac/node_modules/aws-cdk-lib/aws-s3-deployment/README.md +0 -349
  430. package/iac/node_modules/aws-cdk-lib/aws-s3-notifications/README.md +0 -46
  431. package/iac/node_modules/aws-cdk-lib/aws-s3objectlambda/README.md +0 -32
  432. package/iac/node_modules/aws-cdk-lib/aws-s3outposts/README.md +0 -27
  433. package/iac/node_modules/aws-cdk-lib/aws-sagemaker/README.md +0 -27
  434. package/iac/node_modules/aws-cdk-lib/aws-sam/README.md +0 -27
  435. package/iac/node_modules/aws-cdk-lib/aws-sdb/README.md +0 -27
  436. package/iac/node_modules/aws-cdk-lib/aws-secretsmanager/README.md +0 -285
  437. package/iac/node_modules/aws-cdk-lib/aws-securityhub/README.md +0 -27
  438. package/iac/node_modules/aws-cdk-lib/aws-servicecatalog/README.md +0 -491
  439. package/iac/node_modules/aws-cdk-lib/aws-servicecatalogappregistry/README.md +0 -32
  440. package/iac/node_modules/aws-cdk-lib/aws-servicediscovery/README.md +0 -45
  441. package/iac/node_modules/aws-cdk-lib/aws-ses/README.md +0 -194
  442. package/iac/node_modules/aws-cdk-lib/aws-ses-actions/README.md +0 -16
  443. package/iac/node_modules/aws-cdk-lib/aws-signer/README.md +0 -41
  444. package/iac/node_modules/aws-cdk-lib/aws-sns/README.md +0 -184
  445. package/iac/node_modules/aws-cdk-lib/aws-sns-subscriptions/README.md +0 -120
  446. package/iac/node_modules/aws-cdk-lib/aws-sqs/README.md +0 -57
  447. package/iac/node_modules/aws-cdk-lib/aws-ssm/README.md +0 -99
  448. package/iac/node_modules/aws-cdk-lib/aws-ssmcontacts/README.md +0 -27
  449. package/iac/node_modules/aws-cdk-lib/aws-ssmincidents/README.md +0 -27
  450. package/iac/node_modules/aws-cdk-lib/aws-sso/README.md +0 -27
  451. package/iac/node_modules/aws-cdk-lib/aws-stepfunctions/README.md +0 -884
  452. package/iac/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/README.md +0 -1288
  453. package/iac/node_modules/aws-cdk-lib/aws-supportapp/README.md +0 -27
  454. package/iac/node_modules/aws-cdk-lib/aws-synthetics/README.md +0 -32
  455. package/iac/node_modules/aws-cdk-lib/aws-timestream/README.md +0 -27
  456. package/iac/node_modules/aws-cdk-lib/aws-transfer/README.md +0 -27
  457. package/iac/node_modules/aws-cdk-lib/aws-voiceid/README.md +0 -27
  458. package/iac/node_modules/aws-cdk-lib/aws-waf/README.md +0 -27
  459. package/iac/node_modules/aws-cdk-lib/aws-wafregional/README.md +0 -27
  460. package/iac/node_modules/aws-cdk-lib/aws-wafv2/README.md +0 -27
  461. package/iac/node_modules/aws-cdk-lib/aws-wisdom/README.md +0 -27
  462. package/iac/node_modules/aws-cdk-lib/aws-workspaces/README.md +0 -27
  463. package/iac/node_modules/aws-cdk-lib/aws-xray/README.md +0 -27
  464. package/iac/node_modules/aws-cdk-lib/cloud-assembly-schema/README.md +0 -55
  465. package/iac/node_modules/aws-cdk-lib/cloud-assembly-schema/schema/README.md +0 -5
  466. package/iac/node_modules/aws-cdk-lib/cloudformation-include/README.md +0 -466
  467. package/iac/node_modules/aws-cdk-lib/core/README.md +0 -1078
  468. package/iac/node_modules/aws-cdk-lib/custom-resources/README.md +0 -624
  469. package/iac/node_modules/aws-cdk-lib/cx-api/README.md +0 -98
  470. package/iac/node_modules/aws-cdk-lib/lambda-layer-awscli/README.md +0 -19
  471. package/iac/node_modules/aws-cdk-lib/lambda-layer-kubectl/README.md +0 -20
  472. package/iac/node_modules/aws-cdk-lib/lambda-layer-node-proxy-agent/README.md +0 -18
  473. package/iac/node_modules/aws-cdk-lib/node_modules/@balena/dockerignore/LICENSE.md +0 -206
  474. package/iac/node_modules/aws-cdk-lib/node_modules/@balena/dockerignore/README.md +0 -261
  475. package/iac/node_modules/aws-cdk-lib/node_modules/at-least-node/LICENSE +0 -6
  476. package/iac/node_modules/aws-cdk-lib/node_modules/at-least-node/README.md +0 -25
  477. package/iac/node_modules/aws-cdk-lib/node_modules/balanced-match/LICENSE.md +0 -21
  478. package/iac/node_modules/aws-cdk-lib/node_modules/balanced-match/README.md +0 -97
  479. package/iac/node_modules/aws-cdk-lib/node_modules/brace-expansion/LICENSE +0 -21
  480. package/iac/node_modules/aws-cdk-lib/node_modules/brace-expansion/README.md +0 -129
  481. package/iac/node_modules/aws-cdk-lib/node_modules/case/LICENSE +0 -22
  482. package/iac/node_modules/aws-cdk-lib/node_modules/case/README.md +0 -139
  483. package/iac/node_modules/aws-cdk-lib/node_modules/case/dist/Case.min.js.map +0 -1
  484. package/iac/node_modules/aws-cdk-lib/node_modules/case/dist/Case.plus.min.js.map +0 -1
  485. package/iac/node_modules/aws-cdk-lib/node_modules/concat-map/LICENSE +0 -18
  486. package/iac/node_modules/aws-cdk-lib/node_modules/concat-map/README.markdown +0 -62
  487. package/iac/node_modules/aws-cdk-lib/node_modules/fs-extra/LICENSE +0 -15
  488. package/iac/node_modules/aws-cdk-lib/node_modules/fs-extra/README.md +0 -264
  489. package/iac/node_modules/aws-cdk-lib/node_modules/graceful-fs/LICENSE +0 -15
  490. package/iac/node_modules/aws-cdk-lib/node_modules/graceful-fs/README.md +0 -143
  491. package/iac/node_modules/aws-cdk-lib/node_modules/ignore/README.md +0 -412
  492. package/iac/node_modules/aws-cdk-lib/node_modules/jsonfile/LICENSE +0 -15
  493. package/iac/node_modules/aws-cdk-lib/node_modules/jsonfile/README.md +0 -230
  494. package/iac/node_modules/aws-cdk-lib/node_modules/jsonschema/LICENSE +0 -21
  495. package/iac/node_modules/aws-cdk-lib/node_modules/jsonschema/README.md +0 -421
  496. package/iac/node_modules/aws-cdk-lib/node_modules/lru-cache/LICENSE +0 -15
  497. package/iac/node_modules/aws-cdk-lib/node_modules/lru-cache/README.md +0 -166
  498. package/iac/node_modules/aws-cdk-lib/node_modules/minimatch/LICENSE +0 -15
  499. package/iac/node_modules/aws-cdk-lib/node_modules/minimatch/README.md +0 -230
  500. package/iac/node_modules/aws-cdk-lib/node_modules/punycode/README.md +0 -122
  501. package/iac/node_modules/aws-cdk-lib/node_modules/semver/LICENSE +0 -15
  502. package/iac/node_modules/aws-cdk-lib/node_modules/semver/README.md +0 -568
  503. package/iac/node_modules/aws-cdk-lib/node_modules/universalify/LICENSE +0 -20
  504. package/iac/node_modules/aws-cdk-lib/node_modules/universalify/README.md +0 -76
  505. package/iac/node_modules/aws-cdk-lib/node_modules/yallist/LICENSE +0 -15
  506. package/iac/node_modules/aws-cdk-lib/node_modules/yallist/README.md +0 -204
  507. package/iac/node_modules/aws-cdk-lib/node_modules/yaml/LICENSE +0 -13
  508. package/iac/node_modules/aws-cdk-lib/node_modules/yaml/README.md +0 -127
  509. package/iac/node_modules/aws-cdk-lib/pipelines/README.md +0 -1573
  510. package/iac/node_modules/aws-cdk-lib/region-info/README.md +0 -84
  511. package/iac/node_modules/aws-cdk-lib/triggers/README.md +0 -86
  512. package/iac/node_modules/balanced-match/LICENSE.md +0 -21
  513. package/iac/node_modules/balanced-match/README.md +0 -97
  514. package/iac/node_modules/brace-expansion/LICENSE +0 -21
  515. package/iac/node_modules/brace-expansion/README.md +0 -129
  516. package/iac/node_modules/buffer-from/LICENSE +0 -21
  517. package/iac/node_modules/buffer-from/readme.md +0 -69
  518. package/iac/node_modules/case/LICENSE +0 -22
  519. package/iac/node_modules/case/README.md +0 -139
  520. package/iac/node_modules/case/dist/Case.min.js.map +0 -1
  521. package/iac/node_modules/case/dist/Case.plus.min.js.map +0 -1
  522. package/iac/node_modules/chalk/license +0 -9
  523. package/iac/node_modules/chalk/node_modules/ansi-styles/license +0 -9
  524. package/iac/node_modules/chalk/node_modules/ansi-styles/readme.md +0 -152
  525. package/iac/node_modules/chalk/readme.md +0 -341
  526. package/iac/node_modules/color-convert/LICENSE +0 -21
  527. package/iac/node_modules/color-convert/README.md +0 -68
  528. package/iac/node_modules/color-name/LICENSE +0 -8
  529. package/iac/node_modules/color-name/README.md +0 -11
  530. package/iac/node_modules/concat-map/LICENSE +0 -18
  531. package/iac/node_modules/concat-map/README.markdown +0 -62
  532. package/iac/node_modules/constructs/LICENSE +0 -202
  533. package/iac/node_modules/constructs/README.md +0 -28
  534. package/iac/node_modules/create-require/LICENSE +0 -25
  535. package/iac/node_modules/create-require/README.md +0 -46
  536. package/iac/node_modules/diff/LICENSE +0 -31
  537. package/iac/node_modules/diff/README.md +0 -207
  538. package/iac/node_modules/diff-sequences/LICENSE +0 -21
  539. package/iac/node_modules/diff-sequences/README.md +0 -404
  540. package/iac/node_modules/fs-extra/LICENSE +0 -15
  541. package/iac/node_modules/fs-extra/README.md +0 -264
  542. package/iac/node_modules/fsevents/LICENSE +0 -22
  543. package/iac/node_modules/fsevents/README.md +0 -83
  544. package/iac/node_modules/graceful-fs/LICENSE +0 -15
  545. package/iac/node_modules/graceful-fs/README.md +0 -143
  546. package/iac/node_modules/has-flag/license +0 -9
  547. package/iac/node_modules/has-flag/readme.md +0 -89
  548. package/iac/node_modules/ignore/README.md +0 -412
  549. package/iac/node_modules/jest-diff/LICENSE +0 -21
  550. package/iac/node_modules/jest-diff/README.md +0 -671
  551. package/iac/node_modules/jest-get-type/LICENSE +0 -21
  552. package/iac/node_modules/jest-matcher-utils/LICENSE +0 -21
  553. package/iac/node_modules/jest-matcher-utils/README.md +0 -24
  554. package/iac/node_modules/jsonfile/LICENSE +0 -15
  555. package/iac/node_modules/jsonfile/README.md +0 -230
  556. package/iac/node_modules/jsonschema/LICENSE +0 -21
  557. package/iac/node_modules/jsonschema/README.md +0 -421
  558. package/iac/node_modules/lru-cache/LICENSE +0 -15
  559. package/iac/node_modules/lru-cache/README.md +0 -166
  560. package/iac/node_modules/make-error/LICENSE +0 -5
  561. package/iac/node_modules/make-error/README.md +0 -112
  562. package/iac/node_modules/minimatch/LICENSE +0 -15
  563. package/iac/node_modules/minimatch/README.md +0 -230
  564. package/iac/node_modules/pretty-format/LICENSE +0 -21
  565. package/iac/node_modules/pretty-format/README.md +0 -458
  566. package/iac/node_modules/punycode/README.md +0 -122
  567. package/iac/node_modules/react-is/LICENSE +0 -21
  568. package/iac/node_modules/react-is/README.md +0 -104
  569. package/iac/node_modules/semver/LICENSE +0 -15
  570. package/iac/node_modules/semver/README.md +0 -568
  571. package/iac/node_modules/source-map/LICENSE +0 -28
  572. package/iac/node_modules/source-map/README.md +0 -742
  573. package/iac/node_modules/source-map/dist/source-map.min.js.map +0 -1
  574. package/iac/node_modules/source-map-support/LICENSE.md +0 -21
  575. package/iac/node_modules/source-map-support/README.md +0 -284
  576. package/iac/node_modules/supports-color/license +0 -9
  577. package/iac/node_modules/supports-color/readme.md +0 -76
  578. package/iac/node_modules/ts-node/LICENSE +0 -21
  579. package/iac/node_modules/ts-node/README.md +0 -1442
  580. package/iac/node_modules/ts-node/dist/bin-cwd.js.map +0 -1
  581. package/iac/node_modules/ts-node/dist/bin-esm.js.map +0 -1
  582. package/iac/node_modules/ts-node/dist/bin-script-deprecated.js.map +0 -1
  583. package/iac/node_modules/ts-node/dist/bin-script.js.map +0 -1
  584. package/iac/node_modules/ts-node/dist/bin-transpile.js.map +0 -1
  585. package/iac/node_modules/ts-node/dist/bin.js.map +0 -1
  586. package/iac/node_modules/ts-node/dist/child/argv-payload.js.map +0 -1
  587. package/iac/node_modules/ts-node/dist/child/child-entrypoint.js.map +0 -1
  588. package/iac/node_modules/ts-node/dist/child/child-loader.js.map +0 -1
  589. package/iac/node_modules/ts-node/dist/child/child-require.js.map +0 -1
  590. package/iac/node_modules/ts-node/dist/child/spawn-child.js.map +0 -1
  591. package/iac/node_modules/ts-node/dist/cjs-resolve-hooks.js.map +0 -1
  592. package/iac/node_modules/ts-node/dist/configuration.js.map +0 -1
  593. package/iac/node_modules/ts-node/dist/esm.js.map +0 -1
  594. package/iac/node_modules/ts-node/dist/file-extensions.js.map +0 -1
  595. package/iac/node_modules/ts-node/dist/index.js.map +0 -1
  596. package/iac/node_modules/ts-node/dist/module-type-classifier.js.map +0 -1
  597. package/iac/node_modules/ts-node/dist/node-module-type-classifier.js.map +0 -1
  598. package/iac/node_modules/ts-node/dist/repl.js.map +0 -1
  599. package/iac/node_modules/ts-node/dist/resolver-functions.js.map +0 -1
  600. package/iac/node_modules/ts-node/dist/transpilers/swc.js.map +0 -1
  601. package/iac/node_modules/ts-node/dist/transpilers/types.js.map +0 -1
  602. package/iac/node_modules/ts-node/dist/ts-compiler-types.js.map +0 -1
  603. package/iac/node_modules/ts-node/dist/ts-internals.js.map +0 -1
  604. package/iac/node_modules/ts-node/dist/ts-transpile-module.js.map +0 -1
  605. package/iac/node_modules/ts-node/dist/tsconfig-schema.js.map +0 -1
  606. package/iac/node_modules/ts-node/dist/tsconfigs.js.map +0 -1
  607. package/iac/node_modules/ts-node/dist/util.js.map +0 -1
  608. package/iac/node_modules/ts-node/dist-raw/README.md +0 -36
  609. package/iac/node_modules/typescript/LICENSE.txt +0 -55
  610. package/iac/node_modules/typescript/README.md +0 -104
  611. package/iac/node_modules/typescript/lib/README.md +0 -5
  612. package/iac/node_modules/universalify/LICENSE +0 -20
  613. package/iac/node_modules/universalify/README.md +0 -76
  614. package/iac/node_modules/v8-compile-cache-lib/LICENSE +0 -21
  615. package/iac/node_modules/v8-compile-cache-lib/README.md +0 -60
  616. package/iac/node_modules/yallist/LICENSE +0 -15
  617. package/iac/node_modules/yallist/README.md +0 -204
  618. package/iac/node_modules/yaml/LICENSE +0 -13
  619. package/iac/node_modules/yaml/README.md +0 -127
  620. package/iac/node_modules/yn/license +0 -9
  621. package/iac/node_modules/yn/readme.md +0 -83
  622. package/react/Edit.d.ts +0 -3
  623. package/react/Edit.js +0 -10
  624. package/react/Edit.js.map +0 -1
@@ -1,1442 +0,0 @@
1
- <!--
2
- BEFORE EDITING THIS README
3
- Our README.md is auto-generated by combining pages in website/docs and website/readme-sources
4
-
5
- If you are sending a pull request to improve documentation, submit your changes
6
- in the source markdown files and we will generate the README from there.
7
-
8
- You can build the readme with this command:
9
-
10
- cd website && yarn build-readme
11
- -->
12
-
13
- # [![TypeScript Node](logo.svg?sanitize=true)](https://typestrong.org/ts-node)
14
-
15
- [![NPM version](https://img.shields.io/npm/v/ts-node.svg?style=flat)](https://npmjs.org/package/ts-node)
16
- [![NPM downloads](https://img.shields.io/npm/dm/ts-node.svg?style=flat)](https://npmjs.org/package/ts-node)
17
- [![Build status](https://img.shields.io/github/workflow/status/TypeStrong/ts-node/Continuous%20Integration)](https://github.com/TypeStrong/ts-node/actions?query=workflow%3A%22Continuous+Integration%22)
18
- [![Test coverage](https://codecov.io/gh/TypeStrong/ts-node/branch/main/graph/badge.svg)](https://codecov.io/gh/TypeStrong/ts-node)
19
-
20
- > TypeScript execution and REPL for node.js, with source map and native ESM support.
21
-
22
- The latest documentation can also be found on our website: <https://typestrong.org/ts-node>
23
-
24
- # Table of Contents
25
-
26
- * [Overview](#overview)
27
- * [Features](#features)
28
- * [Installation](#installation)
29
- * [Usage](#usage)
30
- * [Command Line](#command-line)
31
- * [Shebang](#shebang)
32
- * [node flags and other tools](#node-flags-and-other-tools)
33
- * [Programmatic](#programmatic)
34
- * [Configuration](#configuration)
35
- * [CLI flags](#cli-flags)
36
- * [Via tsconfig.json (recommended)](#via-tsconfigjson-recommended)
37
- * [@tsconfig/bases](#tsconfigbases)
38
- * [Default config](#default-config)
39
- * [`node` flags](#node-flags)
40
- * [Options](#options)
41
- * [CLI Options](#cli-options)
42
- * [help](#help)
43
- * [version](#version)
44
- * [eval](#eval)
45
- * [print](#print)
46
- * [interactive](#interactive)
47
- * [esm](#esm)
48
- * [TSConfig Options](#tsconfig-options)
49
- * [project](#project)
50
- * [skipProject](#skipproject)
51
- * [cwdMode](#cwdmode)
52
- * [compilerOptions](#compileroptions)
53
- * [showConfig](#showconfig)
54
- * [Typechecking](#typechecking)
55
- * [transpileOnly](#transpileonly)
56
- * [typeCheck](#typecheck)
57
- * [compilerHost](#compilerhost)
58
- * [files](#files)
59
- * [ignoreDiagnostics](#ignorediagnostics)
60
- * [Transpilation Options](#transpilation-options)
61
- * [ignore](#ignore)
62
- * [skipIgnore](#skipignore)
63
- * [compiler](#compiler)
64
- * [swc](#swc)
65
- * [transpiler](#transpiler)
66
- * [preferTsExts](#prefertsexts)
67
- * [Diagnostic Options](#diagnostic-options)
68
- * [logError](#logerror)
69
- * [pretty](#pretty)
70
- * [TS_NODE_DEBUG](#ts_node_debug)
71
- * [Advanced Options](#advanced-options)
72
- * [require](#require)
73
- * [cwd](#cwd)
74
- * [emit](#emit)
75
- * [scope](#scope)
76
- * [scopeDir](#scopedir)
77
- * [moduleTypes](#moduletypes)
78
- * [TS_NODE_HISTORY](#ts_node_history)
79
- * [noExperimentalReplAwait](#noexperimentalreplawait)
80
- * [experimentalResolver](#experimentalresolver)
81
- * [experimentalSpecifierResolution](#experimentalspecifierresolution)
82
- * [API Options](#api-options)
83
- * [SWC](#swc-1)
84
- * [CommonJS vs native ECMAScript modules](#commonjs-vs-native-ecmascript-modules)
85
- * [CommonJS](#commonjs)
86
- * [Native ECMAScript modules](#native-ecmascript-modules)
87
- * [Troubleshooting](#troubleshooting)
88
- * [Configuration](#configuration-1)
89
- * [Common errors](#common-errors)
90
- * [`TSError`](#tserror)
91
- * [`SyntaxError`](#syntaxerror)
92
- * [Unsupported JavaScript syntax](#unsupported-javascript-syntax)
93
- * [`ERR_REQUIRE_ESM`](#err_require_esm)
94
- * [`ERR_UNKNOWN_FILE_EXTENSION`](#err_unknown_file_extension)
95
- * [Missing Types](#missing-types)
96
- * [npx, yarn dlx, and node_modules](#npx-yarn-dlx-and-node_modules)
97
- * [Performance](#performance)
98
- * [Skip typechecking](#skip-typechecking)
99
- * [With typechecking](#with-typechecking)
100
- * [Advanced](#advanced)
101
- * [How it works](#how-it-works)
102
- * [Ignored files](#ignored-files)
103
- * [File extensions](#file-extensions)
104
- * [Skipping `node_modules`](#skipping-node_modules)
105
- * [Skipping pre-compiled TypeScript](#skipping-pre-compiled-typescript)
106
- * [Scope by directory](#scope-by-directory)
107
- * [Ignore by regexp](#ignore-by-regexp)
108
- * [paths and baseUrl
109
- ](#paths-and-baseurl)
110
- * [Why is this not built-in to ts-node?](#why-is-this-not-built-in-to-ts-node)
111
- * [Third-party compilers](#third-party-compilers)
112
- * [Transpilers](#transpilers)
113
- * [Third-party plugins](#third-party-plugins)
114
- * [Write your own plugin](#write-your-own-plugin)
115
- * [Module type overrides](#module-type-overrides)
116
- * [Caveats](#caveats)
117
- * [API](#api)
118
- * [Recipes](#recipes)
119
- * [Watching and restarting](#watching-and-restarting)
120
- * [AVA](#ava)
121
- * [CommonJS](#commonjs-1)
122
- * [Native ECMAScript modules](#native-ecmascript-modules-1)
123
- * [Gulp](#gulp)
124
- * [IntelliJ and Webstorm](#intellij-and-webstorm)
125
- * [Mocha](#mocha)
126
- * [Mocha 7 and newer](#mocha-7-and-newer)
127
- * [Mocha <=6](#mocha-6)
128
- * [Tape](#tape)
129
- * [Visual Studio Code](#visual-studio-code)
130
- * [Other](#other)
131
- * [License](#license)
132
-
133
- # Overview
134
-
135
- ts-node is a TypeScript execution engine and REPL for Node.js.
136
-
137
- It JIT transforms TypeScript into JavaScript, enabling you to directly execute TypeScript on Node.js without precompiling.
138
- This is accomplished by hooking node's module loading APIs, enabling it to be used seamlessly alongside other Node.js
139
- tools and libraries.
140
-
141
- ## Features
142
-
143
- * Automatic sourcemaps in stack traces
144
- * Automatic `tsconfig.json` parsing
145
- * Automatic defaults to match your node version
146
- * Typechecking (optional)
147
- * REPL
148
- * Write standalone scripts
149
- * Native ESM loader
150
- * Use third-party transpilers
151
- * Use custom transformers
152
- * Integrate with test runners, debuggers, and CLI tools
153
- * Compatible with pre-compilation for production
154
-
155
- ![TypeScript REPL](website/static/img/screenshot.png)
156
-
157
- # Installation
158
-
159
- ```shell
160
- # Locally in your project.
161
- npm install -D typescript
162
- npm install -D ts-node
163
-
164
- # Or globally with TypeScript.
165
- npm install -g typescript
166
- npm install -g ts-node
167
-
168
- # Depending on configuration, you may also need these
169
- npm install -D tslib @types/node
170
- ```
171
-
172
- **Tip:** Installing modules locally allows you to control and share the versions through `package.json`. ts-node will always resolve the compiler from `cwd` before checking relative to its own installation.
173
-
174
- # Usage
175
-
176
- ## Command Line
177
-
178
- ```shell
179
- # Execute a script as `node` + `tsc`.
180
- ts-node script.ts
181
-
182
- # Starts a TypeScript REPL.
183
- ts-node
184
-
185
- # Execute code with TypeScript.
186
- ts-node -e 'console.log("Hello, world!")'
187
-
188
- # Execute, and print, code with TypeScript.
189
- ts-node -p -e '"Hello, world!"'
190
-
191
- # Pipe scripts to execute with TypeScript.
192
- echo 'console.log("Hello, world!")' | ts-node
193
-
194
- # Equivalent to ts-node --transpileOnly
195
- ts-node-transpile-only script.ts
196
-
197
- # Equivalent to ts-node --cwdMode
198
- ts-node-cwd script.ts
199
-
200
- # Equivalent to ts-node --esm
201
- ts-node-esm script.ts
202
- ```
203
-
204
- ## Shebang
205
-
206
- To write scripts with maximum portability, [specify options in your `tsconfig.json`](#via-tsconfigjson-recommended) and omit them from the shebang.
207
-
208
- ```typescript twoslash
209
- #!/usr/bin/env ts-node
210
-
211
- // ts-node options are read from tsconfig.json
212
-
213
- console.log("Hello, world!")
214
- ```
215
-
216
- Including options within the shebang requires the [`env -S` flag](https://manpages.debian.org/bullseye/coreutils/env.1.en.html#S), which is available on recent versions of `env`. ([compatibility](https://github.com/TypeStrong/ts-node/pull/1448#issuecomment-913895766))
217
-
218
- ```typescript twoslash
219
- #!/usr/bin/env -S ts-node --files
220
- // This shebang works on Mac and Linux with newer versions of env
221
- // Technically, Mac allows omitting `-S`, but Linux requires it
222
- ```
223
-
224
- To test your version of `env` for compatibility with `-S`:
225
-
226
- ```shell
227
- # Note that these unusual quotes are necessary
228
- /usr/bin/env --debug '-S echo foo bar'
229
- ```
230
-
231
- ## node flags and other tools
232
-
233
- You can register ts-node without using our CLI: `node -r ts-node/register` and `node --loader ts-node/esm`
234
-
235
- In many cases, setting [`NODE_OPTIONS`](https://nodejs.org/api/cli.html#cli_node_options_options) will enable `ts-node` within other node tools, child processes, and worker threads. This can be combined with other node flags.
236
-
237
- ```shell
238
- NODE_OPTIONS="-r ts-node/register --no-warnings" node ./index.ts
239
- ```
240
-
241
- Or, if you require native ESM support:
242
-
243
- ```shell
244
- NODE_OPTIONS="--loader ts-node/esm"
245
- ```
246
-
247
- This tells any node processes which receive this environment variable to install `ts-node`'s hooks before executing other code.
248
-
249
- If you are invoking node directly, you can avoid the environment variable and pass those flags to node.
250
-
251
- ```shell
252
- node --loader ts-node/esm --inspect ./index.ts
253
- ```
254
-
255
- ## Programmatic
256
-
257
- You can require ts-node and register the loader for future requires by using `require('ts-node').register({ /* options */ })`.
258
-
259
- Check out our [API](#api) for more features.
260
-
261
- # Configuration
262
-
263
- ts-node supports a variety of options which can be specified via `tsconfig.json`, as CLI flags, as environment variables, or programmatically.
264
-
265
- For a complete list, see [Options](#options).
266
-
267
- ## CLI flags
268
-
269
- ts-node CLI flags must come *before* the entrypoint script. For example:
270
-
271
- ```shell
272
- $ ts-node --project tsconfig-dev.json say-hello.ts Ronald
273
- Hello, Ronald!
274
- ```
275
-
276
- ## Via tsconfig.json (recommended)
277
-
278
- ts-node automatically finds and loads `tsconfig.json`. Most ts-node options can be specified in a `"ts-node"` object using their programmatic, camelCase names. We recommend this because it works even when you cannot pass CLI flags, such as `node --require ts-node/register` and when using shebangs.
279
-
280
- Use `--skipProject` to skip loading the `tsconfig.json`. Use `--project` to explicitly specify the path to a `tsconfig.json`.
281
-
282
- When searching, it is resolved using [the same search behavior as `tsc`](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html). By default, this search is performed relative to the entrypoint script. In `--cwdMode` or if no entrypoint is specified -- for example when using the REPL -- the search is performed relative to `--cwd` / `process.cwd()`.
283
-
284
- You can use this sample configuration as a starting point:
285
-
286
- ```jsonc title="tsconfig.json"
287
- {
288
- // This is an alias to @tsconfig/node16: https://github.com/tsconfig/bases
289
- "extends": "ts-node/node16/tsconfig.json",
290
-
291
- // Most ts-node options can be specified here using their programmatic names.
292
- "ts-node": {
293
- // It is faster to skip typechecking.
294
- // Remove if you want ts-node to do typechecking.
295
- "transpileOnly": true,
296
-
297
- "files": true,
298
-
299
- "compilerOptions": {
300
- // compilerOptions specified here will override those declared below,
301
- // but *only* in ts-node. Useful if you want ts-node and tsc to use
302
- // different options with a single tsconfig.json.
303
- }
304
- },
305
- "compilerOptions": {
306
- // typescript options here
307
- }
308
- }
309
- ```
310
-
311
- Our bundled [JSON schema](https://unpkg.com/browse/ts-node@latest/tsconfig.schema.json) lists all compatible options.
312
-
313
- ### @tsconfig/bases
314
-
315
- [@tsconfig/bases](https://github.com/tsconfig/bases) maintains recommended configurations for several node versions.
316
- As a convenience, these are bundled with ts-node.
317
-
318
- ```jsonc title="tsconfig.json"
319
- {
320
- "extends": "ts-node/node16/tsconfig.json",
321
-
322
- // Or install directly with `npm i -D @tsconfig/node16`
323
- "extends": "@tsconfig/node16/tsconfig.json",
324
- }
325
- ```
326
-
327
- ### Default config
328
-
329
- If no `tsconfig.json` is loaded from disk, ts-node will use the newest recommended defaults from
330
- [@tsconfig/bases](https://github.com/tsconfig/bases/) compatible with your `node` and `typescript` versions.
331
- With the latest `node` and `typescript`, this is [`@tsconfig/node16`](https://github.com/tsconfig/bases/blob/master/bases/node16.json).
332
-
333
- Older versions of `typescript` are incompatible with `@tsconfig/node16`. In those cases we will use an older default configuration.
334
-
335
- When in doubt, `ts-node --showConfig` will log the configuration being used, and `ts-node -vv` will log `node` and `typescript` versions.
336
-
337
- ## `node` flags
338
-
339
- [`node` flags](https://nodejs.org/api/cli.html) must be passed directly to `node`; they cannot be passed to the ts-node binary nor can they be specified in `tsconfig.json`
340
-
341
- We recommend using the [`NODE_OPTIONS`](https://nodejs.org/api/cli.html#cli_node_options_options) environment variable to pass options to `node`.
342
-
343
- ```shell
344
- NODE_OPTIONS='--trace-deprecation --abort-on-uncaught-exception' ts-node ./index.ts
345
- ```
346
-
347
- Alternatively, you can invoke `node` directly and install ts-node via `--require`/`-r`
348
-
349
- ```shell
350
- node --trace-deprecation --abort-on-uncaught-exception -r ts-node/register ./index.ts
351
- ```
352
-
353
- # Options
354
-
355
- All command-line flags support both `--camelCase` and `--hyphen-case`.
356
-
357
- Most options can be declared in your tsconfig.json: [Configuration via tsconfig.json](#via-tsconfigjson-recommended)
358
-
359
- `ts-node` supports `--print` (`-p`), `--eval` (`-e`), `--require` (`-r`) and `--interactive` (`-i`) similar to the [node.js CLI](https://nodejs.org/api/cli.html).
360
-
361
- `ts-node` supports `--project` and `--showConfig` similar to the [tsc CLI](https://www.typescriptlang.org/docs/handbook/compiler-options.html#compiler-options).
362
-
363
- *Environment variables, where available, are in `ALL_CAPS`*
364
-
365
- ## CLI Options
366
-
367
- ### help
368
-
369
- ```shell
370
- ts-node --help
371
- ```
372
-
373
- Prints the help text
374
-
375
- ### version
376
-
377
- ```shell
378
- ts-node -v
379
- ts-node -vvv
380
- ```
381
-
382
- Prints the version. `-vv` includes node and typescript compiler versions. `-vvv` includes absolute paths to ts-node and
383
- typescript installations.
384
-
385
- ### eval
386
-
387
- ```shell
388
- ts-node -e <typescript code>
389
- # Example
390
- ts-node -e 'console.log("Hello world!")'
391
- ```
392
-
393
- Evaluate code
394
-
395
- ### print
396
-
397
- ```shell
398
- ts-node -p -e <typescript code>
399
- # Example
400
- ts-node -p -e '"Hello world!"'
401
- ```
402
-
403
- Print result of `--eval`
404
-
405
- ### interactive
406
-
407
- ```shell
408
- ts-node -i
409
- ```
410
-
411
- Opens the REPL even if stdin does not appear to be a terminal
412
-
413
- ### esm
414
-
415
- ```shell
416
- ts-node --esm
417
- ts-node-esm
418
- ```
419
-
420
- Bootstrap with the ESM loader, enabling full ESM support
421
-
422
- ## TSConfig Options
423
-
424
- ### project
425
-
426
- ```shell
427
- ts-node -P <path/to/tsconfig>
428
- ts-node --project <path/to/tsconfig>
429
- ```
430
-
431
- Path to tsconfig file.
432
-
433
- *Note the uppercase `-P`. This is different from `tsc`'s `-p/--project` option.*
434
-
435
- *Environment:* `TS_NODE_PROJECT`
436
-
437
- ### skipProject
438
-
439
- ```shell
440
- ts-node --skipProject
441
- ```
442
-
443
- Skip project config resolution and loading
444
-
445
- *Default:* `false` <br/>
446
- *Environment:* `TS_NODE_SKIP_PROJECT`
447
-
448
- ### cwdMode
449
-
450
- ```shell
451
- ts-node -c
452
- ts-node --cwdMode
453
- ts-node-cwd
454
- ```
455
-
456
- Resolve config relative to the current directory instead of the directory of the entrypoint script
457
-
458
- ### compilerOptions
459
-
460
- ```shell
461
- ts-node -O <json compilerOptions>
462
- ts-node --compilerOptions <json compilerOptions>
463
- ```
464
-
465
- JSON object to merge with compiler options
466
-
467
- *Environment:* `TS_NODE_COMPILER_OPTIONS`
468
-
469
- ### showConfig
470
-
471
- ```shell
472
- ts-node --showConfig
473
- ```
474
-
475
- Print resolved `tsconfig.json`, including `ts-node` options, and exit
476
-
477
- ## Typechecking
478
-
479
- ### transpileOnly
480
-
481
- ```shell
482
- ts-node -T
483
- ts-node --transpileOnly
484
- ```
485
-
486
- Use TypeScript's faster `transpileModule`
487
-
488
- *Default:* `false`<br/>
489
- *Environment:* `TS_NODE_TRANSPILE_ONLY`
490
-
491
- ### typeCheck
492
-
493
- ```shell
494
- ts-node --typeCheck
495
- ```
496
-
497
- Opposite of `--transpileOnly`
498
-
499
- *Default:* `true`<br/>
500
- *Environment:* `TS_NODE_TYPE_CHECK`
501
-
502
- ### compilerHost
503
-
504
- ```shell
505
- ts-node -H
506
- ts-node --compilerHost
507
- ```
508
-
509
- Use TypeScript's compiler host API
510
-
511
- *Default:* `false` <br/>
512
- *Environment:* `TS_NODE_COMPILER_HOST`
513
-
514
- ### files
515
-
516
- ```shell
517
- ts-node --files
518
- ```
519
-
520
- Load `files`, `include` and `exclude` from `tsconfig.json` on startup. This may
521
- avoid certain typechecking failures. See [Missing types](#missing-types) for details.
522
-
523
- *Default:* `false` <br/>
524
- *Environment:* `TS_NODE_FILES`
525
-
526
- ### ignoreDiagnostics
527
-
528
- ```shell
529
- ts-node -D <code,code>
530
- ts-node --ignoreDiagnostics <code,code>
531
- ```
532
-
533
- Ignore TypeScript warnings by diagnostic code
534
-
535
- *Environment:* `TS_NODE_IGNORE_DIAGNOSTICS`
536
-
537
- ## Transpilation Options
538
-
539
- ### ignore
540
-
541
- ```shell
542
- ts-node -I <regexp matching ignored files>
543
- ts-node --ignore <regexp matching ignored files>
544
- ```
545
-
546
- Override the path patterns to skip compilation
547
-
548
- *Default:* `/node_modules/` <br/>
549
- *Environment:* `TS_NODE_IGNORE`
550
-
551
- ### skipIgnore
552
-
553
- ```shell
554
- ts-node --skipIgnore
555
- ```
556
-
557
- Skip ignore checks
558
-
559
- *Default:* `false` <br/>
560
- *Environment:* `TS_NODE_SKIP_IGNORE`
561
-
562
- ### compiler
563
-
564
- ```shell
565
- ts-node -C <name>
566
- ts-node --compiler <name>
567
- ```
568
-
569
- Specify a custom TypeScript compiler
570
-
571
- *Default:* `typescript` <br/>
572
- *Environment:* `TS_NODE_COMPILER`
573
-
574
- ### swc
575
-
576
- ```shell
577
- ts-node --swc
578
- ```
579
-
580
- Transpile with [swc](#swc). Implies `--transpileOnly`
581
-
582
- *Default:* `false`
583
-
584
- ### transpiler
585
-
586
- ```shell
587
- ts-node --transpiler <name>
588
- # Example
589
- ts-node --transpiler ts-node/transpilers/swc
590
- ```
591
-
592
- Use a third-party, non-typechecking transpiler
593
-
594
- ### preferTsExts
595
-
596
- ```shell
597
- ts-node --preferTsExts
598
- ```
599
-
600
- Re-order file extensions so that TypeScript imports are preferred
601
-
602
- *Default:* `false` <br/>
603
- *Environment:* `TS_NODE_PREFER_TS_EXTS`
604
-
605
- ## Diagnostic Options
606
-
607
- ### logError
608
-
609
- ```shell
610
- ts-node --logError
611
- ```
612
-
613
- Logs TypeScript errors to stderr instead of throwing exceptions
614
-
615
- *Default:* `false` <br/>
616
- *Environment:* `TS_NODE_LOG_ERROR`
617
-
618
- ### pretty
619
-
620
- ```shell
621
- ts-node --pretty
622
- ```
623
-
624
- Use pretty diagnostic formatter
625
-
626
- *Default:* `false` <br/>
627
- *Environment:* `TS_NODE_PRETTY`
628
-
629
- ### TS_NODE_DEBUG
630
-
631
- ```shell
632
- TS_NODE_DEBUG=true ts-node
633
- ```
634
-
635
- Enable debug logging
636
-
637
- ## Advanced Options
638
-
639
- ### require
640
-
641
- ```shell
642
- ts-node -r <module name or path>
643
- ts-node --require <module name or path>
644
- ```
645
-
646
- Require a node module before execution
647
-
648
- ### cwd
649
-
650
- ```shell
651
- ts-node --cwd <path/to/directory>
652
- ```
653
-
654
- Behave as if invoked in this working directory
655
-
656
- *Default:* `process.cwd()`<br/>
657
- *Environment:* `TS_NODE_CWD`
658
-
659
- ### emit
660
-
661
- ```shell
662
- ts-node --emit
663
- ```
664
-
665
- Emit output files into `.ts-node` directory. Requires `--compilerHost`
666
-
667
- *Default:* `false` <br/>
668
- *Environment:* `TS_NODE_EMIT`
669
-
670
- ### scope
671
-
672
- ```shell
673
- ts-node --scope
674
- ```
675
-
676
- Scope compiler to files within `scopeDir`. Anything outside this directory is ignored.
677
-
678
- *Default:* `false` <br/>
679
- *Environment:* `TS_NODE_SCOPE`
680
-
681
- ### scopeDir
682
-
683
- ```shell
684
- ts-node --scopeDir <path/to/directory>
685
- ```
686
-
687
- Directory within which compiler is limited when `scope` is enabled.
688
-
689
- *Default:* First of: `tsconfig.json` "rootDir" if specified, directory containing `tsconfig.json`, or cwd if no `tsconfig.json` is loaded.<br/>
690
- *Environment:* `TS_NODE_SCOPE_DIR`
691
-
692
- ### moduleTypes
693
-
694
- Override the module type of certain files, ignoring the `package.json` `"type"` field. See [Module type overrides](#module-type-overrides) for details.
695
-
696
- *Default:* obeys `package.json` `"type"` and `tsconfig.json` `"module"` <br/>
697
- *Can only be specified via `tsconfig.json` or API.*
698
-
699
- ### TS_NODE_HISTORY
700
-
701
- ```shell
702
- TS_NODE_HISTORY=<path/to/history/file> ts-node
703
- ```
704
-
705
- Path to history file for REPL
706
-
707
- *Default:* `~/.ts_node_repl_history`
708
-
709
- ### noExperimentalReplAwait
710
-
711
- ```shell
712
- ts-node --noExperimentalReplAwait
713
- ```
714
-
715
- Disable top-level await in REPL. Equivalent to node's [`--no-experimental-repl-await`](https://nodejs.org/api/cli.html#cli_no_experimental_repl_await)
716
-
717
- *Default:* Enabled if TypeScript version is 3.8 or higher and target is ES2018 or higher.<br/>
718
- *Environment:* `TS_NODE_EXPERIMENTAL_REPL_AWAIT` set `false` to disable
719
-
720
- ### experimentalResolver
721
-
722
- Enable experimental hooks that re-map imports and require calls to support:
723
-
724
- * remapping extensions, e.g. so that `import "./foo.js"` will execute `foo.ts`. Currently the following extensions will be mapped:
725
- * `.js` to `.ts`, `.tsx`, or `.jsx`
726
- * `.cjs` to `.cts`
727
- * `.mjs` to `.mts`
728
- * `.jsx` to `.tsx`
729
- * including file extensions in CommonJS, for consistency with ESM where this is often mandatory
730
-
731
- In the future, this hook will also support:
732
-
733
- * `baseUrl`, `paths`
734
- * `rootDirs`
735
- * `outDir` to `rootDir` mappings for composite projects and monorepos
736
-
737
- For details, see [#1514](https://github.com/TypeStrong/ts-node/issues/1514).
738
-
739
- *Default:* `false`, but will likely be enabled by default in a future version<br/>
740
- *Can only be specified via `tsconfig.json` or API.*
741
-
742
- ### experimentalSpecifierResolution
743
-
744
- ```shell
745
- ts-node --experimentalSpecifierResolution node
746
- ```
747
-
748
- Like node's [`--experimental-specifier-resolution`](https://nodejs.org/dist/latest-v18.x/docs/api/esm.html#customizing-esm-specifier-resolution-algorithm), but can also be set in your `tsconfig.json` for convenience.
749
- Requires [`esm`](#esm) to be enabled.
750
-
751
- *Default:* `explicit`<br/>
752
-
753
- ## API Options
754
-
755
- The API includes [additional options](https://typestrong.org/ts-node/api/interfaces/RegisterOptions.html) not shown here.
756
-
757
- # SWC
758
-
759
- SWC support is built-in via the `--swc` flag or `"swc": true` tsconfig option.
760
-
761
- [SWC](https://swc.rs) is a TypeScript-compatible transpiler implemented in Rust. This makes it an order of magnitude faster than vanilla `transpileOnly`.
762
-
763
- To use it, first install `@swc/core` or `@swc/wasm`. If using `importHelpers`, also install `@swc/helpers`. If `target` is less than "es2015" and using `async`/`await` or generator functions, also install `regenerator-runtime`.
764
-
765
- ```shell
766
- npm i -D @swc/core @swc/helpers regenerator-runtime
767
- ```
768
-
769
- Then add the following to your `tsconfig.json`.
770
-
771
- ```jsonc title="tsconfig.json"
772
- {
773
- "ts-node": {
774
- "swc": true
775
- }
776
- }
777
- ```
778
-
779
- > SWC uses `@swc/helpers` instead of `tslib`. If you have enabled `importHelpers`, you must also install `@swc/helpers`.
780
-
781
- # CommonJS vs native ECMAScript modules
782
-
783
- TypeScript is almost always written using modern `import` syntax, but it is also transformed before being executed by the underlying runtime. You can choose to either transform to CommonJS or to preserve the native `import` syntax, using node's native ESM support. Configuration is different for each.
784
-
785
- Here is a brief comparison of the two.
786
-
787
- | CommonJS | Native ECMAScript modules |
788
- |---|---|
789
- | Write native `import` syntax | Write native `import` syntax |
790
- | Transforms `import` into `require()` | Does not transform `import` |
791
- | Node executes scripts using the classic [CommonJS loader](https://nodejs.org/dist/latest-v16.x/docs/api/modules.html) | Node executes scripts using the new [ESM loader](https://nodejs.org/dist/latest-v16.x/docs/api/esm.html) |
792
- | Use any of:<br/>`ts-node`<br/>`node -r ts-node/register`<br/>`NODE_OPTIONS="ts-node/register" node`<br/>`require('ts-node').register({/* options */})` | Use any of:<br/>`ts-node --esm`<br/>`ts-node-esm`<br/>Set `"esm": true` in `tsconfig.json`<br />`node --loader ts-node/esm`<br/>`NODE_OPTIONS="--loader ts-node/esm" node` |
793
-
794
- ## CommonJS
795
-
796
- Transforming to CommonJS is typically simpler and more widely supported because it is older. You must remove [`"type": "module"`](https://nodejs.org/api/packages.html#packages_type) from `package.json` and set [`"module": "CommonJS"`](https://www.typescriptlang.org/tsconfig/#module) in `tsconfig.json`.
797
-
798
- ```jsonc title="package.json"
799
- {
800
- // This can be omitted; commonjs is the default
801
- "type": "commonjs"
802
- }
803
- ```
804
-
805
- ```jsonc title="tsconfig.json"
806
- {
807
- "compilerOptions": {
808
- "module": "CommonJS"
809
- }
810
- }
811
- ```
812
-
813
- If you must keep `"module": "ESNext"` for `tsc`, webpack, or another build tool, you can set an override for ts-node.
814
-
815
- ```jsonc title="tsconfig.json"
816
- {
817
- "compilerOptions": {
818
- "module": "ESNext"
819
- },
820
- "ts-node": {
821
- "compilerOptions": {
822
- "module": "CommonJS"
823
- }
824
- }
825
- }
826
- ```
827
-
828
- ## Native ECMAScript modules
829
-
830
- [Node's ESM loader hooks](https://nodejs.org/api/esm.html#esm_experimental_loaders) are [**experimental**](https://nodejs.org/api/documentation.html#documentation_stability_index) and subject to change. ts-node's ESM support is as stable as possible, but it relies on APIs which node can *and will* break in new versions of node. Thus it is not recommended for production.
831
-
832
- For complete usage, limitations, and to provide feedback, see [#1007](https://github.com/TypeStrong/ts-node/issues/1007).
833
-
834
- You must set [`"type": "module"`](https://nodejs.org/api/packages.html#packages_type) in `package.json` and [`"module": "ESNext"`](https://www.typescriptlang.org/tsconfig/#module) in `tsconfig.json`.
835
-
836
- ```jsonc title="package.json"
837
- {
838
- "type": "module"
839
- }
840
- ```
841
-
842
- ```jsonc title="tsconfig.json"
843
- {
844
- "compilerOptions": {
845
- "module": "ESNext" // or ES2015, ES2020
846
- },
847
- "ts-node": {
848
- // Tell ts-node CLI to install the --loader automatically, explained below
849
- "esm": true
850
- }
851
- }
852
- ```
853
-
854
- You must also ensure node is passed `--loader`. The ts-node CLI will do this automatically with our `esm` option.
855
-
856
- > Note: `--esm` must spawn a child process to pass it `--loader`. This may change if node adds the ability to install loader hooks
857
- > into the current process.
858
-
859
- ```shell
860
- # pass the flag
861
- ts-node --esm
862
- # Use the convenience binary
863
- ts-node-esm
864
- # or add `"esm": true` to your tsconfig.json to make it automatic
865
- ts-node
866
- ```
867
-
868
- If you are not using our CLI, pass the loader flag to node.
869
-
870
- ```shell
871
- node --loader ts-node/esm ./index.ts
872
- # Or via environment variable
873
- NODE_OPTIONS="--loader ts-node/esm" node ./index.ts
874
- ```
875
-
876
- # Troubleshooting
877
-
878
- ## Configuration
879
-
880
- ts-node uses sensible default configurations to reduce boilerplate while still respecting `tsconfig.json` if you
881
- have one. If you are unsure which configuration is used, you can log it with `ts-node --showConfig`. This is similar to
882
- `tsc --showConfig` but includes `"ts-node"` options as well.
883
-
884
- ts-node also respects your locally-installed `typescript` version, but global installations fallback to the globally-installed
885
- `typescript`. If you are unsure which versions are used, `ts-node -vv` will log them.
886
-
887
- ```shell
888
- $ ts-node -vv
889
- ts-node v10.0.0
890
- node v16.1.0
891
- compiler v4.2.2
892
-
893
- $ ts-node --showConfig
894
- {
895
- "compilerOptions": {
896
- "target": "es6",
897
- "lib": [
898
- "es6",
899
- "dom"
900
- ],
901
- "rootDir": "./src",
902
- "outDir": "./.ts-node",
903
- "module": "commonjs",
904
- "moduleResolution": "node",
905
- "strict": true,
906
- "declaration": false,
907
- "sourceMap": true,
908
- "inlineSources": true,
909
- "types": [
910
- "node"
911
- ],
912
- "stripInternal": true,
913
- "incremental": true,
914
- "skipLibCheck": true,
915
- "importsNotUsedAsValues": "error",
916
- "inlineSourceMap": false,
917
- "noEmit": false
918
- },
919
- "ts-node": {
920
- "cwd": "/d/project",
921
- "projectSearchDir": "/d/project",
922
- "require": [],
923
- "project": "/d/project/tsconfig.json"
924
- }
925
- }
926
- ```
927
-
928
- ## Common errors
929
-
930
- It is important to differentiate between errors from ts-node, errors from the TypeScript compiler, and errors from `node`. It is also important to understand when errors are caused by a type error in your code, a bug in your code, or a flaw in your configuration.
931
-
932
- ### `TSError`
933
-
934
- Type errors from the compiler are thrown as a `TSError`. These are the same as errors you get from `tsc`.
935
-
936
- ### `SyntaxError`
937
-
938
- Any error that is not a `TSError` is from node.js (e.g. `SyntaxError`), and cannot be fixed by TypeScript or ts-node. These are bugs in your code or configuration.
939
-
940
- #### Unsupported JavaScript syntax
941
-
942
- Your version of `node` may not support all JavaScript syntax supported by TypeScript. The compiler must transform this syntax via "downleveling," which is controlled by
943
- the [tsconfig `"target"` option](https://www.typescriptlang.org/tsconfig#target). Otherwise your code will compile fine, but node will throw a `SyntaxError`.
944
-
945
- For example, `node` 12 does not understand the `?.` optional chaining operator. If you use `"target": "esnext"`, then the following TypeScript syntax:
946
-
947
- ```typescript twoslash
948
- const bar: string | undefined = foo?.bar;
949
- ```
950
-
951
- will compile into this JavaScript:
952
-
953
- ```javascript
954
- const a = foo?.bar;
955
- ```
956
-
957
- When you try to run this code, node 12 will throw a `SyntaxError`. To fix this, you must switch to `"target": "es2019"` or lower so TypeScript transforms `?.` into something `node` can understand.
958
-
959
- ### `ERR_REQUIRE_ESM`
960
-
961
- This error is thrown by node when a module is `require()`d, but node believes it should execute as native ESM. This can happen for a few reasons:
962
-
963
- * You have installed an ESM dependency but your own code compiles to CommonJS.
964
- * Solution: configure your project to compile and execute as native ESM. [Docs](#native-ecmascript-modules)
965
- * Solution: downgrade the dependency to an older, CommonJS version.
966
- * You have moved your project to ESM but still have a config file, such as `webpack.config.ts`, which must be executed as CommonJS <!-- SYNC_WITH_MTO_DOCS -->
967
- * Solution: if supported by the relevant tool, rename your config file to `.cts`
968
- * Solution: Configure a module type override. [Docs](#module-type-overrides)
969
- * You have a mix of CommonJS and native ESM in your project
970
- * Solution: double-check all package.json "type" and tsconfig.json "module" configuration [Docs](#commonjs-vs-native-ecmascript-modules)
971
- * Solution: consider simplifying by making your project entirely CommonJS or entirely native ESM
972
-
973
- ### `ERR_UNKNOWN_FILE_EXTENSION`
974
-
975
- This error is thrown by node when a module has an unrecognized file extension, or no extension at all, and is being executed as native ESM. This can happen for a few reasons:
976
-
977
- * You are using a tool which has an extensionless binary, such as `mocha`.
978
- * CommonJS supports extensionless files but native ESM does not.
979
- * Solution: upgrade to ts-node >=[v10.6.0](https://github.com/TypeStrong/ts-node/releases/tag/v10.6.0), which implements a workaround.
980
- * Our ESM loader is not installed.
981
- * Solution: Use `ts-node-esm`, `ts-node --esm`, or add `"ts-node": {"esm": true}` to your tsconfig.json. [Docs](#native-ecmascript-modules)
982
- * You have moved your project to ESM but still have a config file, such as `webpack.config.ts`, which must be executed as CommonJS <!-- SYNC_WITH_MTO_DOCS -->
983
- * Solution: if supported by the relevant tool, rename your config file to `.cts`
984
- * Solution: Configure a module type override. [Docs](#module-type-overrides)
985
-
986
- ## Missing Types
987
-
988
- ts-node does *not* eagerly load `files`, `include` or `exclude` by default. This is because a large majority of projects do not use all of the files in a project directory (e.g. `Gulpfile.ts`, runtime vs tests) and parsing every file for types slows startup time. Instead, ts-node starts with the script file (e.g. `ts-node index.ts`) and TypeScript resolves dependencies based on imports and references.
989
-
990
- Occasionally, this optimization leads to missing types. Fortunately, there are other ways to include them in typechecking.
991
-
992
- For global definitions, you can use the `typeRoots` compiler option. This requires that your type definitions be structured as type packages (not loose TypeScript definition files). More details on how this works can be found in the [TypeScript Handbook](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#types-typeroots-and-types).
993
-
994
- Example `tsconfig.json`:
995
-
996
- ```jsonc
997
- {
998
- "compilerOptions": {
999
- "typeRoots" : ["./node_modules/@types", "./typings"]
1000
- }
1001
- }
1002
- ```
1003
-
1004
- Example project structure:
1005
-
1006
- ```text
1007
- <project_root>/
1008
- -- tsconfig.json
1009
- -- typings/
1010
- -- <module_name>/
1011
- -- index.d.ts
1012
- ```
1013
-
1014
- Example module declaration file:
1015
-
1016
- ```typescript twoslash
1017
- declare module '<module_name>' {
1018
- // module definitions go here
1019
- }
1020
- ```
1021
-
1022
- For module definitions, you can use [`paths`](https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping):
1023
-
1024
- ```jsonc title="tsconfig.json"
1025
- {
1026
- "compilerOptions": {
1027
- "baseUrl": ".",
1028
- "paths": {
1029
- "custom-module-type": ["types/custom-module-type"]
1030
- }
1031
- }
1032
- }
1033
- ```
1034
-
1035
- Another option is [triple-slash directives](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html). This may be helpful if you prefer not to change your `compilerOptions` or structure your type definitions for `typeRoots`. Below is an example of a triple-slash directive as a relative path within your project:
1036
-
1037
- ```typescript twoslash
1038
- /// <reference path="./types/lib_greeter" />
1039
- import {Greeter} from "lib_greeter"
1040
- const g = new Greeter();
1041
- g.sayHello();
1042
- ```
1043
-
1044
- If none of the above work, and you *must* use `files`, `include`, or `exclude`, enable our [`files`](#files) option.
1045
-
1046
- ## npx, yarn dlx, and node_modules
1047
-
1048
- When executing TypeScript with `npx` or `yarn dlx`, the code resides within a temporary `node_modules` directory.
1049
-
1050
- The contents of `node_modules` are ignored by default. If execution fails, enable [`skipIgnore`](#skipignore).
1051
-
1052
- <!--See also: [npx and yarn dlx](./recipes/npx-and-yarn-dlx.md)-->
1053
-
1054
- # Performance
1055
-
1056
- These tricks will make ts-node faster.
1057
-
1058
- ## Skip typechecking
1059
-
1060
- It is often better to typecheck as part of your tests or linting. You can run `tsc --noEmit` to do this. In these cases, ts-node can skip typechecking, making it much faster.
1061
-
1062
- To skip typechecking in ts-node, do one of the following:
1063
-
1064
- * Enable [swc](#swc)
1065
- * This is by far the fastest option
1066
- * Enable [`transpileOnly`](#transpileonly) to skip typechecking without swc
1067
-
1068
- ## With typechecking
1069
-
1070
- If you absolutely must typecheck in ts-node:
1071
-
1072
- * Avoid dynamic `require()` which may trigger repeated typechecking; prefer `import`
1073
- * Try with and without `--files`; one may be faster depending on your project
1074
- * Check `tsc --showConfig`; make sure all executed files are included
1075
- * Enable [`skipLibCheck`](https://www.typescriptlang.org/tsconfig#skipLibCheck)
1076
- * Set a [`types`](https://www.typescriptlang.org/tsconfig#types) array to avoid loading unnecessary `@types`
1077
-
1078
- # Advanced
1079
-
1080
- ## How it works
1081
-
1082
- ts-node works by registering hooks for `.ts`, `.tsx`, `.js`, and/or `.jsx` extensions.
1083
-
1084
- Vanilla `node` loads `.js` by reading code from disk and executing it. Our hook runs in the middle, transforming code from TypeScript to JavaScript and passing the result to `node` for execution. This transformation will respect your `tsconfig.json` as if you had compiled via `tsc`.
1085
-
1086
- We also register a few other hooks to apply sourcemaps to stack traces and remap from `.js` imports to `.ts`.
1087
-
1088
- ## Ignored files
1089
-
1090
- ts-node transforms certain files and ignores others. We refer to this mechanism as "scoping." There are various
1091
- options to configure scoping, so that ts-node transforms only the files in your project.
1092
-
1093
- > **Warning:**
1094
- >
1095
- > An ignored file can still be executed by node.js. Ignoring a file means we do not transform it from TypeScript into JavaScript, but it does not prevent execution.
1096
- >
1097
- > If a file requires transformation but is ignored, node may either fail to resolve it or attempt to execute it as vanilla JavaScript. This may cause syntax errors or other failures, because node does not understand TypeScript type syntax nor bleeding-edge ECMAScript features.
1098
-
1099
- ### File extensions
1100
-
1101
- `.js` and `.jsx` are only transformed when [`allowJs`](https://www.typescriptlang.org/docs/handbook/compiler-options.html#compiler-options) is enabled.
1102
-
1103
- `.tsx` and `.jsx` are only transformed when [`jsx`](https://www.typescriptlang.org/docs/handbook/jsx.html) is enabled.
1104
-
1105
- > **Warning:**
1106
- >
1107
- > When ts-node is used with `allowJs`, *all* non-ignored JavaScript files are transformed by ts-node.
1108
-
1109
- ### Skipping `node_modules`
1110
-
1111
- By default, ts-node avoids compiling files in `/node_modules/` for three reasons:
1112
-
1113
- 1. Modules should always be published in a format node.js can consume
1114
- 2. Transpiling the entire dependency tree will make your project slower
1115
- 3. Differing behaviours between TypeScript and node.js (e.g. ES2015 modules) can result in a project that works until you decide to support a feature natively from node.js
1116
-
1117
- If you need to import uncompiled TypeScript in `node_modules`, use [`--skipIgnore`](#skipignore) or [`TS_NODE_SKIP_IGNORE`](#skipignore) to bypass this restriction.
1118
-
1119
- ### Skipping pre-compiled TypeScript
1120
-
1121
- If a compiled JavaScript file with the same name as a TypeScript file already exists, the TypeScript file will be ignored. ts-node will import the pre-compiled JavaScript.
1122
-
1123
- To force ts-node to import the TypeScript source, not the precompiled JavaScript, use [`--preferTsExts`](#prefertsexts).
1124
-
1125
- ### Scope by directory
1126
-
1127
- Our [`scope`](#scope) and [`scopeDir`](#scopedir) options will limit transformation to files
1128
- within a directory.
1129
-
1130
- ### Ignore by regexp
1131
-
1132
- Our [`ignore`](#ignore) option will ignore files matching one or more regular expressions.
1133
-
1134
- ## paths and baseUrl&#xA;
1135
-
1136
- You can use ts-node together with [tsconfig-paths](https://www.npmjs.com/package/tsconfig-paths) to load modules according to the `paths` section in `tsconfig.json`.
1137
-
1138
- ```jsonc title="tsconfig.json"
1139
- {
1140
- "ts-node": {
1141
- // Do not forget to `npm i -D tsconfig-paths`
1142
- "require": ["tsconfig-paths/register"]
1143
- }
1144
- }
1145
- ```
1146
-
1147
- ### Why is this not built-in to ts-node?
1148
-
1149
- The official TypeScript Handbook explains the intended purpose for `"paths"` in ["Additional module resolution flags"](https://www.typescriptlang.org/docs/handbook/module-resolution.html#additional-module-resolution-flags).
1150
-
1151
- > The TypeScript compiler has a set of additional flags to *inform* the compiler of transformations that are expected to happen to the sources to generate the final output.
1152
- >
1153
- > It is important to note that the compiler will not perform any of these transformations; it just uses these pieces of information to guide the process of resolving a module import to its definition file.
1154
-
1155
- This means `"paths"` are intended to describe mappings that the build tool or runtime *already* performs, not to tell the build tool or
1156
- runtime how to resolve modules. In other words, they intend us to write our imports in a way `node` already understands. For this reason, ts-node does not modify `node`'s module resolution behavior to implement `"paths"` mappings.
1157
-
1158
- ## Third-party compilers
1159
-
1160
- Some projects require a patched typescript compiler which adds additional features. For example, [`ttypescript`](https://github.com/cevek/ttypescript/tree/master/packages/ttypescript) and [`ts-patch`](https://github.com/nonara/ts-patch#readme)
1161
- add the ability to configure custom transformers. These are drop-in replacements for the vanilla `typescript` module and
1162
- implement the same API.
1163
-
1164
- For example, to use `ttypescript` and `ts-transformer-keys`, add this to your `tsconfig.json`:
1165
-
1166
- ```jsonc title="tsconfig.json"
1167
- {
1168
- "ts-node": {
1169
- // This can be omitted when using ts-patch
1170
- "compiler": "ttypescript"
1171
- },
1172
- "compilerOptions": {
1173
- // plugin configuration is the same for both ts-patch and ttypescript
1174
- "plugins": [
1175
- { "transform": "ts-transformer-keys/transformer" }
1176
- ]
1177
- }
1178
- }
1179
- ```
1180
-
1181
- ## Transpilers
1182
-
1183
- ts-node supports third-party transpilers as plugins. Transpilers such as swc can transform TypeScript into JavaScript
1184
- much faster than the TypeScript compiler. You will still benefit from ts-node's automatic `tsconfig.json` discovery,
1185
- sourcemap support, and global ts-node CLI. Plugins automatically derive an appropriate configuration from your existing
1186
- `tsconfig.json` which simplifies project boilerplate.
1187
-
1188
- > **What is the difference between a compiler and a transpiler?**
1189
- >
1190
- > For our purposes, a compiler implements TypeScript's API and can perform typechecking.
1191
- > A third-party transpiler does not. Both transform TypeScript into JavaScript.
1192
-
1193
- ### Third-party plugins
1194
-
1195
- The `transpiler` option allows using third-party transpiler plugins with ts-node. `transpiler` must be given the
1196
- name of a module which can be `require()`d. The built-in `swc` plugin is exposed as `ts-node/transpilers/swc`.
1197
-
1198
- For example, to use a hypothetical "@cspotcode/fast-ts-compiler", first install it into your project: `npm install @cspotcode/fast-ts-compiler`
1199
-
1200
- Then add the following to your tsconfig:
1201
-
1202
- ```jsonc title="tsconfig.json"
1203
- {
1204
- "ts-node": {
1205
- "transpileOnly": true,
1206
- "transpiler": "@cspotcode/fast-ts-compiler"
1207
- }
1208
- }
1209
- ```
1210
-
1211
- ### Write your own plugin
1212
-
1213
- To write your own transpiler plugin, check our [API docs](https://typestrong.org/ts-node/api/interfaces/TranspilerModule.html).
1214
-
1215
- Plugins are `require()`d by ts-node, so they can be a local script or a node module published to npm. The module must
1216
- export a `create` function described by our
1217
- [`TranspilerModule`](https://typestrong.org/ts-node/api/interfaces/TranspilerModule.html) interface. `create` is
1218
- invoked by ts-node at startup to create one or more transpiler instances. The instances are used to transform
1219
- TypeScript into JavaScript.
1220
-
1221
- For a working example, check out out our bundled swc plugin: https://github.com/TypeStrong/ts-node/blob/main/src/transpilers/swc.ts
1222
-
1223
- ## Module type overrides
1224
-
1225
- > Wherever possible, it is recommended to use TypeScript's [`NodeNext` or `Node16` mode](https://www.typescriptlang.org/docs/handbook/esm-node.html) instead of the options described
1226
- > in this section. Setting `"module": "NodeNext"` and using the `.cts` file extension should work well for most projects.
1227
-
1228
- When deciding how a file should be compiled and executed -- as either CommonJS or native ECMAScript module -- ts-node matches
1229
- `node` and `tsc` behavior. This means TypeScript files are transformed according to your `tsconfig.json` `"module"`
1230
- option and executed according to node's rules for the `package.json` `"type"` field. Set `"module": "NodeNext"` and everything should work.
1231
-
1232
- In rare cases, you may need to override this behavior for some files. For example, some tools read a `name-of-tool.config.ts`
1233
- and require that file to execute as CommonJS. If you have `package.json` configured with `"type": "module"` and `tsconfig.json` with
1234
- `"module": "esnext"`, the config is native ECMAScript by default and will raise an error. You will need to force the config and
1235
- any supporting scripts to execute as CommonJS.
1236
-
1237
- In these situations, our `moduleTypes` option can override certain files to be
1238
- CommonJS or ESM. Similar overriding is possible by using `.mts`, `.cts`, `.cjs` and `.mjs` file extensions.
1239
- `moduleTypes` achieves the same effect for `.ts` and `.js` files, and *also* overrides your `tsconfig.json` `"module"`
1240
- config appropriately.
1241
-
1242
- The following example tells ts-node to execute a webpack config as CommonJS:
1243
-
1244
- ```jsonc title="tsconfig.json"
1245
- {
1246
- "ts-node": {
1247
- "transpileOnly": true,
1248
- "moduleTypes": {
1249
- "webpack.config.ts": "cjs",
1250
- // Globs are also supported with the same behavior as tsconfig "include"
1251
- "webpack-config-scripts/**/*": "cjs"
1252
- }
1253
- },
1254
- "compilerOptions": {
1255
- "module": "es2020",
1256
- "target": "es2020"
1257
- }
1258
- }
1259
- ```
1260
-
1261
- Each key is a glob pattern with the same syntax as tsconfig's `"include"` array.
1262
- When multiple patterns match the same file, the last pattern takes precedence.
1263
-
1264
- * `cjs` overrides matches files to compile and execute as CommonJS.
1265
- * `esm` overrides matches files to compile and execute as native ECMAScript modules.
1266
- * `package` resets either of the above to default behavior, which obeys `package.json` `"type"` and `tsconfig.json` `"module"` options.
1267
-
1268
- ### Caveats
1269
-
1270
- Files with an overridden module type are transformed with the same limitations as [`isolatedModules`](https://www.typescriptlang.org/tsconfig#isolatedModules). This will only affect rare cases such as using `const enum`s with [`preserveConstEnums`](https://www.typescriptlang.org/tsconfig#preserveConstEnums) disabled.
1271
-
1272
- This feature is meant to facilitate scenarios where normal `compilerOptions` and `package.json` configuration is not possible. For example, a `webpack.config.ts` cannot be given its own `package.json` to override `"type"`. Wherever possible you should favor using traditional `package.json` and `tsconfig.json` configurations.
1273
-
1274
- ## API
1275
-
1276
- ts-node's complete API is documented here: [API Docs](https://typestrong.org/ts-node/api/)
1277
-
1278
- Here are a few highlights of what you can accomplish:
1279
-
1280
- * [`create()`](https://typestrong.org/ts-node/api/index.html#create) creates ts-node's compiler service without
1281
- registering any hooks.
1282
- * [`createRepl()`](https://typestrong.org/ts-node/api/index.html#createRepl) creates an instance of our REPL service, so
1283
- you can create your own TypeScript-powered REPLs.
1284
- * [`createEsmHooks()`](https://typestrong.org/ts-node/api/index.html#createEsmHooks) creates our ESM loader hooks,
1285
- suitable for composing with other loaders or augmenting with additional features.
1286
-
1287
- # Recipes
1288
-
1289
- ## Watching and restarting
1290
-
1291
- ts-node focuses on adding first-class TypeScript support to node. Watching files and code reloads are out of scope for the project.
1292
-
1293
- If you want to restart the `ts-node` process on file change, existing node.js tools such as [nodemon](https://github.com/remy/nodemon), [onchange](https://github.com/Qard/onchange) and [node-dev](https://github.com/fgnass/node-dev) work.
1294
-
1295
- There's also [`ts-node-dev`](https://github.com/whitecolor/ts-node-dev), a modified version of [`node-dev`](https://github.com/fgnass/node-dev) using `ts-node` for compilation that will restart the process on file change. Note that `ts-node-dev` is incompatible with our native ESM loader.
1296
-
1297
- ## AVA
1298
-
1299
- Assuming you are configuring AVA via your `package.json`, add one of the following configurations.
1300
-
1301
- ### CommonJS
1302
-
1303
- Use this configuration if your `package.json` does not have `"type": "module"`.
1304
-
1305
- ```jsonc title="package.json"
1306
- {
1307
- "ava": {
1308
- "extensions": [
1309
- "ts"
1310
- ],
1311
- "require": [
1312
- "ts-node/register"
1313
- ]
1314
- }
1315
- }
1316
- ```
1317
-
1318
- ### Native ECMAScript modules
1319
-
1320
- This configuration is necessary if your `package.json` has `"type": "module"`.
1321
-
1322
- ```jsonc title="package.json"
1323
- {
1324
- "ava": {
1325
- "extensions": {
1326
- "ts": "module"
1327
- },
1328
- "nonSemVerExperiments": {
1329
- "configurableModuleFormat": true
1330
- },
1331
- "nodeArguments": [
1332
- "--loader=ts-node/esm"
1333
- ]
1334
- }
1335
- }
1336
- ```
1337
-
1338
- ## Gulp
1339
-
1340
- ts-node support is built-in to gulp.
1341
-
1342
- ```sh
1343
- # Create a `gulpfile.ts` and run `gulp`.
1344
- gulp
1345
- ```
1346
-
1347
- See also: https://gulpjs.com/docs/en/getting-started/javascript-and-gulpfiles#transpilation
1348
-
1349
- ## IntelliJ and Webstorm
1350
-
1351
- Create a new Node.js configuration and add `-r ts-node/register` to "Node parameters."
1352
-
1353
- **Note:** If you are using the `--project <tsconfig.json>` command line argument as per the [Configuration Options](#configuration), and want to apply this same behavior when launching in IntelliJ, specify under "Environment Variables": `TS_NODE_PROJECT=<tsconfig.json>`.
1354
-
1355
- ## Mocha
1356
-
1357
- ### Mocha 7 and newer
1358
-
1359
- ```shell
1360
- mocha --require ts-node/register --extensions ts,tsx --watch --watch-files src 'tests/**/*.{ts,tsx}' [...args]
1361
- ```
1362
-
1363
- Or specify options via your mocha config file.
1364
-
1365
- ```jsonc title=".mocharc.json"
1366
- {
1367
- // Specify "require" for CommonJS
1368
- "require": "ts-node/register",
1369
- // Specify "loader" for native ESM
1370
- "loader": "ts-node/esm",
1371
- "extensions": ["ts", "tsx"],
1372
- "spec": [
1373
- "tests/**/*.spec.*"
1374
- ],
1375
- "watch-files": [
1376
- "src"
1377
- ]
1378
- }
1379
- ```
1380
-
1381
- See also: https://mochajs.org/#configuring-mocha-nodejs
1382
-
1383
- ### Mocha <=6
1384
-
1385
- ```shell
1386
- mocha --require ts-node/register --watch-extensions ts,tsx "test/**/*.{ts,tsx}" [...args]
1387
- ```
1388
-
1389
- **Note:** `--watch-extensions` is only used in `--watch` mode.
1390
-
1391
- ## Tape
1392
-
1393
- ```shell
1394
- ts-node node_modules/tape/bin/tape [...args]
1395
- ```
1396
-
1397
- ## Visual Studio Code
1398
-
1399
- Create a new Node.js debug configuration, add `-r ts-node/register` to node args and move the `program` to the `args` list (so VS Code doesn't look for `outFiles`).
1400
-
1401
- ```jsonc title=".vscode/launch.json"
1402
- {
1403
- "configurations": [{
1404
- "type": "node",
1405
- "request": "launch",
1406
- "name": "Launch Program",
1407
- "runtimeArgs": [
1408
- "-r",
1409
- "ts-node/register"
1410
- ],
1411
- "args": [
1412
- "${workspaceFolder}/src/index.ts"
1413
- ]
1414
- }],
1415
- }
1416
- ```
1417
-
1418
- **Note:** If you are using the `--project <tsconfig.json>` command line argument as per the [Configuration Options](#configuration), and want to apply this same behavior when launching in VS Code, add an "env" key into the launch configuration: `"env": { "TS_NODE_PROJECT": "<tsconfig.json>" }`.
1419
-
1420
- ## Other
1421
-
1422
- In many cases, setting [`NODE_OPTIONS`](https://nodejs.org/api/cli.html#cli_node_options_options) will enable `ts-node` within other node tools, child processes, and worker threads.
1423
-
1424
- ```shell
1425
- NODE_OPTIONS="-r ts-node/register"
1426
- ```
1427
-
1428
- Or, if you require native ESM support:
1429
-
1430
- ```shell
1431
- NODE_OPTIONS="--loader ts-node/esm"
1432
- ```
1433
-
1434
- This tells any node processes which receive this environment variable to install `ts-node`'s hooks before executing other code.
1435
-
1436
- # License
1437
-
1438
- ts-node is licensed under the MIT license. [MIT](https://github.com/TypeStrong/ts-node/blob/main/LICENSE)
1439
-
1440
- ts-node includes source code from Node.js which is licensed under the MIT license. [Node.js license information](https://raw.githubusercontent.com/nodejs/node/master/LICENSE)
1441
-
1442
- ts-node includes source code from the TypeScript compiler which is licensed under the Apache License 2.0. [TypeScript license information](https://github.com/microsoft/TypeScript/blob/master/LICENSE.txt)