fixes #247: command/build: add the default extension, .js for main entry