@cn-map/gaode-react 0.0.0 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cn-map/gaode-react",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "description": "高德地图 react 组件",
5
5
  "keywords": [
6
6
  "amap",
@@ -9,18 +9,85 @@
9
9
  "高德",
10
10
  "高德地图"
11
11
  ],
12
+ "bugs": {
13
+ "url": "https://gtihub.com/Jungzl/amap/issues"
14
+ },
12
15
  "license": "MIT",
13
- "author": "jungzl",
14
16
  "repository": {
15
17
  "type": "git",
16
18
  "url": "git+https://github.com/Jungzl/amap.git",
17
19
  "directory": "packages/react"
18
20
  },
19
- "bugs": {
20
- "url": "https://github.com/Jungzl/amap/issues"
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "type": "module",
25
+ "sideEffects": false,
26
+ "main": "dist/index.js",
27
+ "module": "dist/index.js",
28
+ "types": "dist/index.d.ts",
29
+ "typesVersions": {
30
+ "*": {
31
+ "loca": [
32
+ "./dist/loca.d.ts"
33
+ ]
34
+ }
35
+ },
36
+ "imports": {
37
+ "#lib": "./src/index.ts",
38
+ "#loca": "./src/loca/index.ts",
39
+ "#hooks": "./src/hooks/index.ts",
40
+ "#utils": "./src/utils/index.ts",
41
+ "#types": "./src/types/index.ts"
42
+ },
43
+ "exports": {
44
+ ".": {
45
+ "types": "./dist/index.d.ts",
46
+ "default": "./dist/index.js"
47
+ },
48
+ "./loca": {
49
+ "types": "./dist/loca.d.ts",
50
+ "default": "./dist/loca.js"
51
+ },
52
+ "./package.json": "./package.json"
53
+ },
54
+ "dependencies": {
55
+ "@cn-map/gaode-jsapi-loader": "^0.0.1",
56
+ "@cn-map/gaode-shared": "^0.0.1"
57
+ },
58
+ "devDependencies": {
59
+ "@cn-map/gaode-types": "^2.1.0",
60
+ "@types/react": "^19.3.0",
61
+ "@types/react-dom": "^19.3.0",
62
+ "@vitejs/plugin-react": "^6.3.0",
63
+ "react": "^19.3.1",
64
+ "react-dom": "^19.3.1",
65
+ "vitest-browser-react": "^2.3.0"
66
+ },
67
+ "peerDependencies": {
68
+ "@cn-map/gaode-types": "^2.0.0",
69
+ "@types/react": "^19.2.0",
70
+ "react": "^19.2.0",
71
+ "react-dom": "^19.2.0"
21
72
  },
22
- "publishConfig": {
23
- "access": "public"
73
+ "peerDependenciesMeta": {
74
+ "@cn-map/gaode-types": {
75
+ "optional": true
76
+ },
77
+ "@types/react": {
78
+ "optional": true
79
+ }
24
80
  },
25
- "files": []
81
+ "scripts": {
82
+ "build": "tsdown",
83
+ "dev": "tsdown --watch",
84
+ "check:type": "tsc",
85
+ "test": "vitest run",
86
+ "test:e2e": "vitest run -p e2e",
87
+ "test:e2e:watch": "vitest -p e2e",
88
+ "test:unit": "vitest run -p unit",
89
+ "test:unit:watch": "vitest -p unit",
90
+ "test:watch": "vitest",
91
+ "test:coverage": "vitest run --coverage --bail=1"
92
+ }
26
93
  }