-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
53 lines (53 loc) · 1.68 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"name": "@ckpack/fetch-helper",
"private": false,
"version": "0.1.10",
"description": "一个轻量级的工具函数库",
"sideEffects": false,
"repository": "https://github.com/ckpack/fetch-helper",
"author": "chenkai",
"license": "MIT",
"type": "module",
"types": "./esm/index.d.ts",
"main": "./esm/index.js",
"exports": {
".": "./esm/index.js",
"./*": "./*"
},
"packageManager": "pnpm@7.9.3",
"dependencies": {},
"scripts": {
"prepare": "husky install",
"test": "vitest",
"coverage": "vitest run --coverage",
"release": "standard-version",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"build": "tsc && npm run build:min",
"build:min": "rm -rf ./dist/* && npm run build:min:esm && npm run build:min:cjs && npm run build:min:iife",
"build:min:esm": "esbuild ./src/index.ts --bundle --minify --format=esm --outfile=./dist/index.mjs",
"build:min:cjs": "esbuild ./src/index.ts --bundle --minify --format=cjs --outfile=./dist/index.cjs",
"build:min:iife": "esbuild ./src/index.ts --bundle --minify --format=iife --global-name=fetchHelper --outfile=./dist/index.js --footer:js=\"fetchHelper = fetchHelper.default;\""
},
"files": [
"src",
"esm",
"dist"
],
"devDependencies": {
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"standard-version": "^9.5.0",
"eslint": "^8.41.0",
"@antfu/eslint-config": "0.39.1",
"@types/node": "18.7.14",
"typescript": "^5.0.4",
"vitest": "0.31.1",
"@vitest/coverage-c8": "0.31.1",
"esbuild": "0.17.19"
},
"lint-staged": {
"*.{js,ts,mjs,cjs,tsx,jsx,vue}": [
"eslint --fix"
]
}
}