mirror of
https://github.com/denoland/deno.git
synced 2025-03-04 01:44:26 -05:00
fix(publish): do not include .gitignore (#22789)
Regression from https://github.com/denoland/deno/pull/22720
This commit is contained in:
parent
3745556ccd
commit
2c6e9107b6
2 changed files with 5 additions and 1 deletions
|
@ -63,7 +63,10 @@ pub fn create_gzipped_tarball(
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
e.path.file_name().map(|s| s != ".DS_Store").unwrap_or(true)
|
e.path
|
||||||
|
.file_name()
|
||||||
|
.map(|s| s != ".DS_Store" && s != ".gitignore")
|
||||||
|
.unwrap_or(true)
|
||||||
})
|
})
|
||||||
.ignore_git_folder()
|
.ignore_git_folder()
|
||||||
.ignore_node_modules()
|
.ignore_node_modules()
|
||||||
|
|
|
@ -360,6 +360,7 @@ fn ignores_gitignore() {
|
||||||
assert_contains!(output, "main.ts");
|
assert_contains!(output, "main.ts");
|
||||||
assert_not_contains!(output, "ignored.ts");
|
assert_not_contains!(output, "ignored.ts");
|
||||||
assert_not_contains!(output, "ignored.wasm");
|
assert_not_contains!(output, "ignored.wasm");
|
||||||
|
assert_not_contains!(output, ".gitignore");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Reference in a new issue