Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
123 lines (123 loc) · 4.14 KB
/
Copy pathpackage.json
File metadata and controls
123 lines (123 loc) · 4.14 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"name": "@glandais/elevation",
"version": "3.3.0",
"description": "TypeScript library for retrieving elevation data from geographic coordinates using terrain RGB tiles",
"sideEffects": false,
"main": "./dist/index.umd.js",
"module": "./dist/index.esm.js",
"types": "./dist/index.d.ts",
"browser": "./dist/index.esm.js",
"jsdelivr": "./dist/index.esm.js",
"unpkg": "./dist/index.esm.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"browser": "./dist/index.esm.js",
"node": {
"import": "./dist/index.node.mjs",
"require": "./dist/index.node.js"
},
"import": "./dist/index.esm.js",
"require": "./dist/index.umd.js",
"default": "./dist/index.esm.js"
}
},
"files": [
"dist/",
"README.md",
"LICENSE"
],
"scripts": {
"dev": "npm run build:dev && npm run dev:serve",
"dev:watch": "vite build --watch --mode info",
"dev:serve": "serve . -l 3000",
"build": "npm run build:clean && npm run build:browser && npm run build:node && npm run build:combine && npm run build:types",
"build:clean": "rm -rf dist",
"build:browser": "BUILD_TARGET=browser vite build",
"build:node": "BUILD_TARGET=node vite build",
"build:combine": "cp -r dist/browser/. dist/ && cp dist/node/index.node.* dist/ && rm -rf dist/browser dist/node",
"build:types": "tsc -p tsconfig.build.json",
"build:dev": "vite build --mode development",
"check": "npm run format && npm run lint:fix && npm run lint && npm run typecheck && npm run test:all && npm run build",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:all": "npm run test && npm run test:browser",
"test:browser": "npm run build:dev && playwright test",
"test:browser:ui": "npm run build:dev && playwright test --ui",
"test:browser:headed": "npm run build:dev && playwright test --headed",
"lint": "oxlint src/ test/",
"lint:fix": "oxlint src/ test/ --fix",
"format": "oxfmt --write .",
"format:check": "oxfmt --check .",
"typecheck": "tsc --noEmit",
"semantic-release": "semantic-release",
"prepare": "husky",
"prepublishOnly": "npm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/glandais/elevation.git"
},
"keywords": [
"elevation",
"terrain",
"geographic",
"coordinates",
"gis",
"typescript",
"tiles",
"srtm"
],
"author": "glandais",
"license": "MIT",
"bugs": {
"url": "https://github.com/glandais/elevation/issues"
},
"homepage": "https://github.com/glandais/elevation#readme",
"engines": {
"node": ">=18"
},
"publishConfig": {
"access": "public"
},
"lint-staged": {
"*.{ts,js}": [
"oxlint --fix",
"oxfmt --write"
],
"*.{json,md}": [
"oxfmt --write"
]
},
"devDependencies": {
"@commitlint/cli": "^21.0.0",
"@commitlint/config-conventional": "^21.0.0",
"@playwright/test": "^1.55.0",
"@semantic-release/changelog": "^7.0.0",
"@semantic-release/exec": "^7.1.0",
"@semantic-release/git": "^11.0.1",
"@semantic-release/github": "^12.0.0",
"@semantic-release/npm": "^13.1.1",
"@types/node": "^26.0.1",
"@vitest/coverage-v8": "^5.0.0",
"husky": "^9.1.7",
"jsdom": "^30.0.0",
"lint-staged": "^17.0.4",
"oxfmt": "^0.73.0",
"oxlint": "^1.75.0",
"playwright": "^1.55.0",
"semantic-release": "^25.0.1",
"semantic-release-plugin-update-version-in-files": "^2.0.0",
"serve": "^14.2.4",
"typescript": "^7.0.2",
"vite": "^8.0.10",
"vitest": "^5.0.0"
},
"dependencies": {
"abort-controller": "^3.0.0",
"canvas": "^3.2.0",
"sharp": "^0.35.3",
"node-fetch": "^3.3.2"
}
}