@vant/area-data 1.1.4 → 1.2.2

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,12 +1,17 @@
1
1
  {
2
2
  "name": "@vant/area-data",
3
- "version": "1.1.4",
3
+ "version": "1.2.2",
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/src/index.ts CHANGED
@@ -390,7 +390,7 @@ export const areaList = {
390
390
  711100: '新北市',
391
391
  711200: '宜兰县',
392
392
  711300: '新竹县',
393
- 711400: '桃园县',
393
+ 711400: '桃园市',
394
394
  711500: '苗栗县',
395
395
  711700: '彰化县',
396
396
  711900: '嘉义县',
@@ -509,15 +509,14 @@ export const areaList = {
509
509
  130471: '邯郸经济技术开发区',
510
510
  130473: '邯郸冀南新区',
511
511
  130481: '武安市',
512
- 130502: '桥东区',
513
- 130503: '桥西区',
514
- 130521: '邢台县',
512
+ 130502: '襄都区',
513
+ 130503: '信都区',
514
+ 130505: '任泽区',
515
+ 130506: '南和区',
515
516
  130522: '临城县',
516
517
  130523: '内丘县',
517
518
  130524: '柏乡县',
518
519
  130525: '隆尧县',
519
- 130526: '任县',
520
- 130527: '南和县',
521
520
  130528: '宁晋县',
522
521
  130529: '巨鹿县',
523
522
  130530: '新河县',
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/**/*"]