Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
test: add postpublish hook to test package
Browse files Browse the repository at this point in the history
this tests where install from npm works correctly
  • Loading branch information
fachammer committed Sep 19, 2019
1 parent f018381 commit faacc33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"package-test-only": "cp -r test .test && cd .test && npm install tree-sitter ../tree-sitter-lux-$(node -e \"console.log(require('../package.json').version)\").tgz && node test.js",
"package-test": "npm pack && npm run package-test-only",
"preversion": "npm test",
"postpublish": "cp -r test .test && cd .test && npm install tree-sitter tree-sitter-lux && node test.js",
"semantic-release": "semantic-release"
}
}

0 comments on commit faacc33

Please sign in to comment.