-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: .npmignore should ignore files relative to the root (#388)
- Loading branch information
Showing
3 changed files
with
117 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,32 +87,32 @@ Deno.test("should build test project - basic", async () => { | |
}); | ||
assertEquals( | ||
output.npmIgnore, | ||
`src/ | ||
esm/mod.test.js | ||
esm/mod.test.d.ts | ||
script/mod.test.js | ||
script/mod.test.d.ts | ||
esm/deps/deno.land/[email protected]/fmt/colors.js | ||
esm/deps/deno.land/[email protected]/fmt/colors.d.ts | ||
script/deps/deno.land/[email protected]/fmt/colors.js | ||
script/deps/deno.land/[email protected]/fmt/colors.d.ts | ||
esm/deps/deno.land/[email protected]/testing/_diff.js | ||
esm/deps/deno.land/[email protected]/testing/_diff.d.ts | ||
script/deps/deno.land/[email protected]/testing/_diff.js | ||
script/deps/deno.land/[email protected]/testing/_diff.d.ts | ||
esm/deps/deno.land/[email protected]/testing/_format.js | ||
esm/deps/deno.land/[email protected]/testing/_format.d.ts | ||
script/deps/deno.land/[email protected]/testing/_format.js | ||
script/deps/deno.land/[email protected]/testing/_format.d.ts | ||
esm/deps/deno.land/[email protected]/testing/asserts.js | ||
esm/deps/deno.land/[email protected]/testing/asserts.d.ts | ||
script/deps/deno.land/[email protected]/testing/asserts.js | ||
script/deps/deno.land/[email protected]/testing/asserts.d.ts | ||
esm/_dnt.test_shims.js | ||
esm/_dnt.test_shims.d.ts | ||
script/_dnt.test_shims.js | ||
script/_dnt.test_shims.d.ts | ||
test_runner.js | ||
`/src/ | ||
/esm/mod.test.js | ||
/esm/mod.test.d.ts | ||
/script/mod.test.js | ||
/script/mod.test.d.ts | ||
/esm/deps/deno.land/[email protected]/fmt/colors.js | ||
/esm/deps/deno.land/[email protected]/fmt/colors.d.ts | ||
/script/deps/deno.land/[email protected]/fmt/colors.js | ||
/script/deps/deno.land/[email protected]/fmt/colors.d.ts | ||
/esm/deps/deno.land/[email protected]/testing/_diff.js | ||
/esm/deps/deno.land/[email protected]/testing/_diff.d.ts | ||
/script/deps/deno.land/[email protected]/testing/_diff.js | ||
/script/deps/deno.land/[email protected]/testing/_diff.d.ts | ||
/esm/deps/deno.land/[email protected]/testing/_format.js | ||
/esm/deps/deno.land/[email protected]/testing/_format.d.ts | ||
/script/deps/deno.land/[email protected]/testing/_format.js | ||
/script/deps/deno.land/[email protected]/testing/_format.d.ts | ||
/esm/deps/deno.land/[email protected]/testing/asserts.js | ||
/esm/deps/deno.land/[email protected]/testing/asserts.d.ts | ||
/script/deps/deno.land/[email protected]/testing/asserts.js | ||
/script/deps/deno.land/[email protected]/testing/asserts.d.ts | ||
/esm/_dnt.test_shims.js | ||
/esm/_dnt.test_shims.d.ts | ||
/script/_dnt.test_shims.js | ||
/script/_dnt.test_shims.d.ts | ||
/test_runner.js | ||
yarn.lock | ||
pnpm-lock.yaml | ||
`, | ||
|
@@ -162,20 +162,20 @@ Deno.test("should build test project without esm", async () => { | |
}); | ||
assertEquals( | ||
output.npmIgnore, | ||
`src/ | ||
script/mod.test.js | ||
types/mod.test.d.ts | ||
script/deps/deno.land/[email protected]/fmt/colors.js | ||
types/deps/deno.land/[email protected]/fmt/colors.d.ts | ||
script/deps/deno.land/[email protected]/testing/_diff.js | ||
types/deps/deno.land/[email protected]/testing/_diff.d.ts | ||
script/deps/deno.land/[email protected]/testing/_format.js | ||
types/deps/deno.land/[email protected]/testing/_format.d.ts | ||
script/deps/deno.land/[email protected]/testing/asserts.js | ||
types/deps/deno.land/[email protected]/testing/asserts.d.ts | ||
script/_dnt.test_shims.js | ||
types/_dnt.test_shims.d.ts | ||
test_runner.js | ||
`/src/ | ||
/script/mod.test.js | ||
/types/mod.test.d.ts | ||
/script/deps/deno.land/[email protected]/fmt/colors.js | ||
/types/deps/deno.land/[email protected]/fmt/colors.d.ts | ||
/script/deps/deno.land/[email protected]/testing/_diff.js | ||
/types/deps/deno.land/[email protected]/testing/_diff.d.ts | ||
/script/deps/deno.land/[email protected]/testing/_format.js | ||
/types/deps/deno.land/[email protected]/testing/_format.d.ts | ||
/script/deps/deno.land/[email protected]/testing/asserts.js | ||
/types/deps/deno.land/[email protected]/testing/asserts.d.ts | ||
/script/_dnt.test_shims.js | ||
/types/_dnt.test_shims.d.ts | ||
/test_runner.js | ||
yarn.lock | ||
pnpm-lock.yaml | ||
`, | ||
|
@@ -223,8 +223,8 @@ Deno.test("should build with all options off", async () => { | |
// This doesn't include the test files because they're not analyzed for in this scenario. | ||
assertEquals( | ||
output.npmIgnore, | ||
`src/ | ||
test_runner.js | ||
`/src/ | ||
/test_runner.js | ||
yarn.lock | ||
pnpm-lock.yaml | ||
`, | ||
|
@@ -497,43 +497,43 @@ Deno.test("should build with source maps", async () => { | |
output.assertExists("esm/mod.js.map"); | ||
assertEquals( | ||
output.npmIgnore, | ||
`esm/mod.test.js | ||
esm/mod.test.js.map | ||
esm/mod.test.d.ts | ||
script/mod.test.js | ||
script/mod.test.js.map | ||
script/mod.test.d.ts | ||
esm/deps/deno.land/[email protected]/fmt/colors.js | ||
esm/deps/deno.land/[email protected]/fmt/colors.js.map | ||
esm/deps/deno.land/[email protected]/fmt/colors.d.ts | ||
script/deps/deno.land/[email protected]/fmt/colors.js | ||
script/deps/deno.land/[email protected]/fmt/colors.js.map | ||
script/deps/deno.land/[email protected]/fmt/colors.d.ts | ||
esm/deps/deno.land/[email protected]/testing/_diff.js | ||
esm/deps/deno.land/[email protected]/testing/_diff.js.map | ||
esm/deps/deno.land/[email protected]/testing/_diff.d.ts | ||
script/deps/deno.land/[email protected]/testing/_diff.js | ||
script/deps/deno.land/[email protected]/testing/_diff.js.map | ||
script/deps/deno.land/[email protected]/testing/_diff.d.ts | ||
esm/deps/deno.land/[email protected]/testing/_format.js | ||
esm/deps/deno.land/[email protected]/testing/_format.js.map | ||
esm/deps/deno.land/[email protected]/testing/_format.d.ts | ||
script/deps/deno.land/[email protected]/testing/_format.js | ||
script/deps/deno.land/[email protected]/testing/_format.js.map | ||
script/deps/deno.land/[email protected]/testing/_format.d.ts | ||
esm/deps/deno.land/[email protected]/testing/asserts.js | ||
esm/deps/deno.land/[email protected]/testing/asserts.js.map | ||
esm/deps/deno.land/[email protected]/testing/asserts.d.ts | ||
script/deps/deno.land/[email protected]/testing/asserts.js | ||
script/deps/deno.land/[email protected]/testing/asserts.js.map | ||
script/deps/deno.land/[email protected]/testing/asserts.d.ts | ||
esm/_dnt.test_shims.js | ||
esm/_dnt.test_shims.js.map | ||
esm/_dnt.test_shims.d.ts | ||
script/_dnt.test_shims.js | ||
script/_dnt.test_shims.js.map | ||
script/_dnt.test_shims.d.ts | ||
test_runner.js | ||
`/esm/mod.test.js | ||
/esm/mod.test.js.map | ||
/esm/mod.test.d.ts | ||
/script/mod.test.js | ||
/script/mod.test.js.map | ||
/script/mod.test.d.ts | ||
/esm/deps/deno.land/[email protected]/fmt/colors.js | ||
/esm/deps/deno.land/[email protected]/fmt/colors.js.map | ||
/esm/deps/deno.land/[email protected]/fmt/colors.d.ts | ||
/script/deps/deno.land/[email protected]/fmt/colors.js | ||
/script/deps/deno.land/[email protected]/fmt/colors.js.map | ||
/script/deps/deno.land/[email protected]/fmt/colors.d.ts | ||
/esm/deps/deno.land/[email protected]/testing/_diff.js | ||
/esm/deps/deno.land/[email protected]/testing/_diff.js.map | ||
/esm/deps/deno.land/[email protected]/testing/_diff.d.ts | ||
/script/deps/deno.land/[email protected]/testing/_diff.js | ||
/script/deps/deno.land/[email protected]/testing/_diff.js.map | ||
/script/deps/deno.land/[email protected]/testing/_diff.d.ts | ||
/esm/deps/deno.land/[email protected]/testing/_format.js | ||
/esm/deps/deno.land/[email protected]/testing/_format.js.map | ||
/esm/deps/deno.land/[email protected]/testing/_format.d.ts | ||
/script/deps/deno.land/[email protected]/testing/_format.js | ||
/script/deps/deno.land/[email protected]/testing/_format.js.map | ||
/script/deps/deno.land/[email protected]/testing/_format.d.ts | ||
/esm/deps/deno.land/[email protected]/testing/asserts.js | ||
/esm/deps/deno.land/[email protected]/testing/asserts.js.map | ||
/esm/deps/deno.land/[email protected]/testing/asserts.d.ts | ||
/script/deps/deno.land/[email protected]/testing/asserts.js | ||
/script/deps/deno.land/[email protected]/testing/asserts.js.map | ||
/script/deps/deno.land/[email protected]/testing/asserts.d.ts | ||
/esm/_dnt.test_shims.js | ||
/esm/_dnt.test_shims.js.map | ||
/esm/_dnt.test_shims.d.ts | ||
/script/_dnt.test_shims.js | ||
/script/_dnt.test_shims.js.map | ||
/script/_dnt.test_shims.d.ts | ||
/test_runner.js | ||
yarn.lock | ||
pnpm-lock.yaml | ||
`, | ||
|
@@ -595,14 +595,14 @@ Deno.test("should build with package mappings", async () => { | |
}); | ||
assertEquals( | ||
output.npmIgnore, | ||
`src/ | ||
esm/mod.test.js | ||
script/mod.test.js | ||
types/mod.test.d.ts | ||
esm/_dnt.test_shims.js | ||
script/_dnt.test_shims.js | ||
types/_dnt.test_shims.d.ts | ||
test_runner.js | ||
`/src/ | ||
/esm/mod.test.js | ||
/script/mod.test.js | ||
/types/mod.test.d.ts | ||
/esm/_dnt.test_shims.js | ||
/script/_dnt.test_shims.js | ||
/types/_dnt.test_shims.d.ts | ||
/test_runner.js | ||
yarn.lock | ||
pnpm-lock.yaml | ||
`, | ||
|
@@ -1114,16 +1114,16 @@ Deno.test("should build jsr project", async () => { | |
}); | ||
assertEquals( | ||
output.npmIgnore, | ||
`src/ | ||
esm/mod.test.js | ||
esm/mod.test.d.ts | ||
script/mod.test.js | ||
script/mod.test.d.ts | ||
esm/_dnt.test_shims.js | ||
esm/_dnt.test_shims.d.ts | ||
script/_dnt.test_shims.js | ||
script/_dnt.test_shims.d.ts | ||
test_runner.js | ||
`/src/ | ||
/esm/mod.test.js | ||
/esm/mod.test.d.ts | ||
/script/mod.test.js | ||
/script/mod.test.d.ts | ||
/esm/_dnt.test_shims.js | ||
/esm/_dnt.test_shims.d.ts | ||
/script/_dnt.test_shims.js | ||
/script/_dnt.test_shims.d.ts | ||
/test_runner.js | ||
yarn.lock | ||
pnpm-lock.yaml | ||
`, | ||
|