stop people from patching babylon by building it

This commit is contained in:
Sebastian McKenzie
2015-12-24 03:58:52 +00:00
parent f0fd729883
commit c72ef3755a
6 changed files with 13 additions and 5 deletions

2
scripts/prepublish.js Normal file
View File

@@ -0,0 +1,2 @@
require("./_util").updateMain("index.js");
require("child_process").execSync(__dirname + "/../../../node_modules/.bin/browserify -s babylon -e " + __dirname + "/../lib/index.js -o " + __dirname + "/../index.js", { encoding: "utf8" });