added typescript and tried to set root directory
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"pretest": "tsc ts/tests/*Test.ts --module commonjs --outDir ./build/tests",
|
"pretest": "tsc ts/tests/*Test.ts --module commonjs --outDir ./build/tests",
|
||||||
"test": "./node_modules/.bin/mocha ./build/tests/**/*Test.js",
|
"test": "./node_modules/.bin/mocha ./build/tests/**/*Test.js",
|
||||||
"prepublish": "tsc ts/"
|
"prepublish": "tsc --rootDir='/ts'"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -35,6 +35,7 @@
|
|||||||
"homepage": "https://github.com/dolanmiu/docx#readme",
|
"homepage": "https://github.com/dolanmiu/docx#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "^3.5.0",
|
"chai": "^3.5.0",
|
||||||
"mocha": "^2.4.5"
|
"mocha": "^2.4.5",
|
||||||
|
"typescript": "^1.8.10"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user