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

Commit fa325f1

Browse files
draffenspergermayurkale22
authored andcommitted
Remove mocha type reference in @opencensus/core release code (#254)
* 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
1 parent 3e1a9a0 commit fa325f1

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

packages/opencensus-core/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
"clean": "rimraf build/*",
1212
"check": "gts check",
1313
"compile": "tsc -p .",
14+
"compile:release": "tsc -p tsconfig-release.json",
1415
"fix": "gts fix",
15-
"prepare": "npm run compile",
16+
"prepare": "npm run compile:release",
1617
"pretest": "npm run compile",
1718
"posttest": "npm run check"
1819
},
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"types": []
5+
},
6+
"include": ["src/**/*.ts"]
7+
}

0 commit comments

Comments
 (0)