Skip to content
This repository was archived by the owner on Nov 6, 2019. It is now read-only.

Commit b4ef7a6

Browse files
committed
Reuse project package.json in tests
1 parent 8ccb3c6 commit b4ef7a6

File tree

3 files changed

+7
-21
lines changed

3 files changed

+7
-21
lines changed

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ node {
2222
}
2323

2424
task addTestPackageJson(type: Copy) {
25-
from "${projectDir}/test/config/package.test.json"
25+
from "${projectDir}/package.json"
2626
into testDistribPath
27-
rename "package.test.json", "package.json"
2827
}
2928

3029
task installTestNpmDependencies(type: NpmTask) {

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
"files": [
99
"build/distrib/**/*.js"
1010
],
11-
"scripts": {
12-
"prepublish": "gradle clean build"
13-
},
1411
"repository": {
1512
"type": "git",
1613
"url": "git+https://[email protected]/Kotlin/ts2kt.git"
@@ -32,6 +29,12 @@
3229
"kotlin": "^1.3.0",
3330
"typescript": "2.6.2"
3431
},
32+
"devDependencies": {
33+
"chai": "4.2.0",
34+
"mocha": "5.2.0",
35+
"mocha-simple-html-reporter": "1.1.0",
36+
"mocha-teamcity-reporter": "2.5.1"
37+
},
3538
"main": "./build/distrib/ts2kt.js",
3639
"bin": {
3740
"ts2kt": "./build/distrib/ts2kt.js"

test/config/package.test.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)