Skip to content

Commit 0ce7e56

Browse files
committed
feat!: do not always include the changelog file
1 parent bee82ef commit 0ce7e56

File tree

3 files changed

+33
-22
lines changed

3 files changed

+33
-22
lines changed

.yarn/versions/e75b966c.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
releases:
2+
"@yarnpkg/builder": major
3+
"@yarnpkg/cli": major
4+
"@yarnpkg/core": major
5+
"@yarnpkg/doctor": major
6+
"@yarnpkg/extensions": major
7+
"@yarnpkg/nm": major
8+
"@yarnpkg/plugin-compat": major
9+
"@yarnpkg/plugin-constraints": major
10+
"@yarnpkg/plugin-dlx": major
11+
"@yarnpkg/plugin-essentials": major
12+
"@yarnpkg/plugin-exec": major
13+
"@yarnpkg/plugin-file": major
14+
"@yarnpkg/plugin-git": major
15+
"@yarnpkg/plugin-github": major
16+
"@yarnpkg/plugin-http": major
17+
"@yarnpkg/plugin-init": major
18+
"@yarnpkg/plugin-interactive-tools": major
19+
"@yarnpkg/plugin-jsr": major
20+
"@yarnpkg/plugin-link": major
21+
"@yarnpkg/plugin-nm": major
22+
"@yarnpkg/plugin-npm": major
23+
"@yarnpkg/plugin-npm-cli": major
24+
"@yarnpkg/plugin-pack": major
25+
"@yarnpkg/plugin-patch": major
26+
"@yarnpkg/plugin-pnp": major
27+
"@yarnpkg/plugin-pnpm": major
28+
"@yarnpkg/plugin-stage": major
29+
"@yarnpkg/plugin-typescript": major
30+
"@yarnpkg/plugin-version": major
31+
"@yarnpkg/plugin-workspace-tools": major
32+
"@yarnpkg/pnpify": major
33+
"@yarnpkg/sdks": major

packages/acceptance-tests/pkg-tests-specs/sources/commands/pack.test.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -614,25 +614,6 @@ describe(`Commands`, () => {
614614
}),
615615
);
616616

617-
test(
618-
`it should always include CHANGELOG (and its variants), even with a "files" field`,
619-
makeTemporaryEnv({
620-
files: [
621-
`/lib/*.js`,
622-
],
623-
}, async ({path, run, source}) => {
624-
await fsUtils.writeFile(`${path}/lib/changelog`, `lib specific changelog`);
625-
await fsUtils.writeFile(`${path}/CHANGELOG.md`, `package changelog`);
626-
627-
await run(`install`);
628-
629-
const {stdout} = await run(`pack`, `--dry-run`);
630-
expect(stdout).not.toMatch(/lib\/changelog/);
631-
expect(stdout).toMatch(/CHANGELOG\.md/);
632-
expect(stdout).toMatch(/package\.json/);
633-
}),
634-
);
635-
636617
test(
637618
`it should never set the +x flag on files in general`,
638619
makeTemporaryEnv({}, async ({path, run, source}) => {

packages/plugin-pack/sources/packUtils.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ const NEVER_IGNORE = [
1818

1919
`/licence`,
2020
`/licence.*`,
21-
22-
`/changelog`,
23-
`/changelog.*`,
2421
];
2522

2623
const ALWAYS_IGNORE = [

0 commit comments

Comments
 (0)