Warn on constant locals not being actual constants; Simplify changetype

This commit is contained in:
dcodeIO
2017-12-28 17:16:37 +01:00
parent 2f12c7fa50
commit 4207f6460d
14 changed files with 90 additions and 74 deletions

16
scripts/clean.js Normal file
View File

@ -0,0 +1,16 @@
var fs = require("fs");
var glob = require("glob");
glob("*", { cwd: __dirname + "/../dist" }, (err, matches) => {
if (err)
console.log("Failed to list files in 'dist/': " + err.message);
else
matches.forEach(match => {
fs.unlink(__dirname + "/../dist/" + match, err => {
if (err)
console.log("Failed to delete 'dist/" + match + "': " + err.message);
else
console.log("Deleted 'dist/" + match + "'");
});
});
});