|
3 | 3 | "description": "For verifying Verifiable Credentials in the browser, Node.js, and React Native.", |
4 | 4 | "version": "1.0.0", |
5 | 5 | "scripts": { |
6 | | - "build-cjs": "tsc -p tsconfig.cjs.json", |
7 | 6 | "build-esm": "tsc -p tsconfig.esm.json", |
8 | 7 | "build-types": "tsc -p tsconfig.types.json", |
9 | 8 | "build-test": "tsc -p tsconfig.test.json", |
10 | | - "build": "npm run clear && npm run build-types && npm run build-cjs && npm run build-esm", |
| 9 | + "build": "npm run clear && npm run build-types && npm run build-esm", |
11 | 10 | "clear": "rimraf dist/*", |
12 | 11 | "lint": "eslint .", |
13 | 12 | "lint:fix": "eslint --fix .", |
|
16 | 15 | "rebuild": "npm run clear && npm run build", |
17 | 16 | "test": "npm run lint && npm run test-node", |
18 | 17 | "test-karma": "karma start karma.conf.cjs", |
19 | | - "test-node-no-cov": "npm run build-test && mocha dist/esm/test/*.spec.js && rimraf dist/esm/test", |
20 | | - "debug-test": "mocha dist/esm/test/Verify.v1.spec.js", |
21 | | - "test-node": "npm run build-test && npx c8 --exclude 'dist/test/**' mocha dist/test/*.spec.js && rm -rf dist/esm/test || true", |
| 18 | + "test-node-no-cov": "npm run build-test && mocha dist/test/*.spec.js && rimraf dist/test", |
| 19 | + "test-node": "npm run build-test && npx c8 --exclude 'dist/test/**' mocha dist/test/*.spec.js && rm -rf dist/test || true", |
22 | 20 | "coveralls": "npm run test; npx c8 --exclude 'dist/test/**' report --reporter=text-lcov > ./coverage/lcov.info" |
23 | 21 | }, |
24 | | - "main": "dist/cjs/index.js", |
25 | | - "module": "dist/esm/index.js", |
26 | 22 | "type": "module", |
27 | | - "browser": "dist/cjs/index.js", |
28 | | - "types": "dist/types/index.d.ts", |
29 | | - "exports": { |
30 | | - ".": { |
31 | | - "require": "./dist/cjs/index.js", |
32 | | - "import": "./dist/esm/index.js", |
33 | | - "types": "./dist/types/index.d.ts" |
34 | | - }, |
35 | | - "./package.json": "./package.json" |
36 | | - }, |
| 23 | + "types": "dist/index.d.ts", |
| 24 | + "exports": "./dist/index.js", |
37 | 25 | "files": [ |
38 | 26 | "dist/**/*.js" |
39 | 27 | ], |
|
55 | 43 | "@types/node": "^18.11.17", |
56 | 44 | "@typescript-eslint/eslint-plugin": "^5.46.1", |
57 | 45 | "@typescript-eslint/parser": "^5.46.1", |
| 46 | + "c8": "^10.1.3", |
58 | 47 | "chai": "^4.3.7", |
59 | 48 | "coveralls": "^3.1.1", |
60 | 49 | "cross-env": "^7.0.3", |
|
0 commit comments