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