cli: pack readme file into npm package

This commit is contained in:
Andrew Hlynskyi 2023-04-17 00:02:42 +03:00
parent 3c806913d8
commit cae83253a2
2 changed files with 3 additions and 1 deletions

1
cli/npm/.gitignore vendored
View file

@ -3,3 +3,4 @@ tree-sitter.exe
*.gz
*.tgz
LICENSE
README.md

View file

@ -15,7 +15,8 @@
"main": "lib/api/index.js",
"scripts": {
"install": "node install.js",
"prepack": "cp ../../LICENSE ."
"prepack": "cp ../../LICENSE ../README.md .",
"postpack": "rm LICENSE README.md"
},
"bin": {
"tree-sitter": "cli.js"