feat(cli): add build script and unify tests (#3369)

This commit is contained in:
oddlama
2023-07-21 20:10:01 +02:00
committed by GitHub
parent 0c07c0ba4e
commit f700f3427b
5 changed files with 23 additions and 15 deletions

View File

@@ -40,10 +40,29 @@
"yaml": "^2.3.1"
},
"scripts": {
"build": "tsc --project tsconfig.build.json",
"lint": "eslint \"src/**/*.ts\" --max-warnings 0",
"prepack": "yarn build ",
"test": "jest",
"test:cov": "jest --coverage",
"format": "prettier --check ."
},
"jest": {
"clearMocks": true,
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": ".",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.ts$": "ts-jest"
},
"collectCoverageFrom": [
"<rootDir>/src/**/*.(t|j)s"
],
"coverageDirectory": "./coverage",
"testEnvironment": "node"
}
}