-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathpackage.json
54 lines (54 loc) · 1.55 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
{
"name": "@mapbox/sphericalmercator",
"description": "Transformations between the Web Mercator projection and Latitude Longitude coordinates",
"version": "2.0.1",
"licenses": [
{
"type": "BSD"
}
],
"keywords": [
"map",
"projection",
"transformations"
],
"url": "https://github.com/mapbox/sphericalmercator",
"repository": {
"type": "git",
"url": "git://github.com/mapbox/sphericalmercator.git"
},
"author": {
"name": "Mapbox",
"url": "https://mapbox.com/",
"email": "[email protected]"
},
"type": "module",
"files": ["/dist"],
"exports": {
".": {
"require": {
"default": "./dist/cjs/index.js",
"types": "./dist/cjs/index.d.ts"
},
"import": {
"default": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts"
}
}
},
"devDependencies": {
"@vitest/coverage-v8": "^2.1.1",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"vitest": "^2.1.1"
},
"scripts": {
"test": "vitest --config ./vitest.config.ts --coverage run",
"format": "npx prettier src test --write --single-quote",
"clean": "rm -rf ./dist",
"build-cjs": "tsc -p . --module commonjs --outDir ./dist/cjs && echo '{\"type\": \"commonjs\"}' > ./dist/cjs/package.json",
"build-esm": "tsc -p . --module nodenext --outDir ./dist/esm && echo '{\"type\": \"module\"}' > ./dist/esm/package.json",
"build": "npm run clean && npm run build-cjs && npm run build-esm",
"prepublishOnly": "npm run build"
}
}