-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
package.json
106 lines (106 loc) · 2.87 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"name": "hoofd",
"version": "1.7.1",
"description": "Hooks to populate the html head.",
"author": "0no.co <hi@0no.co>",
"private": false,
"scripts": {
"build": "rimraf dist && pnpm build:preact && pnpm build:react",
"build:react": "microbundle --define process.env.NODE_ENV=production --external react --name hoofd --no-compress --output dist/ && cp ./dist/hoofd.module.js ./dist/hoofd.mjs",
"build:preact": "microbundle --define process.env.NODE_ENV=production --external preact --name hoofd --no-compress --output preact/dist --alias react=./preact/preact.ts && cp ./preact/dist/hoofd.module.js ./preact/dist/hoofd.mjs",
"build:ci": "microbundle --define process.env.NODE_ENV=production --external preact --name hoofd --output dist/",
"test": "vitest",
"prepublishOnly": "pnpm build",
"prepare": "husky install"
},
"repository": {
"type": "git",
"url": "git+https://github.com/0no-co/hoofd.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/0no-co/hoofd/issues"
},
"homepage": "https://github.com/0no-co/hoofd#readme",
"keywords": [
"hoofd",
"react",
"preact",
"document",
"head",
"title",
"meta",
"link",
"html",
"language",
"seo"
],
"sideEffects": false,
"main": "./dist/hoofd.js",
"browser": "./dist/hoofd.umd.js",
"module": "./dist/hoofd.module.js",
"source": "./src/index.ts",
"types": "./dist/index.d.ts",
"typings": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"browser": "./dist/hoofd.module.js",
"umd": "./dist/hoofd.umd.js",
"import": "./dist/hoofd.mjs",
"require": "./dist/hoofd.js"
},
"./preact": {
"types": "./preact/dist/index.d.ts",
"browser": "./preact/dist/hoofd.module.js",
"umd": "./preact/dist/hoofd.umd.js",
"import": "./preact/dist/hoofd.mjs",
"require": "./preact/dist/hoofd.js"
}
},
"devDependencies": {
"@changesets/cli": "^2.26.1",
"@changesets/get-github-info": "^0.5.2",
"@testing-library/react": "^14.0.0",
"@types/node": "^18.16.1",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"dotenv": "^16.0.3",
"husky": "^8.0.3",
"jsdom": "^21.1.1",
"lint-staged": "^13.2.0",
"microbundle": "0.15.1",
"preact": "^10.13.2",
"prettier": "^2.8.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"rimraf": "^5.0.0",
"tslib": "^2.5.0",
"typescript": "^5.0.0",
"vitest": "^0.30.1"
},
"peerDependencies": {
"react": ">= 16.8.0"
},
"publishConfig": {
"provenance": true
},
"mangle": {
"regex": "^_"
},
"prettier": {
"singleQuote": true,
"arrowParens": "avoid",
"trailingComma": "es5"
},
"lint-staged": {
"*.{json,md,ts,tsx}": [
"prettier --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}