@vant/area-data 1.1.3 → 1.1.4

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/README.md CHANGED
@@ -4,16 +4,15 @@
4
4
 
5
5
  ## 安装
6
6
 
7
- #### NPM
8
-
9
7
  ```shell
10
- npm i @vant/area-data -D
11
- ```
8
+ # 通过 npm
9
+ npm i @vant/area-data
12
10
 
13
- #### YARN
11
+ # 通过 yarn
12
+ yarn add @vant/area-data
14
13
 
15
- ```shell
16
- yarn add @vant/area-data --dev
14
+ # 通过 pnpm
15
+ pnpm add @vant/area-data
17
16
  ```
18
17
 
19
18
  ## 使用
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: '天津市',
@@ -1293,8 +1290,8 @@ exports.areaList = {
1293
1290
  330110: '余杭区',
1294
1291
  330111: '富阳区',
1295
1292
  330112: '临安区',
1296
- 330113: '钱塘区',
1297
- 330114: '临平区',
1293
+ 330113: '临平区',
1294
+ 330114: '钱塘区',
1298
1295
  330122: '桐庐县',
1299
1296
  330127: '淳安县',
1300
1297
  330182: '建德市',
package/package.json CHANGED
@@ -1,16 +1,24 @@
1
1
  {
2
2
  "name": "@vant/area-data",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Vant 省市区数据",
5
- "main": "lib/index.js",
5
+ "main": "./lib/index.js",
6
+ "typings": "./lib/index.d.ts",
7
+ "scripts": {
8
+ "build": "rimraf ./lib && tsc",
9
+ "release": "pnpm build && npm publish",
10
+ "prepare": "pnpm build"
11
+ },
6
12
  "publishConfig": {
7
13
  "access": "public",
8
14
  "registry": "https://registry.npmjs.org/"
9
15
  },
10
- "scripts": {
11
- "build": "tsc",
12
- "release": "yarn build && npm publish"
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/youzan/vant.git",
19
+ "directory": "packages/vant-area-data"
13
20
  },
14
- "license": "MIT",
15
- "repository": "https://github.com/youzan/vant"
21
+ "bugs": "https://github.com/youzan/vant/issues",
22
+ "author": "chenjiahan",
23
+ "license": "MIT"
16
24
  }
package/src/index.ts 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/tsconfig.json CHANGED
@@ -1,13 +1,9 @@
1
1
  {
2
+ "extends": "../../tsconfig",
2
3
  "compilerOptions": {
3
4
  "target": "ES2019",
4
5
  "outDir": "./lib",
5
- "module": "commonjs",
6
- "strict": true,
7
- "declaration": true,
8
- "skipLibCheck": true,
9
- "esModuleInterop": true,
10
- "lib": ["esnext"]
6
+ "declaration": true
11
7
  },
12
8
  "include": ["src/**/*"]
13
9
  }