Skip to content

Commit

Permalink
chore: moving towars better release-it integration
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Nov 19, 2023
1 parent 86436e0 commit 3903a8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"serve:chromium": "web-ext run -t chromium -s dist",
"bundle": "web-ext build -s dist -a out --overwrite-dest -n replace_maps.zip",
"bump-manifest": "sh scripts/bump.sh",
"release": "npm run format:fix; release-it"
"release": "release-it"
},
"devDependencies": {
"@types/leaflet": "^1.9.8",
Expand Down Expand Up @@ -58,6 +58,10 @@
"releaseName": "v${version}"
},
"hooks": {
"before:init": [
"npm run format",
"npm test"
],
"after:bump": "npm run bump-manifest && npx changelogen@latest --no-commit --no-tag --output -r $(node -p \"require('./package.json').version\")"
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/map/utils/zoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const precision: number = 10;
/**
* Converts *altitude over the map* to *zoom level of the map*
* TODO: Should be rewritten!!!
*
*
* Reference: https://groups.google.com/g/google-earth-browser-plugin/c/eSL9GlAkWBk/m/T4mdToJz_FgJ
* @param alt Altitude as number
* @returns Zoom level between 0 and 19
Expand Down

0 comments on commit 3903a8f

Please sign in to comment.