mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(area-data): use Rslib to build (#13251)
This commit is contained in:
parent
8d17b4076d
commit
e825175615
@ -1 +0,0 @@
|
|||||||
require('../vant-use/build.cjs');
|
|
@ -2,14 +2,15 @@
|
|||||||
"name": "@vant/area-data",
|
"name": "@vant/area-data",
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"description": "Vant 省市区数据",
|
"description": "Vant 省市区数据",
|
||||||
"main": "dist/index.cjs.js",
|
"type": "module",
|
||||||
"module": "dist/index.esm.mjs",
|
"main": "dist/index.cjs",
|
||||||
|
"module": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"import": "./dist/index.esm.mjs",
|
"import": "./dist/index.js",
|
||||||
"require": "./dist/index.cjs.js"
|
"require": "./dist/index.cjs"
|
||||||
},
|
},
|
||||||
"./package.json": "./package.json"
|
"./package.json": "./package.json"
|
||||||
},
|
},
|
||||||
@ -18,11 +19,8 @@
|
|||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf ./dist",
|
"dev": "rslib build -w",
|
||||||
"dev": "node ./build.js -w",
|
"build": "rslib build",
|
||||||
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly",
|
|
||||||
"build:bundle": "node ./build.js",
|
|
||||||
"build": "pnpm clean && pnpm build:bundle && pnpm build:types",
|
|
||||||
"release": "vant-cli release",
|
"release": "vant-cli release",
|
||||||
"prepare": "pnpm build"
|
"prepare": "pnpm build"
|
||||||
},
|
},
|
||||||
@ -39,8 +37,7 @@
|
|||||||
"author": "chenjiahan",
|
"author": "chenjiahan",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"esbuild": "^0.24.0",
|
"@rslib/core": "^0.1.3",
|
||||||
"rimraf": "^6.0.1",
|
|
||||||
"typescript": "^5.7.2"
|
"typescript": "^5.7.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
11
packages/vant-area-data/rslib.config.ts
Normal file
11
packages/vant-area-data/rslib.config.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { defineConfig } from '@rslib/core';
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
lib: [
|
||||||
|
{ format: 'esm', syntax: ['Chrome 53'], dts: true },
|
||||||
|
{ format: 'cjs', syntax: ['Chrome 53'] },
|
||||||
|
],
|
||||||
|
output: {
|
||||||
|
target: 'web',
|
||||||
|
},
|
||||||
|
});
|
9
pnpm-lock.yaml
generated
9
pnpm-lock.yaml
generated
@ -127,12 +127,9 @@ importers:
|
|||||||
|
|
||||||
packages/vant-area-data:
|
packages/vant-area-data:
|
||||||
devDependencies:
|
devDependencies:
|
||||||
esbuild:
|
'@rslib/core':
|
||||||
specifier: ^0.24.0
|
specifier: ^0.1.3
|
||||||
version: 0.24.0
|
version: 0.1.3(typescript@5.7.2)
|
||||||
rimraf:
|
|
||||||
specifier: ^6.0.1
|
|
||||||
version: 6.0.1
|
|
||||||
typescript:
|
typescript:
|
||||||
specifier: ^5.7.2
|
specifier: ^5.7.2
|
||||||
version: 5.7.2
|
version: 5.7.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user