@effectionx/watch 0.3.1 → 0.4.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.
- 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 +31 -24
- 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,89 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
import { dirname } from "../../path/1.1.3/dirname.js";
|
|
3
|
-
import { ensureDir, ensureDirSync } from "./ensure_dir.js";
|
|
4
|
-
import { getFileInfoType } from "./_get_file_info_type.js";
|
|
5
|
-
import { toPathString } from "./_to_path_string.js";
|
|
6
|
-
/**
|
|
7
|
-
* Asynchronously ensures that the file exists.
|
|
8
|
-
*
|
|
9
|
-
* If the file already exists, this function does nothing. If the parent
|
|
10
|
-
* directories for the file do not exist, they are created.
|
|
11
|
-
*
|
|
12
|
-
* Requires `--allow-read` and `--allow-write` permissions.
|
|
13
|
-
*
|
|
14
|
-
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
15
|
-
* for more information on Deno's permissions system.
|
|
16
|
-
*
|
|
17
|
-
* @param filePath The path of the file to ensure, as a string or URL.
|
|
18
|
-
*
|
|
19
|
-
* @returns A void promise that resolves once the file exists.
|
|
20
|
-
*
|
|
21
|
-
* @example Usage
|
|
22
|
-
* ```ts ignore
|
|
23
|
-
* import { ensureFile } from "@std/fs/ensure-file";
|
|
24
|
-
*
|
|
25
|
-
* await ensureFile("./folder/targetFile.dat");
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export async function ensureFile(filePath) {
|
|
29
|
-
try {
|
|
30
|
-
// if file exists
|
|
31
|
-
const stat = await Deno.lstat(filePath);
|
|
32
|
-
if (!stat.isFile) {
|
|
33
|
-
throw new Error(`Failed to ensure file exists: expected 'file', got '${getFileInfoType(stat)}'`);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
catch (err) {
|
|
37
|
-
// if file not exists
|
|
38
|
-
if (err instanceof Deno.errors.NotFound) {
|
|
39
|
-
// ensure dir exists
|
|
40
|
-
await ensureDir(dirname(toPathString(filePath)));
|
|
41
|
-
// create file
|
|
42
|
-
await Deno.writeFile(filePath, new Uint8Array());
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
throw err;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Synchronously ensures that the file exists.
|
|
50
|
-
*
|
|
51
|
-
* If the file already exists, this function does nothing. If the parent
|
|
52
|
-
* directories for the file do not exist, they are created.
|
|
53
|
-
*
|
|
54
|
-
* Requires `--allow-read` and `--allow-write` permissions.
|
|
55
|
-
*
|
|
56
|
-
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
57
|
-
* for more information on Deno's permissions system.
|
|
58
|
-
*
|
|
59
|
-
* @param filePath The path of the file to ensure, as a string or URL.
|
|
60
|
-
*
|
|
61
|
-
* @returns A void value that returns once the file exists.
|
|
62
|
-
*
|
|
63
|
-
* @example Usage
|
|
64
|
-
* ```ts ignore
|
|
65
|
-
* import { ensureFileSync } from "@std/fs/ensure-file";
|
|
66
|
-
*
|
|
67
|
-
* ensureFileSync("./folder/targetFile.dat");
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
export function ensureFileSync(filePath) {
|
|
71
|
-
try {
|
|
72
|
-
// if file exists
|
|
73
|
-
const stat = Deno.lstatSync(filePath);
|
|
74
|
-
if (!stat.isFile) {
|
|
75
|
-
throw new Error(`Failed to ensure file exists: expected 'file', got '${getFileInfoType(stat)}'`);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (err) {
|
|
79
|
-
// if file not exists
|
|
80
|
-
if (err instanceof Deno.errors.NotFound) {
|
|
81
|
-
// ensure dir exists
|
|
82
|
-
ensureDirSync(dirname(toPathString(filePath)));
|
|
83
|
-
// create file
|
|
84
|
-
Deno.writeFileSync(filePath, new Uint8Array());
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
throw err;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Asynchronously ensures that the hard link exists.
|
|
3
|
-
*
|
|
4
|
-
* If the parent directories for the hard link do not exist, they are created.
|
|
5
|
-
*
|
|
6
|
-
* Requires `--allow-read` and `--allow-write` permissions.
|
|
7
|
-
*
|
|
8
|
-
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
9
|
-
* for more information on Deno's permissions system.
|
|
10
|
-
*
|
|
11
|
-
* @param src The source file path as a string or URL. Directory hard links are
|
|
12
|
-
* not allowed.
|
|
13
|
-
* @param dest The destination link path as a string or URL.
|
|
14
|
-
*
|
|
15
|
-
* @returns A void promise that resolves once the hard link exists.
|
|
16
|
-
*
|
|
17
|
-
* @example Usage
|
|
18
|
-
* ```ts ignore
|
|
19
|
-
* import { ensureLink } from "@std/fs/ensure-link";
|
|
20
|
-
*
|
|
21
|
-
* await ensureLink("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export declare function ensureLink(src: string | URL, dest: string | URL): Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* Synchronously ensures that the hard link exists.
|
|
27
|
-
*
|
|
28
|
-
* If the parent directories for the hard link do not exist, they are created.
|
|
29
|
-
*
|
|
30
|
-
* Requires `--allow-read` and `--allow-write` permissions.
|
|
31
|
-
*
|
|
32
|
-
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
33
|
-
* for more information on Deno's permissions system.
|
|
34
|
-
*
|
|
35
|
-
* @param src The source file path as a string or URL. Directory hard links are
|
|
36
|
-
* not allowed.
|
|
37
|
-
* @param dest The destination link path as a string or URL.
|
|
38
|
-
*
|
|
39
|
-
* @returns A void value that returns once the hard link exists.
|
|
40
|
-
*
|
|
41
|
-
* @example Usage
|
|
42
|
-
* ```ts ignore
|
|
43
|
-
* import { ensureLinkSync } from "@std/fs/ensure-link";
|
|
44
|
-
*
|
|
45
|
-
* ensureLinkSync("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
export declare function ensureLinkSync(src: string | URL, dest: string | URL): void;
|
|
49
|
-
//# sourceMappingURL=ensure_link.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ensure_link.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.20/ensure_link.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,iBAKrE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,QAKnE"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
import { dirname } from "../../path/1.1.3/dirname.js";
|
|
3
|
-
import { ensureDir, ensureDirSync } from "./ensure_dir.js";
|
|
4
|
-
import { toPathString } from "./_to_path_string.js";
|
|
5
|
-
/**
|
|
6
|
-
* Asynchronously ensures that the hard link exists.
|
|
7
|
-
*
|
|
8
|
-
* If the parent directories for the hard link do not exist, they are 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 src The source file path as a string or URL. Directory hard links are
|
|
16
|
-
* not allowed.
|
|
17
|
-
* @param dest The destination link path as a string or URL.
|
|
18
|
-
*
|
|
19
|
-
* @returns A void promise that resolves once the hard link exists.
|
|
20
|
-
*
|
|
21
|
-
* @example Usage
|
|
22
|
-
* ```ts ignore
|
|
23
|
-
* import { ensureLink } from "@std/fs/ensure-link";
|
|
24
|
-
*
|
|
25
|
-
* await ensureLink("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export async function ensureLink(src, dest) {
|
|
29
|
-
dest = toPathString(dest);
|
|
30
|
-
await ensureDir(dirname(dest));
|
|
31
|
-
await Deno.link(toPathString(src), dest);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Synchronously ensures that the hard link exists.
|
|
35
|
-
*
|
|
36
|
-
* If the parent directories for the hard link do not exist, they are created.
|
|
37
|
-
*
|
|
38
|
-
* Requires `--allow-read` and `--allow-write` permissions.
|
|
39
|
-
*
|
|
40
|
-
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
41
|
-
* for more information on Deno's permissions system.
|
|
42
|
-
*
|
|
43
|
-
* @param src The source file path as a string or URL. Directory hard links are
|
|
44
|
-
* not allowed.
|
|
45
|
-
* @param dest The destination link path as a string or URL.
|
|
46
|
-
*
|
|
47
|
-
* @returns A void value that returns once the hard link exists.
|
|
48
|
-
*
|
|
49
|
-
* @example Usage
|
|
50
|
-
* ```ts ignore
|
|
51
|
-
* import { ensureLinkSync } from "@std/fs/ensure-link";
|
|
52
|
-
*
|
|
53
|
-
* ensureLinkSync("./folder/targetFile.dat", "./folder/targetFile.link.dat");
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
export function ensureLinkSync(src, dest) {
|
|
57
|
-
dest = toPathString(dest);
|
|
58
|
-
ensureDirSync(dirname(dest));
|
|
59
|
-
Deno.linkSync(toPathString(src), dest);
|
|
60
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Asynchronously ensures that the link exists, and points to a valid file.
|
|
3
|
-
*
|
|
4
|
-
* If the parent directories for the link do not exist, they are created. If the
|
|
5
|
-
* link already exists, and it is not modified, this function does nothing. If
|
|
6
|
-
* the link already exists, and it does not point to the given target, an error
|
|
7
|
-
* is thrown.
|
|
8
|
-
*
|
|
9
|
-
* Requires `--allow-read` and `--allow-write` permissions.
|
|
10
|
-
*
|
|
11
|
-
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
12
|
-
* for more information on Deno's permissions system.
|
|
13
|
-
*
|
|
14
|
-
* @param target The source file path as a string or URL. If it is a relative path string, it have to be relative to the link path.
|
|
15
|
-
* @param linkName The destination link path as a string or URL.
|
|
16
|
-
*
|
|
17
|
-
* @returns A void promise that resolves once the link exists.
|
|
18
|
-
*
|
|
19
|
-
* @example Basic usage
|
|
20
|
-
* ```ts ignore
|
|
21
|
-
* import { ensureSymlink } from "@std/fs/ensure-symlink";
|
|
22
|
-
*
|
|
23
|
-
* // Ensures the link `./targetFile.link.dat` exists and points to `./targetFile.dat`
|
|
24
|
-
* await ensureSymlink("./targetFile.dat", "./targetFile.link.dat");
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @example Ensuring a link in a folder
|
|
28
|
-
* ```ts ignore
|
|
29
|
-
* import { ensureSymlink } from "@std/fs/ensure-symlink";
|
|
30
|
-
*
|
|
31
|
-
* // Ensures the link `./folder/targetFile.link.dat` exists and points to `./folder/targetFile.dat`
|
|
32
|
-
* await ensureSymlink("./targetFile.dat", "./folder/targetFile.link.dat");
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
export declare function ensureSymlink(target: string | URL, linkName: string | URL): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* Synchronously ensures that the link exists, and points to a valid file.
|
|
38
|
-
*
|
|
39
|
-
* If the parent directories for the link do not exist, they are created. If the
|
|
40
|
-
* link already exists, and it is not modified, this function does nothing. If
|
|
41
|
-
* the link already exists, and it does not point to the given target, an error
|
|
42
|
-
* is thrown.
|
|
43
|
-
*
|
|
44
|
-
* Requires `--allow-read` and `--allow-write` permissions.
|
|
45
|
-
*
|
|
46
|
-
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
47
|
-
* for more information on Deno's permissions system.
|
|
48
|
-
*
|
|
49
|
-
* @param target The source file path as a string or URL. If it is a relative path string, it have to be relative to the link path.
|
|
50
|
-
* @param linkName The destination link path as a string or URL.
|
|
51
|
-
* @returns A void value that returns once the link exists.
|
|
52
|
-
*
|
|
53
|
-
* @example Basic usage
|
|
54
|
-
* ```ts ignore
|
|
55
|
-
* import { ensureSymlinkSync } from "@std/fs/ensure-symlink";
|
|
56
|
-
*
|
|
57
|
-
* // Ensures the link `./targetFile.link.dat` exists and points to `./targetFile.dat`
|
|
58
|
-
* ensureSymlinkSync("./targetFile.dat", "./targetFile.link.dat");
|
|
59
|
-
* ```
|
|
60
|
-
*
|
|
61
|
-
* @example Ensuring a link in a folder
|
|
62
|
-
* ```ts ignore
|
|
63
|
-
* import { ensureSymlinkSync } from "@std/fs/ensure-symlink";
|
|
64
|
-
*
|
|
65
|
-
* // Ensures the link `./folder/targetFile.link.dat` exists and points to `./folder/targetFile.dat`
|
|
66
|
-
* ensureSymlinkSync("./targetFile.dat", "./folder/targetFile.link.dat");
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
export declare function ensureSymlinkSync(target: string | URL, linkName: string | URL): void;
|
|
70
|
-
//# sourceMappingURL=ensure_symlink.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ensure_symlink.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.20/ensure_symlink.ts"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,GAAG,GAAG,EACpB,QAAQ,EAAE,MAAM,GAAG,GAAG,iBAyCvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,GAAG,GAAG,EACpB,QAAQ,EAAE,MAAM,GAAG,GAAG,QAyCvB"}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
import { dirname } from "../../path/1.1.3/dirname.js";
|
|
3
|
-
import { resolve } from "../../path/1.1.3/resolve.js";
|
|
4
|
-
import { ensureDir, ensureDirSync } from "./ensure_dir.js";
|
|
5
|
-
import { getFileInfoType } from "./_get_file_info_type.js";
|
|
6
|
-
import { toPathString } from "./_to_path_string.js";
|
|
7
|
-
import { isWindows } from "../../internal/1.0.12/os.js";
|
|
8
|
-
function resolveSymlinkTarget(target, linkName) {
|
|
9
|
-
if (typeof target !== "string")
|
|
10
|
-
return target; // URL is always absolute path
|
|
11
|
-
if (typeof linkName === "string") {
|
|
12
|
-
return resolve(dirname(linkName), target);
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
return new URL(target, linkName);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
function getSymlinkOption(type) {
|
|
19
|
-
return isWindows ? { type: type === "dir" ? "dir" : "file" } : undefined;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Asynchronously ensures that the link exists, and points to a valid file.
|
|
23
|
-
*
|
|
24
|
-
* If the parent directories for the link do not exist, they are created. If the
|
|
25
|
-
* link already exists, and it is not modified, this function does nothing. If
|
|
26
|
-
* the link already exists, and it does not point to the given target, an error
|
|
27
|
-
* is thrown.
|
|
28
|
-
*
|
|
29
|
-
* Requires `--allow-read` and `--allow-write` permissions.
|
|
30
|
-
*
|
|
31
|
-
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
32
|
-
* for more information on Deno's permissions system.
|
|
33
|
-
*
|
|
34
|
-
* @param target The source file path as a string or URL. If it is a relative path string, it have to be relative to the link path.
|
|
35
|
-
* @param linkName The destination link path as a string or URL.
|
|
36
|
-
*
|
|
37
|
-
* @returns A void promise that resolves once the link exists.
|
|
38
|
-
*
|
|
39
|
-
* @example Basic usage
|
|
40
|
-
* ```ts ignore
|
|
41
|
-
* import { ensureSymlink } from "@std/fs/ensure-symlink";
|
|
42
|
-
*
|
|
43
|
-
* // Ensures the link `./targetFile.link.dat` exists and points to `./targetFile.dat`
|
|
44
|
-
* await ensureSymlink("./targetFile.dat", "./targetFile.link.dat");
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @example Ensuring a link in a folder
|
|
48
|
-
* ```ts ignore
|
|
49
|
-
* import { ensureSymlink } from "@std/fs/ensure-symlink";
|
|
50
|
-
*
|
|
51
|
-
* // Ensures the link `./folder/targetFile.link.dat` exists and points to `./folder/targetFile.dat`
|
|
52
|
-
* await ensureSymlink("./targetFile.dat", "./folder/targetFile.link.dat");
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
export async function ensureSymlink(target, linkName) {
|
|
56
|
-
const targetRealPath = resolveSymlinkTarget(target, linkName);
|
|
57
|
-
let srcStatInfo;
|
|
58
|
-
try {
|
|
59
|
-
srcStatInfo = await Deno.lstat(targetRealPath);
|
|
60
|
-
}
|
|
61
|
-
catch (error) {
|
|
62
|
-
if (error instanceof Deno.errors.NotFound) {
|
|
63
|
-
throw new Deno.errors.NotFound(`Cannot ensure symlink as the target path does not exist: ${targetRealPath}`);
|
|
64
|
-
}
|
|
65
|
-
throw error;
|
|
66
|
-
}
|
|
67
|
-
const srcFilePathType = getFileInfoType(srcStatInfo);
|
|
68
|
-
await ensureDir(dirname(toPathString(linkName)));
|
|
69
|
-
const options = getSymlinkOption(srcFilePathType);
|
|
70
|
-
try {
|
|
71
|
-
await Deno.symlink(target, linkName, options);
|
|
72
|
-
}
|
|
73
|
-
catch (error) {
|
|
74
|
-
if (!(error instanceof Deno.errors.AlreadyExists)) {
|
|
75
|
-
throw error;
|
|
76
|
-
}
|
|
77
|
-
const linkStatInfo = await Deno.lstat(linkName);
|
|
78
|
-
if (!linkStatInfo.isSymlink) {
|
|
79
|
-
const type = getFileInfoType(linkStatInfo);
|
|
80
|
-
throw new Deno.errors.AlreadyExists(`A '${type}' already exists at the path: ${linkName}`);
|
|
81
|
-
}
|
|
82
|
-
const linkPath = await Deno.readLink(linkName);
|
|
83
|
-
const linkRealPath = resolve(linkPath);
|
|
84
|
-
if (linkRealPath !== targetRealPath) {
|
|
85
|
-
throw new Deno.errors.AlreadyExists(`A symlink targeting to an undesired path already exists: ${linkName} -> ${linkRealPath}`);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Synchronously ensures that the link exists, and points to a valid file.
|
|
91
|
-
*
|
|
92
|
-
* If the parent directories for the link do not exist, they are created. If the
|
|
93
|
-
* link already exists, and it is not modified, this function does nothing. If
|
|
94
|
-
* the link already exists, and it does not point to the given target, an error
|
|
95
|
-
* is thrown.
|
|
96
|
-
*
|
|
97
|
-
* Requires `--allow-read` and `--allow-write` permissions.
|
|
98
|
-
*
|
|
99
|
-
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
100
|
-
* for more information on Deno's permissions system.
|
|
101
|
-
*
|
|
102
|
-
* @param target The source file path as a string or URL. If it is a relative path string, it have to be relative to the link path.
|
|
103
|
-
* @param linkName The destination link path as a string or URL.
|
|
104
|
-
* @returns A void value that returns once the link exists.
|
|
105
|
-
*
|
|
106
|
-
* @example Basic usage
|
|
107
|
-
* ```ts ignore
|
|
108
|
-
* import { ensureSymlinkSync } from "@std/fs/ensure-symlink";
|
|
109
|
-
*
|
|
110
|
-
* // Ensures the link `./targetFile.link.dat` exists and points to `./targetFile.dat`
|
|
111
|
-
* ensureSymlinkSync("./targetFile.dat", "./targetFile.link.dat");
|
|
112
|
-
* ```
|
|
113
|
-
*
|
|
114
|
-
* @example Ensuring a link in a folder
|
|
115
|
-
* ```ts ignore
|
|
116
|
-
* import { ensureSymlinkSync } from "@std/fs/ensure-symlink";
|
|
117
|
-
*
|
|
118
|
-
* // Ensures the link `./folder/targetFile.link.dat` exists and points to `./folder/targetFile.dat`
|
|
119
|
-
* ensureSymlinkSync("./targetFile.dat", "./folder/targetFile.link.dat");
|
|
120
|
-
* ```
|
|
121
|
-
*/
|
|
122
|
-
export function ensureSymlinkSync(target, linkName) {
|
|
123
|
-
const targetRealPath = resolveSymlinkTarget(target, linkName);
|
|
124
|
-
let srcStatInfo;
|
|
125
|
-
try {
|
|
126
|
-
srcStatInfo = Deno.lstatSync(targetRealPath);
|
|
127
|
-
}
|
|
128
|
-
catch (error) {
|
|
129
|
-
if (error instanceof Deno.errors.NotFound) {
|
|
130
|
-
throw new Deno.errors.NotFound(`Cannot ensure symlink as the target path does not exist: ${targetRealPath}`);
|
|
131
|
-
}
|
|
132
|
-
throw error;
|
|
133
|
-
}
|
|
134
|
-
const srcFilePathType = getFileInfoType(srcStatInfo);
|
|
135
|
-
ensureDirSync(dirname(toPathString(linkName)));
|
|
136
|
-
const options = getSymlinkOption(srcFilePathType);
|
|
137
|
-
try {
|
|
138
|
-
Deno.symlinkSync(target, linkName, options);
|
|
139
|
-
}
|
|
140
|
-
catch (error) {
|
|
141
|
-
if (!(error instanceof Deno.errors.AlreadyExists)) {
|
|
142
|
-
throw error;
|
|
143
|
-
}
|
|
144
|
-
const linkStatInfo = Deno.lstatSync(linkName);
|
|
145
|
-
if (!linkStatInfo.isSymlink) {
|
|
146
|
-
const type = getFileInfoType(linkStatInfo);
|
|
147
|
-
throw new Deno.errors.AlreadyExists(`A '${type}' already exists at the path: ${linkName}`);
|
|
148
|
-
}
|
|
149
|
-
const linkPath = Deno.readLinkSync(linkName);
|
|
150
|
-
const linkRealPath = resolve(linkPath);
|
|
151
|
-
if (linkRealPath !== targetRealPath) {
|
|
152
|
-
throw new Deno.errors.AlreadyExists(`A symlink targeting to an undesired path already exists: ${linkName} -> ${linkRealPath}`);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export declare const LF: "\n";
|
|
2
|
-
/** End-of-line character for Windows platforms. */
|
|
3
|
-
export declare const CRLF: "\r\n";
|
|
4
|
-
/**
|
|
5
|
-
* End-of-line character evaluated for the current platform.
|
|
6
|
-
*
|
|
7
|
-
* @example Usage
|
|
8
|
-
* ```ts ignore
|
|
9
|
-
* import { EOL } from "@std/fs/eol";
|
|
10
|
-
*
|
|
11
|
-
* EOL; // "\n" on POSIX platforms and "\r\n" on Windows
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
export declare const EOL: "\n" | "\r\n";
|
|
15
|
-
/**
|
|
16
|
-
* Returns the detected EOL character(s) detected in the input string. If no EOL
|
|
17
|
-
* character is detected, `null` is returned.
|
|
18
|
-
*
|
|
19
|
-
* @param content The input string to detect EOL characters.
|
|
20
|
-
*
|
|
21
|
-
* @returns The detected EOL character(s) or `null` if no EOL character is detected.
|
|
22
|
-
*
|
|
23
|
-
* @example Usage
|
|
24
|
-
* ```ts ignore
|
|
25
|
-
* import { detect } from "@std/fs/eol";
|
|
26
|
-
*
|
|
27
|
-
* detect("deno\r\nis not\r\nnode"); // "\r\n"
|
|
28
|
-
* detect("deno\nis not\r\nnode"); // "\r\n"
|
|
29
|
-
* detect("deno\nis not\nnode"); // "\n"
|
|
30
|
-
* detect("deno is not node"); // null
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export declare function detect(content: string): typeof EOL | null;
|
|
34
|
-
/**
|
|
35
|
-
* Normalize the input string to the targeted EOL.
|
|
36
|
-
*
|
|
37
|
-
* @param content The input string to normalize.
|
|
38
|
-
* @param eol The EOL character(s) to normalize the input string to.
|
|
39
|
-
*
|
|
40
|
-
* @returns The input string normalized to the targeted EOL.
|
|
41
|
-
*
|
|
42
|
-
* @example Usage
|
|
43
|
-
* ```ts ignore
|
|
44
|
-
* import { LF, format } from "@std/fs/eol";
|
|
45
|
-
*
|
|
46
|
-
* const CRLFinput = "deno\r\nis not\r\nnode";
|
|
47
|
-
*
|
|
48
|
-
* format(CRLFinput, LF); // "deno\nis not\nnode"
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
export declare function format(content: string, eol: typeof EOL): string;
|
|
52
|
-
//# sourceMappingURL=eol.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eol.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.20/eol.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,EAAE,EAAG,IAAa,CAAC;AAEhC,mDAAmD;AACnD,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AAEpC;;;;;;;;;GASG;AACH,eAAO,MAAM,GAAG,EAAE,IAAI,GAAG,MAEgD,CAAC;AAI1E;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,GAAG,IAAI,CAQzD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,GAAG,MAAM,CAE/D"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
// This module is browser compatible.
|
|
3
|
-
/** End-of-line character for POSIX platforms such as macOS and Linux. */
|
|
4
|
-
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
5
|
-
export const LF = "\n";
|
|
6
|
-
/** End-of-line character for Windows platforms. */
|
|
7
|
-
export const CRLF = "\r\n";
|
|
8
|
-
/**
|
|
9
|
-
* End-of-line character evaluated for the current platform.
|
|
10
|
-
*
|
|
11
|
-
* @example Usage
|
|
12
|
-
* ```ts ignore
|
|
13
|
-
* import { EOL } from "@std/fs/eol";
|
|
14
|
-
*
|
|
15
|
-
* EOL; // "\n" on POSIX platforms and "\r\n" on Windows
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export const EOL =
|
|
19
|
-
// deno-lint-ignore no-explicit-any
|
|
20
|
-
dntShim.dntGlobalThis.Deno?.build.os === "windows" ? CRLF : LF;
|
|
21
|
-
const regDetect = /(?:\r?\n)/g;
|
|
22
|
-
/**
|
|
23
|
-
* Returns the detected EOL character(s) detected in the input string. If no EOL
|
|
24
|
-
* character is detected, `null` is returned.
|
|
25
|
-
*
|
|
26
|
-
* @param content The input string to detect EOL characters.
|
|
27
|
-
*
|
|
28
|
-
* @returns The detected EOL character(s) or `null` if no EOL character is detected.
|
|
29
|
-
*
|
|
30
|
-
* @example Usage
|
|
31
|
-
* ```ts ignore
|
|
32
|
-
* import { detect } from "@std/fs/eol";
|
|
33
|
-
*
|
|
34
|
-
* detect("deno\r\nis not\r\nnode"); // "\r\n"
|
|
35
|
-
* detect("deno\nis not\r\nnode"); // "\r\n"
|
|
36
|
-
* detect("deno\nis not\nnode"); // "\n"
|
|
37
|
-
* detect("deno is not node"); // null
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
export function detect(content) {
|
|
41
|
-
const d = content.match(regDetect);
|
|
42
|
-
if (!d || d.length === 0) {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
const hasCRLF = d.some((x) => x === CRLF);
|
|
46
|
-
return hasCRLF ? CRLF : LF;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Normalize the input string to the targeted EOL.
|
|
50
|
-
*
|
|
51
|
-
* @param content The input string to normalize.
|
|
52
|
-
* @param eol The EOL character(s) to normalize the input string to.
|
|
53
|
-
*
|
|
54
|
-
* @returns The input string normalized to the targeted EOL.
|
|
55
|
-
*
|
|
56
|
-
* @example Usage
|
|
57
|
-
* ```ts ignore
|
|
58
|
-
* import { LF, format } from "@std/fs/eol";
|
|
59
|
-
*
|
|
60
|
-
* const CRLFinput = "deno\r\nis not\r\nnode";
|
|
61
|
-
*
|
|
62
|
-
* format(CRLFinput, LF); // "deno\nis not\nnode"
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
export function format(content, eol) {
|
|
66
|
-
return content.replace(regDetect, eol);
|
|
67
|
-
}
|