mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 05:42:44 +08:00
chore(vant-use): use Rslib to build (#13250)
This commit is contained in:
parent
3884730c4e
commit
8d17b4076d
@ -1 +1 @@
|
|||||||
require('../vant-use/build');
|
require('../vant-use/build.cjs');
|
||||||
|
@ -1 +1 @@
|
|||||||
require('../vant-use/build');
|
require('../vant-use/build.cjs');
|
||||||
|
@ -2,14 +2,15 @@
|
|||||||
"name": "@vant/use",
|
"name": "@vant/use",
|
||||||
"version": "1.6.0",
|
"version": "1.6.0",
|
||||||
"description": "Vant Composition API",
|
"description": "Vant Composition API",
|
||||||
"main": "dist/index.cjs.js",
|
"type": "module",
|
||||||
"module": "dist/index.esm.mjs",
|
"main": "dist/index.cjs",
|
||||||
|
"module": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "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"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
@ -17,11 +18,8 @@
|
|||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf ./dist",
|
"dev": "rslib dev",
|
||||||
"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"
|
||||||
},
|
},
|
||||||
@ -38,8 +36,8 @@
|
|||||||
"author": "chenjiahan",
|
"author": "chenjiahan",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@rslib/core": "^0.1.3",
|
||||||
"esbuild": "^0.24.0",
|
"esbuild": "^0.24.0",
|
||||||
"rimraf": "^6.0.1",
|
|
||||||
"typescript": "^5.7.2",
|
"typescript": "^5.7.2",
|
||||||
"vue": "^3.5.13"
|
"vue": "^3.5.13"
|
||||||
},
|
},
|
||||||
|
11
packages/vant-use/rslib.config.ts
Normal file
11
packages/vant-use/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',
|
||||||
|
},
|
||||||
|
});
|
6
pnpm-lock.yaml
generated
6
pnpm-lock.yaml
generated
@ -346,12 +346,12 @@ importers:
|
|||||||
|
|
||||||
packages/vant-use:
|
packages/vant-use:
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
'@rslib/core':
|
||||||
|
specifier: ^0.1.3
|
||||||
|
version: 0.1.3(typescript@5.7.2)
|
||||||
esbuild:
|
esbuild:
|
||||||
specifier: ^0.24.0
|
specifier: ^0.24.0
|
||||||
version: 0.24.0
|
version: 0.24.0
|
||||||
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