From 43fd00f0cf92055b2c97bdce7f217c1ed69aec3d Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Sat, 5 Mar 2016 06:01:11 -0500 Subject: [PATCH] Fix bugs in build scripts --- githooks/build-indexes | 2 +- githooks/update | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/githooks/build-indexes b/githooks/build-indexes index 6b2bf034f..bca51daf5 100755 --- a/githooks/build-indexes +++ b/githooks/build-indexes @@ -567,7 +567,7 @@ process.stdout.write("Building `data/moves,items,abilities,typechart,learnsets.j { const Movedex = requireNoCache('../data/Pokemon-Showdown/data/moves.js').BattleMovedex; var buf = 'exports.BattleMovedex = ' + es3stringify(Movedex) + ';'; - fs.writeFileSync(path.resolve(dataDir, 'search-index.js'), buf); + fs.writeFileSync(path.resolve(dataDir, 'moves.js'), buf); } /********************************************************* diff --git a/githooks/update b/githooks/update index fc212b2a7..fc40a74cb 100755 --- a/githooks/update +++ b/githooks/update @@ -102,6 +102,8 @@ function updateLearnsets (callback) { const Pokedex = Tools.data.Pokedex; const Learnsets = Tools.data.Learnsets; + var newLearnsetsG6 = {}; + var oldLearnsetsG6; try { oldLearnsetsG6 = require(path.join(rootDir, 'data', 'learnsets-g6.js')).BattleLearnsets;