From 676c688d463167cbfdf65de1479aa31ab79e5904 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Fri, 1 Dec 2017 15:46:47 +0100 Subject: [PATCH] Fixed compilation: now declarations are manually added --- openvidu-browser/package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openvidu-browser/package.json b/openvidu-browser/package.json index ca4613f5..9d40c397 100644 --- a/openvidu-browser/package.json +++ b/openvidu-browser/package.json @@ -13,10 +13,9 @@ "scripts": { "browserify": "VERSION=${VERSION:-}; cd ts/OpenVidu && browserify Main.ts -p [ tsify ] --exclude kurento-browser-extensions --debug -o ../../static/js/openvidu-browser-$VERSION.js -v", "browserify-prod": "VERSION=${VERSION:-}; cd ts/OpenVidu && browserify --debug Main.ts -p [ tsify ] --exclude kurento-browser-extensions | uglifyjs --source-map content=inline --output ../../static/js/openvidu-browser-$VERSION.min.js", - "updatetsc": "cd ts/OpenViduInternal && tsc && cd ../OpenVidu && tsc", + "updatetsc": "cd ts/OpenViduInternal && tsc && cd ../OpenVidu && tsc && cd ../.. && tsc --declaration ts/OpenVidu/index.ts --outDir lib --sourceMap && tsc --declaration ts/OpenVidu/Main.ts --outDir lib --sourceMap", "test": "echo \"Error: no test specified\" && exit 1", - "prepublish": "cd ts/OpenViduInternal && tsc && cd ../OpenVidu && tsc", - "developing": "cd ts/OpenViduInternal && tsc -w && cd ../OpenVidu && tsc -w" + "prepublish": "cd ts/OpenViduInternal && tsc && cd ../OpenVidu && tsc && cd ../.. && tsc --declaration ts/OpenVidu/index.ts --outDir lib --sourceMap && tsc --declaration ts/OpenVidu/Main.ts --outDir lib --sourceMap" }, "dependencies": { "wolfy87-eventemitter": "4.2.9",