diff --git a/packages/vant-area-data/package.json b/packages/vant-area-data/package.json index a86d8e164..34920953f 100644 --- a/packages/vant-area-data/package.json +++ b/packages/vant-area-data/package.json @@ -2,7 +2,8 @@ "name": "@vant/area-data", "version": "1.1.3", "description": "Vant 省市区数据", - "main": "lib/index.js", + "main": "./lib/index.js", + "typings": "./lib/index.d.ts", "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" diff --git a/packages/vant-area-data/tsconfig.json b/packages/vant-area-data/tsconfig.json index d40c806f7..69369e785 100644 --- a/packages/vant-area-data/tsconfig.json +++ b/packages/vant-area-data/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ES2019", "outDir": "./lib", - "module": "commonjs", + "module": "ES2015", "strict": true, "declaration": true, "skipLibCheck": true, diff --git a/packages/vant-lazyload/package.json b/packages/vant-lazyload/package.json index 94eb476d2..65c1d6acd 100644 --- a/packages/vant-lazyload/package.json +++ b/packages/vant-lazyload/package.json @@ -25,6 +25,7 @@ "@vant/use": "^1.3.2" }, "devDependencies": { + "vue": "3.x", "@vue/runtime-core": "3.x", "@vant/cli": "workspace:*", "@rollup/plugin-babel": "^5.2.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e66f13152..1be565a9a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -238,6 +238,7 @@ importers: '@vue/runtime-core': 3.x release-it: ^14.2.2 rollup: ^2.33.3 + vue: 3.x dependencies: '@vant/use': link:../vant-use devDependencies: @@ -247,6 +248,7 @@ importers: '@vue/runtime-core': 3.2.21 release-it: 14.11.6 rollup: 2.59.0 + vue: 3.2.21 packages/vant-markdown-loader: specifiers: