Skip to content

Commit

Permalink
build: fix yarn not respecting files field in package.json
Browse files Browse the repository at this point in the history
There is a long standing issue with yarn always including all files
even though it is not included in `files` field in package.json.

Relevant discussion here:
yarnpkg/yarn#2822 (comment)
  • Loading branch information
aris-fm committed Dec 8, 2021
1 parent e5ce15b commit 3306d4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"reset": "git clean -dfx && git reset --hard && yarn install",
"clean": "trash build test",
"precommit": "run-s test && node scripts/preCommit",
"postinstall": "sh ./scripts/install.sh"
"postinstall": "sh ./scripts/install.sh",
"prepare": "echo something"
},
"scripts-info": {
"info": "Display information about the package scripts",
Expand Down

0 comments on commit 3306d4a

Please sign in to comment.