Update scripts
parent
3014ce350a
commit
8717afe8f9
10
package.json
10
package.json
|
@ -24,13 +24,11 @@
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint . --ext .ts",
|
"lint": "eslint . --ext .ts",
|
||||||
"prettier-format": "prettier --config .prettierrc '{src,tests}/**/*.ts' --write",
|
"prettier-format": "prettier --config .prettierrc '**/*.ts' --write",
|
||||||
"compile": "tsc",
|
"ts:compile": "tsc",
|
||||||
|
"ts:definitions": "tsc --declaration --outDir . --emitDeclarationOnly",
|
||||||
"publish": "npm publish",
|
"publish": "npm publish",
|
||||||
"test": "nyc --reporter=text mocha './test/index-test.ts'",
|
"run-example": "npm run compile && node ./dist/example.js"
|
||||||
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov -t 38ad72bf-a29d-4c2e-9827-96cbe037afd2",
|
|
||||||
"run-example": "npm run compile && node ./dist/example.js",
|
|
||||||
"test-ts": "set TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register 'tests/**/*.ts'"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.0"
|
"node": ">=10.0"
|
||||||
|
|
Loading…
Reference in New Issue