From c55b4e910c7bc16882d7f79e6dc1f80edfb46259 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Sun, 6 Oct 2024 17:51:21 +0200 Subject: [PATCH] Update to ESM --- esbuild.js => esbuild.cjs | 0 package.json | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) rename esbuild.js => esbuild.cjs (100%) 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": {