diff --git a/esbuild.js b/esbuild.cjs similarity index 100% rename from esbuild.js rename to esbuild.cjs diff --git a/package.json b/package.json index faf88d8..ef369f7 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "module template", "main": "lib/index.js", "scripts": { - "build": "node ./esbuild.js", + "build": "node ./esbuild.cjs", "prepare": "rm -rf @types && npm run typecheck && npm run build-declarations && npm run build", "test": "mocha", "build-declarations": "tsc --emitDeclarationOnly", @@ -14,6 +14,7 @@ "test-reports": "npm run clean-coverage && nyc --reporter clover mocha --reporter xunit --reporter-option output=.xunit", "coverage-html": "npm run test-reports && nyc report --reporter lcov && xdg-open coverage/lcov-report/index.html" }, + "type": "module", "author": "", "license": "ISC", "devDependencies": {