Skip to content

Commit

Permalink
chore: remove unused files from npm package (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyrpex committed Apr 21, 2022
1 parent 42a6522 commit d1f5bf1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ const project = new typescript.TypeScriptProject({
minNodeVersion: "14.18.0",
});

// Docs.
project.npmignore?.addPatterns("/docs/");

// Lint.
project.npmignore?.addPatterns("/.editorconfig");
project.npmignore?.addPatterns("/.prettier*");

// ESM.
project.addFields({
type: "module",
Expand All @@ -54,6 +61,8 @@ project.compileTask.prependExec(
);

// Test.
project.npmignore?.addPatterns("/coverage/");

project.addDevDeps("vitest", "c8");
project.testTask.exec("vitest test/rules --passWithNoTests --coverage --run");

Expand Down

0 comments on commit d1f5bf1

Please sign in to comment.