chore(npm): ignore unnecessary files (#5816)

* chore(npm): ignore unnecessary files

* use package#files instead of npmignore
This commit is contained in:
Almeida
2021-06-11 21:30:34 +01:00
committed by GitHub
parent 55ad6f0e23
commit 5fb6c0dd14
2 changed files with 4 additions and 25 deletions

View File

@@ -1,25 +0,0 @@
# Packages
node_modules/
yarn.lock
# Log files
logs/
*.log
# Authentication
deploy/
# Miscellaneous
.tmp/
.vscode/
docs/
# NPM ignore
.eslintrc.json
.gitattributes
.gitignore
.travis.yml
.github/
test/
tsconfig.json
tslint.json

View File

@@ -5,6 +5,10 @@
"main": "./src/index.js",
"module": "./src/index.mjs",
"types": "./typings/index.d.ts",
"files": [
"src",
"typings"
],
"exports": {
"require": "./src/index.js",
"import": "./src/index.mjs"