|
1 | 1 | { |
2 | 2 | "name": "@ideditor/country-coder", |
3 | | - "version": "5.0.0", |
| 3 | + "version": "5.0.1", |
4 | 4 | "description": "Convert longitude-latitude pairs to ISO 3166-1 codes quickly and locally", |
5 | 5 | "repository": "github:ideditor/country-coder", |
6 | 6 | "license": "ISC", |
|
19 | 19 | "type": "module", |
20 | 20 | "source": "./src/country-coder.ts", |
21 | 21 | "types": "./dist/country-coder.d.ts", |
22 | | - "main": "./dist/country-coder.cjs.js", |
23 | | - "module": "./dist/country-coder.esm.js", |
| 22 | + "main": "./dist/country-coder.cjs", |
| 23 | + "module": "./dist/country-coder.mjs", |
24 | 24 | "browser": "./dist/country-coder.iife.js", |
25 | 25 | "dependencies": { |
26 | 26 | "which-polygon": "^2.2.0" |
|
42 | 42 | "clean": "shx rm -rf dist", |
43 | 43 | "build": "run-s format-json build:**", |
44 | 44 | "build:browser": "esbuild ./src/country-coder.ts --platform=browser --format=iife --global-name=countryCoder --bundle --sourcemap --outfile=./dist/country-coder.iife.js", |
45 | | - "build:cjs": "esbuild ./src/country-coder.ts --platform=node --format=cjs --bundle --outfile=./dist/country-coder.cjs.js", |
46 | | - "build:esm": "esbuild ./src/country-coder.ts --platform=neutral --format=esm --bundle --external:which-polygon --outfile=./dist/country-coder.esm.js", |
| 45 | + "build:cjs": "esbuild ./src/country-coder.ts --platform=node --format=cjs --bundle --sourcemap --outfile=./dist/country-coder.cjs", |
| 46 | + "build:mjs": "esbuild ./src/country-coder.ts --platform=neutral --format=esm --bundle --sourcemap --external:which-polygon --outfile=./dist/country-coder.mjs", |
47 | 47 | "build:types": "tsc", |
48 | 48 | "format-json": "node ./scripts/format-json.js", |
49 | 49 | "test": "jest --env=node --colors --coverage tests", |
|
55 | 55 | "jest": { |
56 | 56 | "collectCoverage": true, |
57 | 57 | "collectCoverageFrom": [ |
58 | | - "**/src/country-coder.ts" |
| 58 | + "./src/country-coder.ts" |
59 | 59 | ], |
60 | 60 | "coverageDirectory": "<rootDir>/.coverage", |
61 | 61 | "globals": { |
|
68 | 68 | "js", |
69 | 69 | "json" |
70 | 70 | ], |
71 | | - "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|ts?)$", |
| 71 | + "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(js|ts)$", |
72 | 72 | "transform": { |
73 | | - "^.+\\.tsx?$": "ts-jest" |
| 73 | + "^.+\\.ts$": "ts-jest" |
74 | 74 | }, |
75 | 75 | "verbose": true |
76 | 76 | }, |
|
0 commit comments