Skip to content

Commit

Permalink
chore: update .gitignore with more comprehensive exclusions
Browse files Browse the repository at this point in the history
feat(.npmignore): create .npmignore to specify files to ignore when publishing
perf(package.json): add --clean flag to build script for cleaner builds
  • Loading branch information
Bluzzi committed Dec 25, 2024
1 parent efc6aa1 commit d363816
Show file tree
Hide file tree
Showing 4 changed files with 2,999 additions and 9 deletions.
32 changes: 24 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
# Modules:
node_modules
# Idea IDE:
**/.idea/

# Build:
dist
# Package lock (except for PNPM):
**/yarn.lock
**/package-lock.json
**/bun.lockb

# Lock files:
package-lock.json
yarn.lock
pnpm-lock.yaml
# Packages:
**/node_modules

# Environment variables and secrets files:
**/.env*

# ESLint Inspector:
.eslint-config-inspector

# Builds:
**/build
**/dist

# TS:
**/*.tsbuildinfo

# MacOS
**/.DS_Store
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Project:
src

# Configs:
eslint.config.js
tsconfig.json

# GitHub:
.github
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsup src/index.ts --minify --format cjs,esm --dts",
"build": "tsup src/index.ts --minify --format cjs,esm --clean --dts",
"test": "vitest --ui",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
Expand Down
Loading

0 comments on commit d363816

Please sign in to comment.