Skip to content

Commit

Permalink
chore(yarn): add .npmignore
Browse files Browse the repository at this point in the history
because yarn ignores "files" field in package.json
yarnpkg/yarn#2822
  • Loading branch information
koichik committed Jul 15, 2022
1 parent 0768daa commit e0a1516
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 10 deletions.
47 changes: 47 additions & 0 deletions .npmignore
@@ -0,0 +1,47 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage
/dist/**/*.test.js
/dist/**/*.test.d.ts
/dist/**/*.test.d.ts.map
/src/**/*.test.ts
/src/**/*.test.tsx

# examples
/examples

# misc
.DS_Store
*.pem
*.tgz

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# typescript
*.tsbuildinfo

# tools
/.github
/.vscode
/.eslintignore
/.eslintrc.json
/.gitignore
/.npmignore
/.prettierignore
/.prettierrc.json
/jest.config.ts
/renovate.json
/tsconfig.esm.json
/tsconfig.json
/yarn.lock
11 changes: 1 addition & 10 deletions package.json
Expand Up @@ -87,14 +87,5 @@
"ts-jest": "28.0.6",
"ts-node": "10.9.1",
"typescript": "4.7.4"
},
"files": [
"src/",
"!src/**/*.test.ts",
"!src/**/*.test.tsx",
"dist/",
"!dist/**/*.test.js",
"!dist/**/*.test.d.ts",
"!dist/**/*.test.d.ts.map"
]
}
}

0 comments on commit e0a1516

Please sign in to comment.