From 18c3cee69170f53ed14f166c36e9d11e231156c1 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Jun 2016 23:43:22 +0100 Subject: [PATCH] added typescript and tried to set root directory --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f3ebdb0cba..a2410e1d34 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "pretest": "tsc ts/tests/*Test.ts --module commonjs --outDir ./build/tests", "test": "./node_modules/.bin/mocha ./build/tests/**/*Test.js", - "prepublish": "tsc ts/" + "prepublish": "tsc --rootDir='/ts'" }, "repository": { "type": "git", @@ -35,6 +35,7 @@ "homepage": "https://github.com/dolanmiu/docx#readme", "devDependencies": { "chai": "^3.5.0", - "mocha": "^2.4.5" + "mocha": "^2.4.5", + "typescript": "^1.8.10" } }