Skip to content

Commit

Permalink
feat: add .npmignore file to exclude unnecessary files from npm package
Browse files Browse the repository at this point in the history
This commit adds a .npmignore file to the project. This file is used to prevent unnecessary files and directories (like tests, types, and configuration files) from being included when the project is packaged for distribution via npm. This helps to keep the package size small and only includes the files necessary for the package to function.
  • Loading branch information
MartinMinkov committed Feb 24, 2024
1 parent fe91ec5 commit 004a177
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Dependency directories
node_modules/

# TypeScript source files
src/

# TypeScript type definition source files
types/

# Testing files
test/
tests/
__tests__/
*.spec.ts
*.test.ts

# Configuration files
tsconfig.json
tsconfig.build.json
jest.config.js
.babelrc
.eslintrc.js
.prettierrc
.gitignore
.npmignore
.editorconfig
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# Build output directory
!dist/

# Documentation
README.md
CHANGELOG.md
!LICENSE

# Others
*.log
.DS_Store
Thumbs.db

0 comments on commit 004a177

Please sign in to comment.