mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 07:10:46 -05:00
Fix bugs in build scripts
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/*********************************************************
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user