-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
86 lines (86 loc) · 3.04 KB
/
Copy pathpackage.json
File metadata and controls
86 lines (86 loc) · 3.04 KB
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
{
"engines": {
"node": ">=18.*"
},
"name": "@guardtime/ksi-js-api",
"version": "2.0.0",
"repository": {
"type": "git",
"url": "git@github.com:guardtime/ksi-js-api.git"
},
"license": "SEE LICENSE IN 'LICENSE'",
"main": "./dist/main.node.cjs",
"browser": "./dist/main.js",
"module": "./lib/common/main.js",
"types": "./lib/common/main.d.ts",
"type": "module",
"exports": {
".": "./dist/main.node.cjs",
"./lib": "./lib/common/main.js",
"./lib/*": "./lib/*"
},
"scripts": {
"clean:lib": "node -e \"try { require('fs').rmSync('./lib', { recursive: true }); } catch(err) { console.log(err); }\"",
"clean:docs": "node -e \"try { require('fs').rmSync('./docs', { recursive: true }); } catch(err) { console.log(err); }\"",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest test/",
"test:ci": "cross-env NODE_OPTIONS=--experimental-vm-modules jest test/ --ci --reporters=default --reporters=jest-junit",
"integration-test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest test-integration/",
"integration-test:ci": "cross-env NODE_OPTIONS=--experimental-vm-modules jest test-integration/ --ci --reporters=default --reporters=jest-junit",
"build:lib": "npm run clean:lib && tsc -t ES6 -d -rootDir ./src",
"build:web": "npm run build:lib && webpack --target web --output-library-name KSI",
"build:node": "npm run build:lib && webpack --output-filename main.node.cjs --target node --output-library-type commonjs2",
"build": "npm run build:lib && npm run build:web && npm run build:node",
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\" \"test-integration/**/*.ts\"",
"lint:fix": "eslint \"src/**/*.ts\" \"test/**/*.ts\" \"test-integration/**/*.ts\" --fix",
"typedoc": "npm run clean:docs && typedoc --out docs/ ./src/common/main.ts"
},
"jest": {
"preset": "ts-jest/presets/default-esm",
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.ts"
],
"testRegex": "(^.*\\.test)\\.(ts)$",
"moduleNameMapper": {
"^(\\.\\.?/.*)\\.js$": "$1"
},
"extensionsToTreatAsEsm": [
".ts"
]
},
"jest-junit": {
"outputDirectory": "./coverage",
"outputName": "junit.xml"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"big-integer": "^1.6.52",
"cross-env": "^7.0.3",
"csv-parse": "^5.5.4",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"ts-jest": "^29.1.2",
"ts-loader": "^9.5.1",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"license-checker-webpack-plugin": "^0.2.1",
"prettier": "^3.2.5",
"typedoc": "^0.25.9",
"typescript": "^5.3.3",
"webpack": "^5.90.3",
"webpack-cli": "^5.1.4",
"@guardtime/common": "2.0.0-rc.cccb0c2"
},
"dependencies": {
"cross-fetch": "^4.0.0",
"uuid": "^9.0.1"
},
"peerDependencies": {
"big-integer": "^1.6.52",
"@guardtime/common": "2.0.0"
}
}