Skip to content

hustcc/inject-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inject-version

CLI tool to inject version into your source code when prepublishOnly.

npm Version Build Status npm npm License

Install

$ npm i --save-dev inject-version

Usage

  • Add the prepublishOnly script to your package.json with inject-version:
  "scripts": {
+   "prepublishOnly": "inject-version ./src/index.ts",
    "test": "jest"
  },

License

MIT@hustcc.

About

Inject version into your source code when prepublishOnly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published