forked from coder/node-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
39 lines (39 loc) · 1.36 KB
/
package.json
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
{
"name": "@coder/node-browser",
"version": "1.0.6",
"license": "MIT",
"author": "Coder",
"description": "Use Node APIs in the browser.",
"scripts": {
"test": "mocha -r ts-node/register -r amd-loader ./test/*.test.ts",
"lint": "eslint {src,test}/**/*.ts",
"prepare": "sed -i 's/var __/let __/g' ./node_modules/tslib/tslib.js",
"prepublishOnly": "rm -rf ./out && yarn build:client && yarn build:server",
"build:client": "tsc --project ./tsconfig.client.json && browserify ./out/client/client.js -s node-browser -o ./out/client.js && rm ./out/client/*.js && mv ./out/client.js ./out/client/client.js && rm -r ./out/common",
"build:server": "tsc --project ./tsconfig.server.json"
},
"devDependencies": {
"@coder/logger": "^1.1.11",
"@types/mocha": "2.2.39",
"@types/node": "^10.12.12",
"@types/rimraf": "^2.0.2",
"@typescript-eslint/eslint-plugin": "^2.0.0",
"@typescript-eslint/parser": "^2.0.0",
"amd-loader": "^0.0.8",
"browserify": "^16.5.0",
"eslint": "^6.2.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-prettier": "^3.1.0",
"leaked-handles": "^5.2.0",
"mocha": "^6.2.0",
"prettier": "^1.18.2",
"rimraf": "^3.0.0",
"ts-node": "^8.3.0",
"tslib": "^1.10.0",
"typescript": "~3.5.0"
},
"resolutions": {
"util": "^0.12.1"
}
}