Skip to content

Commit 87f1071

Browse files
committed
调整发布
1 parent 11f5e87 commit 87f1071

File tree

9 files changed

+24
-85
lines changed

9 files changed

+24
-85
lines changed

.github/workflows/deploy_docs.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

configs/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
"strict": true,
1818
"noUnusedLocals": true,
1919
"noUnusedParameters": true,
20-
"noFallthroughCasesInSwitch": true
20+
"noFallthroughCasesInSwitch": true,
2121
}
2222
}

configs/vite.config.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,16 @@ export default defineConfig({
99
name: 'maplugin',
1010
fileName: 'index',
1111
},
12-
rollupOptions:{
13-
external: ['vue', 'maplibre-gl', 'mapbox-gl', '@turf/center', 'proj4', '@maplugin-vue/core']
12+
rollupOptions: {
13+
external: [
14+
'vue',
15+
'maplibre-gl',
16+
'mapbox-gl',
17+
'proj4',
18+
'@mapbox/mapbox-gl-draw',
19+
'@turf/boolean-clockwise',
20+
'@turf/center']
1421
}
1522
},
16-
plugins: [vue(), dts()]
23+
plugins: [vue(), dts({ include: ['../maplugin-core', "./"], exclude: ['demo'] })]
1724
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "mapbox-style-vue-use",
2+
"name": "maplugin",
33
"version": "1.0.0",
44
"description": "",
55
"main": "index.js",

packages/maplugin-core/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ export type TMapEvent =
4848
"styledataloading" |
4949
"sourcedataloading" |
5050
"styleimagemissing" |
51-
"style.load";
51+
"style.load" |
52+
"draw.selectionchange";
5253

5354
export interface LngLat {
5455
lng: number;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
demo

packages/maplugin-mapbox/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
{
2-
"name": "@maplugin-vue/mapbox",
2+
"name": "maplugin-vue-mapbox",
33
"version": "1.0.0",
44
"type": "module",
55
"files": [
6-
"dist",
7-
"index.d.ts"
6+
"dist"
87
],
98
"main": "./dist/index.umd.cjs",
109
"module": "./dist/index.js",
11-
"types": "./dist/index.d.ts",
10+
"types": "./dist/maplugin-mapbox/index.d.ts",
1211
"exports": {
1312
".": {
1413
"import": {
1514
"default": "./dist/index.js",
16-
"types": "./dist/index.d.ts"
15+
"types": "./dist/maplugin-mapbox/index.d.ts"
1716
},
1817
"require": "./dist/index.umd.cjs"
1918
},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
demo

packages/maplugin-maplibre/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
{
2-
"name": "@maplugin-vue/maplibre",
2+
"name": "maplugin-vue-maplibre",
33
"version": "1.0.0",
44
"type": "module",
55
"files": [
6-
"dist",
7-
"index.d.ts"
6+
"dist"
87
],
98
"main": "./dist/index.umd.cjs",
109
"module": "./dist/index.js",
11-
"types": "./dist/index.d.ts",
10+
"types": "./dist/maplugin-maplibre/index.d.ts",
1211
"exports": {
1312
".": {
1413
"import": {
1514
"default": "./dist/index.js",
16-
"types": "./dist/index.d.ts"
15+
"types": "./dist/maplugin-maplibre/index.d.ts"
1716
},
1817
"require": "./dist/index.umd.cjs"
1918
},

0 commit comments

Comments
 (0)