M tools/audio.js +1 -8
@@ 168,11 168,4 @@ class VGMLoader {
}
}
-exports.AudioTrack = AudioTrack;
-exports.AudioCommand = AudioCommand;
-exports.AudioCommandPSG = AudioCommandPSG;
-exports.AudioCommandOPLL = AudioCommandOPLL;
-exports.AudioCommandWait = AudioCommandWait;
-exports.AudioCommandLoop = AudioCommandLoop;
-exports.AudioCommandEnd = AudioCommandEnd;
-exports.VGMLoader = VGMLoader;
+module.exports = { AudioTrack, VGMLoader };
M tools/images.js +1 -6
@@ 223,9 223,4 @@ class PNGLoader {
}
}
-exports.Image = Image;
-exports.ImageData = ImageData;
-exports.ImageSlice = ImageSlice;
-exports.Palette = Palette;
-exports.PaletteColor = PaletteColor;
-exports.PNGLoader = PNGLoader;
+module.exports = { Image, ImageData, ImageSlice, Palette, PaletteColor, PNGLoader };
M tools/resources.js +1 -2
@@ 126,7 126,6 @@ class ResourcesLoader {
}
}
-exports.Resources = Resources;
-exports.ResourcesLoader = ResourcesLoader;
+module.exports = { Resources, ResourcesLoader };
main().catch(reason => { throw reason; });
M tools/sprites.js +1 -4
@@ 128,7 128,4 @@ class AsepriteSheet {
}
}
-exports.Sprite = Sprite;
-exports.SpriteFrame = SpriteFrame;
-exports.SpritePattern = SpritePattern;
-exports.AsepriteSheet = AsepriteSheet;
+module.exports = { Sprite, AsepriteSheet };
M tools/tilemaps.js +1 -4
@@ 173,7 173,4 @@ class Tmx {
}
}
-exports.TileMap = TileMap;
-exports.TileSet = TileSet;
-exports.Tile = Tile;
-exports.Tmx = Tmx;
+module.exports = { TileMap, TileSet, Tile, Tmx };
M tools/utils.js +1 -2
@@ 31,5 31,4 @@ function checkTypes(args) {
}
}
-exports.checkTypes = checkTypes;
-exports.toAsmHex = toAsmHex;
+module.exports = { checkTypes, toAsmHex };