Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Commit 2a6ee36

Browse files
committed
Update package.json with new typescript configs
Signed-off-by: Sina Mahmoodi <[email protected]>
1 parent bbe6bd4 commit 2a6ee36

File tree

1 file changed

+25
-18
lines changed

1 file changed

+25
-18
lines changed

package.json

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,26 @@
33
"version": "6.0.0",
44
"description": "a collection of utility functions for Ethereum",
55
"main": "dist/index.js",
6+
"types": "./dist/index.d.ts",
67
"files": [
78
"dist"
89
],
910
"scripts": {
10-
"coverage": "npm run build:dist && istanbul cover _mocha",
11+
"build": "ethereumjs-config-build",
12+
"prepublishOnly": "npm run test && npm run build",
13+
"coverage": "npm run build && istanbul cover _mocha",
1114
"coveralls": "npm run coverage && coveralls <coverage/lcov.info",
12-
"lint": "standard",
13-
"prepublishOnly": "npm run test && npm run build:dist",
15+
"docs:build": "typedoc --out docs --mode file --readme none --theme markdown --mdEngine github --excludeNotExported src",
16+
"format": "ethereumjs-config-format",
17+
"format:fix": "ethereumjs-config-format-fix",
18+
"lint": "ethereumjs-config-lint",
19+
"lint:fix": "ethereumjs-config-lint-fix",
1420
"test": "npm run lint && npm run test:node && npm run test:browser",
15-
"test:browser": "npm run build:dist && karma start karma.conf.js",
16-
"test:node": "npm run build:dist && istanbul test mocha -- --reporter spec",
17-
"build:dist": "babel index.js --source-root ./ -d ./dist",
18-
"build:docs": "documentation build ./index.js --github --sort-order='alpha' -f md > ./docs/index.md"
21+
"test:browser": "npm run build && karma start karma.conf.js",
22+
"test:node": "npm run build && istanbul test mocha -- --reporter spec",
23+
"tsc": "ethereumjs-config-tsc",
24+
"tslint": "ethereumjs-config-tslint",
25+
"tslint:fix": "ethereumjs-config-tslint-fix"
1926
},
2027
"repository": {
2128
"type": "git",
@@ -85,13 +92,17 @@
8592
"secp256k1": "^3.0.1"
8693
},
8794
"devDependencies": {
95+
"@ethereumjs/config-prettier": "^1.1.0",
96+
"@ethereumjs/config-tsc": "^1.1.0",
97+
"@ethereumjs/config-tslint": "^1.1.0",
98+
"@types/bn.js": "^4.11.3",
99+
"@types/node": "^10.12.18",
88100
"babel-cli": "^6.26.0",
89101
"babel-preset-env": "^1.6.1",
90102
"babelify": "^8.0.0",
91103
"browserify": "^14.0.0",
92104
"contributor": "^0.1.25",
93105
"coveralls": "^3.0.0",
94-
"documentation": "^5.2.0",
95106
"istanbul": "^0.4.1",
96107
"karma": "^2.0.0",
97108
"karma-browserify": "^5.0.0",
@@ -101,15 +112,11 @@
101112
"karma-firefox-launcher": "^1.0.0",
102113
"karma-mocha": "^1.3.0",
103114
"mocha": "^4.0.0",
104-
"standard": "^10.0.0"
105-
},
106-
"standard": {
107-
"globals": [
108-
"describe",
109-
"it"
110-
],
111-
"ignore": [
112-
"dist/**"
113-
]
115+
"prettier": "^1.15.3",
116+
"tslint": "^5.12.0",
117+
"typedoc": "^0.14.0",
118+
"typedoc-plugin-markdown": "^1.1.21",
119+
"typescript": "^3.2.2",
120+
"typestrict": "^1.0.2"
114121
}
115122
}

0 commit comments

Comments
 (0)