diff --git a/.gitattributes b/.gitattributes index 44b7f8c..6634a8f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10,7 +10,6 @@ /.github/workflows/upgrade-main.yml linguist-generated /.gitignore linguist-generated /.mergify.yml linguist-generated -/.npmignore linguist-generated /.prettierrc.json linguist-generated /.projen/** linguist-generated /.projen/deps.json linguist-generated diff --git a/.gitignore b/.gitignore index 184ab42..3ba0dae 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ !/.github/workflows/pull-request-lint.yml !/package.json !/LICENSE -!/.npmignore logs *.log npm-debug.log* diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 1ce8286..0000000 --- a/.npmignore +++ /dev/null @@ -1,23 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -/.projen/ -/test-reports/ -junit.xml -/coverage/ -permissions-backup.acl -/dist/changelog.md -/dist/version.txt -/.mergify.yml -/test/ -/tsconfig.dev.json -/src/ -!/build/ -!/build/**/*.js -!/build/**/*.d.ts -dist -/tsconfig.json -/.github/ -/.vscode/ -/.idea/ -/.projenrc.js -tsconfig.tsbuildinfo -/.eslintrc.json diff --git a/.projen/files.json b/.projen/files.json index 8614680..55c00eb 100644 --- a/.projen/files.json +++ b/.projen/files.json @@ -9,7 +9,6 @@ ".github/workflows/upgrade-main.yml", ".gitignore", ".mergify.yml", - ".npmignore", ".prettierrc.json", ".projen/deps.json", ".projen/files.json", diff --git a/.projenrc.cjs b/.projenrc.cjs index 40f4158..62c2cb5 100644 --- a/.projenrc.cjs +++ b/.projenrc.cjs @@ -115,6 +115,7 @@ const project = new GitHubActionTypeScriptProject({ codeCov: false, libdir: 'build', entrypoint: 'build/index.js', + npmignoreEnabled: false, tsconfig: { compilerOptions: { declaration: true, @@ -218,6 +219,8 @@ if (packageJson) { packageJson.addOverride('jest.globals', undefined); // The entrypoint property is supposed to manage this but it doesn't work packageJson.addOverride('main', 'build/index.js'); + // We don't want to publish this to NPM. + packageJson.addOverride('private', true); } project.synth(); diff --git a/package.json b/package.json index ad52e69..8a0aeb2 100644 --- a/package.json +++ b/package.json @@ -122,5 +122,6 @@ "@types/responselike": "1.0.0", "got": "12.3.1" }, + "private": true, "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." }