@vant/area-data 1.1.5 → 1.2.0

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/lib/index.js CHANGED
@@ -1290,8 +1290,8 @@ export const areaList = {
1290
1290
  330110: '余杭区',
1291
1291
  330111: '富阳区',
1292
1292
  330112: '临安区',
1293
- 330113: '临平区',
1294
- 330114: '钱塘区',
1293
+ 330113: '钱塘区',
1294
+ 330114: '临平区',
1295
1295
  330122: '桐庐县',
1296
1296
  330127: '淳安县',
1297
1297
  330182: '建德市',
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "@vant/area-data",
3
- "version": "1.1.5",
3
+ "version": "1.2.0",
4
4
  "description": "Vant 省市区数据",
5
- "main": "./lib/index.js",
6
- "typings": "./lib/index.d.ts",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.esm.js",
7
+ "types": "dist/index.d.ts",
7
8
  "scripts": {
8
- "build": "rimraf ./lib && tsc",
9
- "release": "pnpm build && npm publish",
9
+ "clean": "rimraf ./dist",
10
+ "dev": "node ./build.js -w",
11
+ "build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly",
12
+ "build:bundle": "node ./build.js",
13
+ "build": "pnpm clean && pnpm build:bundle && pnpm build:types",
14
+ "release": "pnpm build && release-it",
10
15
  "prepare": "pnpm build"
11
16
  },
12
17
  "publishConfig": {
@@ -20,5 +25,16 @@
20
25
  },
21
26
  "bugs": "https://github.com/youzan/vant/issues",
22
27
  "author": "chenjiahan",
23
- "license": "MIT"
28
+ "license": "MIT",
29
+ "devDependencies": {
30
+ "esbuild": "^0.13.15",
31
+ "release-it": "^14.2.2",
32
+ "typescript": "~4.5.2"
33
+ },
34
+ "release-it": {
35
+ "git": {
36
+ "tag": false,
37
+ "commitMessage": "release: @vant/area-data ${version}"
38
+ }
39
+ }
24
40
  }
package/tsconfig.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "extends": "../../tsconfig",
3
3
  "compilerOptions": {
4
- "target": "ES2019",
5
- "outDir": "./lib",
4
+ "outDir": "./dist",
6
5
  "declaration": true
7
6
  },
8
7
  "include": ["src/**/*"]