This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using the package.json file itself: | |
# grep style | |
VERSION = `grep version package.json | cut -c 15- | rev | cut -c 3- | rev` | |
# sed style | |
VERSION = `sed -nE 's/^.*"version".*"(.*)",$/\1/p' package.json` | |
# awk style | |
VERSION = `awk '/version/{gsub(/("|",)/,"",$2);print $2};' package.json` | |
# Using npm run env instead | |
# grep style |
NewerOlder