|
29 | 29 | "./dist/**/!(*.test).{js,d.ts,cjs}"
|
30 | 30 | ],
|
31 | 31 | "scripts": {
|
32 |
| - "prepare": "husky install .github/husky", |
33 |
| - "lint": "npm run format:check && xo", |
34 |
| - "lint:fix": "npm run format && xo --fix", |
35 |
| - "format:check": "prettier --ignore-path .gitignore --check \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --loglevel warn", |
36 |
| - "format": "prettier --ignore-path .gitignore --write \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --loglevel warn", |
37 | 32 | "build": "npm run build:esm && npm run build:cjs",
|
38 |
| - "build:esm": "tsc", |
39 | 33 | "build:cjs": "esbuild src/index.ts --bundle --platform=node --outfile=dist/index.cjs",
|
| 34 | + "build:esm": "tsc", |
| 35 | + "format": "prettier --ignore-path .gitignore --write \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --loglevel warn", |
| 36 | + "format:check": "prettier --ignore-path .gitignore --check \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --loglevel warn", |
| 37 | + "lint": "npm run format:check && xo", |
| 38 | + "lint:fix": "npm run format && xo --fix", |
| 39 | + "prepare": "husky install .github/husky", |
40 | 40 | "test": "c8 ava"
|
41 | 41 | },
|
| 42 | + "xo": { |
| 43 | + "prettier": true, |
| 44 | + "space": true |
| 45 | + }, |
42 | 46 | "prettier": {
|
43 | 47 | "singleQuote": true,
|
44 | 48 | "trailingComma": "all"
|
|
187 | 191 | "text-summary"
|
188 | 192 | ]
|
189 | 193 | },
|
190 |
| - "xo": { |
191 |
| - "prettier": true, |
192 |
| - "space": true |
193 |
| - }, |
194 | 194 | "devDependencies": {
|
195 | 195 | "@ava/typescript": "4.0.0",
|
196 | 196 | "@commitlint/cli": "17.6.5",
|
|
0 commit comments