Skip to content

Commit

Permalink
fix: 修复未编译导致发包的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed Jun 18, 2024
1 parent fc19902 commit 6db39e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ jobs:
run: pnpm install
shell: bash

- name: Build
run: pnpm build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function bd09ToGcj02(bd_lng: number, bd_lat: number) {
* 火星坐标系转百度坐标系(GCJ-02 > BD-09)
* @param gcj_lng 经度
* @param gcj_lat 纬度
* @returns 转换后的经纬度坐标
* @returns 转换后的经纬度坐标(BD-09)
*/
export function gcj02ToBd09(gcj_lng: number, gcj_lat: number) {
const z = Math.sqrt(gcj_lng * gcj_lng + gcj_lat * gcj_lat) + 0.00002 * Math.sin(gcj_lat * x_PI)
Expand Down

0 comments on commit 6db39e4

Please sign in to comment.