-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
110 lines (110 loc) · 2.81 KB
/
Copy pathpackage.json
File metadata and controls
110 lines (110 loc) · 2.81 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
{
"name": "maplibre-gl-plugin-template",
"version": "0.2.2",
"description": "A template for creating MapLibre GL JS plugins with TypeScript and React support",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/types/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./react": {
"import": {
"types": "./dist/types/react.d.ts",
"default": "./dist/react.mjs"
},
"require": {
"types": "./dist/types/react.d.cts",
"default": "./dist/react.cjs"
}
},
"./style.css": "./dist/maplibre-gl-plugin-template.css"
},
"typesVersions": {
"*": {
"react": [
"./dist/types/react.d.ts"
]
}
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"sideEffects": [
"*.css"
],
"scripts": {
"dev": "vite",
"build": "tsc -p tsconfig.build.json && vite build && npm run build:dts-cjs",
"build:dts-cjs": "node -e \"const fs=require('fs');for(const n of['index','react'])fs.copyFileSync('dist/types/'+n+'.d.ts','dist/types/'+n+'.d.cts')\"",
"build:examples": "vite build --config vite.examples.config.ts",
"preview": "vite preview",
"test": "vitest --run",
"test:ui": "vitest --ui",
"test:coverage": "vitest --coverage",
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
"format": "prettier --write \"src/**/*.{ts,tsx,css}\"",
"prepublishOnly": "npm run build"
},
"keywords": [
"maplibre",
"maplibre-gl",
"map",
"plugin",
"control",
"react",
"typescript"
],
"author": "Your Name",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/your-username/maplibre-gl-plugin-template.git"
},
"peerDependencies": {
"maplibre-gl": ">=3.0.0",
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"react-dom": {
"optional": true
}
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@microsoft/api-extractor": "^7.58.7",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^25.9.2",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.2",
"@vitest/ui": "^4.1.8",
"eslint": "^10.4.1",
"jsdom": "^29.1.1",
"maplibre-gl": "^5.24.0",
"prettier": "^3.8.3",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"typescript": "^6.0.3",
"typescript-eslint": "^8.60.1",
"vite": "^8.0.16",
"vite-plugin-dts": "^5.0.2",
"vitest": "^4.1.8"
}
}