diff --git a/changelog.d/package-files.fixed.md b/changelog.d/package-files.fixed.md new file mode 100644 index 000000000..fba391c0a --- /dev/null +++ b/changelog.d/package-files.fixed.md @@ -0,0 +1,6 @@ +- The npm package no longer ships the compiled test suite or the + compiler's build record: `files` packs `dist/src` and `src`, so + `dist/test`, about half the published files, and + `dist/tsconfig.tsbuildinfo` stay out, and the package's contents no + longer depend on whether the tests ran before packing. The redundant + `discord.js` entry in `devDependencies` is gone (it is a dependency). diff --git a/package.json b/package.json index 792024938..3991fd4f9 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ } }, "files": [ - "dist", + "dist/src", "src" ], "bin": { @@ -58,7 +58,6 @@ "@babel/parser": "^7.29.9", "@types/node": "^22.0.0", "@types/ws": "^8.5.13", - "discord.js": "^14.25.1", "tsx": "^4.21.0", "typescript": "^7.0.2" },