-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
72 lines (72 loc) · 1.92 KB
/
Copy pathpackage.json
File metadata and controls
72 lines (72 loc) · 1.92 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"name": "enwrap",
"version": "0.0.14",
"description": "Tiny function wrapper that returns typed errors",
"license": "MIT",
"author": "Ben Williams",
"repository": "https://github.com/biw/enwrap",
"homepage": "https://github.com/biw/enwrap",
"bugs": {
"url": "https://github.com/biw/enwrap/issues"
},
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"typings": "dist/index.d.ts",
"sideEffects": false,
"files": [
"dist",
"src"
],
"scripts": {
"build": "rm -rf dist && tsup src/index.ts --format cjs,esm --dts --minify --treeshake --clean",
"postpublish": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags",
"lint": "tsc && eslint src test",
"prepare": "pnpm build",
"size": "size-limit",
"test": "vitest"
},
"engines": {
"node": ">=12"
},
"size-limit": [
{
"path": "dist/index.mjs",
"limit": "1 KB"
},
{
"path": "dist/index.js",
"limit": "1 KB"
}
],
"devDependencies": {
"@eslint/js": "10.0.1",
"@size-limit/preset-small-lib": "^12.0.1",
"@tsconfig/recommended": "^1.0.8",
"@typescript-eslint/eslint-plugin": "8.58.1",
"@typescript-eslint/parser": "8.58.1",
"eslint": "10.2.0",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-perfectionist": "5.8.0",
"eslint-plugin-prettier": "5.5.5",
"eslint-plugin-simple-import-sort": "13.0.0",
"prettier": "3.8.2",
"size-limit": "^12.0.1",
"tsup": "^8.3.6",
"typescript": "6.0.2",
"vite": "^8.0.8",
"vitest": "^4.1.4"
},
"packageManager": "pnpm@10.33.0"
}