diff options
author | 2022-12-09 14:26:33 -0800 | |
---|---|---|
committer | 2022-12-09 14:26:33 -0800 | |
commit | 24fbcb8f5297944f9829a3953f6a3e6e56cb02a0 (patch) | |
tree | a746bf78dd59182ccc31c9ed7effd7759fe41f9f /src | |
parent | 51e437e8a08013888efd39a4c248d3e913ec6165 (diff) | |
download | bun-24fbcb8f5297944f9829a3953f6a3e6e56cb02a0.tar.gz bun-24fbcb8f5297944f9829a3953f6a3e6e56cb02a0.tar.zst bun-24fbcb8f5297944f9829a3953f6a3e6e56cb02a0.zip |
Exclude other ts declaration file extensions (#1596)
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu>
Diffstat (limited to 'src')
-rw-r--r-- | src/cli/run_command.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cli/run_command.zig b/src/cli/run_command.zig index d99b361a4..abf7fdbc7 100644 --- a/src/cli/run_command.zig +++ b/src/cli/run_command.zig @@ -619,6 +619,8 @@ pub const RunCommand = struct { if (name[0] != '.' and this_bundler.options.loader(std.fs.path.extension(name)).isJavaScriptLike() and !strings.contains(name, ".config") and !strings.contains(name, ".d.ts") and + !strings.contains(name, ".d.mts") and + !strings.contains(name, ".d.cts") and value.kind(&this_bundler.fs.fs) == .file) { _ = try results.getOrPut(this_bundler.fs.filename_store.append(@TypeOf(name), name) catch continue); |