go2sujeet commited on
Commit
80a32bf
·
1 Parent(s): edfe352

Added .history and node_modules/ to .gitignore

Browse files
Files changed (4) hide show
  1. .husky/pre-commit +5 -3
  2. VERSION +0 -1
  3. package-lock.json +6 -6
  4. package.json +9 -2
.husky/pre-commit CHANGED
@@ -1,4 +1,6 @@
1
  #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- sh ./increment-version.sh
 
 
 
1
  #!/bin/sh
2
+ # Increment version number
3
+ version=$(cat version.txt)
4
+ new_version=$(echo $version + 0.01 | bc)
5
+ echo $new_version > version.txt
6
+ git add version.txt
VERSION DELETED
@@ -1 +0,0 @@
1
- 1.0.469
 
 
package-lock.json CHANGED
@@ -5,20 +5,20 @@
5
  "packages": {
6
  "": {
7
  "devDependencies": {
8
- "husky": "^9.0.11",
9
  "semver": "^7.6.0"
10
  }
11
  },
12
  "node_modules/husky": {
13
- "version": "9.0.11",
14
- "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz",
15
- "integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==",
16
  "dev": true,
17
  "bin": {
18
- "husky": "bin.mjs"
19
  },
20
  "engines": {
21
- "node": ">=18"
22
  },
23
  "funding": {
24
  "url": "https://github.com/sponsors/typicode"
 
5
  "packages": {
6
  "": {
7
  "devDependencies": {
8
+ "husky": "^8.0.3",
9
  "semver": "^7.6.0"
10
  }
11
  },
12
  "node_modules/husky": {
13
+ "version": "8.0.3",
14
+ "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
15
+ "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
16
  "dev": true,
17
  "bin": {
18
+ "husky": "lib/bin.js"
19
  },
20
  "engines": {
21
+ "node": ">=14"
22
  },
23
  "funding": {
24
  "url": "https://github.com/sponsors/typicode"
package.json CHANGED
@@ -1,9 +1,16 @@
1
  {
2
  "devDependencies": {
3
- "husky": "^8.0.0",
4
  "semver": "^7.6.0"
5
  },
6
  "scripts": {
7
- "prepare": "husky install"
 
 
 
 
8
  }
 
 
 
9
  }
 
1
  {
2
  "devDependencies": {
3
+ "husky": "^8.0.3",
4
  "semver": "^7.6.0"
5
  },
6
  "scripts": {
7
+ "prepare": "husky install",
8
+ "husky": {
9
+ "hooks": {
10
+ "pre-commit": "sh .husky/pre-commit"
11
+ }
12
  }
13
+
14
+ }
15
+
16
  }