diff --git a/package.json b/package.json index f346fd7..6965337 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,10 @@ "bin": { "peerjs": "./bin/peerjs" }, + "files": [ + "bin/", + "dist/" + ], "repository": { "type": "git", "url": "git://github.com/peers/peerjs-server.git" @@ -13,6 +17,7 @@ "author": "Michelle Bu, Eric Zhang", "license": "MIT", "scripts": { + "preversion": "npm run clean && npm run build", "build": "tsc", "clean": "rimraf ./dist", "lint": "eslint --ext .js,.ts .",