-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
66 lines (66 loc) · 2.61 KB
/
package.json
File metadata and controls
66 lines (66 loc) · 2.61 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
{
"name": "json-rpc3",
"version": "0.2.1",
"description": "Javascript JSON-RPC wrapper",
"main": "dist/esm/index.js",
"type": "module",
"browser": "dist/browser/main.js",
"types": "dist/esm/index.d.ts",
"engines": {
"node": ">=10.0.0",
"npm": ">=5.6.0"
},
"scripts": {
"clean": "rm -rf ./dist",
"build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:browser",
"build:esm": "npx tsc",
"build:cjs": "npx tsc --module commonjs --outDir dist/cjs",
"build:browser": "npx webpack ./dist/esm/index.js --output-path=dist/browser --output-library=JSON_RPC",
"build:watch": "npm run clean && npx tsc -w",
"test": "npm run test-node && npm run test-browser",
"test:only": "npm run test-node:only && npm run test-browser:only",
"test-node": "npm run clean && npm run test-node-esm && npm run test-node-cjs",
"test-node:only": "npm run test-node-esm:only && npm run test-node-cjs:only",
"test-node-esm": "npm run clean && npm run build:esm && npm run test-node-esm:only",
"test-node-esm:only": "mocha -r esm tests/nodejs/esm.js",
"test-node-cjs": "npm run clean && npm run build:cjs && npm run test-node-cjs:only",
"test-node-cjs:only": "mocha -r esm tests/nodejs/cjs.js",
"test-browser": "npm run test-browser-esm && npm run test-browser-bundle",
"test-browser:only": "npm run test-browser-esm:only && npm run test-browser-bundle:only",
"test-browser-esm": "npm run clean && npm run build:esm && npm run test-browser-esm:only",
"test-browser-esm:only": "npx karma start tests/browser/karma.conf.esm.js --single-run",
"test-browser-bundle": "npm run clean && npm run build:esm && npm run build:browser && npm run test-browser-bundle:only",
"test-browser-bundle:only": "npx karma start tests/browser/karma.conf.bundle.js --single-run",
"prepublishOnly": "npm ci && npm run build && npm run test:only"
},
"repository": {
"type": "git",
"url": "git+https://github.com/industral/JSON-RPC.git"
},
"keywords": [
"json-rpc",
"javascript",
"typescript"
],
"author": "Alex Ivasyuv",
"license": "MIT",
"bugs": {
"url": "https://github.com/industral/JSON-RPC/issues"
},
"homepage": "https://github.com/industral/JSON-RPC#readme",
"devDependencies": {
"@types/node": "^12.0.8",
"chai": "^4.2.0",
"esm": "^3.2.25",
"expect": "^24.8.0",
"karma": "^4.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-mocha": "^1.3.0",
"karma-webpack": "^4.0.2",
"mocha": "^6.1.4",
"node-fetch": "^2.6.0",
"typescript": "^3.5.1",
"webpack": "^4.33.0",
"webpack-cli": "^3.3.4"
}
}