Add sync-version hook so that the version number in package.yaml will always match the one in package.json
This commit is contained in:
parent
4692e78503
commit
9861803d62
3 changed files with 31 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -19,3 +19,4 @@ cabal.sandbox.config
|
|||
*~
|
||||
\#*
|
||||
lebd.cabal
|
||||
node_modules/
|
||||
|
|
23
package-lock.json
generated
Normal file
23
package-lock.json
generated
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"name": "lebd",
|
||||
"version": "1.1.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"docopt": {
|
||||
"version": "0.6.2",
|
||||
"resolved": "https://registry.npmjs.org/docopt/-/docopt-0.6.2.tgz",
|
||||
"integrity": "sha1-so6eIiDaXsSffqW7JKR3h0Be6xE=",
|
||||
"dev": true
|
||||
},
|
||||
"sync-version": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/sync-version/-/sync-version-1.0.1.tgz",
|
||||
"integrity": "sha1-Y6aglKmigcUqgA1obqu5ZgH4igs=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"docopt": "0.6.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -11,5 +11,11 @@
|
|||
"bugs": {
|
||||
"url": "https://gitlab.com/00dani/lebd/issues"
|
||||
},
|
||||
"homepage": "https://gitlab.com/00dani/lebd#README"
|
||||
"homepage": "https://gitlab.com/00dani/lebd#README",
|
||||
"devDependencies": {
|
||||
"sync-version": "^1.0.1"
|
||||
},
|
||||
"scripts": {
|
||||
"version": "sync-version package.yaml && git add ."
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue