|
2 | 2 | "name": "@axios-use/vue", |
3 | 3 | "version": "0.2.1", |
4 | 4 | "description": "A Vue composition utilities for Axios.", |
5 | | - "main": "lib/index.js", |
| 5 | + "type": "module", |
| 6 | + "main": "lib/index.cjs", |
6 | 7 | "module": "esm/index.js", |
7 | 8 | "types": "lib/index.d.ts", |
| 9 | + "unpkg": "dist/axios-use-vue.umd.js", |
8 | 10 | "scripts": { |
9 | | - "build": "rm -rf ./lib/* ./esm/* && yarn build:cjs && yarn build:es", |
10 | | - "build:cjs": "tsc", |
11 | | - "build:es": "tsc -m ESNext --outDir ./esm", |
| 11 | + "build": "rimraf lib esm dist; npm run build:js; npm run build:type", |
| 12 | + "build:js": "vite build", |
| 13 | + "build:type": "tsc --outDir ./esm --emitDeclarationOnly", |
12 | 14 | "test": "vitest", |
13 | 15 | "test:coverage": "vitest run --coverage", |
14 | 16 | "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore", |
15 | | - "lint:fix": "yarn lint --fix", |
| 17 | + "lint:fix": "npm run lint --fix", |
16 | 18 | "format": "prettier --write '**/*' --config ./.prettierrc", |
17 | 19 | "postinstall": "node ./demi/postinstall.js", |
18 | | - "prepare": "yarn build" |
| 20 | + "prepare": "npm run build" |
19 | 21 | }, |
20 | 22 | "author": "wangcch <[email protected]>", |
21 | 23 | "license": "MIT", |
|
39 | 41 | }, |
40 | 42 | "devDependencies": { |
41 | 43 | "@rushstack/eslint-patch": "^1.2.0", |
| 44 | + "@vitejs/plugin-vue": "^4.4.1", |
42 | 45 | "@vitest/coverage-c8": "^0.29.8", |
43 | 46 | "@vue/compiler-dom": "^3.2.47", |
44 | 47 | "@vue/eslint-config-prettier": "^7.1.0", |
|
51 | 54 | "jsdom": "^21.1.1", |
52 | 55 | "msw": "^1.1.0", |
53 | 56 | "prettier": "^2.8.4", |
| 57 | + "rimraf": "^5.0.5", |
54 | 58 | "typescript": "^4.9.5", |
| 59 | + "vite": "^4.5.0", |
55 | 60 | "vitest": "^0.29.8", |
56 | 61 | "vue": "^3.2.47", |
57 | 62 | |
|
0 commit comments