Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Remove mocha type reference in @opencensus/core release code (#254)
Browse files Browse the repository at this point in the history
* Remove mocha type reference in production @opencensus/core code

* Make primary tsconfig include tests so IDEs get types

* Make default `compile` target still work

* Undo changes to main tsconfig.json
  • Loading branch information
draffensperger authored and mayurkale22 committed Jan 8, 2019
1 parent 3e1a9a0 commit fa325f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/opencensus-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"clean": "rimraf build/*",
"check": "gts check",
"compile": "tsc -p .",
"compile:release": "tsc -p tsconfig-release.json",
"fix": "gts fix",
"prepare": "npm run compile",
"prepare": "npm run compile:release",
"pretest": "npm run compile",
"posttest": "npm run check"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/opencensus-core/tsconfig-release.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": []
},
"include": ["src/**/*.ts"]
}

0 comments on commit fa325f1

Please sign in to comment.