Verify package.json has a files field or that .npmignore exists so that publishing to npm doesn't include tests/, tsconfig.json, or other dev-only files unnecessarily. Add a CI step or local script that runs npm pack --dry-run and asserts the resulting file list only contains expected build output.
Verify package.json has a files field or that .npmignore exists so that publishing to npm doesn't include tests/, tsconfig.json, or other dev-only files unnecessarily. Add a CI step or local script that runs npm pack --dry-run and asserts the resulting file list only contains expected build output.