-
Notifications
You must be signed in to change notification settings - Fork 17
/
package.json
58 lines (58 loc) · 1.92 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"name": "@rapideditor/country-coder",
"version": "5.3.1",
"description": "Convert longitude-latitude pairs to ISO 3166-1 codes quickly and locally",
"repository": "github:rapideditor/country-coder",
"license": "ISC",
"keywords": [
"reverse geocoder",
"country codes",
"ISO 3166-1",
"United Nations M49",
"geolocation",
"calling codes"
],
"files": [
"dist/",
"src/"
],
"type": "module",
"source": "./src/country-coder.ts",
"types": "./dist/country-coder.d.ts",
"main": "./dist/country-coder.cjs",
"module": "./dist/country-coder.mjs",
"exports": {
"import": "./dist/country-coder.mjs",
"require": "./dist/country-coder.cjs",
"types": "./dist/country-coder.d.ts"
},
"dependencies": {
"which-polygon": "^2.2.1"
},
"devDependencies": {
"@mapbox/geojson-rewind": "^0.5.2",
"@types/node": "^22.10.2",
"c8": "^10.1.3",
"esbuild": "^0.24.0",
"npm-run-all": "^4.1.5",
"shx": "^0.3.4",
"typescript": "^5.7.2"
},
"scripts": {
"all": "run-s clean build test",
"clean": "shx rm -rf dist",
"build": "run-s format-json build:**",
"build:browser": "esbuild ./src/country-coder.ts --log-override:package.json=silent --platform=browser --format=iife --global-name=countryCoder --bundle --sourcemap --outfile=./dist/country-coder.iife.js",
"build:cjs": "esbuild ./src/country-coder.ts --log-override:package.json=silent --platform=node --format=cjs --bundle --sourcemap --external:which-polygon --outfile=./dist/country-coder.cjs",
"build:mjs": "esbuild ./src/country-coder.ts --log-override:package.json=silent --platform=neutral --format=esm --bundle --sourcemap --external:which-polygon --outfile=./dist/country-coder.mjs",
"build:types": "tsc",
"format-json": "node ./scripts/format-json.js",
"test": "c8 node --test tests/*.js"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=18"
}
}