-
Notifications
You must be signed in to change notification settings - Fork 17
/
package.json
97 lines (97 loc) 路 2.62 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"name": "@rapideditor/country-coder",
"version": "5.2.2",
"description": "Convert longitude-latitude pairs to ISO 3166-1 codes quickly and locally",
"repository": {
"type": "git",
"url": "git+https://github.com/rapideditor/country-coder.git"
},
"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/jest": "^29.5.4",
"@types/node": "^20.5.7",
"esbuild": "^0.19.2",
"esbuild-jest": "~0.5.0",
"jest": "^29.6.4",
"jest-extended": "^4.0.1",
"npm-run-all": "^4.1.5",
"shx": "^0.3.4",
"typescript": "^5.2.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 --platform=browser --format=iife --global-name=countryCoder --bundle --sourcemap --outfile=./dist/country-coder.iife.js",
"build:cjs": "esbuild ./src/country-coder.ts --platform=node --format=cjs --bundle --sourcemap --external:which-polygon --outfile=./dist/country-coder.cjs",
"build:mjs": "esbuild ./src/country-coder.ts --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": "NODE_OPTIONS=--experimental-vm-modules npx jest --colors"
},
"publishConfig": {
"access": "public"
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"**/src/*.(ts|js)"
],
"coverageDirectory": "<rootDir>/.coverage",
"coverageProvider": "v8",
"extensionsToTreatAsEsm": [
".ts"
],
"moduleFileExtensions": [
"ts",
"js",
"json"
],
"setupFilesAfterEnv": [
"jest-extended/all"
],
"testEnvironment": "node",
"testMatch": [
"**/tests/*.spec.(ts|js)"
],
"transform": {
"^.+\\.ts$": [
"esbuild-jest",
{
"format": "esm",
"sourcemap": "true"
}
]
},
"verbose": true
},
"engines": {
"node": ">=16.14.0"
}
}