mirror of
https://github.com/chenasraf/DefinitelyTyped-tools.git
synced 2026-05-17 17:48:07 +00:00
Allow build and test to be run from individual packages
This commit is contained in:
@@ -5,7 +5,7 @@ module.exports = {
|
||||
testMatch: ["<rootDir>/packages/*/test/**/*.test.ts"],
|
||||
globals: {
|
||||
"ts-jest": {
|
||||
tsConfig: "./tsconfig.test.json",
|
||||
tsConfig: "<rootDir>/tsconfig.test.json",
|
||||
diagnostics: false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
"directory": "packages/definitions-parser"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||
"build": "tsc -b",
|
||||
"test": "../../node_modules/.bin/jest --config ../../jest.config.js packages/definitions-parser"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/DefinitelyTyped/tools/issues"
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
"directory": "packages/header-parser"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
"build": "tsc -b",
|
||||
"test": "../../node_modules/.bin/jest --config ../../jest.config.js packages/header-parser"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/DefinitelyTyped/tools/issues"
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
"@types/yargs": "^8.0.1"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc -b",
|
||||
"test": "../../node_modules/.bin/jest --config ../../jest.config.js packages/publisher",
|
||||
"clean": "node -r source-map-support/register dist/clean.js",
|
||||
"get-definitely-typed": "node -r source-map-support/register dist/get-definitely-typed.js",
|
||||
"parse": "node -r source-map-support/register dist/parse-definitions.js",
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
"directory": "packages/utils"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||
"build": "tsc -b",
|
||||
"test": "../../node_modules/.bin/jest --config ../../jest.config.js packages/utils"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/DefinitelyTyped/tools/issues"
|
||||
|
||||
Reference in New Issue
Block a user