From 811830126e0891f4c3d7cc25a4047edab62b5ae1 Mon Sep 17 00:00:00 2001 From: Kendra Neil <53584728+TheRealAmazonKendra@users.noreply.github.com> Date: Mon, 24 Jun 2024 17:15:24 -0700 Subject: [PATCH] chore: update config for npm publishing --- .npmignore | 2 ++ .projenrc.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.npmignore b/.npmignore index 5ab7afa..ebadcd6 100644 --- a/.npmignore +++ b/.npmignore @@ -19,6 +19,8 @@ dist /.projenrc.js tsconfig.tsbuildinfo /.eslintrc.json +*.ts +!*.d.ts /.gitattributes /.projenrc.ts /projenrc diff --git a/.projenrc.ts b/.projenrc.ts index 8ee03d3..c5ed436 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -74,6 +74,9 @@ const project = new typescript.TypeScriptProject({ gitignore: ['**/*.d.ts', '**/*.js'], }); +project.addPackageIgnore('*.ts'); +project.addPackageIgnore('!*.d.ts'); + project.eslint?.addRules({ 'prettier/prettier': [ 'error',