Skip to content

Commit 3903a8f

Browse files
committed
chore: moving towars better release-it integration
1 parent 86436e0 commit 3903a8f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"serve:chromium": "web-ext run -t chromium -s dist",
3030
"bundle": "web-ext build -s dist -a out --overwrite-dest -n replace_maps.zip",
3131
"bump-manifest": "sh scripts/bump.sh",
32-
"release": "npm run format:fix; release-it"
32+
"release": "release-it"
3333
},
3434
"devDependencies": {
3535
"@types/leaflet": "^1.9.8",
@@ -58,6 +58,10 @@
5858
"releaseName": "v${version}"
5959
},
6060
"hooks": {
61+
"before:init": [
62+
"npm run format",
63+
"npm test"
64+
],
6165
"after:bump": "npm run bump-manifest && npx changelogen@latest --no-commit --no-tag --output -r $(node -p \"require('./package.json').version\")"
6266
}
6367
}

src/map/utils/zoom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const precision: number = 10;
44
/**
55
* Converts *altitude over the map* to *zoom level of the map*
66
* TODO: Should be rewritten!!!
7-
*
7+
*
88
* Reference: https://groups.google.com/g/google-earth-browser-plugin/c/eSL9GlAkWBk/m/T4mdToJz_FgJ
99
* @param alt Altitude as number
1010
* @returns Zoom level between 0 and 19

0 commit comments

Comments
 (0)