From 4fb774504c36b5b1efb57d3bcdc8902e9a649a5c Mon Sep 17 00:00:00 2001 From: Jeff Yates Date: Thu, 29 Aug 2024 15:46:35 -0500 Subject: [PATCH] [fei5815.1.excludebuildinfo] Add .npmignore file (#1022) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary: This adds an `.npmignore` file to the project to exclude unnecessary files from the published package. Any `files` declaration in a `package.json` will override this, so that's something to watch out for, but this is sufficient for now. Issue: FEI-5815 ## Test plan: 1. `yarn` 2. `yarn build` 3. `yarn build:types` 4. `rm .npmignore` 5. `cd packages/wonder-stuff-server` 6. `npm pack --dry-run` 7. Observe that the `tsconfig-build.json` and `tsconfig-build.tsbuildinfo` are included 8. `cd ../..` 9. `git checkout .npmignore` 10. `cd packages/wonder-stuff-server` 11. `npm pack --dry-run` 12. Observe that the `tsconfig-build.json` and `tsconfig-build.tsbuildinfo` are not included Author: somewhatabstract Reviewers: jeresig Required Reviewers: Approved By: jeresig Checks: ✅ codecov/project, ✅ Test (macos-latest, 20.x), ✅ Lint, typecheck, and coverage check (ubuntu-latest, 20.x), ✅ Prime node_modules cache for primary configuration (ubuntu-latest, 20.x), ✅ gerald, ⏭️ dependabot Pull Request URL: https://github.com/Khan/wonder-stuff/pull/1022 --- .changeset/six-chefs-doubt.md | 12 ++++++++++++ .npmignore | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 .changeset/six-chefs-doubt.md create mode 100644 .npmignore diff --git a/.changeset/six-chefs-doubt.md b/.changeset/six-chefs-doubt.md new file mode 100644 index 00000000..ea4f9869 --- /dev/null +++ b/.changeset/six-chefs-doubt.md @@ -0,0 +1,12 @@ +--- +"@khanacademy/wonder-stuff-ci": patch +"@khanacademy/wonder-stuff-core": patch +"@khanacademy/wonder-stuff-i18n": patch +"@khanacademy/wonder-stuff-render-environment-jsdom": patch +"@khanacademy/wonder-stuff-render-server": patch +"@khanacademy/wonder-stuff-sentry": patch +"@khanacademy/wonder-stuff-server": patch +"@khanacademy/wonder-stuff-testing": patch +--- + +Don't include TypeScript config and buildinfo in packages diff --git a/.npmignore b/.npmignore new file mode 100644 index 00000000..3d94ecd4 --- /dev/null +++ b/.npmignore @@ -0,0 +1,2 @@ +*.tsbuildinfo +tsconfig-build.json \ No newline at end of file