diff --git a/install.js b/install.js new file mode 100644 index 0000000..85dfab7 --- /dev/null +++ b/install.js @@ -0,0 +1,3 @@ +var fs = require('fs.extra'); + +fs.copyRecursive('./build', './', function(err) {}); diff --git a/package.json b/package.json index f9c7ca0..5d169b9 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "license": "MIT", "scripts": { "start": "./build.sh", - "install": "mv ./build/* ./" + "install": "node install.js" }, "dependencies": { "ejson": ">=2.1.2" @@ -32,6 +32,7 @@ "ts-loader": "^0.8.0", "typescript": "^1.7.5", "webpack": "^1.12.12", - "typings": "^0.7.7" + "typings": "^0.7.7", + "fs.extra": "^1.3.2" } }