Skip to content

Commit

Permalink
Allow build and test to be run from individual packages
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbranch committed Mar 16, 2020
1 parent dff700b commit 90ec7d4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
3 changes: 2 additions & 1 deletion packages/definitions-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion packages/header-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions packages/publisher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 90ec7d4

Please sign in to comment.