@effectionx/watch 0.1.3 → 0.2.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 (563) hide show
  1. package/esm/_dnt.polyfills.d.ts +8 -0
  2. package/esm/_dnt.polyfills.d.ts.map +1 -0
  3. package/esm/_dnt.polyfills.js +110 -0
  4. package/esm/_dnt.shims.d.ts +2 -0
  5. package/esm/_dnt.shims.d.ts.map +1 -0
  6. package/esm/_dnt.shims.js +57 -0
  7. package/esm/deno.js +1 -1
  8. package/esm/deps/jsr.io/@std/fs/1.0.19/_create_walk_entry.d.ts +13 -0
  9. package/esm/deps/jsr.io/@std/fs/1.0.19/_create_walk_entry.d.ts.map +1 -0
  10. package/esm/deps/jsr.io/@std/fs/1.0.19/_create_walk_entry.js +33 -0
  11. package/esm/deps/jsr.io/@std/fs/1.0.19/_get_file_info_type.d.ts +12 -0
  12. package/esm/deps/jsr.io/@std/fs/1.0.19/_get_file_info_type.d.ts.map +1 -0
  13. package/esm/deps/jsr.io/@std/fs/1.0.19/_get_file_info_type.js +20 -0
  14. package/esm/deps/jsr.io/@std/fs/1.0.19/_is_same_path.d.ts +10 -0
  15. package/esm/deps/jsr.io/@std/fs/1.0.19/_is_same_path.d.ts.map +1 -0
  16. package/esm/deps/jsr.io/@std/fs/1.0.19/_is_same_path.js +17 -0
  17. package/esm/deps/jsr.io/@std/fs/1.0.19/_is_subdir.d.ts +12 -0
  18. package/esm/deps/jsr.io/@std/fs/1.0.19/_is_subdir.d.ts.map +1 -0
  19. package/esm/deps/jsr.io/@std/fs/1.0.19/_is_subdir.js +25 -0
  20. package/esm/deps/jsr.io/@std/fs/1.0.19/_to_path_string.d.ts +9 -0
  21. package/esm/deps/jsr.io/@std/fs/1.0.19/_to_path_string.d.ts.map +1 -0
  22. package/esm/deps/jsr.io/@std/fs/1.0.19/_to_path_string.js +13 -0
  23. package/esm/deps/jsr.io/@std/fs/1.0.19/copy.d.ts +117 -0
  24. package/esm/deps/jsr.io/@std/fs/1.0.19/copy.d.ts.map +1 -0
  25. package/esm/deps/jsr.io/@std/fs/1.0.19/copy.js +312 -0
  26. package/esm/deps/jsr.io/@std/fs/1.0.19/empty_dir.d.ts +48 -0
  27. package/esm/deps/jsr.io/@std/fs/1.0.19/empty_dir.d.ts.map +1 -0
  28. package/esm/deps/jsr.io/@std/fs/1.0.19/empty_dir.js +86 -0
  29. package/esm/deps/jsr.io/@std/fs/1.0.19/ensure_dir.d.ts +49 -0
  30. package/esm/deps/jsr.io/@std/fs/1.0.19/ensure_dir.d.ts.map +1 -0
  31. package/esm/deps/jsr.io/@std/fs/1.0.19/ensure_dir.js +101 -0
  32. package/esm/deps/jsr.io/@std/fs/1.0.19/ensure_file.d.ts +47 -0
  33. package/esm/deps/jsr.io/@std/fs/1.0.19/ensure_file.d.ts.map +1 -0
  34. package/esm/deps/jsr.io/@std/fs/1.0.19/ensure_file.js +89 -0
  35. package/esm/deps/jsr.io/@std/fs/1.0.19/ensure_link.d.ts +49 -0
  36. package/esm/deps/jsr.io/@std/fs/1.0.19/ensure_link.d.ts.map +1 -0
  37. package/esm/deps/jsr.io/@std/fs/1.0.19/ensure_link.js +60 -0
  38. package/esm/deps/jsr.io/@std/fs/1.0.19/ensure_symlink.d.ts +70 -0
  39. package/esm/deps/jsr.io/@std/fs/1.0.19/ensure_symlink.d.ts.map +1 -0
  40. package/esm/deps/jsr.io/@std/fs/1.0.19/ensure_symlink.js +155 -0
  41. package/esm/deps/jsr.io/@std/fs/1.0.19/eol.d.ts +52 -0
  42. package/esm/deps/jsr.io/@std/fs/1.0.19/eol.d.ts.map +1 -0
  43. package/esm/deps/jsr.io/@std/fs/1.0.19/eol.js +67 -0
  44. package/esm/deps/jsr.io/@std/fs/1.0.19/exists.d.ts +219 -0
  45. package/esm/deps/jsr.io/@std/fs/1.0.19/exists.d.ts.map +1 -0
  46. package/esm/deps/jsr.io/@std/fs/1.0.19/exists.js +269 -0
  47. package/esm/deps/jsr.io/@std/fs/1.0.19/expand_glob.d.ts +267 -0
  48. package/esm/deps/jsr.io/@std/fs/1.0.19/expand_glob.d.ts.map +1 -0
  49. package/esm/deps/jsr.io/@std/fs/1.0.19/expand_glob.js +414 -0
  50. package/esm/deps/jsr.io/@std/fs/1.0.19/mod.d.ts +29 -0
  51. package/esm/deps/jsr.io/@std/fs/1.0.19/mod.d.ts.map +1 -0
  52. package/esm/deps/jsr.io/@std/fs/1.0.19/mod.js +29 -0
  53. package/esm/deps/jsr.io/@std/fs/1.0.19/move.d.ts +86 -0
  54. package/esm/deps/jsr.io/@std/fs/1.0.19/move.d.ts.map +1 -0
  55. package/esm/deps/jsr.io/@std/fs/1.0.19/move.js +140 -0
  56. package/esm/deps/jsr.io/@std/fs/1.0.19/walk.d.ts +777 -0
  57. package/esm/deps/jsr.io/@std/fs/1.0.19/walk.d.ts.map +1 -0
  58. package/esm/deps/jsr.io/@std/fs/1.0.19/walk.js +845 -0
  59. package/esm/deps/jsr.io/@std/internal/1.0.10/_os.d.ts +2 -0
  60. package/esm/deps/jsr.io/@std/internal/1.0.10/_os.d.ts.map +1 -0
  61. package/esm/deps/jsr.io/@std/internal/1.0.10/_os.js +12 -0
  62. package/esm/deps/jsr.io/@std/internal/1.0.10/os.d.ts +3 -0
  63. package/esm/deps/jsr.io/@std/internal/1.0.10/os.d.ts.map +1 -0
  64. package/esm/deps/jsr.io/@std/internal/1.0.10/os.js +5 -0
  65. package/esm/deps/jsr.io/@std/path/1.1.2/_common/assert_path.d.ts +2 -0
  66. package/esm/deps/jsr.io/@std/path/1.1.2/_common/assert_path.d.ts.map +1 -0
  67. package/esm/deps/jsr.io/@std/path/1.1.2/_common/assert_path.js +7 -0
  68. package/esm/deps/jsr.io/@std/path/1.1.2/_common/basename.d.ts +4 -0
  69. package/esm/deps/jsr.io/@std/path/1.1.2/_common/basename.d.ts.map +1 -0
  70. package/esm/deps/jsr.io/@std/path/1.1.2/_common/basename.js +40 -0
  71. package/esm/deps/jsr.io/@std/path/1.1.2/_common/common.d.ts +2 -0
  72. package/esm/deps/jsr.io/@std/path/1.1.2/_common/common.d.ts.map +1 -0
  73. package/esm/deps/jsr.io/@std/path/1.1.2/_common/common.js +23 -0
  74. package/esm/deps/jsr.io/@std/path/1.1.2/_common/constants.d.ts +40 -0
  75. package/esm/deps/jsr.io/@std/path/1.1.2/_common/constants.d.ts.map +1 -0
  76. package/esm/deps/jsr.io/@std/path/1.1.2/_common/constants.js +46 -0
  77. package/esm/deps/jsr.io/@std/path/1.1.2/_common/dirname.d.ts +2 -0
  78. package/esm/deps/jsr.io/@std/path/1.1.2/_common/dirname.d.ts.map +1 -0
  79. package/esm/deps/jsr.io/@std/path/1.1.2/_common/dirname.js +8 -0
  80. package/esm/deps/jsr.io/@std/path/1.1.2/_common/format.d.ts +4 -0
  81. package/esm/deps/jsr.io/@std/path/1.1.2/_common/format.d.ts.map +1 -0
  82. package/esm/deps/jsr.io/@std/path/1.1.2/_common/format.js +19 -0
  83. package/esm/deps/jsr.io/@std/path/1.1.2/_common/from_file_url.d.ts +2 -0
  84. package/esm/deps/jsr.io/@std/path/1.1.2/_common/from_file_url.d.ts.map +1 -0
  85. package/esm/deps/jsr.io/@std/path/1.1.2/_common/from_file_url.js +9 -0
  86. package/esm/deps/jsr.io/@std/path/1.1.2/_common/glob_to_reg_exp.d.ts +35 -0
  87. package/esm/deps/jsr.io/@std/path/1.1.2/_common/glob_to_reg_exp.d.ts.map +1 -0
  88. package/esm/deps/jsr.io/@std/path/1.1.2/_common/glob_to_reg_exp.js +234 -0
  89. package/esm/deps/jsr.io/@std/path/1.1.2/_common/normalize.d.ts +2 -0
  90. package/esm/deps/jsr.io/@std/path/1.1.2/_common/normalize.d.ts.map +1 -0
  91. package/esm/deps/jsr.io/@std/path/1.1.2/_common/normalize.js +8 -0
  92. package/esm/deps/jsr.io/@std/path/1.1.2/_common/normalize_string.d.ts +2 -0
  93. package/esm/deps/jsr.io/@std/path/1.1.2/_common/normalize_string.d.ts.map +1 -0
  94. package/esm/deps/jsr.io/@std/path/1.1.2/_common/normalize_string.js +77 -0
  95. package/esm/deps/jsr.io/@std/path/1.1.2/_common/relative.d.ts +2 -0
  96. package/esm/deps/jsr.io/@std/path/1.1.2/_common/relative.d.ts.map +1 -0
  97. package/esm/deps/jsr.io/@std/path/1.1.2/_common/relative.js +9 -0
  98. package/esm/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.d.ts +2 -0
  99. package/esm/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.d.ts.map +1 -0
  100. package/esm/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.js +19 -0
  101. package/esm/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.d.ts +2 -0
  102. package/esm/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.d.ts.map +1 -0
  103. package/esm/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.js +15 -0
  104. package/esm/deps/jsr.io/@std/path/1.1.2/basename.d.ts +27 -0
  105. package/esm/deps/jsr.io/@std/path/1.1.2/basename.d.ts.map +1 -0
  106. package/esm/deps/jsr.io/@std/path/1.1.2/basename.js +35 -0
  107. package/esm/deps/jsr.io/@std/path/1.1.2/common.d.ts +28 -0
  108. package/esm/deps/jsr.io/@std/path/1.1.2/common.d.ts.map +1 -0
  109. package/esm/deps/jsr.io/@std/path/1.1.2/common.js +33 -0
  110. package/esm/deps/jsr.io/@std/path/1.1.2/constants.d.ts +15 -0
  111. package/esm/deps/jsr.io/@std/path/1.1.2/constants.d.ts.map +1 -0
  112. package/esm/deps/jsr.io/@std/path/1.1.2/constants.js +17 -0
  113. package/esm/deps/jsr.io/@std/path/1.1.2/dirname.d.ts +22 -0
  114. package/esm/deps/jsr.io/@std/path/1.1.2/dirname.d.ts.map +1 -0
  115. package/esm/deps/jsr.io/@std/path/1.1.2/dirname.js +28 -0
  116. package/esm/deps/jsr.io/@std/path/1.1.2/extname.d.ts +22 -0
  117. package/esm/deps/jsr.io/@std/path/1.1.2/extname.d.ts.map +1 -0
  118. package/esm/deps/jsr.io/@std/path/1.1.2/extname.js +28 -0
  119. package/esm/deps/jsr.io/@std/path/1.1.2/format.d.ts +22 -0
  120. package/esm/deps/jsr.io/@std/path/1.1.2/format.d.ts.map +1 -0
  121. package/esm/deps/jsr.io/@std/path/1.1.2/format.js +27 -0
  122. package/esm/deps/jsr.io/@std/path/1.1.2/from_file_url.d.ts +22 -0
  123. package/esm/deps/jsr.io/@std/path/1.1.2/from_file_url.d.ts.map +1 -0
  124. package/esm/deps/jsr.io/@std/path/1.1.2/from_file_url.js +28 -0
  125. package/esm/deps/jsr.io/@std/path/1.1.2/glob_to_regexp.d.ts +77 -0
  126. package/esm/deps/jsr.io/@std/path/1.1.2/glob_to_regexp.d.ts.map +1 -0
  127. package/esm/deps/jsr.io/@std/path/1.1.2/glob_to_regexp.js +83 -0
  128. package/esm/deps/jsr.io/@std/path/1.1.2/is_absolute.d.ts +22 -0
  129. package/esm/deps/jsr.io/@std/path/1.1.2/is_absolute.d.ts.map +1 -0
  130. package/esm/deps/jsr.io/@std/path/1.1.2/is_absolute.js +28 -0
  131. package/esm/deps/jsr.io/@std/path/1.1.2/is_glob.d.ts +17 -0
  132. package/esm/deps/jsr.io/@std/path/1.1.2/is_glob.d.ts.map +1 -0
  133. package/esm/deps/jsr.io/@std/path/1.1.2/is_glob.js +42 -0
  134. package/esm/deps/jsr.io/@std/path/1.1.2/join.d.ts +23 -0
  135. package/esm/deps/jsr.io/@std/path/1.1.2/join.d.ts.map +1 -0
  136. package/esm/deps/jsr.io/@std/path/1.1.2/join.js +29 -0
  137. package/esm/deps/jsr.io/@std/path/1.1.2/join_globs.d.ts +28 -0
  138. package/esm/deps/jsr.io/@std/path/1.1.2/join_globs.d.ts.map +1 -0
  139. package/esm/deps/jsr.io/@std/path/1.1.2/join_globs.js +34 -0
  140. package/esm/deps/jsr.io/@std/path/1.1.2/mod.d.ts +213 -0
  141. package/esm/deps/jsr.io/@std/path/1.1.2/mod.d.ts.map +1 -0
  142. package/esm/deps/jsr.io/@std/path/1.1.2/mod.js +216 -0
  143. package/esm/deps/jsr.io/@std/path/1.1.2/normalize.d.ts +26 -0
  144. package/esm/deps/jsr.io/@std/path/1.1.2/normalize.d.ts.map +1 -0
  145. package/esm/deps/jsr.io/@std/path/1.1.2/normalize.js +32 -0
  146. package/esm/deps/jsr.io/@std/path/1.1.2/normalize_glob.d.ts +29 -0
  147. package/esm/deps/jsr.io/@std/path/1.1.2/normalize_glob.d.ts.map +1 -0
  148. package/esm/deps/jsr.io/@std/path/1.1.2/normalize_glob.js +35 -0
  149. package/esm/deps/jsr.io/@std/path/1.1.2/parse.d.ts +35 -0
  150. package/esm/deps/jsr.io/@std/path/1.1.2/parse.d.ts.map +1 -0
  151. package/esm/deps/jsr.io/@std/path/1.1.2/parse.js +39 -0
  152. package/esm/deps/jsr.io/@std/path/1.1.2/posix/_util.d.ts +2 -0
  153. package/esm/deps/jsr.io/@std/path/1.1.2/posix/_util.d.ts.map +1 -0
  154. package/esm/deps/jsr.io/@std/path/1.1.2/posix/_util.js +8 -0
  155. package/esm/deps/jsr.io/@std/path/1.1.2/posix/basename.d.ts +39 -0
  156. package/esm/deps/jsr.io/@std/path/1.1.2/posix/basename.d.ts.map +1 -0
  157. package/esm/deps/jsr.io/@std/path/1.1.2/posix/basename.js +52 -0
  158. package/esm/deps/jsr.io/@std/path/1.1.2/posix/constants.d.ts +13 -0
  159. package/esm/deps/jsr.io/@std/path/1.1.2/posix/constants.d.ts.map +1 -0
  160. package/esm/deps/jsr.io/@std/path/1.1.2/posix/constants.js +14 -0
  161. package/esm/deps/jsr.io/@std/path/1.1.2/posix/dirname.d.ts +30 -0
  162. package/esm/deps/jsr.io/@std/path/1.1.2/posix/dirname.d.ts.map +1 -0
  163. package/esm/deps/jsr.io/@std/path/1.1.2/posix/dirname.js +64 -0
  164. package/esm/deps/jsr.io/@std/path/1.1.2/posix/extname.d.ts +37 -0
  165. package/esm/deps/jsr.io/@std/path/1.1.2/posix/extname.d.ts.map +1 -0
  166. package/esm/deps/jsr.io/@std/path/1.1.2/posix/extname.js +93 -0
  167. package/esm/deps/jsr.io/@std/path/1.1.2/posix/format.d.ts +24 -0
  168. package/esm/deps/jsr.io/@std/path/1.1.2/posix/format.d.ts.map +1 -0
  169. package/esm/deps/jsr.io/@std/path/1.1.2/posix/format.js +28 -0
  170. package/esm/deps/jsr.io/@std/path/1.1.2/posix/from_file_url.d.ts +16 -0
  171. package/esm/deps/jsr.io/@std/path/1.1.2/posix/from_file_url.d.ts.map +1 -0
  172. package/esm/deps/jsr.io/@std/path/1.1.2/posix/from_file_url.js +21 -0
  173. package/esm/deps/jsr.io/@std/path/1.1.2/posix/glob_to_regexp.d.ts +72 -0
  174. package/esm/deps/jsr.io/@std/path/1.1.2/posix/glob_to_regexp.d.ts.map +1 -0
  175. package/esm/deps/jsr.io/@std/path/1.1.2/posix/glob_to_regexp.js +82 -0
  176. package/esm/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.d.ts +17 -0
  177. package/esm/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.d.ts.map +1 -0
  178. package/esm/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.js +23 -0
  179. package/esm/deps/jsr.io/@std/path/1.1.2/posix/join.d.ts +31 -0
  180. package/esm/deps/jsr.io/@std/path/1.1.2/posix/join.d.ts.map +1 -0
  181. package/esm/deps/jsr.io/@std/path/1.1.2/posix/join.js +45 -0
  182. package/esm/deps/jsr.io/@std/path/1.1.2/posix/join_globs.d.ts +20 -0
  183. package/esm/deps/jsr.io/@std/path/1.1.2/posix/join_globs.d.ts.map +1 -0
  184. package/esm/deps/jsr.io/@std/path/1.1.2/posix/join_globs.js +40 -0
  185. package/esm/deps/jsr.io/@std/path/1.1.2/posix/normalize.d.ts +37 -0
  186. package/esm/deps/jsr.io/@std/path/1.1.2/posix/normalize.d.ts.map +1 -0
  187. package/esm/deps/jsr.io/@std/path/1.1.2/posix/normalize.js +58 -0
  188. package/esm/deps/jsr.io/@std/path/1.1.2/posix/normalize_glob.d.ts +20 -0
  189. package/esm/deps/jsr.io/@std/path/1.1.2/posix/normalize_glob.d.ts.map +1 -0
  190. package/esm/deps/jsr.io/@std/path/1.1.2/posix/normalize_glob.js +32 -0
  191. package/esm/deps/jsr.io/@std/path/1.1.2/posix/parse.d.ts +25 -0
  192. package/esm/deps/jsr.io/@std/path/1.1.2/posix/parse.d.ts.map +1 -0
  193. package/esm/deps/jsr.io/@std/path/1.1.2/posix/parse.js +115 -0
  194. package/esm/deps/jsr.io/@std/path/1.1.2/posix/relative.d.ts +20 -0
  195. package/esm/deps/jsr.io/@std/path/1.1.2/posix/relative.d.ts.map +1 -0
  196. package/esm/deps/jsr.io/@std/path/1.1.2/posix/relative.js +106 -0
  197. package/esm/deps/jsr.io/@std/path/1.1.2/posix/resolve.d.ts +17 -0
  198. package/esm/deps/jsr.io/@std/path/1.1.2/posix/resolve.d.ts.map +1 -0
  199. package/esm/deps/jsr.io/@std/path/1.1.2/posix/resolve.js +59 -0
  200. package/esm/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.d.ts +17 -0
  201. package/esm/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.d.ts.map +1 -0
  202. package/esm/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.js +27 -0
  203. package/esm/deps/jsr.io/@std/path/1.1.2/posix/to_namespaced_path.d.ts +16 -0
  204. package/esm/deps/jsr.io/@std/path/1.1.2/posix/to_namespaced_path.d.ts.map +1 -0
  205. package/esm/deps/jsr.io/@std/path/1.1.2/posix/to_namespaced_path.js +20 -0
  206. package/esm/deps/jsr.io/@std/path/1.1.2/relative.d.ts +24 -0
  207. package/esm/deps/jsr.io/@std/path/1.1.2/relative.d.ts.map +1 -0
  208. package/esm/deps/jsr.io/@std/path/1.1.2/relative.js +30 -0
  209. package/esm/deps/jsr.io/@std/path/1.1.2/resolve.d.ts +22 -0
  210. package/esm/deps/jsr.io/@std/path/1.1.2/resolve.d.ts.map +1 -0
  211. package/esm/deps/jsr.io/@std/path/1.1.2/resolve.js +30 -0
  212. package/esm/deps/jsr.io/@std/path/1.1.2/to_file_url.d.ts +22 -0
  213. package/esm/deps/jsr.io/@std/path/1.1.2/to_file_url.d.ts.map +1 -0
  214. package/esm/deps/jsr.io/@std/path/1.1.2/to_file_url.js +28 -0
  215. package/esm/deps/jsr.io/@std/path/1.1.2/to_namespaced_path.d.ts +21 -0
  216. package/esm/deps/jsr.io/@std/path/1.1.2/to_namespaced_path.d.ts.map +1 -0
  217. package/esm/deps/jsr.io/@std/path/1.1.2/to_namespaced_path.js +29 -0
  218. package/esm/deps/jsr.io/@std/path/1.1.2/types.d.ts +38 -0
  219. package/esm/deps/jsr.io/@std/path/1.1.2/types.d.ts.map +1 -0
  220. package/esm/deps/jsr.io/@std/path/1.1.2/types.js +3 -0
  221. package/esm/deps/jsr.io/@std/path/1.1.2/windows/_util.d.ts +4 -0
  222. package/esm/deps/jsr.io/@std/path/1.1.2/windows/_util.d.ts.map +1 -0
  223. package/esm/deps/jsr.io/@std/path/1.1.2/windows/_util.js +15 -0
  224. package/esm/deps/jsr.io/@std/path/1.1.2/windows/basename.d.ts +22 -0
  225. package/esm/deps/jsr.io/@std/path/1.1.2/windows/basename.d.ts.map +1 -0
  226. package/esm/deps/jsr.io/@std/path/1.1.2/windows/basename.js +47 -0
  227. package/esm/deps/jsr.io/@std/path/1.1.2/windows/constants.d.ts +13 -0
  228. package/esm/deps/jsr.io/@std/path/1.1.2/windows/constants.d.ts.map +1 -0
  229. package/esm/deps/jsr.io/@std/path/1.1.2/windows/constants.js +14 -0
  230. package/esm/deps/jsr.io/@std/path/1.1.2/windows/dirname.d.ts +17 -0
  231. package/esm/deps/jsr.io/@std/path/1.1.2/windows/dirname.d.ts.map +1 -0
  232. package/esm/deps/jsr.io/@std/path/1.1.2/windows/dirname.js +113 -0
  233. package/esm/deps/jsr.io/@std/path/1.1.2/windows/extname.d.ts +17 -0
  234. package/esm/deps/jsr.io/@std/path/1.1.2/windows/extname.d.ts.map +1 -0
  235. package/esm/deps/jsr.io/@std/path/1.1.2/windows/extname.js +82 -0
  236. package/esm/deps/jsr.io/@std/path/1.1.2/windows/format.d.ts +24 -0
  237. package/esm/deps/jsr.io/@std/path/1.1.2/windows/format.d.ts.map +1 -0
  238. package/esm/deps/jsr.io/@std/path/1.1.2/windows/format.js +28 -0
  239. package/esm/deps/jsr.io/@std/path/1.1.2/windows/from_file_url.d.ts +18 -0
  240. package/esm/deps/jsr.io/@std/path/1.1.2/windows/from_file_url.d.ts.map +1 -0
  241. package/esm/deps/jsr.io/@std/path/1.1.2/windows/from_file_url.js +30 -0
  242. package/esm/deps/jsr.io/@std/path/1.1.2/windows/glob_to_regexp.d.ts +71 -0
  243. package/esm/deps/jsr.io/@std/path/1.1.2/windows/glob_to_regexp.d.ts.map +1 -0
  244. package/esm/deps/jsr.io/@std/path/1.1.2/windows/glob_to_regexp.js +82 -0
  245. package/esm/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.d.ts +17 -0
  246. package/esm/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.d.ts.map +1 -0
  247. package/esm/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.js +38 -0
  248. package/esm/deps/jsr.io/@std/path/1.1.2/windows/join.d.ts +18 -0
  249. package/esm/deps/jsr.io/@std/path/1.1.2/windows/join.d.ts.map +1 -0
  250. package/esm/deps/jsr.io/@std/path/1.1.2/windows/join.js +77 -0
  251. package/esm/deps/jsr.io/@std/path/1.1.2/windows/join_globs.d.ts +21 -0
  252. package/esm/deps/jsr.io/@std/path/1.1.2/windows/join_globs.d.ts.map +1 -0
  253. package/esm/deps/jsr.io/@std/path/1.1.2/windows/join_globs.js +41 -0
  254. package/esm/deps/jsr.io/@std/path/1.1.2/windows/normalize.d.ts +19 -0
  255. package/esm/deps/jsr.io/@std/path/1.1.2/windows/normalize.d.ts.map +1 -0
  256. package/esm/deps/jsr.io/@std/path/1.1.2/windows/normalize.js +135 -0
  257. package/esm/deps/jsr.io/@std/path/1.1.2/windows/normalize_glob.d.ts +20 -0
  258. package/esm/deps/jsr.io/@std/path/1.1.2/windows/normalize_glob.d.ts.map +1 -0
  259. package/esm/deps/jsr.io/@std/path/1.1.2/windows/normalize_glob.js +32 -0
  260. package/esm/deps/jsr.io/@std/path/1.1.2/windows/parse.d.ts +25 -0
  261. package/esm/deps/jsr.io/@std/path/1.1.2/windows/parse.d.ts.map +1 -0
  262. package/esm/deps/jsr.io/@std/path/1.1.2/windows/parse.js +176 -0
  263. package/esm/deps/jsr.io/@std/path/1.1.2/windows/relative.d.ts +23 -0
  264. package/esm/deps/jsr.io/@std/path/1.1.2/windows/relative.d.ts.map +1 -0
  265. package/esm/deps/jsr.io/@std/path/1.1.2/windows/relative.js +131 -0
  266. package/esm/deps/jsr.io/@std/path/1.1.2/windows/resolve.d.ts +17 -0
  267. package/esm/deps/jsr.io/@std/path/1.1.2/windows/resolve.d.ts.map +1 -0
  268. package/esm/deps/jsr.io/@std/path/1.1.2/windows/resolve.js +154 -0
  269. package/esm/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.d.ts +17 -0
  270. package/esm/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.d.ts.map +1 -0
  271. package/esm/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.js +34 -0
  272. package/esm/deps/jsr.io/@std/path/1.1.2/windows/to_namespaced_path.d.ts +17 -0
  273. package/esm/deps/jsr.io/@std/path/1.1.2/windows/to_namespaced_path.d.ts.map +1 -0
  274. package/esm/deps/jsr.io/@std/path/1.1.2/windows/to_namespaced_path.js +49 -0
  275. package/esm/main.d.ts +1 -1
  276. package/esm/main.d.ts.map +1 -1
  277. package/esm/main.js +1 -0
  278. package/esm/mod.d.ts +1 -0
  279. package/esm/mod.d.ts.map +1 -1
  280. package/esm/mod.js +1 -0
  281. package/esm/watch.js +2 -2
  282. package/package.json +9 -1
  283. package/script/_dnt.polyfills.d.ts +8 -0
  284. package/script/_dnt.polyfills.d.ts.map +1 -0
  285. package/script/_dnt.polyfills.js +111 -0
  286. package/script/_dnt.shims.d.ts +2 -0
  287. package/script/_dnt.shims.d.ts.map +1 -0
  288. package/script/_dnt.shims.js +60 -0
  289. package/script/deno.js +1 -1
  290. package/script/deps/jsr.io/@std/fs/1.0.19/_create_walk_entry.d.ts +13 -0
  291. package/script/deps/jsr.io/@std/fs/1.0.19/_create_walk_entry.d.ts.map +1 -0
  292. package/script/deps/jsr.io/@std/fs/1.0.19/_create_walk_entry.js +37 -0
  293. package/script/deps/jsr.io/@std/fs/1.0.19/_get_file_info_type.d.ts +12 -0
  294. package/script/deps/jsr.io/@std/fs/1.0.19/_get_file_info_type.d.ts.map +1 -0
  295. package/script/deps/jsr.io/@std/fs/1.0.19/_get_file_info_type.js +23 -0
  296. package/script/deps/jsr.io/@std/fs/1.0.19/_is_same_path.d.ts +10 -0
  297. package/script/deps/jsr.io/@std/fs/1.0.19/_is_same_path.d.ts.map +1 -0
  298. package/script/deps/jsr.io/@std/fs/1.0.19/_is_same_path.js +20 -0
  299. package/script/deps/jsr.io/@std/fs/1.0.19/_is_subdir.d.ts +12 -0
  300. package/script/deps/jsr.io/@std/fs/1.0.19/_is_subdir.d.ts.map +1 -0
  301. package/script/deps/jsr.io/@std/fs/1.0.19/_is_subdir.js +28 -0
  302. package/script/deps/jsr.io/@std/fs/1.0.19/_to_path_string.d.ts +9 -0
  303. package/script/deps/jsr.io/@std/fs/1.0.19/_to_path_string.d.ts.map +1 -0
  304. package/script/deps/jsr.io/@std/fs/1.0.19/_to_path_string.js +16 -0
  305. package/script/deps/jsr.io/@std/fs/1.0.19/copy.d.ts +117 -0
  306. package/script/deps/jsr.io/@std/fs/1.0.19/copy.d.ts.map +1 -0
  307. package/script/deps/jsr.io/@std/fs/1.0.19/copy.js +316 -0
  308. package/script/deps/jsr.io/@std/fs/1.0.19/empty_dir.d.ts +48 -0
  309. package/script/deps/jsr.io/@std/fs/1.0.19/empty_dir.d.ts.map +1 -0
  310. package/script/deps/jsr.io/@std/fs/1.0.19/empty_dir.js +90 -0
  311. package/script/deps/jsr.io/@std/fs/1.0.19/ensure_dir.d.ts +49 -0
  312. package/script/deps/jsr.io/@std/fs/1.0.19/ensure_dir.d.ts.map +1 -0
  313. package/script/deps/jsr.io/@std/fs/1.0.19/ensure_dir.js +105 -0
  314. package/script/deps/jsr.io/@std/fs/1.0.19/ensure_file.d.ts +47 -0
  315. package/script/deps/jsr.io/@std/fs/1.0.19/ensure_file.d.ts.map +1 -0
  316. package/script/deps/jsr.io/@std/fs/1.0.19/ensure_file.js +93 -0
  317. package/script/deps/jsr.io/@std/fs/1.0.19/ensure_link.d.ts +49 -0
  318. package/script/deps/jsr.io/@std/fs/1.0.19/ensure_link.d.ts.map +1 -0
  319. package/script/deps/jsr.io/@std/fs/1.0.19/ensure_link.js +64 -0
  320. package/script/deps/jsr.io/@std/fs/1.0.19/ensure_symlink.d.ts +70 -0
  321. package/script/deps/jsr.io/@std/fs/1.0.19/ensure_symlink.d.ts.map +1 -0
  322. package/script/deps/jsr.io/@std/fs/1.0.19/ensure_symlink.js +159 -0
  323. package/script/deps/jsr.io/@std/fs/1.0.19/eol.d.ts +52 -0
  324. package/script/deps/jsr.io/@std/fs/1.0.19/eol.d.ts.map +1 -0
  325. package/script/deps/jsr.io/@std/fs/1.0.19/eol.js +105 -0
  326. package/script/deps/jsr.io/@std/fs/1.0.19/exists.d.ts +219 -0
  327. package/script/deps/jsr.io/@std/fs/1.0.19/exists.d.ts.map +1 -0
  328. package/script/deps/jsr.io/@std/fs/1.0.19/exists.js +273 -0
  329. package/script/deps/jsr.io/@std/fs/1.0.19/expand_glob.d.ts +267 -0
  330. package/script/deps/jsr.io/@std/fs/1.0.19/expand_glob.d.ts.map +1 -0
  331. package/script/deps/jsr.io/@std/fs/1.0.19/expand_glob.js +418 -0
  332. package/script/deps/jsr.io/@std/fs/1.0.19/mod.d.ts +29 -0
  333. package/script/deps/jsr.io/@std/fs/1.0.19/mod.d.ts.map +1 -0
  334. package/script/deps/jsr.io/@std/fs/1.0.19/mod.js +45 -0
  335. package/script/deps/jsr.io/@std/fs/1.0.19/move.d.ts +86 -0
  336. package/script/deps/jsr.io/@std/fs/1.0.19/move.d.ts.map +1 -0
  337. package/script/deps/jsr.io/@std/fs/1.0.19/move.js +144 -0
  338. package/script/deps/jsr.io/@std/fs/1.0.19/walk.d.ts +777 -0
  339. package/script/deps/jsr.io/@std/fs/1.0.19/walk.d.ts.map +1 -0
  340. package/script/deps/jsr.io/@std/fs/1.0.19/walk.js +849 -0
  341. package/script/deps/jsr.io/@std/internal/1.0.10/_os.d.ts +2 -0
  342. package/script/deps/jsr.io/@std/internal/1.0.10/_os.d.ts.map +1 -0
  343. package/script/deps/jsr.io/@std/internal/1.0.10/_os.js +48 -0
  344. package/script/deps/jsr.io/@std/internal/1.0.10/os.d.ts +3 -0
  345. package/script/deps/jsr.io/@std/internal/1.0.10/os.d.ts.map +1 -0
  346. package/script/deps/jsr.io/@std/internal/1.0.10/os.js +8 -0
  347. package/script/deps/jsr.io/@std/path/1.1.2/_common/assert_path.d.ts +2 -0
  348. package/script/deps/jsr.io/@std/path/1.1.2/_common/assert_path.d.ts.map +1 -0
  349. package/script/deps/jsr.io/@std/path/1.1.2/_common/assert_path.js +10 -0
  350. package/script/deps/jsr.io/@std/path/1.1.2/_common/basename.d.ts +4 -0
  351. package/script/deps/jsr.io/@std/path/1.1.2/_common/basename.d.ts.map +1 -0
  352. package/script/deps/jsr.io/@std/path/1.1.2/_common/basename.js +45 -0
  353. package/script/deps/jsr.io/@std/path/1.1.2/_common/common.d.ts +2 -0
  354. package/script/deps/jsr.io/@std/path/1.1.2/_common/common.d.ts.map +1 -0
  355. package/script/deps/jsr.io/@std/path/1.1.2/_common/common.js +26 -0
  356. package/script/deps/jsr.io/@std/path/1.1.2/_common/constants.d.ts +40 -0
  357. package/script/deps/jsr.io/@std/path/1.1.2/_common/constants.d.ts.map +1 -0
  358. package/script/deps/jsr.io/@std/path/1.1.2/_common/constants.js +49 -0
  359. package/script/deps/jsr.io/@std/path/1.1.2/_common/dirname.d.ts +2 -0
  360. package/script/deps/jsr.io/@std/path/1.1.2/_common/dirname.d.ts.map +1 -0
  361. package/script/deps/jsr.io/@std/path/1.1.2/_common/dirname.js +11 -0
  362. package/script/deps/jsr.io/@std/path/1.1.2/_common/format.d.ts +4 -0
  363. package/script/deps/jsr.io/@std/path/1.1.2/_common/format.d.ts.map +1 -0
  364. package/script/deps/jsr.io/@std/path/1.1.2/_common/format.js +23 -0
  365. package/script/deps/jsr.io/@std/path/1.1.2/_common/from_file_url.d.ts +2 -0
  366. package/script/deps/jsr.io/@std/path/1.1.2/_common/from_file_url.d.ts.map +1 -0
  367. package/script/deps/jsr.io/@std/path/1.1.2/_common/from_file_url.js +12 -0
  368. package/script/deps/jsr.io/@std/path/1.1.2/_common/glob_to_reg_exp.d.ts +35 -0
  369. package/script/deps/jsr.io/@std/path/1.1.2/_common/glob_to_reg_exp.d.ts.map +1 -0
  370. package/script/deps/jsr.io/@std/path/1.1.2/_common/glob_to_reg_exp.js +237 -0
  371. package/script/deps/jsr.io/@std/path/1.1.2/_common/normalize.d.ts +2 -0
  372. package/script/deps/jsr.io/@std/path/1.1.2/_common/normalize.d.ts.map +1 -0
  373. package/script/deps/jsr.io/@std/path/1.1.2/_common/normalize.js +11 -0
  374. package/script/deps/jsr.io/@std/path/1.1.2/_common/normalize_string.d.ts +2 -0
  375. package/script/deps/jsr.io/@std/path/1.1.2/_common/normalize_string.d.ts.map +1 -0
  376. package/script/deps/jsr.io/@std/path/1.1.2/_common/normalize_string.js +80 -0
  377. package/script/deps/jsr.io/@std/path/1.1.2/_common/relative.d.ts +2 -0
  378. package/script/deps/jsr.io/@std/path/1.1.2/_common/relative.d.ts.map +1 -0
  379. package/script/deps/jsr.io/@std/path/1.1.2/_common/relative.js +12 -0
  380. package/script/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.d.ts +2 -0
  381. package/script/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.d.ts.map +1 -0
  382. package/script/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.js +22 -0
  383. package/script/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.d.ts +2 -0
  384. package/script/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.d.ts.map +1 -0
  385. package/script/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.js +18 -0
  386. package/script/deps/jsr.io/@std/path/1.1.2/basename.d.ts +27 -0
  387. package/script/deps/jsr.io/@std/path/1.1.2/basename.d.ts.map +1 -0
  388. package/script/deps/jsr.io/@std/path/1.1.2/basename.js +38 -0
  389. package/script/deps/jsr.io/@std/path/1.1.2/common.d.ts +28 -0
  390. package/script/deps/jsr.io/@std/path/1.1.2/common.d.ts.map +1 -0
  391. package/script/deps/jsr.io/@std/path/1.1.2/common.js +36 -0
  392. package/script/deps/jsr.io/@std/path/1.1.2/constants.d.ts +15 -0
  393. package/script/deps/jsr.io/@std/path/1.1.2/constants.d.ts.map +1 -0
  394. package/script/deps/jsr.io/@std/path/1.1.2/constants.js +20 -0
  395. package/script/deps/jsr.io/@std/path/1.1.2/dirname.d.ts +22 -0
  396. package/script/deps/jsr.io/@std/path/1.1.2/dirname.d.ts.map +1 -0
  397. package/script/deps/jsr.io/@std/path/1.1.2/dirname.js +31 -0
  398. package/script/deps/jsr.io/@std/path/1.1.2/extname.d.ts +22 -0
  399. package/script/deps/jsr.io/@std/path/1.1.2/extname.d.ts.map +1 -0
  400. package/script/deps/jsr.io/@std/path/1.1.2/extname.js +31 -0
  401. package/script/deps/jsr.io/@std/path/1.1.2/format.d.ts +22 -0
  402. package/script/deps/jsr.io/@std/path/1.1.2/format.d.ts.map +1 -0
  403. package/script/deps/jsr.io/@std/path/1.1.2/format.js +30 -0
  404. package/script/deps/jsr.io/@std/path/1.1.2/from_file_url.d.ts +22 -0
  405. package/script/deps/jsr.io/@std/path/1.1.2/from_file_url.d.ts.map +1 -0
  406. package/script/deps/jsr.io/@std/path/1.1.2/from_file_url.js +31 -0
  407. package/script/deps/jsr.io/@std/path/1.1.2/glob_to_regexp.d.ts +77 -0
  408. package/script/deps/jsr.io/@std/path/1.1.2/glob_to_regexp.d.ts.map +1 -0
  409. package/script/deps/jsr.io/@std/path/1.1.2/glob_to_regexp.js +86 -0
  410. package/script/deps/jsr.io/@std/path/1.1.2/is_absolute.d.ts +22 -0
  411. package/script/deps/jsr.io/@std/path/1.1.2/is_absolute.d.ts.map +1 -0
  412. package/script/deps/jsr.io/@std/path/1.1.2/is_absolute.js +31 -0
  413. package/script/deps/jsr.io/@std/path/1.1.2/is_glob.d.ts +17 -0
  414. package/script/deps/jsr.io/@std/path/1.1.2/is_glob.d.ts.map +1 -0
  415. package/script/deps/jsr.io/@std/path/1.1.2/is_glob.js +45 -0
  416. package/script/deps/jsr.io/@std/path/1.1.2/join.d.ts +23 -0
  417. package/script/deps/jsr.io/@std/path/1.1.2/join.d.ts.map +1 -0
  418. package/script/deps/jsr.io/@std/path/1.1.2/join.js +32 -0
  419. package/script/deps/jsr.io/@std/path/1.1.2/join_globs.d.ts +28 -0
  420. package/script/deps/jsr.io/@std/path/1.1.2/join_globs.d.ts.map +1 -0
  421. package/script/deps/jsr.io/@std/path/1.1.2/join_globs.js +37 -0
  422. package/script/deps/jsr.io/@std/path/1.1.2/mod.d.ts +213 -0
  423. package/script/deps/jsr.io/@std/path/1.1.2/mod.d.ts.map +1 -0
  424. package/script/deps/jsr.io/@std/path/1.1.2/mod.js +232 -0
  425. package/script/deps/jsr.io/@std/path/1.1.2/normalize.d.ts +26 -0
  426. package/script/deps/jsr.io/@std/path/1.1.2/normalize.d.ts.map +1 -0
  427. package/script/deps/jsr.io/@std/path/1.1.2/normalize.js +35 -0
  428. package/script/deps/jsr.io/@std/path/1.1.2/normalize_glob.d.ts +29 -0
  429. package/script/deps/jsr.io/@std/path/1.1.2/normalize_glob.d.ts.map +1 -0
  430. package/script/deps/jsr.io/@std/path/1.1.2/normalize_glob.js +38 -0
  431. package/script/deps/jsr.io/@std/path/1.1.2/parse.d.ts +35 -0
  432. package/script/deps/jsr.io/@std/path/1.1.2/parse.d.ts.map +1 -0
  433. package/script/deps/jsr.io/@std/path/1.1.2/parse.js +42 -0
  434. package/script/deps/jsr.io/@std/path/1.1.2/posix/_util.d.ts +2 -0
  435. package/script/deps/jsr.io/@std/path/1.1.2/posix/_util.d.ts.map +1 -0
  436. package/script/deps/jsr.io/@std/path/1.1.2/posix/_util.js +11 -0
  437. package/script/deps/jsr.io/@std/path/1.1.2/posix/basename.d.ts +39 -0
  438. package/script/deps/jsr.io/@std/path/1.1.2/posix/basename.d.ts.map +1 -0
  439. package/script/deps/jsr.io/@std/path/1.1.2/posix/basename.js +55 -0
  440. package/script/deps/jsr.io/@std/path/1.1.2/posix/constants.d.ts +13 -0
  441. package/script/deps/jsr.io/@std/path/1.1.2/posix/constants.d.ts.map +1 -0
  442. package/script/deps/jsr.io/@std/path/1.1.2/posix/constants.js +17 -0
  443. package/script/deps/jsr.io/@std/path/1.1.2/posix/dirname.d.ts +30 -0
  444. package/script/deps/jsr.io/@std/path/1.1.2/posix/dirname.d.ts.map +1 -0
  445. package/script/deps/jsr.io/@std/path/1.1.2/posix/dirname.js +67 -0
  446. package/script/deps/jsr.io/@std/path/1.1.2/posix/extname.d.ts +37 -0
  447. package/script/deps/jsr.io/@std/path/1.1.2/posix/extname.d.ts.map +1 -0
  448. package/script/deps/jsr.io/@std/path/1.1.2/posix/extname.js +96 -0
  449. package/script/deps/jsr.io/@std/path/1.1.2/posix/format.d.ts +24 -0
  450. package/script/deps/jsr.io/@std/path/1.1.2/posix/format.d.ts.map +1 -0
  451. package/script/deps/jsr.io/@std/path/1.1.2/posix/format.js +31 -0
  452. package/script/deps/jsr.io/@std/path/1.1.2/posix/from_file_url.d.ts +16 -0
  453. package/script/deps/jsr.io/@std/path/1.1.2/posix/from_file_url.d.ts.map +1 -0
  454. package/script/deps/jsr.io/@std/path/1.1.2/posix/from_file_url.js +24 -0
  455. package/script/deps/jsr.io/@std/path/1.1.2/posix/glob_to_regexp.d.ts +72 -0
  456. package/script/deps/jsr.io/@std/path/1.1.2/posix/glob_to_regexp.d.ts.map +1 -0
  457. package/script/deps/jsr.io/@std/path/1.1.2/posix/glob_to_regexp.js +85 -0
  458. package/script/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.d.ts +17 -0
  459. package/script/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.d.ts.map +1 -0
  460. package/script/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.js +26 -0
  461. package/script/deps/jsr.io/@std/path/1.1.2/posix/join.d.ts +31 -0
  462. package/script/deps/jsr.io/@std/path/1.1.2/posix/join.d.ts.map +1 -0
  463. package/script/deps/jsr.io/@std/path/1.1.2/posix/join.js +48 -0
  464. package/script/deps/jsr.io/@std/path/1.1.2/posix/join_globs.d.ts +20 -0
  465. package/script/deps/jsr.io/@std/path/1.1.2/posix/join_globs.d.ts.map +1 -0
  466. package/script/deps/jsr.io/@std/path/1.1.2/posix/join_globs.js +43 -0
  467. package/script/deps/jsr.io/@std/path/1.1.2/posix/normalize.d.ts +37 -0
  468. package/script/deps/jsr.io/@std/path/1.1.2/posix/normalize.d.ts.map +1 -0
  469. package/script/deps/jsr.io/@std/path/1.1.2/posix/normalize.js +61 -0
  470. package/script/deps/jsr.io/@std/path/1.1.2/posix/normalize_glob.d.ts +20 -0
  471. package/script/deps/jsr.io/@std/path/1.1.2/posix/normalize_glob.d.ts.map +1 -0
  472. package/script/deps/jsr.io/@std/path/1.1.2/posix/normalize_glob.js +35 -0
  473. package/script/deps/jsr.io/@std/path/1.1.2/posix/parse.d.ts +25 -0
  474. package/script/deps/jsr.io/@std/path/1.1.2/posix/parse.d.ts.map +1 -0
  475. package/script/deps/jsr.io/@std/path/1.1.2/posix/parse.js +118 -0
  476. package/script/deps/jsr.io/@std/path/1.1.2/posix/relative.d.ts +20 -0
  477. package/script/deps/jsr.io/@std/path/1.1.2/posix/relative.d.ts.map +1 -0
  478. package/script/deps/jsr.io/@std/path/1.1.2/posix/relative.js +109 -0
  479. package/script/deps/jsr.io/@std/path/1.1.2/posix/resolve.d.ts +17 -0
  480. package/script/deps/jsr.io/@std/path/1.1.2/posix/resolve.d.ts.map +1 -0
  481. package/script/deps/jsr.io/@std/path/1.1.2/posix/resolve.js +95 -0
  482. package/script/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.d.ts +17 -0
  483. package/script/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.d.ts.map +1 -0
  484. package/script/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.js +30 -0
  485. package/script/deps/jsr.io/@std/path/1.1.2/posix/to_namespaced_path.d.ts +16 -0
  486. package/script/deps/jsr.io/@std/path/1.1.2/posix/to_namespaced_path.d.ts.map +1 -0
  487. package/script/deps/jsr.io/@std/path/1.1.2/posix/to_namespaced_path.js +23 -0
  488. package/script/deps/jsr.io/@std/path/1.1.2/relative.d.ts +24 -0
  489. package/script/deps/jsr.io/@std/path/1.1.2/relative.d.ts.map +1 -0
  490. package/script/deps/jsr.io/@std/path/1.1.2/relative.js +33 -0
  491. package/script/deps/jsr.io/@std/path/1.1.2/resolve.d.ts +22 -0
  492. package/script/deps/jsr.io/@std/path/1.1.2/resolve.d.ts.map +1 -0
  493. package/script/deps/jsr.io/@std/path/1.1.2/resolve.js +33 -0
  494. package/script/deps/jsr.io/@std/path/1.1.2/to_file_url.d.ts +22 -0
  495. package/script/deps/jsr.io/@std/path/1.1.2/to_file_url.d.ts.map +1 -0
  496. package/script/deps/jsr.io/@std/path/1.1.2/to_file_url.js +31 -0
  497. package/script/deps/jsr.io/@std/path/1.1.2/to_namespaced_path.d.ts +21 -0
  498. package/script/deps/jsr.io/@std/path/1.1.2/to_namespaced_path.d.ts.map +1 -0
  499. package/script/deps/jsr.io/@std/path/1.1.2/to_namespaced_path.js +32 -0
  500. package/script/deps/jsr.io/@std/path/1.1.2/types.d.ts +38 -0
  501. package/script/deps/jsr.io/@std/path/1.1.2/types.d.ts.map +1 -0
  502. package/script/deps/jsr.io/@std/path/1.1.2/types.js +4 -0
  503. package/script/deps/jsr.io/@std/path/1.1.2/windows/_util.d.ts +4 -0
  504. package/script/deps/jsr.io/@std/path/1.1.2/windows/_util.d.ts.map +1 -0
  505. package/script/deps/jsr.io/@std/path/1.1.2/windows/_util.js +20 -0
  506. package/script/deps/jsr.io/@std/path/1.1.2/windows/basename.d.ts +22 -0
  507. package/script/deps/jsr.io/@std/path/1.1.2/windows/basename.d.ts.map +1 -0
  508. package/script/deps/jsr.io/@std/path/1.1.2/windows/basename.js +50 -0
  509. package/script/deps/jsr.io/@std/path/1.1.2/windows/constants.d.ts +13 -0
  510. package/script/deps/jsr.io/@std/path/1.1.2/windows/constants.d.ts.map +1 -0
  511. package/script/deps/jsr.io/@std/path/1.1.2/windows/constants.js +17 -0
  512. package/script/deps/jsr.io/@std/path/1.1.2/windows/dirname.d.ts +17 -0
  513. package/script/deps/jsr.io/@std/path/1.1.2/windows/dirname.d.ts.map +1 -0
  514. package/script/deps/jsr.io/@std/path/1.1.2/windows/dirname.js +116 -0
  515. package/script/deps/jsr.io/@std/path/1.1.2/windows/extname.d.ts +17 -0
  516. package/script/deps/jsr.io/@std/path/1.1.2/windows/extname.d.ts.map +1 -0
  517. package/script/deps/jsr.io/@std/path/1.1.2/windows/extname.js +85 -0
  518. package/script/deps/jsr.io/@std/path/1.1.2/windows/format.d.ts +24 -0
  519. package/script/deps/jsr.io/@std/path/1.1.2/windows/format.d.ts.map +1 -0
  520. package/script/deps/jsr.io/@std/path/1.1.2/windows/format.js +31 -0
  521. package/script/deps/jsr.io/@std/path/1.1.2/windows/from_file_url.d.ts +18 -0
  522. package/script/deps/jsr.io/@std/path/1.1.2/windows/from_file_url.d.ts.map +1 -0
  523. package/script/deps/jsr.io/@std/path/1.1.2/windows/from_file_url.js +33 -0
  524. package/script/deps/jsr.io/@std/path/1.1.2/windows/glob_to_regexp.d.ts +71 -0
  525. package/script/deps/jsr.io/@std/path/1.1.2/windows/glob_to_regexp.d.ts.map +1 -0
  526. package/script/deps/jsr.io/@std/path/1.1.2/windows/glob_to_regexp.js +85 -0
  527. package/script/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.d.ts +17 -0
  528. package/script/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.d.ts.map +1 -0
  529. package/script/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.js +41 -0
  530. package/script/deps/jsr.io/@std/path/1.1.2/windows/join.d.ts +18 -0
  531. package/script/deps/jsr.io/@std/path/1.1.2/windows/join.d.ts.map +1 -0
  532. package/script/deps/jsr.io/@std/path/1.1.2/windows/join.js +80 -0
  533. package/script/deps/jsr.io/@std/path/1.1.2/windows/join_globs.d.ts +21 -0
  534. package/script/deps/jsr.io/@std/path/1.1.2/windows/join_globs.d.ts.map +1 -0
  535. package/script/deps/jsr.io/@std/path/1.1.2/windows/join_globs.js +44 -0
  536. package/script/deps/jsr.io/@std/path/1.1.2/windows/normalize.d.ts +19 -0
  537. package/script/deps/jsr.io/@std/path/1.1.2/windows/normalize.d.ts.map +1 -0
  538. package/script/deps/jsr.io/@std/path/1.1.2/windows/normalize.js +138 -0
  539. package/script/deps/jsr.io/@std/path/1.1.2/windows/normalize_glob.d.ts +20 -0
  540. package/script/deps/jsr.io/@std/path/1.1.2/windows/normalize_glob.d.ts.map +1 -0
  541. package/script/deps/jsr.io/@std/path/1.1.2/windows/normalize_glob.js +35 -0
  542. package/script/deps/jsr.io/@std/path/1.1.2/windows/parse.d.ts +25 -0
  543. package/script/deps/jsr.io/@std/path/1.1.2/windows/parse.d.ts.map +1 -0
  544. package/script/deps/jsr.io/@std/path/1.1.2/windows/parse.js +179 -0
  545. package/script/deps/jsr.io/@std/path/1.1.2/windows/relative.d.ts +23 -0
  546. package/script/deps/jsr.io/@std/path/1.1.2/windows/relative.d.ts.map +1 -0
  547. package/script/deps/jsr.io/@std/path/1.1.2/windows/relative.js +134 -0
  548. package/script/deps/jsr.io/@std/path/1.1.2/windows/resolve.d.ts +17 -0
  549. package/script/deps/jsr.io/@std/path/1.1.2/windows/resolve.d.ts.map +1 -0
  550. package/script/deps/jsr.io/@std/path/1.1.2/windows/resolve.js +190 -0
  551. package/script/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.d.ts +17 -0
  552. package/script/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.d.ts.map +1 -0
  553. package/script/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.js +37 -0
  554. package/script/deps/jsr.io/@std/path/1.1.2/windows/to_namespaced_path.d.ts +17 -0
  555. package/script/deps/jsr.io/@std/path/1.1.2/windows/to_namespaced_path.d.ts.map +1 -0
  556. package/script/deps/jsr.io/@std/path/1.1.2/windows/to_namespaced_path.js +52 -0
  557. package/script/main.d.ts +1 -1
  558. package/script/main.d.ts.map +1 -1
  559. package/script/main.js +1 -0
  560. package/script/mod.d.ts +1 -0
  561. package/script/mod.d.ts.map +1 -1
  562. package/script/mod.js +1 -0
  563. package/script/watch.js +6 -6
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ensureFile = ensureFile;
4
+ exports.ensureFileSync = ensureFileSync;
5
+ // Copyright 2018-2025 the Deno authors. MIT license.
6
+ const dirname_js_1 = require("../../path/1.1.2/dirname.js");
7
+ const ensure_dir_js_1 = require("./ensure_dir.js");
8
+ const _get_file_info_type_js_1 = require("./_get_file_info_type.js");
9
+ const _to_path_string_js_1 = require("./_to_path_string.js");
10
+ /**
11
+ * Asynchronously ensures that the file exists.
12
+ *
13
+ * If the file already exists, this function does nothing. If the parent
14
+ * directories for the file do not exist, they are created.
15
+ *
16
+ * Requires `--allow-read` and `--allow-write` permissions.
17
+ *
18
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
19
+ * for more information on Deno's permissions system.
20
+ *
21
+ * @param filePath The path of the file to ensure, as a string or URL.
22
+ *
23
+ * @returns A void promise that resolves once the file exists.
24
+ *
25
+ * @example Usage
26
+ * ```ts ignore
27
+ * import { ensureFile } from "@std/fs/ensure-file";
28
+ *
29
+ * await ensureFile("./folder/targetFile.dat");
30
+ * ```
31
+ */
32
+ async function ensureFile(filePath) {
33
+ try {
34
+ // if file exists
35
+ const stat = await Deno.lstat(filePath);
36
+ if (!stat.isFile) {
37
+ throw new Error(`Failed to ensure file exists: expected 'file', got '${(0, _get_file_info_type_js_1.getFileInfoType)(stat)}'`);
38
+ }
39
+ }
40
+ catch (err) {
41
+ // if file not exists
42
+ if (err instanceof Deno.errors.NotFound) {
43
+ // ensure dir exists
44
+ await (0, ensure_dir_js_1.ensureDir)((0, dirname_js_1.dirname)((0, _to_path_string_js_1.toPathString)(filePath)));
45
+ // create file
46
+ await Deno.writeFile(filePath, new Uint8Array());
47
+ return;
48
+ }
49
+ throw err;
50
+ }
51
+ }
52
+ /**
53
+ * Synchronously ensures that the file exists.
54
+ *
55
+ * If the file already exists, this function does nothing. If the parent
56
+ * directories for the file do not exist, they are created.
57
+ *
58
+ * Requires `--allow-read` and `--allow-write` permissions.
59
+ *
60
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
61
+ * for more information on Deno's permissions system.
62
+ *
63
+ * @param filePath The path of the file to ensure, as a string or URL.
64
+ *
65
+ * @returns A void value that returns once the file exists.
66
+ *
67
+ * @example Usage
68
+ * ```ts ignore
69
+ * import { ensureFileSync } from "@std/fs/ensure-file";
70
+ *
71
+ * ensureFileSync("./folder/targetFile.dat");
72
+ * ```
73
+ */
74
+ function ensureFileSync(filePath) {
75
+ try {
76
+ // if file exists
77
+ const stat = Deno.lstatSync(filePath);
78
+ if (!stat.isFile) {
79
+ throw new Error(`Failed to ensure file exists: expected 'file', got '${(0, _get_file_info_type_js_1.getFileInfoType)(stat)}'`);
80
+ }
81
+ }
82
+ catch (err) {
83
+ // if file not exists
84
+ if (err instanceof Deno.errors.NotFound) {
85
+ // ensure dir exists
86
+ (0, ensure_dir_js_1.ensureDirSync)((0, dirname_js_1.dirname)((0, _to_path_string_js_1.toPathString)(filePath)));
87
+ // create file
88
+ Deno.writeFileSync(filePath, new Uint8Array());
89
+ return;
90
+ }
91
+ throw err;
92
+ }
93
+ }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Asynchronously ensures that the hard link exists.
3
+ *
4
+ * If the parent directories for the hard link do not exist, they are created.
5
+ *
6
+ * Requires `--allow-read` and `--allow-write` permissions.
7
+ *
8
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
9
+ * for more information on Deno's permissions system.
10
+ *
11
+ * @param src The source file path as a string or URL. Directory hard links are
12
+ * not allowed.
13
+ * @param dest The destination link path as a string or URL.
14
+ *
15
+ * @returns A void promise that resolves once the hard link exists.
16
+ *
17
+ * @example Usage
18
+ * ```ts ignore
19
+ * import { ensureLink } from "@std/fs/ensure-link";
20
+ *
21
+ * await ensureLink("./folder/targetFile.dat", "./folder/targetFile.link.dat");
22
+ * ```
23
+ */
24
+ export declare function ensureLink(src: string | URL, dest: string | URL): Promise<void>;
25
+ /**
26
+ * Synchronously ensures that the hard link exists.
27
+ *
28
+ * If the parent directories for the hard link do not exist, they are created.
29
+ *
30
+ * Requires `--allow-read` and `--allow-write` permissions.
31
+ *
32
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
33
+ * for more information on Deno's permissions system.
34
+ *
35
+ * @param src The source file path as a string or URL. Directory hard links are
36
+ * not allowed.
37
+ * @param dest The destination link path as a string or URL.
38
+ *
39
+ * @returns A void value that returns once the hard link exists.
40
+ *
41
+ * @example Usage
42
+ * ```ts ignore
43
+ * import { ensureLinkSync } from "@std/fs/ensure-link";
44
+ *
45
+ * ensureLinkSync("./folder/targetFile.dat", "./folder/targetFile.link.dat");
46
+ * ```
47
+ */
48
+ export declare function ensureLinkSync(src: string | URL, dest: string | URL): void;
49
+ //# sourceMappingURL=ensure_link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensure_link.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.19/ensure_link.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,iBAKrE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,QAKnE"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ensureLink = ensureLink;
4
+ exports.ensureLinkSync = ensureLinkSync;
5
+ // Copyright 2018-2025 the Deno authors. MIT license.
6
+ const dirname_js_1 = require("../../path/1.1.2/dirname.js");
7
+ const ensure_dir_js_1 = require("./ensure_dir.js");
8
+ const _to_path_string_js_1 = require("./_to_path_string.js");
9
+ /**
10
+ * Asynchronously ensures that the hard link exists.
11
+ *
12
+ * If the parent directories for the hard link do not exist, they are created.
13
+ *
14
+ * Requires `--allow-read` and `--allow-write` permissions.
15
+ *
16
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
17
+ * for more information on Deno's permissions system.
18
+ *
19
+ * @param src The source file path as a string or URL. Directory hard links are
20
+ * not allowed.
21
+ * @param dest The destination link path as a string or URL.
22
+ *
23
+ * @returns A void promise that resolves once the hard link exists.
24
+ *
25
+ * @example Usage
26
+ * ```ts ignore
27
+ * import { ensureLink } from "@std/fs/ensure-link";
28
+ *
29
+ * await ensureLink("./folder/targetFile.dat", "./folder/targetFile.link.dat");
30
+ * ```
31
+ */
32
+ async function ensureLink(src, dest) {
33
+ dest = (0, _to_path_string_js_1.toPathString)(dest);
34
+ await (0, ensure_dir_js_1.ensureDir)((0, dirname_js_1.dirname)(dest));
35
+ await Deno.link((0, _to_path_string_js_1.toPathString)(src), dest);
36
+ }
37
+ /**
38
+ * Synchronously ensures that the hard link exists.
39
+ *
40
+ * If the parent directories for the hard link do not exist, they are created.
41
+ *
42
+ * Requires `--allow-read` and `--allow-write` permissions.
43
+ *
44
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
45
+ * for more information on Deno's permissions system.
46
+ *
47
+ * @param src The source file path as a string or URL. Directory hard links are
48
+ * not allowed.
49
+ * @param dest The destination link path as a string or URL.
50
+ *
51
+ * @returns A void value that returns once the hard link exists.
52
+ *
53
+ * @example Usage
54
+ * ```ts ignore
55
+ * import { ensureLinkSync } from "@std/fs/ensure-link";
56
+ *
57
+ * ensureLinkSync("./folder/targetFile.dat", "./folder/targetFile.link.dat");
58
+ * ```
59
+ */
60
+ function ensureLinkSync(src, dest) {
61
+ dest = (0, _to_path_string_js_1.toPathString)(dest);
62
+ (0, ensure_dir_js_1.ensureDirSync)((0, dirname_js_1.dirname)(dest));
63
+ Deno.linkSync((0, _to_path_string_js_1.toPathString)(src), dest);
64
+ }
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Asynchronously ensures that the link exists, and points to a valid file.
3
+ *
4
+ * If the parent directories for the link do not exist, they are created. If the
5
+ * link already exists, and it is not modified, this function does nothing. If
6
+ * the link already exists, and it does not point to the given target, an error
7
+ * is thrown.
8
+ *
9
+ * Requires `--allow-read` and `--allow-write` permissions.
10
+ *
11
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
12
+ * for more information on Deno's permissions system.
13
+ *
14
+ * @param target The source file path as a string or URL. If it is a relative path string, it have to be relative to the link path.
15
+ * @param linkName The destination link path as a string or URL.
16
+ *
17
+ * @returns A void promise that resolves once the link exists.
18
+ *
19
+ * @example Basic usage
20
+ * ```ts ignore
21
+ * import { ensureSymlink } from "@std/fs/ensure-symlink";
22
+ *
23
+ * // Ensures the link `./targetFile.link.dat` exists and points to `./targetFile.dat`
24
+ * await ensureSymlink("./targetFile.dat", "./targetFile.link.dat");
25
+ * ```
26
+ *
27
+ * @example Ensuring a link in a folder
28
+ * ```ts ignore
29
+ * import { ensureSymlink } from "@std/fs/ensure-symlink";
30
+ *
31
+ * // Ensures the link `./folder/targetFile.link.dat` exists and points to `./folder/targetFile.dat`
32
+ * await ensureSymlink("./targetFile.dat", "./folder/targetFile.link.dat");
33
+ * ```
34
+ */
35
+ export declare function ensureSymlink(target: string | URL, linkName: string | URL): Promise<void>;
36
+ /**
37
+ * Synchronously ensures that the link exists, and points to a valid file.
38
+ *
39
+ * If the parent directories for the link do not exist, they are created. If the
40
+ * link already exists, and it is not modified, this function does nothing. If
41
+ * the link already exists, and it does not point to the given target, an error
42
+ * is thrown.
43
+ *
44
+ * Requires `--allow-read` and `--allow-write` permissions.
45
+ *
46
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
47
+ * for more information on Deno's permissions system.
48
+ *
49
+ * @param target The source file path as a string or URL. If it is a relative path string, it have to be relative to the link path.
50
+ * @param linkName The destination link path as a string or URL.
51
+ * @returns A void value that returns once the link exists.
52
+ *
53
+ * @example Basic usage
54
+ * ```ts ignore
55
+ * import { ensureSymlinkSync } from "@std/fs/ensure-symlink";
56
+ *
57
+ * // Ensures the link `./targetFile.link.dat` exists and points to `./targetFile.dat`
58
+ * ensureSymlinkSync("./targetFile.dat", "./targetFile.link.dat");
59
+ * ```
60
+ *
61
+ * @example Ensuring a link in a folder
62
+ * ```ts ignore
63
+ * import { ensureSymlinkSync } from "@std/fs/ensure-symlink";
64
+ *
65
+ * // Ensures the link `./folder/targetFile.link.dat` exists and points to `./folder/targetFile.dat`
66
+ * ensureSymlinkSync("./targetFile.dat", "./folder/targetFile.link.dat");
67
+ * ```
68
+ */
69
+ export declare function ensureSymlinkSync(target: string | URL, linkName: string | URL): void;
70
+ //# sourceMappingURL=ensure_symlink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensure_symlink.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.19/ensure_symlink.ts"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,GAAG,GAAG,EACpB,QAAQ,EAAE,MAAM,GAAG,GAAG,iBAyCvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,GAAG,GAAG,EACpB,QAAQ,EAAE,MAAM,GAAG,GAAG,QAyCvB"}
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ensureSymlink = ensureSymlink;
4
+ exports.ensureSymlinkSync = ensureSymlinkSync;
5
+ // Copyright 2018-2025 the Deno authors. MIT license.
6
+ const dirname_js_1 = require("../../path/1.1.2/dirname.js");
7
+ const resolve_js_1 = require("../../path/1.1.2/resolve.js");
8
+ const ensure_dir_js_1 = require("./ensure_dir.js");
9
+ const _get_file_info_type_js_1 = require("./_get_file_info_type.js");
10
+ const _to_path_string_js_1 = require("./_to_path_string.js");
11
+ const os_js_1 = require("../../internal/1.0.10/os.js");
12
+ function resolveSymlinkTarget(target, linkName) {
13
+ if (typeof target !== "string")
14
+ return target; // URL is always absolute path
15
+ if (typeof linkName === "string") {
16
+ return (0, resolve_js_1.resolve)((0, dirname_js_1.dirname)(linkName), target);
17
+ }
18
+ else {
19
+ return new URL(target, linkName);
20
+ }
21
+ }
22
+ function getSymlinkOption(type) {
23
+ return os_js_1.isWindows ? { type: type === "dir" ? "dir" : "file" } : undefined;
24
+ }
25
+ /**
26
+ * Asynchronously ensures that the link exists, and points to a valid file.
27
+ *
28
+ * If the parent directories for the link do not exist, they are created. If the
29
+ * link already exists, and it is not modified, this function does nothing. If
30
+ * the link already exists, and it does not point to the given target, an error
31
+ * is thrown.
32
+ *
33
+ * Requires `--allow-read` and `--allow-write` permissions.
34
+ *
35
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
36
+ * for more information on Deno's permissions system.
37
+ *
38
+ * @param target The source file path as a string or URL. If it is a relative path string, it have to be relative to the link path.
39
+ * @param linkName The destination link path as a string or URL.
40
+ *
41
+ * @returns A void promise that resolves once the link exists.
42
+ *
43
+ * @example Basic usage
44
+ * ```ts ignore
45
+ * import { ensureSymlink } from "@std/fs/ensure-symlink";
46
+ *
47
+ * // Ensures the link `./targetFile.link.dat` exists and points to `./targetFile.dat`
48
+ * await ensureSymlink("./targetFile.dat", "./targetFile.link.dat");
49
+ * ```
50
+ *
51
+ * @example Ensuring a link in a folder
52
+ * ```ts ignore
53
+ * import { ensureSymlink } from "@std/fs/ensure-symlink";
54
+ *
55
+ * // Ensures the link `./folder/targetFile.link.dat` exists and points to `./folder/targetFile.dat`
56
+ * await ensureSymlink("./targetFile.dat", "./folder/targetFile.link.dat");
57
+ * ```
58
+ */
59
+ async function ensureSymlink(target, linkName) {
60
+ const targetRealPath = resolveSymlinkTarget(target, linkName);
61
+ let srcStatInfo;
62
+ try {
63
+ srcStatInfo = await Deno.lstat(targetRealPath);
64
+ }
65
+ catch (error) {
66
+ if (error instanceof Deno.errors.NotFound) {
67
+ throw new Deno.errors.NotFound(`Cannot ensure symlink as the target path does not exist: ${targetRealPath}`);
68
+ }
69
+ throw error;
70
+ }
71
+ const srcFilePathType = (0, _get_file_info_type_js_1.getFileInfoType)(srcStatInfo);
72
+ await (0, ensure_dir_js_1.ensureDir)((0, dirname_js_1.dirname)((0, _to_path_string_js_1.toPathString)(linkName)));
73
+ const options = getSymlinkOption(srcFilePathType);
74
+ try {
75
+ await Deno.symlink(target, linkName, options);
76
+ }
77
+ catch (error) {
78
+ if (!(error instanceof Deno.errors.AlreadyExists)) {
79
+ throw error;
80
+ }
81
+ const linkStatInfo = await Deno.lstat(linkName);
82
+ if (!linkStatInfo.isSymlink) {
83
+ const type = (0, _get_file_info_type_js_1.getFileInfoType)(linkStatInfo);
84
+ throw new Deno.errors.AlreadyExists(`A '${type}' already exists at the path: ${linkName}`);
85
+ }
86
+ const linkPath = await Deno.readLink(linkName);
87
+ const linkRealPath = (0, resolve_js_1.resolve)(linkPath);
88
+ if (linkRealPath !== targetRealPath) {
89
+ throw new Deno.errors.AlreadyExists(`A symlink targeting to an undesired path already exists: ${linkName} -> ${linkRealPath}`);
90
+ }
91
+ }
92
+ }
93
+ /**
94
+ * Synchronously ensures that the link exists, and points to a valid file.
95
+ *
96
+ * If the parent directories for the link do not exist, they are created. If the
97
+ * link already exists, and it is not modified, this function does nothing. If
98
+ * the link already exists, and it does not point to the given target, an error
99
+ * is thrown.
100
+ *
101
+ * Requires `--allow-read` and `--allow-write` permissions.
102
+ *
103
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
104
+ * for more information on Deno's permissions system.
105
+ *
106
+ * @param target The source file path as a string or URL. If it is a relative path string, it have to be relative to the link path.
107
+ * @param linkName The destination link path as a string or URL.
108
+ * @returns A void value that returns once the link exists.
109
+ *
110
+ * @example Basic usage
111
+ * ```ts ignore
112
+ * import { ensureSymlinkSync } from "@std/fs/ensure-symlink";
113
+ *
114
+ * // Ensures the link `./targetFile.link.dat` exists and points to `./targetFile.dat`
115
+ * ensureSymlinkSync("./targetFile.dat", "./targetFile.link.dat");
116
+ * ```
117
+ *
118
+ * @example Ensuring a link in a folder
119
+ * ```ts ignore
120
+ * import { ensureSymlinkSync } from "@std/fs/ensure-symlink";
121
+ *
122
+ * // Ensures the link `./folder/targetFile.link.dat` exists and points to `./folder/targetFile.dat`
123
+ * ensureSymlinkSync("./targetFile.dat", "./folder/targetFile.link.dat");
124
+ * ```
125
+ */
126
+ function ensureSymlinkSync(target, linkName) {
127
+ const targetRealPath = resolveSymlinkTarget(target, linkName);
128
+ let srcStatInfo;
129
+ try {
130
+ srcStatInfo = Deno.lstatSync(targetRealPath);
131
+ }
132
+ catch (error) {
133
+ if (error instanceof Deno.errors.NotFound) {
134
+ throw new Deno.errors.NotFound(`Cannot ensure symlink as the target path does not exist: ${targetRealPath}`);
135
+ }
136
+ throw error;
137
+ }
138
+ const srcFilePathType = (0, _get_file_info_type_js_1.getFileInfoType)(srcStatInfo);
139
+ (0, ensure_dir_js_1.ensureDirSync)((0, dirname_js_1.dirname)((0, _to_path_string_js_1.toPathString)(linkName)));
140
+ const options = getSymlinkOption(srcFilePathType);
141
+ try {
142
+ Deno.symlinkSync(target, linkName, options);
143
+ }
144
+ catch (error) {
145
+ if (!(error instanceof Deno.errors.AlreadyExists)) {
146
+ throw error;
147
+ }
148
+ const linkStatInfo = Deno.lstatSync(linkName);
149
+ if (!linkStatInfo.isSymlink) {
150
+ const type = (0, _get_file_info_type_js_1.getFileInfoType)(linkStatInfo);
151
+ throw new Deno.errors.AlreadyExists(`A '${type}' already exists at the path: ${linkName}`);
152
+ }
153
+ const linkPath = Deno.readLinkSync(linkName);
154
+ const linkRealPath = (0, resolve_js_1.resolve)(linkPath);
155
+ if (linkRealPath !== targetRealPath) {
156
+ throw new Deno.errors.AlreadyExists(`A symlink targeting to an undesired path already exists: ${linkName} -> ${linkRealPath}`);
157
+ }
158
+ }
159
+ }
@@ -0,0 +1,52 @@
1
+ export declare const LF: "\n";
2
+ /** End-of-line character for Windows platforms. */
3
+ export declare const CRLF: "\r\n";
4
+ /**
5
+ * End-of-line character evaluated for the current platform.
6
+ *
7
+ * @example Usage
8
+ * ```ts ignore
9
+ * import { EOL } from "@std/fs/eol";
10
+ *
11
+ * EOL; // "\n" on POSIX platforms and "\r\n" on Windows
12
+ * ```
13
+ */
14
+ export declare const EOL: "\n" | "\r\n";
15
+ /**
16
+ * Returns the detected EOL character(s) detected in the input string. If no EOL
17
+ * character is detected, `null` is returned.
18
+ *
19
+ * @param content The input string to detect EOL characters.
20
+ *
21
+ * @returns The detected EOL character(s) or `null` if no EOL character is detected.
22
+ *
23
+ * @example Usage
24
+ * ```ts ignore
25
+ * import { detect } from "@std/fs/eol";
26
+ *
27
+ * detect("deno\r\nis not\r\nnode"); // "\r\n"
28
+ * detect("deno\nis not\r\nnode"); // "\r\n"
29
+ * detect("deno\nis not\nnode"); // "\n"
30
+ * detect("deno is not node"); // null
31
+ * ```
32
+ */
33
+ export declare function detect(content: string): typeof EOL | null;
34
+ /**
35
+ * Normalize the input string to the targeted EOL.
36
+ *
37
+ * @param content The input string to normalize.
38
+ * @param eol The EOL character(s) to normalize the input string to.
39
+ *
40
+ * @returns The input string normalized to the targeted EOL.
41
+ *
42
+ * @example Usage
43
+ * ```ts ignore
44
+ * import { LF, format } from "@std/fs/eol";
45
+ *
46
+ * const CRLFinput = "deno\r\nis not\r\nnode";
47
+ *
48
+ * format(CRLFinput, LF); // "deno\nis not\nnode"
49
+ * ```
50
+ */
51
+ export declare function format(content: string, eol: typeof EOL): string;
52
+ //# sourceMappingURL=eol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eol.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.19/eol.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,EAAE,EAAG,IAAa,CAAC;AAEhC,mDAAmD;AACnD,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AAEpC;;;;;;;;;GASG;AACH,eAAO,MAAM,GAAG,EAAE,IAAI,GAAG,MAEgD,CAAC;AAI1E;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,GAAG,IAAI,CAQzD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,GAAG,MAAM,CAE/D"}
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ // Copyright 2018-2025 the Deno authors. MIT license.
3
+ // This module is browser compatible.
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || (function () {
21
+ var ownKeys = function(o) {
22
+ ownKeys = Object.getOwnPropertyNames || function (o) {
23
+ var ar = [];
24
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
25
+ return ar;
26
+ };
27
+ return ownKeys(o);
28
+ };
29
+ return function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ })();
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.EOL = exports.CRLF = exports.LF = void 0;
39
+ exports.detect = detect;
40
+ exports.format = format;
41
+ /** End-of-line character for POSIX platforms such as macOS and Linux. */
42
+ const dntShim = __importStar(require("../../../../../_dnt.shims.js"));
43
+ exports.LF = "\n";
44
+ /** End-of-line character for Windows platforms. */
45
+ exports.CRLF = "\r\n";
46
+ /**
47
+ * End-of-line character evaluated for the current platform.
48
+ *
49
+ * @example Usage
50
+ * ```ts ignore
51
+ * import { EOL } from "@std/fs/eol";
52
+ *
53
+ * EOL; // "\n" on POSIX platforms and "\r\n" on Windows
54
+ * ```
55
+ */
56
+ exports.EOL =
57
+ // deno-lint-ignore no-explicit-any
58
+ dntShim.dntGlobalThis.Deno?.build.os === "windows" ? exports.CRLF : exports.LF;
59
+ const regDetect = /(?:\r?\n)/g;
60
+ /**
61
+ * Returns the detected EOL character(s) detected in the input string. If no EOL
62
+ * character is detected, `null` is returned.
63
+ *
64
+ * @param content The input string to detect EOL characters.
65
+ *
66
+ * @returns The detected EOL character(s) or `null` if no EOL character is detected.
67
+ *
68
+ * @example Usage
69
+ * ```ts ignore
70
+ * import { detect } from "@std/fs/eol";
71
+ *
72
+ * detect("deno\r\nis not\r\nnode"); // "\r\n"
73
+ * detect("deno\nis not\r\nnode"); // "\r\n"
74
+ * detect("deno\nis not\nnode"); // "\n"
75
+ * detect("deno is not node"); // null
76
+ * ```
77
+ */
78
+ function detect(content) {
79
+ const d = content.match(regDetect);
80
+ if (!d || d.length === 0) {
81
+ return null;
82
+ }
83
+ const hasCRLF = d.some((x) => x === exports.CRLF);
84
+ return hasCRLF ? exports.CRLF : exports.LF;
85
+ }
86
+ /**
87
+ * Normalize the input string to the targeted EOL.
88
+ *
89
+ * @param content The input string to normalize.
90
+ * @param eol The EOL character(s) to normalize the input string to.
91
+ *
92
+ * @returns The input string normalized to the targeted EOL.
93
+ *
94
+ * @example Usage
95
+ * ```ts ignore
96
+ * import { LF, format } from "@std/fs/eol";
97
+ *
98
+ * const CRLFinput = "deno\r\nis not\r\nnode";
99
+ *
100
+ * format(CRLFinput, LF); // "deno\nis not\nnode"
101
+ * ```
102
+ */
103
+ function format(content, eol) {
104
+ return content.replace(regDetect, eol);
105
+ }