|
1 | 1 | {
|
2 |
| - "name": "libp2p-record", |
| 2 | + "name": "@libp2p/record", |
3 | 3 | "version": "0.10.6",
|
4 | 4 | "description": "libp2p record implementation",
|
5 |
| - "leadMaintainer": "Vasco Santos <[email protected]>", |
6 |
| - "main": "src/index.js", |
7 |
| - "scripts": { |
8 |
| - "test": "aegir test", |
9 |
| - "lint": "aegir lint", |
10 |
| - "test:node": "aegir test -t node", |
11 |
| - "test:browser": "aegir test -t browser -t webworker", |
12 |
| - "prepare": "npm run build", |
13 |
| - "build": "run-s build:*", |
14 |
| - "build:types": "aegir build --no-bundle", |
15 |
| - "build:proto": "pbjs -t static-module -w commonjs -r libp2p-record --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o src/record/record.js ./src/record/record.proto", |
16 |
| - "build:proto-types": "pbts -o src/record/record.d.ts src/record/record.js", |
17 |
| - "docs": "aegir docs", |
18 |
| - "release": "aegir release", |
19 |
| - "release-minor": "aegir release --type minor", |
20 |
| - "release-major": "aegir release --type major", |
21 |
| - "coverage": "aegir coverage" |
22 |
| - }, |
| 5 | + "author": "Friedel Ziegelmayer <[email protected]>", |
| 6 | + "license": "Apache-2.0 OR MIT", |
| 7 | + "homepage": "https://github.com/libp2p/js-libp2p-record#readme", |
23 | 8 | "repository": {
|
24 | 9 | "type": "git",
|
25 |
| - "url": "https://github.com/libp2p/js-libp2p-record.git" |
| 10 | + "url": "git+https://github.com/libp2p/js-libp2p-record.git" |
| 11 | + }, |
| 12 | + "bugs": { |
| 13 | + "url": "https://github.com/libp2p/js-libp2p-record/issues" |
26 | 14 | },
|
27 | 15 | "keywords": [
|
28 | 16 | "IPFS"
|
29 | 17 | ],
|
30 | 18 | "engines": {
|
31 |
| - "node": ">=14.0.0" |
| 19 | + "node": ">=16.0.0", |
| 20 | + "npm": ">=7.0.0" |
32 | 21 | },
|
33 |
| - "pre-push": [ |
34 |
| - "lint" |
35 |
| - ], |
36 |
| - "author": "Friedel Ziegelmayer <[email protected]>", |
37 |
| - "license": "MIT", |
38 |
| - "bugs": { |
39 |
| - "url": "https://github.com/libp2p/js-libp2p-record/issues" |
| 22 | + "type": "module", |
| 23 | + "types": "./dist/src/index.d.ts", |
| 24 | + "typesVersions": { |
| 25 | + "*": { |
| 26 | + "*": [ |
| 27 | + "*", |
| 28 | + "dist/*", |
| 29 | + "dist/src/*", |
| 30 | + "dist/src/*/index" |
| 31 | + ], |
| 32 | + "src/*": [ |
| 33 | + "*", |
| 34 | + "dist/*", |
| 35 | + "dist/src/*", |
| 36 | + "dist/src/*/index" |
| 37 | + ] |
| 38 | + } |
40 | 39 | },
|
41 |
| - "homepage": "https://github.com/libp2p/js-libp2p-record", |
42 | 40 | "files": [
|
43 | 41 | "src",
|
44 |
| - "dist" |
| 42 | + "dist/src", |
| 43 | + "!dist/test", |
| 44 | + "!**/*.tsbuildinfo" |
45 | 45 | ],
|
| 46 | + "exports": { |
| 47 | + ".": { |
| 48 | + "import": "./dist/src/index.js" |
| 49 | + }, |
| 50 | + "./selectors": { |
| 51 | + "import": "./dist/src/selectors.js" |
| 52 | + }, |
| 53 | + "./validators": { |
| 54 | + "import": "./dist/src/validators.js" |
| 55 | + } |
| 56 | + }, |
46 | 57 | "eslintConfig": {
|
47 | 58 | "extends": "ipfs",
|
| 59 | + "parserOptions": { |
| 60 | + "sourceType": "module" |
| 61 | + }, |
48 | 62 | "ignorePatterns": [
|
49 |
| - "src/record/record.d.ts" |
| 63 | + "src/record.d.ts" |
50 | 64 | ]
|
51 | 65 | },
|
52 |
| - "types": "dist/src/index.d.ts", |
53 |
| - "devDependencies": { |
54 |
| - "aegir": "^35.0.1", |
55 |
| - "libp2p-crypto": "^0.19.6", |
56 |
| - "libp2p-interfaces": "^1.0.1", |
57 |
| - "npm-run-all": "^4.1.5", |
58 |
| - "peer-id": "^0.15.2", |
59 |
| - "util": "^0.12.4" |
| 66 | + "release": { |
| 67 | + "branches": [ |
| 68 | + "master" |
| 69 | + ], |
| 70 | + "plugins": [ |
| 71 | + [ |
| 72 | + "@semantic-release/commit-analyzer", |
| 73 | + { |
| 74 | + "preset": "conventionalcommits", |
| 75 | + "releaseRules": [ |
| 76 | + { |
| 77 | + "breaking": true, |
| 78 | + "release": "major" |
| 79 | + }, |
| 80 | + { |
| 81 | + "revert": true, |
| 82 | + "release": "patch" |
| 83 | + }, |
| 84 | + { |
| 85 | + "type": "feat", |
| 86 | + "release": "minor" |
| 87 | + }, |
| 88 | + { |
| 89 | + "type": "fix", |
| 90 | + "release": "patch" |
| 91 | + }, |
| 92 | + { |
| 93 | + "type": "chore", |
| 94 | + "release": "patch" |
| 95 | + }, |
| 96 | + { |
| 97 | + "type": "docs", |
| 98 | + "release": "patch" |
| 99 | + }, |
| 100 | + { |
| 101 | + "type": "test", |
| 102 | + "release": "patch" |
| 103 | + }, |
| 104 | + { |
| 105 | + "scope": "no-release", |
| 106 | + "release": false |
| 107 | + } |
| 108 | + ] |
| 109 | + } |
| 110 | + ], |
| 111 | + [ |
| 112 | + "@semantic-release/release-notes-generator", |
| 113 | + { |
| 114 | + "preset": "conventionalcommits", |
| 115 | + "presetConfig": { |
| 116 | + "types": [ |
| 117 | + { |
| 118 | + "type": "feat", |
| 119 | + "section": "Features" |
| 120 | + }, |
| 121 | + { |
| 122 | + "type": "fix", |
| 123 | + "section": "Bug Fixes" |
| 124 | + }, |
| 125 | + { |
| 126 | + "type": "chore", |
| 127 | + "section": "Trivial Changes" |
| 128 | + }, |
| 129 | + { |
| 130 | + "type": "docs", |
| 131 | + "section": "Trivial Changes" |
| 132 | + }, |
| 133 | + { |
| 134 | + "type": "test", |
| 135 | + "section": "Tests" |
| 136 | + } |
| 137 | + ] |
| 138 | + } |
| 139 | + } |
| 140 | + ], |
| 141 | + "@semantic-release/changelog", |
| 142 | + "@semantic-release/npm", |
| 143 | + "@semantic-release/github", |
| 144 | + "@semantic-release/git" |
| 145 | + ] |
| 146 | + }, |
| 147 | + "scripts": { |
| 148 | + "lint": "aegir lint", |
| 149 | + "pretest": "npm run build", |
| 150 | + "test": "aegir test -f ./dist/test", |
| 151 | + "test:node": "npm run test -- -t node", |
| 152 | + "test:chrome": "npm run test -- -t browser", |
| 153 | + "test:chrome-webworker": "npm run test -- -t webworker", |
| 154 | + "test:firefox": "npm run test -- -t browser -- --browser firefox", |
| 155 | + "test:firefox-webworker": "npm run test -- -t webworker -- --browser firefox", |
| 156 | + "build": "tsc", |
| 157 | + "postbuild": "npm run build:copy-proto-files", |
| 158 | + "generate:proto": "pbjs -t static-module -w es6 -r libp2p-record --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o src/record/record.js ./src/record/record.proto", |
| 159 | + "generate:proto-types": "pbts -o src/record/record.d.ts src/record/record.js", |
| 160 | + "build:copy-proto-files": "cp src/record* dist/src", |
| 161 | + "release": "semantic-release" |
60 | 162 | },
|
61 | 163 | "dependencies": {
|
62 | 164 | "err-code": "^3.0.1",
|
63 | 165 | "multiformats": "^9.4.5",
|
64 | 166 | "protobufjs": "^6.11.2",
|
65 | 167 | "uint8arrays": "^3.0.0"
|
66 | 168 | },
|
67 |
| - "contributors": [ |
68 |
| - "Vasco Santos <[email protected]>", |
69 |
| - |
70 |
| - "Alex Potsides <[email protected]>", |
71 |
| - |
72 |
| - |
73 |
| - "Friedel Ziegelmayer <[email protected]>", |
74 |
| - "ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ <[email protected]>", |
75 |
| - "Matt Joiner <[email protected]>", |
76 |
| - |
77 |
| - |
78 |
| - ] |
| 169 | + "devDependencies": { |
| 170 | + "@libp2p/crypto": "^0.22.7", |
| 171 | + "@libp2p/interfaces": "^1.3.3", |
| 172 | + "aegir": "^36.1.3" |
| 173 | + } |
79 | 174 | }
|
0 commit comments