Skip to content

Commit

Permalink
Fix lint, remove test files from output
Browse files Browse the repository at this point in the history
  • Loading branch information
keichan34 committed Sep 9, 2024
1 parent c3e576b commit fcf975b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ module.exports = {
project: ['tsconfig.json'],
},

ignorePatterns: ["dist"],
ignorePatterns: ['dist'],
};
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
Here are some examples of how to use it:

```shell
$ npx -p @geolonia/normalize-any-latlng normalize-any-latlng '29°31′55″N 35°00′20″E' # 29.531944444444445 35.00555555555555
$ npx -p @geolonia/normalize-any-latlng normalize-any-latlng '북위37°34′00″ 동경126°58′41″' # 37.56666666666667 126.97805555555556
$ npx -p @geolonia/normalize-any-latlng normalize-any-latlng '남위34°36′12″ 서경58°22′54″' # -34.60333333333333 -58.38166666666667
$ npx -p @geolonia/normalize-any-latlng normalize-any-latlng '北緯32度53分9.35秒 東経130度11分9.34秒' # 32.885930555555554 130.18592777777778
$ npx -p @geolonia/normalize-any-latlng normalize-any-latlng '45°24′N 75°40′W' # 45.4 -75.66666666666667
$ npx @geolonia/normalize-any-latlng '29°31′55″N 35°00′20″E' # 29.531944444444445 35.00555555555555
$ npx @geolonia/normalize-any-latlng '북위37°34′00″ 동경126°58′41″' # 37.56666666666667 126.97805555555556
$ npx @geolonia/normalize-any-latlng '남위34°36′12″ 서경58°22′54″' # -34.60333333333333 -58.38166666666667
$ npx @geolonia/normalize-any-latlng '北緯32度53分9.35秒 東経130度11分9.34秒' # 32.885930555555554 130.18592777777778
$ npx @geolonia/normalize-any-latlng '45°24′N 75°40′W' # 45.4 -75.66666666666667
```

You can see more normalization examples in [src/index.test.ts](./src/index.test.ts).
Expand Down
5 changes: 4 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ const plugins = [
commonjs({
requireReturnsDefault: 'auto',
}),
typescript({ useTsconfigDeclarationDir: true }),
typescript({
useTsconfigDeclarationDir: true,
tsconfig: 'tsconfig.prod.json',
}),
];

export default [
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
],
"exclude": [
"./dist/",
"./src/**/*.test.ts",
"./node_modules/"
]
}
6 changes: 6 additions & 0 deletions tsconfig.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"exclude": [
"./src/**/*.test.ts",
]
}

0 comments on commit fcf975b

Please sign in to comment.