|
5 | 5 | "main": "index.js", |
6 | 6 | "type": "module", |
7 | 7 | "scripts": { |
| 8 | + "lint": "standard", |
8 | 9 | "build": "npm run build:js && npm run build:types", |
9 | 10 | "build:js": "ipjs build --tests --main && npm run build:copy", |
10 | | - "build:copy": "cp -a tsconfig.json *.js dist/", |
11 | | - "build:types": "npm run build:copy && cd dist && tsc --build", |
12 | | - "publish": "ipjs publish", |
13 | | - "lint": "standard", |
| 11 | + "build:copy": "cp -a tsconfig.json *.js test dist/", |
| 12 | + "build:types": "tsc --build && mv types dist", |
14 | 13 | "test:cjs": "npm run build && mocha dist/cjs/node-test/test-*.js && npm run test:cjs:browser", |
| 14 | + "test:esm": "npm run build && mocha dist/esm/node-test/test-*.js && npm run test:esm:browser", |
15 | 15 | "test:node": "c8 --check-coverage --branches 100 --functions 100 --lines 100 mocha test/test-*.js", |
16 | 16 | "test:cjs:browser": "polendina --cleanup dist/cjs/browser-test/test-*.js", |
17 | | - "test": "npm run lint && npm run test:node && npm run test:cjs", |
| 17 | + "test:esm:browser": "polendina --cleanup dist/esm/browser-test/test-*.js", |
| 18 | + "test": "npm run lint && npm run test:node && npm run test:esm", |
| 19 | + "test:ci": "npm run lint && npm run test:node && npm run test:esm && npm run test:cjs", |
18 | 20 | "coverage": "c8 --reporter=html mocha test/test-*.js && npm_config_yes=true npx st -d coverage -p 8080" |
19 | 21 | }, |
20 | | - "exports": { |
21 | | - "import": "./index.js" |
22 | | - }, |
23 | 22 | "keywords": [ |
24 | | - "IPFS", |
25 | | - "IPLD", |
| 23 | + "ipfs", |
| 24 | + "ipld", |
26 | 25 | "multiformats", |
27 | 26 | "hash", |
28 | 27 | "multihash", |
29 | 28 | "blake2" |
30 | 29 | ], |
31 | 30 | "author": "Mikeal Rogers <mikeal.rogers@gmail.com> (https://www.mikealrogers.com/)", |
32 | 31 | "license": "(Apache-2.0 AND MIT)", |
| 32 | + "exports": { |
| 33 | + "import": "./index.js" |
| 34 | + }, |
33 | 35 | "dependencies": { |
34 | 36 | "js-sha3": "^0.8.0", |
35 | | - "multiformats": "^9.4.1" |
| 37 | + "multiformats": "^9.5.4" |
36 | 38 | }, |
37 | 39 | "devDependencies": { |
38 | | - "@ipld/dag-cbor": "^6.0.5", |
39 | | - "c8": "^7.7.3", |
| 40 | + "@ipld/dag-cbor": "^6.0.15", |
| 41 | + "c8": "^7.10.0", |
40 | 42 | "chai": "^4.3.4", |
41 | | - "ipjs": "^5.0.2", |
42 | | - "mocha": "^9.0.2", |
43 | | - "polendina": "^2.0.0", |
44 | | - "standard": "^16.0.3", |
45 | | - "typescript": "^4.3.5" |
| 43 | + "ipjs": "^5.2.0", |
| 44 | + "mocha": "^9.1.3", |
| 45 | + "polendina": "~2.0.1", |
| 46 | + "standard": "^16.0.4", |
| 47 | + "typescript": "~4.5.3" |
| 48 | + }, |
| 49 | + "standard": { |
| 50 | + "ignore": [ |
| 51 | + "dist" |
| 52 | + ] |
| 53 | + }, |
| 54 | + "directories": { |
| 55 | + "test": "test" |
46 | 56 | }, |
47 | 57 | "repository": { |
48 | 58 | "type": "git", |
49 | | - "url": "git+https://github.com/mikeal/js-sha3.git" |
| 59 | + "url": "git+https://github.com/multiformats/js-sha3.git" |
50 | 60 | }, |
51 | 61 | "bugs": { |
52 | | - "url": "https://github.com/mikeal/js-sha3/issues" |
| 62 | + "url": "https://github.com/multiformats/js-sha3/issues" |
53 | 63 | }, |
54 | | - "homepage": "https://github.com/mikeal/js-sha3#readme", |
| 64 | + "homepage": "https://github.com/multiformats/js-sha3#readme", |
55 | 65 | "typesVersions": { |
56 | 66 | "*": { |
57 | 67 | "*": [ |
|
0 commit comments