@effectionx/watch 0.3.1 → 0.4.1
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.
- package/LICENSE +9 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/{esm → dist}/main.js +6 -7
- package/dist/mod.d.ts +5 -0
- package/dist/mod.d.ts.map +1 -0
- package/{esm → dist}/mod.js +0 -1
- package/dist/package.json +47 -0
- package/dist/stream-helpers.d.ts.map +1 -0
- package/{esm → dist}/stream-helpers.js +1 -3
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/watch.d.ts.map +1 -0
- package/{esm → dist}/watch.js +5 -6
- package/main.ts +83 -0
- package/mod.ts +4 -0
- package/package.json +30 -23
- package/stream-helpers.ts +42 -0
- package/test/cat.ts +17 -0
- package/test/fixtures/src/file.txt +1 -0
- package/test/helpers.ts +144 -0
- package/test/watch-graceful.ts +11 -0
- package/test/watch.test.ts +121 -0
- package/tsconfig.json +27 -0
- package/watch.ts +198 -0
- package/esm/_dnt.polyfills.d.ts +0 -8
- package/esm/_dnt.polyfills.d.ts.map +0 -1
- package/esm/_dnt.polyfills.js +0 -110
- package/esm/_dnt.shims.d.ts +0 -2
- package/esm/_dnt.shims.d.ts.map +0 -1
- package/esm/_dnt.shims.js +0 -57
- package/esm/deno.d.ts +0 -36
- package/esm/deno.d.ts.map +0 -1
- package/esm/deno.js +0 -34
- package/esm/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.d.ts +0 -13
- package/esm/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.js +0 -33
- package/esm/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts +0 -12
- package/esm/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.js +0 -20
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts +0 -10
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_same_path.js +0 -17
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts +0 -12
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/_is_subdir.js +0 -25
- package/esm/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts +0 -9
- package/esm/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/_to_path_string.js +0 -13
- package/esm/deps/jsr.io/@std/fs/1.0.20/copy.d.ts +0 -117
- package/esm/deps/jsr.io/@std/fs/1.0.20/copy.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/copy.js +0 -312
- package/esm/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts +0 -48
- package/esm/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/empty_dir.js +0 -86
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts +0 -49
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_dir.js +0 -101
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts +0 -47
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_file.js +0 -89
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts +0 -49
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_link.js +0 -60
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts +0 -70
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.js +0 -155
- package/esm/deps/jsr.io/@std/fs/1.0.20/eol.d.ts +0 -52
- package/esm/deps/jsr.io/@std/fs/1.0.20/eol.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/eol.js +0 -67
- package/esm/deps/jsr.io/@std/fs/1.0.20/exists.d.ts +0 -219
- package/esm/deps/jsr.io/@std/fs/1.0.20/exists.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/exists.js +0 -269
- package/esm/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts +0 -267
- package/esm/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/expand_glob.js +0 -439
- package/esm/deps/jsr.io/@std/fs/1.0.20/mod.d.ts +0 -29
- package/esm/deps/jsr.io/@std/fs/1.0.20/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/mod.js +0 -29
- package/esm/deps/jsr.io/@std/fs/1.0.20/move.d.ts +0 -86
- package/esm/deps/jsr.io/@std/fs/1.0.20/move.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/move.js +0 -141
- package/esm/deps/jsr.io/@std/fs/1.0.20/walk.d.ts +0 -777
- package/esm/deps/jsr.io/@std/fs/1.0.20/walk.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/fs/1.0.20/walk.js +0 -845
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +0 -2
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +0 -12
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts +0 -3
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +0 -5
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.js +0 -7
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts +0 -4
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/basename.js +0 -40
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/common.js +0 -23
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts +0 -40
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.js +0 -46
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/dirname.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts +0 -4
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/format.js +0 -19
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts +0 -35
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.js +0 -234
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.js +0 -77
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/relative.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.js +0 -19
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.js +0 -15
- package/esm/deps/jsr.io/@std/path/1.1.3/basename.d.ts +0 -27
- package/esm/deps/jsr.io/@std/path/1.1.3/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/basename.js +0 -35
- package/esm/deps/jsr.io/@std/path/1.1.3/common.d.ts +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/common.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/common.js +0 -33
- package/esm/deps/jsr.io/@std/path/1.1.3/constants.d.ts +0 -15
- package/esm/deps/jsr.io/@std/path/1.1.3/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/constants.js +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/dirname.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/dirname.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/extname.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/extname.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/format.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/format.js +0 -27
- package/esm/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/from_file_url.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts +0 -77
- package/esm/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.js +0 -83
- package/esm/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/is_absolute.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/is_glob.js +0 -42
- package/esm/deps/jsr.io/@std/path/1.1.3/join.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/join.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/join_globs.js +0 -34
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.d.ts +0 -213
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.js +0 -216
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize.d.ts +0 -26
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts +0 -29
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/normalize_glob.js +0 -35
- package/esm/deps/jsr.io/@std/path/1.1.3/parse.d.ts +0 -35
- package/esm/deps/jsr.io/@std/path/1.1.3/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/parse.js +0 -39
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts +0 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.js +0 -8
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts +0 -39
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/basename.js +0 -52
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts +0 -13
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/constants.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts +0 -30
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/dirname.js +0 -64
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts +0 -37
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/extname.js +0 -93
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts +0 -24
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/format.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts +0 -16
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.js +0 -21
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts +0 -72
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.js +0 -23
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts +0 -31
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.js +0 -45
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/join_globs.js +0 -40
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts +0 -37
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.js +0 -58
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts +0 -25
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/parse.js +0 -115
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/relative.js +0 -106
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/resolve.js +0 -59
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.js +0 -27
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts +0 -16
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.js +0 -20
- package/esm/deps/jsr.io/@std/path/1.1.3/relative.d.ts +0 -24
- package/esm/deps/jsr.io/@std/path/1.1.3/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/relative.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.1.3/resolve.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/resolve.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/resolve.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/to_file_url.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts +0 -21
- package/esm/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.js +0 -29
- package/esm/deps/jsr.io/@std/path/1.1.3/types.d.ts +0 -38
- package/esm/deps/jsr.io/@std/path/1.1.3/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/types.js +0 -3
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts +0 -4
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.js +0 -15
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts +0 -22
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/basename.js +0 -47
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts +0 -13
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/constants.js +0 -14
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/dirname.js +0 -113
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/extname.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts +0 -24
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/format.js +0 -28
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts +0 -18
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.js +0 -30
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts +0 -71
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.js +0 -82
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.js +0 -38
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts +0 -18
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.js +0 -77
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts +0 -21
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/join_globs.js +0 -41
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts +0 -19
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.js +0 -135
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts +0 -20
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.js +0 -32
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts +0 -25
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/parse.js +0 -176
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts +0 -23
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/relative.js +0 -131
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/resolve.js +0 -154
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.js +0 -34
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts +0 -17
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.js +0 -49
- package/esm/main.d.ts +0 -2
- package/esm/main.d.ts.map +0 -1
- package/esm/mod.d.ts +0 -6
- package/esm/mod.d.ts.map +0 -1
- package/esm/package.json +0 -3
- package/esm/stream-helpers.d.ts.map +0 -1
- package/esm/watch.d.ts.map +0 -1
- package/script/_dnt.polyfills.d.ts +0 -8
- package/script/_dnt.polyfills.d.ts.map +0 -1
- package/script/_dnt.polyfills.js +0 -111
- package/script/_dnt.shims.d.ts +0 -2
- package/script/_dnt.shims.d.ts.map +0 -1
- package/script/_dnt.shims.js +0 -60
- package/script/deno.d.ts +0 -36
- package/script/deno.d.ts.map +0 -1
- package/script/deno.js +0 -36
- package/script/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.d.ts +0 -13
- package/script/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/_create_walk_entry.js +0 -37
- package/script/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts +0 -12
- package/script/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/_get_file_info_type.js +0 -23
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts +0 -10
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_same_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_same_path.js +0 -20
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts +0 -12
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_subdir.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/_is_subdir.js +0 -28
- package/script/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts +0 -9
- package/script/deps/jsr.io/@std/fs/1.0.20/_to_path_string.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/_to_path_string.js +0 -16
- package/script/deps/jsr.io/@std/fs/1.0.20/copy.d.ts +0 -117
- package/script/deps/jsr.io/@std/fs/1.0.20/copy.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/copy.js +0 -316
- package/script/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts +0 -48
- package/script/deps/jsr.io/@std/fs/1.0.20/empty_dir.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/empty_dir.js +0 -90
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts +0 -49
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_dir.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_dir.js +0 -105
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts +0 -47
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_file.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_file.js +0 -93
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts +0 -49
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_link.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_link.js +0 -64
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts +0 -70
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.js +0 -159
- package/script/deps/jsr.io/@std/fs/1.0.20/eol.d.ts +0 -52
- package/script/deps/jsr.io/@std/fs/1.0.20/eol.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/eol.js +0 -105
- package/script/deps/jsr.io/@std/fs/1.0.20/exists.d.ts +0 -219
- package/script/deps/jsr.io/@std/fs/1.0.20/exists.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/exists.js +0 -273
- package/script/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts +0 -267
- package/script/deps/jsr.io/@std/fs/1.0.20/expand_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/expand_glob.js +0 -443
- package/script/deps/jsr.io/@std/fs/1.0.20/mod.d.ts +0 -29
- package/script/deps/jsr.io/@std/fs/1.0.20/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/mod.js +0 -45
- package/script/deps/jsr.io/@std/fs/1.0.20/move.d.ts +0 -86
- package/script/deps/jsr.io/@std/fs/1.0.20/move.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/move.js +0 -145
- package/script/deps/jsr.io/@std/fs/1.0.20/walk.d.ts +0 -777
- package/script/deps/jsr.io/@std/fs/1.0.20/walk.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.20/walk.js +0 -849
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +0 -2
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.js +0 -48
- package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts +0 -3
- package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.12/os.js +0 -8
- package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.js +0 -10
- package/script/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts +0 -4
- package/script/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/basename.js +0 -45
- package/script/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/common.js +0 -26
- package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts +0 -40
- package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.js +0 -49
- package/script/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/dirname.js +0 -11
- package/script/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts +0 -4
- package/script/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/format.js +0 -23
- package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.js +0 -12
- package/script/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts +0 -35
- package/script/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.js +0 -237
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.js +0 -11
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.js +0 -80
- package/script/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/relative.js +0 -12
- package/script/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.js +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.js +0 -18
- package/script/deps/jsr.io/@std/path/1.1.3/basename.d.ts +0 -27
- package/script/deps/jsr.io/@std/path/1.1.3/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/basename.js +0 -38
- package/script/deps/jsr.io/@std/path/1.1.3/common.d.ts +0 -28
- package/script/deps/jsr.io/@std/path/1.1.3/common.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/common.js +0 -36
- package/script/deps/jsr.io/@std/path/1.1.3/constants.d.ts +0 -15
- package/script/deps/jsr.io/@std/path/1.1.3/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/constants.js +0 -20
- package/script/deps/jsr.io/@std/path/1.1.3/dirname.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/dirname.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/extname.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/extname.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/format.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/format.js +0 -30
- package/script/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/from_file_url.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts +0 -77
- package/script/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.js +0 -86
- package/script/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/is_absolute.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/is_glob.js +0 -45
- package/script/deps/jsr.io/@std/path/1.1.3/join.d.ts +0 -23
- package/script/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/join.js +0 -32
- package/script/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts +0 -28
- package/script/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/join_globs.js +0 -37
- package/script/deps/jsr.io/@std/path/1.1.3/mod.d.ts +0 -213
- package/script/deps/jsr.io/@std/path/1.1.3/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/mod.js +0 -232
- package/script/deps/jsr.io/@std/path/1.1.3/normalize.d.ts +0 -26
- package/script/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/normalize.js +0 -35
- package/script/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts +0 -29
- package/script/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/normalize_glob.js +0 -38
- package/script/deps/jsr.io/@std/path/1.1.3/parse.d.ts +0 -35
- package/script/deps/jsr.io/@std/path/1.1.3/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/parse.js +0 -42
- package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.js +0 -11
- package/script/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts +0 -39
- package/script/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/basename.js +0 -55
- package/script/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts +0 -13
- package/script/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/constants.js +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts +0 -30
- package/script/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/dirname.js +0 -67
- package/script/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts +0 -37
- package/script/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/extname.js +0 -96
- package/script/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts +0 -24
- package/script/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/format.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts +0 -16
- package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.js +0 -24
- package/script/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts +0 -72
- package/script/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.js +0 -85
- package/script/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.js +0 -26
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join.js +0 -48
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/join_globs.js +0 -43
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts +0 -37
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.js +0 -61
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.js +0 -35
- package/script/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts +0 -25
- package/script/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/parse.js +0 -118
- package/script/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/relative.js +0 -109
- package/script/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/resolve.js +0 -95
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.js +0 -30
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts +0 -16
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.js +0 -23
- package/script/deps/jsr.io/@std/path/1.1.3/relative.d.ts +0 -24
- package/script/deps/jsr.io/@std/path/1.1.3/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/relative.js +0 -33
- package/script/deps/jsr.io/@std/path/1.1.3/resolve.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/resolve.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/resolve.js +0 -33
- package/script/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/to_file_url.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts +0 -21
- package/script/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.js +0 -32
- package/script/deps/jsr.io/@std/path/1.1.3/types.d.ts +0 -38
- package/script/deps/jsr.io/@std/path/1.1.3/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/types.js +0 -4
- package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts +0 -4
- package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.js +0 -20
- package/script/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/basename.js +0 -50
- package/script/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts +0 -13
- package/script/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/constants.js +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/dirname.js +0 -116
- package/script/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/extname.js +0 -85
- package/script/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts +0 -24
- package/script/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/format.js +0 -31
- package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts +0 -18
- package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.js +0 -33
- package/script/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts +0 -71
- package/script/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.js +0 -85
- package/script/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.js +0 -41
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts +0 -18
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join.js +0 -80
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts +0 -21
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/join_globs.js +0 -44
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts +0 -19
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.js +0 -138
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.js +0 -35
- package/script/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts +0 -25
- package/script/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/parse.js +0 -179
- package/script/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts +0 -23
- package/script/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/relative.js +0 -134
- package/script/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/resolve.js +0 -190
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.js +0 -37
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.js +0 -52
- package/script/main.d.ts +0 -2
- package/script/main.d.ts.map +0 -1
- package/script/main.js +0 -76
- package/script/mod.d.ts +0 -6
- package/script/mod.d.ts.map +0 -1
- package/script/mod.js +0 -21
- package/script/package.json +0 -3
- package/script/stream-helpers.d.ts +0 -4
- package/script/stream-helpers.d.ts.map +0 -1
- package/script/stream-helpers.js +0 -42
- package/script/watch.d.ts +0 -76
- package/script/watch.d.ts.map +0 -1
- package/script/watch.js +0 -125
- /package/{esm → dist}/stream-helpers.d.ts +0 -0
- /package/{esm → dist}/watch.d.ts +0 -0
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
import { basename } from "../../path/1.1.3/basename.js";
|
|
3
|
-
import { join } from "../../path/1.1.3/join.js";
|
|
4
|
-
import { resolve } from "../../path/1.1.3/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.12/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
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"empty_dir.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.20/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"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
import { join } from "../../path/1.1.3/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
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ensure_dir.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.20/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"}
|
|
@@ -1,101 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ensure_file.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.20/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"}
|