inject-version
v1.0.0
Published
CLI tool to inject version into your source code when prepublishOnly.
Downloads
9
Readme
inject-version
CLI tool to inject
version
into your source code whenprepublishOnly
.
Install
$ npm i --save-dev inject-version
Usage
- Add the
prepublishOnly
script to yourpackage.json
withinject-version
:
"scripts": {
+ "prepublishOnly": "inject-version ./src/index.ts",
"test": "jest"
},
License
MIT@hustcc.