@vant/area-data 1.1.3 → 1.2.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/lib/index.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.areaList = void 0;
4
- exports.areaList = {
1
+ export const areaList = {
5
2
  province_list: {
6
3
  110000: '北京市',
7
4
  120000: '天津市',
package/package.json CHANGED
@@ -1,16 +1,40 @@
1
1
  {
2
2
  "name": "@vant/area-data",
3
- "version": "1.1.3",
3
+ "version": "1.2.1",
4
4
  "description": "Vant 省市区数据",
5
- "main": "lib/index.js",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.esm.js",
7
+ "types": "dist/index.d.ts",
8
+ "scripts": {
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",
15
+ "prepare": "pnpm build"
16
+ },
6
17
  "publishConfig": {
7
18
  "access": "public",
8
19
  "registry": "https://registry.npmjs.org/"
9
20
  },
10
- "scripts": {
11
- "build": "tsc",
12
- "release": "yarn build && npm publish"
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://github.com/youzan/vant.git",
24
+ "directory": "packages/vant-area-data"
13
25
  },
26
+ "bugs": "https://github.com/youzan/vant/issues",
27
+ "author": "chenjiahan",
14
28
  "license": "MIT",
15
- "repository": "https://github.com/youzan/vant"
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
+ }
16
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: '嘉义县',
@@ -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/tsconfig.json CHANGED
@@ -1,13 +1,8 @@
1
1
  {
2
+ "extends": "../../tsconfig",
2
3
  "compilerOptions": {
3
- "target": "ES2019",
4
- "outDir": "./lib",
5
- "module": "commonjs",
6
- "strict": true,
7
- "declaration": true,
8
- "skipLibCheck": true,
9
- "esModuleInterop": true,
10
- "lib": ["esnext"]
4
+ "outDir": "./dist",
5
+ "declaration": true
11
6
  },
12
7
  "include": ["src/**/*"]
13
8
  }