- "build": "npm install",
- "test": "standard && nyc mocha --experimental-worker --exit --timeout 10000 tests/*test.js ",
- "demontest": "nodemon --exec \"npm test\"",
- "coverage": "nyc report --reporter=text-lcov --timeout 5000 **/*test.js | coveralls",
- "standard-verbose": "npx standard --verbose",
- "lint": "standard --fix"
+ "build": "npm run build:clean && tsc",
+ "build:clean": "rimraf lib",
+ "test": "standard && ts-standard && npm run build && nyc mocha --exit --timeout 20000 tests/*test.js ",
+ "test:debug": "mocha --inspect-brk --exit tests/*test.js ",
+ "coverage": "nyc report --reporter=text-lcov | coveralls",
+ "import-sort": "npx import-sort-cli --write 'src/**/*.ts{,x}'",
+ "standard:verbose": "npx standard --verbose",
+ "lint:standard": "prettier-standard --format | standard --fix",
+ "ts-standard:verbose": "npx ts-standard --verbose",
+ "lint:ts-standard": "ts-standard --fix",
+ "lint-and-format": "npm run lint:standard && npm run lint:ts-standard && npm run import-sort"