@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,312 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ import { basename } from "../../path/1.1.2/basename.js";
3
+ import { join } from "../../path/1.1.2/join.js";
4
+ import { resolve } from "../../path/1.1.2/resolve.js";
5
+ import { ensureDir, ensureDirSync } from "./ensure_dir.js";
6
+ import { getFileInfoType } from "./_get_file_info_type.js";
7
+ import { toPathString } from "./_to_path_string.js";
8
+ import { isSubdir } from "./_is_subdir.js";
9
+ import { isWindows } from "../../internal/1.0.10/os.js";
10
+ function assertIsDate(date, name) {
11
+ if (date === null) {
12
+ throw new Error(`${name} is unavailable`);
13
+ }
14
+ }
15
+ async function ensureValidCopy(src, dest, options) {
16
+ let destStat;
17
+ try {
18
+ destStat = await Deno.lstat(dest);
19
+ }
20
+ catch (err) {
21
+ if (err instanceof Deno.errors.NotFound) {
22
+ return;
23
+ }
24
+ throw err;
25
+ }
26
+ if (options.isFolder && !destStat.isDirectory) {
27
+ throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'`);
28
+ }
29
+ if (!options.overwrite) {
30
+ throw new Deno.errors.AlreadyExists(`'${dest}' already exists.`);
31
+ }
32
+ return destStat;
33
+ }
34
+ function ensureValidCopySync(src, dest, options) {
35
+ let destStat;
36
+ try {
37
+ destStat = Deno.lstatSync(dest);
38
+ }
39
+ catch (err) {
40
+ if (err instanceof Deno.errors.NotFound) {
41
+ return;
42
+ }
43
+ throw err;
44
+ }
45
+ if (options.isFolder && !destStat.isDirectory) {
46
+ throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'`);
47
+ }
48
+ if (!options.overwrite) {
49
+ throw new Deno.errors.AlreadyExists(`'${dest}' already exists`);
50
+ }
51
+ return destStat;
52
+ }
53
+ /* copy file to dest */
54
+ async function copyFile(src, dest, options) {
55
+ await ensureValidCopy(src, dest, options);
56
+ await Deno.copyFile(src, dest);
57
+ if (options.preserveTimestamps) {
58
+ const statInfo = await Deno.stat(src);
59
+ assertIsDate(statInfo.atime, "statInfo.atime");
60
+ assertIsDate(statInfo.mtime, "statInfo.mtime");
61
+ await Deno.utime(dest, statInfo.atime, statInfo.mtime);
62
+ }
63
+ }
64
+ /* copy file to dest synchronously */
65
+ function copyFileSync(src, dest, options) {
66
+ ensureValidCopySync(src, dest, options);
67
+ Deno.copyFileSync(src, dest);
68
+ if (options.preserveTimestamps) {
69
+ const statInfo = Deno.statSync(src);
70
+ assertIsDate(statInfo.atime, "statInfo.atime");
71
+ assertIsDate(statInfo.mtime, "statInfo.mtime");
72
+ Deno.utimeSync(dest, statInfo.atime, statInfo.mtime);
73
+ }
74
+ }
75
+ /* copy symlink to dest */
76
+ async function copySymLink(src, dest, options) {
77
+ await ensureValidCopy(src, dest, options);
78
+ const originSrcFilePath = await Deno.readLink(src);
79
+ const type = getFileInfoType(await Deno.lstat(src));
80
+ if (isWindows) {
81
+ await Deno.symlink(originSrcFilePath, dest, {
82
+ type: type === "dir" ? "dir" : "file",
83
+ });
84
+ }
85
+ else {
86
+ await Deno.symlink(originSrcFilePath, dest);
87
+ }
88
+ if (options.preserveTimestamps) {
89
+ const statInfo = await Deno.lstat(src);
90
+ assertIsDate(statInfo.atime, "statInfo.atime");
91
+ assertIsDate(statInfo.mtime, "statInfo.mtime");
92
+ await Deno.utime(dest, statInfo.atime, statInfo.mtime);
93
+ }
94
+ }
95
+ /* copy symlink to dest synchronously */
96
+ function copySymlinkSync(src, dest, options) {
97
+ ensureValidCopySync(src, dest, options);
98
+ const originSrcFilePath = Deno.readLinkSync(src);
99
+ const type = getFileInfoType(Deno.lstatSync(src));
100
+ if (isWindows) {
101
+ Deno.symlinkSync(originSrcFilePath, dest, {
102
+ type: type === "dir" ? "dir" : "file",
103
+ });
104
+ }
105
+ else {
106
+ Deno.symlinkSync(originSrcFilePath, dest);
107
+ }
108
+ if (options.preserveTimestamps) {
109
+ const statInfo = Deno.lstatSync(src);
110
+ assertIsDate(statInfo.atime, "statInfo.atime");
111
+ assertIsDate(statInfo.mtime, "statInfo.mtime");
112
+ Deno.utimeSync(dest, statInfo.atime, statInfo.mtime);
113
+ }
114
+ }
115
+ /* copy folder from src to dest. */
116
+ async function copyDir(src, dest, options) {
117
+ const destStat = await ensureValidCopy(src, dest, {
118
+ ...options,
119
+ isFolder: true,
120
+ });
121
+ if (!destStat) {
122
+ await ensureDir(dest);
123
+ }
124
+ if (options.preserveTimestamps) {
125
+ const srcStatInfo = await Deno.stat(src);
126
+ assertIsDate(srcStatInfo.atime, "statInfo.atime");
127
+ assertIsDate(srcStatInfo.mtime, "statInfo.mtime");
128
+ await Deno.utime(dest, srcStatInfo.atime, srcStatInfo.mtime);
129
+ }
130
+ src = toPathString(src);
131
+ dest = toPathString(dest);
132
+ const promises = [];
133
+ for await (const entry of Deno.readDir(src)) {
134
+ const srcPath = join(src, entry.name);
135
+ const destPath = join(dest, basename(srcPath));
136
+ if (entry.isSymlink) {
137
+ promises.push(copySymLink(srcPath, destPath, options));
138
+ }
139
+ else if (entry.isDirectory) {
140
+ promises.push(copyDir(srcPath, destPath, options));
141
+ }
142
+ else if (entry.isFile) {
143
+ promises.push(copyFile(srcPath, destPath, options));
144
+ }
145
+ }
146
+ await Promise.all(promises);
147
+ }
148
+ /* copy folder from src to dest synchronously */
149
+ function copyDirSync(src, dest, options) {
150
+ const destStat = ensureValidCopySync(src, dest, {
151
+ ...options,
152
+ isFolder: true,
153
+ });
154
+ if (!destStat) {
155
+ ensureDirSync(dest);
156
+ }
157
+ if (options.preserveTimestamps) {
158
+ const srcStatInfo = Deno.statSync(src);
159
+ assertIsDate(srcStatInfo.atime, "statInfo.atime");
160
+ assertIsDate(srcStatInfo.mtime, "statInfo.mtime");
161
+ Deno.utimeSync(dest, srcStatInfo.atime, srcStatInfo.mtime);
162
+ }
163
+ src = toPathString(src);
164
+ dest = toPathString(dest);
165
+ for (const entry of Deno.readDirSync(src)) {
166
+ const srcPath = join(src, entry.name);
167
+ const destPath = join(dest, basename(srcPath));
168
+ if (entry.isSymlink) {
169
+ copySymlinkSync(srcPath, destPath, options);
170
+ }
171
+ else if (entry.isDirectory) {
172
+ copyDirSync(srcPath, destPath, options);
173
+ }
174
+ else if (entry.isFile) {
175
+ copyFileSync(srcPath, destPath, options);
176
+ }
177
+ }
178
+ }
179
+ /**
180
+ * Asynchronously copy a file or directory (along with its contents), like
181
+ * {@linkcode https://www.ibm.com/docs/en/aix/7.3?topic=c-cp-command#cp__cp_flagr | cp -r}.
182
+ *
183
+ * Both `src` and `dest` must both be a file or directory.
184
+ *
185
+ * Requires `--allow-read` and `--allow-write` permissions.
186
+ *
187
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
188
+ * for more information on Deno's permissions system.
189
+ *
190
+ * @param src The source file/directory path as a string or URL.
191
+ * @param dest The destination file/directory path as a string or URL.
192
+ * @param options Options for copying.
193
+ *
194
+ * @returns A promise that resolves once the copy operation completes.
195
+ *
196
+ * @example Basic usage
197
+ * ```ts ignore
198
+ * import { copy } from "@std/fs/copy";
199
+ *
200
+ * await copy("./foo", "./bar");
201
+ * ```
202
+ *
203
+ * This will copy the file or directory at `./foo` to `./bar` without
204
+ * overwriting.
205
+ *
206
+ * @example Overwriting files/directories
207
+ * ```ts ignore
208
+ * import { copy } from "@std/fs/copy";
209
+ *
210
+ * await copy("./foo", "./bar", { overwrite: true });
211
+ * ```
212
+ *
213
+ * This will copy the file or directory at `./foo` to `./bar` and overwrite
214
+ * any existing files or directories.
215
+ *
216
+ * @example Preserving timestamps
217
+ * ```ts ignore
218
+ * import { copy } from "@std/fs/copy";
219
+ *
220
+ * await copy("./foo", "./bar", { preserveTimestamps: true });
221
+ * ```
222
+ *
223
+ * This will copy the file or directory at `./foo` to `./bar` and set the
224
+ * last modification and access times to the ones of the original source files.
225
+ */
226
+ export async function copy(src, dest, options = {}) {
227
+ src = resolve(toPathString(src));
228
+ dest = resolve(toPathString(dest));
229
+ if (src === dest) {
230
+ throw new Error("Source and destination cannot be the same");
231
+ }
232
+ const srcStat = await Deno.lstat(src);
233
+ if (srcStat.isDirectory && isSubdir(src, dest)) {
234
+ throw new Error(`Cannot copy '${src}' to a subdirectory of itself: '${dest}'`);
235
+ }
236
+ if (srcStat.isSymlink) {
237
+ await copySymLink(src, dest, options);
238
+ }
239
+ else if (srcStat.isDirectory) {
240
+ await copyDir(src, dest, options);
241
+ }
242
+ else if (srcStat.isFile) {
243
+ await copyFile(src, dest, options);
244
+ }
245
+ }
246
+ /**
247
+ * Synchronously copy a file or directory (along with its contents), like
248
+ * {@linkcode https://www.ibm.com/docs/en/aix/7.3?topic=c-cp-command#cp__cp_flagr | cp -r}.
249
+ *
250
+ * Both `src` and `dest` must both be a file or directory.
251
+ *
252
+ * Requires `--allow-read` and `--allow-write` permissions.
253
+ *
254
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
255
+ * for more information on Deno's permissions system.
256
+ *
257
+ * @param src The source file/directory path as a string or URL.
258
+ * @param dest The destination file/directory path as a string or URL.
259
+ * @param options Options for copying.
260
+ *
261
+ * @returns A void value that returns once the copy operation completes.
262
+ *
263
+ * @example Basic usage
264
+ * ```ts ignore
265
+ * import { copySync } from "@std/fs/copy";
266
+ *
267
+ * copySync("./foo", "./bar");
268
+ * ```
269
+ *
270
+ * This will copy the file or directory at `./foo` to `./bar` without
271
+ * overwriting.
272
+ *
273
+ * @example Overwriting files/directories
274
+ * ```ts ignore
275
+ * import { copySync } from "@std/fs/copy";
276
+ *
277
+ * copySync("./foo", "./bar", { overwrite: true });
278
+ * ```
279
+ *
280
+ * This will copy the file or directory at `./foo` to `./bar` and overwrite
281
+ * any existing files or directories.
282
+ *
283
+ * @example Preserving timestamps
284
+ * ```ts ignore
285
+ * import { copySync } from "@std/fs/copy";
286
+ *
287
+ * copySync("./foo", "./bar", { preserveTimestamps: true });
288
+ * ```
289
+ *
290
+ * This will copy the file or directory at `./foo` to `./bar` and set the
291
+ * last modification and access times to the ones of the original source files.
292
+ */
293
+ export function copySync(src, dest, options = {}) {
294
+ src = resolve(toPathString(src));
295
+ dest = resolve(toPathString(dest));
296
+ if (src === dest) {
297
+ throw new Error("Source and destination cannot be the same");
298
+ }
299
+ const srcStat = Deno.lstatSync(src);
300
+ if (srcStat.isDirectory && isSubdir(src, dest)) {
301
+ throw new Error(`Cannot copy '${src}' to a subdirectory of itself: '${dest}'`);
302
+ }
303
+ if (srcStat.isSymlink) {
304
+ copySymlinkSync(src, dest, options);
305
+ }
306
+ else if (srcStat.isDirectory) {
307
+ copyDirSync(src, dest, options);
308
+ }
309
+ else if (srcStat.isFile) {
310
+ copyFileSync(src, dest, options);
311
+ }
312
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Asynchronously ensures that a directory is empty.
3
+ *
4
+ * If the directory does not exist, it is created. The directory itself is not
5
+ * deleted.
6
+ *
7
+ * Requires `--allow-read` and `--allow-write` permissions.
8
+ *
9
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
10
+ * for more information on Deno's permissions system.
11
+ *
12
+ * @param dir The path of the directory to empty, as a string or URL.
13
+ *
14
+ * @returns A void promise that resolves once the directory is empty.
15
+ *
16
+ * @example Usage
17
+ * ```ts ignore
18
+ * import { emptyDir } from "@std/fs/empty-dir";
19
+ *
20
+ * await emptyDir("./foo");
21
+ * ```
22
+ */
23
+ export declare function emptyDir(dir: string | URL): Promise<void>;
24
+ /**
25
+ * Synchronously ensures that a directory is empty deletes the directory
26
+ * contents it is not empty.
27
+ *
28
+ * If the directory does not exist, it is created. The directory itself is not
29
+ * deleted.
30
+ *
31
+ * Requires `--allow-read` and `--allow-write` permissions.
32
+ *
33
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
34
+ * for more information on Deno's permissions system.
35
+ *
36
+ * @param dir The path of the directory to empty, as a string or URL.
37
+ *
38
+ * @returns A void value that returns once the directory is empty.
39
+ *
40
+ * @example Usage
41
+ * ```ts ignore
42
+ * import { emptyDirSync } from "@std/fs/empty-dir";
43
+ *
44
+ * emptyDirSync("./foo");
45
+ * ```
46
+ */
47
+ export declare function emptyDirSync(dir: string | URL): void;
48
+ //# sourceMappingURL=empty_dir.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty_dir.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.19/empty_dir.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,iBAkB/C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,QAmB7C"}
@@ -0,0 +1,86 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ import { join } from "../../path/1.1.2/join.js";
3
+ import { toPathString } from "./_to_path_string.js";
4
+ /**
5
+ * Asynchronously ensures that a directory is empty.
6
+ *
7
+ * If the directory does not exist, it is created. The directory itself is not
8
+ * deleted.
9
+ *
10
+ * Requires `--allow-read` and `--allow-write` permissions.
11
+ *
12
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
13
+ * for more information on Deno's permissions system.
14
+ *
15
+ * @param dir The path of the directory to empty, as a string or URL.
16
+ *
17
+ * @returns A void promise that resolves once the directory is empty.
18
+ *
19
+ * @example Usage
20
+ * ```ts ignore
21
+ * import { emptyDir } from "@std/fs/empty-dir";
22
+ *
23
+ * await emptyDir("./foo");
24
+ * ```
25
+ */
26
+ export async function emptyDir(dir) {
27
+ try {
28
+ const items = await Array.fromAsync(Deno.readDir(dir));
29
+ await Promise.all(items.map((item) => {
30
+ if (item && item.name) {
31
+ const filepath = join(toPathString(dir), item.name);
32
+ return Deno.remove(filepath, { recursive: true });
33
+ }
34
+ }));
35
+ }
36
+ catch (err) {
37
+ if (!(err instanceof Deno.errors.NotFound)) {
38
+ throw err;
39
+ }
40
+ // if not exist. then create it
41
+ await Deno.mkdir(dir, { recursive: true });
42
+ }
43
+ }
44
+ /**
45
+ * Synchronously ensures that a directory is empty deletes the directory
46
+ * contents it is not empty.
47
+ *
48
+ * If the directory does not exist, it is created. The directory itself is not
49
+ * deleted.
50
+ *
51
+ * Requires `--allow-read` and `--allow-write` permissions.
52
+ *
53
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
54
+ * for more information on Deno's permissions system.
55
+ *
56
+ * @param dir The path of the directory to empty, as a string or URL.
57
+ *
58
+ * @returns A void value that returns once the directory is empty.
59
+ *
60
+ * @example Usage
61
+ * ```ts ignore
62
+ * import { emptyDirSync } from "@std/fs/empty-dir";
63
+ *
64
+ * emptyDirSync("./foo");
65
+ * ```
66
+ */
67
+ export function emptyDirSync(dir) {
68
+ try {
69
+ const items = [...Deno.readDirSync(dir)];
70
+ // If the directory exists, remove all entries inside it.
71
+ while (items.length) {
72
+ const item = items.shift();
73
+ if (item && item.name) {
74
+ const filepath = join(toPathString(dir), item.name);
75
+ Deno.removeSync(filepath, { recursive: true });
76
+ }
77
+ }
78
+ }
79
+ catch (err) {
80
+ if (!(err instanceof Deno.errors.NotFound)) {
81
+ throw err;
82
+ }
83
+ // if not exist. then create it
84
+ Deno.mkdirSync(dir, { recursive: true });
85
+ }
86
+ }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Asynchronously ensures that the directory exists, like
3
+ * {@linkcode https://www.ibm.com/docs/en/aix/7.3?topic=m-mkdir-command#mkdir__row-d3e133766 | mkdir -p}.
4
+ *
5
+ * If the directory already exists, this function does nothing. If the directory
6
+ * does not exist, it is created.
7
+ *
8
+ * Requires `--allow-read` and `--allow-write` permissions.
9
+ *
10
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
11
+ * for more information on Deno's permissions system.
12
+ *
13
+ * @param dir The path of the directory to ensure, as a string or URL.
14
+ *
15
+ * @returns A promise that resolves once the directory exists.
16
+ *
17
+ * @example Usage
18
+ * ```ts ignore
19
+ * import { ensureDir } from "@std/fs/ensure-dir";
20
+ *
21
+ * await ensureDir("./bar");
22
+ * ```
23
+ */
24
+ export declare function ensureDir(dir: string | URL): Promise<void>;
25
+ /**
26
+ * Synchronously ensures that the directory exists, like
27
+ * {@linkcode https://www.ibm.com/docs/en/aix/7.3?topic=m-mkdir-command#mkdir__row-d3e133766 | mkdir -p}.
28
+ *
29
+ * If the directory already exists, this function does nothing. If the directory
30
+ * does not exist, it is created.
31
+ *
32
+ * Requires `--allow-read` and `--allow-write` permissions.
33
+ *
34
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
35
+ * for more information on Deno's permissions system.
36
+ *
37
+ * @param dir The path of the directory to ensure, as a string or URL.
38
+ *
39
+ * @returns A void value that returns once the directory exists.
40
+ *
41
+ * @example Usage
42
+ * ```ts ignore
43
+ * import { ensureDirSync } from "@std/fs/ensure-dir";
44
+ *
45
+ * ensureDirSync("./bar");
46
+ * ```
47
+ */
48
+ export declare function ensureDirSync(dir: string | URL): void;
49
+ //# sourceMappingURL=ensure_dir.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensure_dir.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.19/ensure_dir.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,iBAuBhD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,QAuB9C"}
@@ -0,0 +1,101 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ import { getFileInfoType } from "./_get_file_info_type.js";
3
+ /**
4
+ * Asynchronously ensures that the directory exists, like
5
+ * {@linkcode https://www.ibm.com/docs/en/aix/7.3?topic=m-mkdir-command#mkdir__row-d3e133766 | mkdir -p}.
6
+ *
7
+ * If the directory already exists, this function does nothing. If the directory
8
+ * does not exist, it is created.
9
+ *
10
+ * Requires `--allow-read` and `--allow-write` permissions.
11
+ *
12
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
13
+ * for more information on Deno's permissions system.
14
+ *
15
+ * @param dir The path of the directory to ensure, as a string or URL.
16
+ *
17
+ * @returns A promise that resolves once the directory exists.
18
+ *
19
+ * @example Usage
20
+ * ```ts ignore
21
+ * import { ensureDir } from "@std/fs/ensure-dir";
22
+ *
23
+ * await ensureDir("./bar");
24
+ * ```
25
+ */
26
+ export async function ensureDir(dir) {
27
+ try {
28
+ const fileInfo = await Deno.stat(dir);
29
+ throwIfNotDirectory(fileInfo);
30
+ return;
31
+ }
32
+ catch (err) {
33
+ if (!(err instanceof Deno.errors.NotFound)) {
34
+ throw err;
35
+ }
36
+ }
37
+ // The dir doesn't exist. Create it.
38
+ // This can be racy. So we catch AlreadyExists and check stat again.
39
+ try {
40
+ await Deno.mkdir(dir, { recursive: true });
41
+ }
42
+ catch (err) {
43
+ if (!(err instanceof Deno.errors.AlreadyExists)) {
44
+ throw err;
45
+ }
46
+ const fileInfo = await Deno.stat(dir);
47
+ throwIfNotDirectory(fileInfo);
48
+ }
49
+ }
50
+ /**
51
+ * Synchronously ensures that the directory exists, like
52
+ * {@linkcode https://www.ibm.com/docs/en/aix/7.3?topic=m-mkdir-command#mkdir__row-d3e133766 | mkdir -p}.
53
+ *
54
+ * If the directory already exists, this function does nothing. If the directory
55
+ * does not exist, it is created.
56
+ *
57
+ * Requires `--allow-read` and `--allow-write` permissions.
58
+ *
59
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
60
+ * for more information on Deno's permissions system.
61
+ *
62
+ * @param dir The path of the directory to ensure, as a string or URL.
63
+ *
64
+ * @returns A void value that returns once the directory exists.
65
+ *
66
+ * @example Usage
67
+ * ```ts ignore
68
+ * import { ensureDirSync } from "@std/fs/ensure-dir";
69
+ *
70
+ * ensureDirSync("./bar");
71
+ * ```
72
+ */
73
+ export function ensureDirSync(dir) {
74
+ try {
75
+ const fileInfo = Deno.statSync(dir);
76
+ throwIfNotDirectory(fileInfo);
77
+ return;
78
+ }
79
+ catch (err) {
80
+ if (!(err instanceof Deno.errors.NotFound)) {
81
+ throw err;
82
+ }
83
+ }
84
+ // The dir doesn't exist. Create it.
85
+ // This can be racy. So we catch AlreadyExists and check stat again.
86
+ try {
87
+ Deno.mkdirSync(dir, { recursive: true });
88
+ }
89
+ catch (err) {
90
+ if (!(err instanceof Deno.errors.AlreadyExists)) {
91
+ throw err;
92
+ }
93
+ const fileInfo = Deno.statSync(dir);
94
+ throwIfNotDirectory(fileInfo);
95
+ }
96
+ }
97
+ function throwIfNotDirectory(fileInfo) {
98
+ if (!fileInfo.isDirectory) {
99
+ throw new Error(`Failed to ensure directory exists: expected 'dir', got '${getFileInfoType(fileInfo)}'`);
100
+ }
101
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Asynchronously ensures that the file exists.
3
+ *
4
+ * If the file already exists, this function does nothing. If the parent
5
+ * directories for the file do not exist, they are created.
6
+ *
7
+ * Requires `--allow-read` and `--allow-write` permissions.
8
+ *
9
+ * @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
10
+ * for more information on Deno's permissions system.
11
+ *
12
+ * @param filePath The path of the file to ensure, as a string or URL.
13
+ *
14
+ * @returns A void promise that resolves once the file exists.
15
+ *
16
+ * @example Usage
17
+ * ```ts ignore
18
+ * import { ensureFile } from "@std/fs/ensure-file";
19
+ *
20
+ * await ensureFile("./folder/targetFile.dat");
21
+ * ```
22
+ */
23
+ export declare function ensureFile(filePath: string | URL): Promise<void>;
24
+ /**
25
+ * Synchronously ensures that the file exists.
26
+ *
27
+ * If the file already exists, this function does nothing. If the parent
28
+ * directories for the file 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 filePath The path of the file to ensure, as a string or URL.
36
+ *
37
+ * @returns A void value that returns once the file exists.
38
+ *
39
+ * @example Usage
40
+ * ```ts ignore
41
+ * import { ensureFileSync } from "@std/fs/ensure-file";
42
+ *
43
+ * ensureFileSync("./folder/targetFile.dat");
44
+ * ```
45
+ */
46
+ export declare function ensureFileSync(filePath: string | URL): void;
47
+ //# sourceMappingURL=ensure_file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensure_file.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.19/ensure_file.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBtE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,GAAG,IAAI,CAsB3D"}