forked from pldespaigne/content-hash
-
Notifications
You must be signed in to change notification settings - Fork 13
/
package.json
60 lines (60 loc) · 1.85 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
{
"name": "@ensdomains/content-hash",
"version": "3.0.0-beta.5",
"description": "A simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers (fork of pldespaigne/content-hash)",
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"typings": "./dist/types/index.d.ts",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js",
"default": "./dist/cjs/index.js"
},
"./package.json": "./package.json"
},
"files": [
"dist/",
"src/",
"!src/**/*.test.ts"
],
"scripts": {
"test": "vitest",
"clean": "rm -rf ./dist",
"build:cjs": "tsc --project tsconfig.build.json --module commonjs --outDir ./dist/cjs --removeComments --verbatimModuleSyntax false && echo > ./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.build.json --module es2022 --outDir ./dist/esm && echo > ./dist/esm/package.json '{\"type\":\"module\",\"sideEffects\":false}'",
"build:types": "tsc --project tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap",
"build": "pnpm run clean && pnpm run build:cjs && pnpm run build:esm && pnpm run build:types",
"prepublish": "pnpm run build"
},
"keywords": [
"ethereum",
"ens",
"eip-1577",
"resolver",
"ipfs",
"swarm",
"content-hash",
"content",
"hash",
"contenthash",
"contentHash"
],
"author": "ensdomains",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ensdomains/content-hash"
},
"dependencies": {
"@multiformats/sha3": "^2.0.17",
"multiformats": "^12.0.1"
},
"devDependencies": {
"typescript": "^5.1.6",
"vitest": "^0.33.0"
}
}