Update scripts

pull/81/head
MillenniumEarl 2021-03-05 12:24:14 +01:00
parent 3014ce350a
commit 8717afe8f9
1 changed files with 4 additions and 6 deletions

View File

@ -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"