# HG changeset patch # User Laurens Holst # Date 1591729391 -7200 # Tue Jun 09 21:03:11 2020 +0200 # Node ID 13ce6b1804e1a5a05aed99d0fa3f7db4f6ad5f8b # Parent 3d92be5b38944587ab66402323d18b61265d724f tools: Export using shorthand object literals. diff --git a/tools/audio.js b/tools/audio.js --- a/tools/audio.js +++ b/tools/audio.js @@ -168,11 +168,4 @@ } } -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 }; diff --git a/tools/images.js b/tools/images.js --- a/tools/images.js +++ b/tools/images.js @@ -223,9 +223,4 @@ } } -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 }; diff --git a/tools/resources.js b/tools/resources.js --- a/tools/resources.js +++ b/tools/resources.js @@ -126,7 +126,6 @@ } } -exports.Resources = Resources; -exports.ResourcesLoader = ResourcesLoader; +module.exports = { Resources, ResourcesLoader }; main().catch(reason => { throw reason; }); diff --git a/tools/sprites.js b/tools/sprites.js --- a/tools/sprites.js +++ b/tools/sprites.js @@ -128,7 +128,4 @@ } } -exports.Sprite = Sprite; -exports.SpriteFrame = SpriteFrame; -exports.SpritePattern = SpritePattern; -exports.AsepriteSheet = AsepriteSheet; +module.exports = { Sprite, AsepriteSheet }; diff --git a/tools/tilemaps.js b/tools/tilemaps.js --- a/tools/tilemaps.js +++ b/tools/tilemaps.js @@ -173,7 +173,4 @@ } } -exports.TileMap = TileMap; -exports.TileSet = TileSet; -exports.Tile = Tile; -exports.Tmx = Tmx; +module.exports = { TileMap, TileSet, Tile, Tmx }; diff --git a/tools/utils.js b/tools/utils.js --- a/tools/utils.js +++ b/tools/utils.js @@ -31,5 +31,4 @@ } } -exports.checkTypes = checkTypes; -exports.toAsmHex = toAsmHex; +module.exports = { checkTypes, toAsmHex };