diff --git a/package-lock.json b/package-lock.json index 21ccc2d..5e71e0a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "svgtofont": "^6.0.0" }, "bin": { - "gif": "dist/index.cjs" + "gif": "dist/index.mjs" }, "devDependencies": { "@types/fs-extra": "^11.0.4", diff --git a/package.json b/package.json index 8a5c9f8..79fcba7 100644 --- a/package.json +++ b/package.json @@ -9,15 +9,15 @@ }, "license": "Apache-2.0", "bin": { - "@db-ui/gif": "dist/index.cjs" + "@db-ui/gif": "dist/index.mjs" }, - "main": "index.js", + "main": "dist/index.mjs", "files": [ "dist/" ], "scripts": { "build": "npm-run-all -p build:*", - "build:01_icon_fonts_common": "esbuild src/generate-icon-fonts/cli.ts --bundle --outfile=dist/index.cjs --platform=node --packages=external", + "build:01_icon_fonts_common": "esbuild src/generate-icon-fonts/cli.ts --bundle --outfile=dist/index.mjs --platform=node --packages=external --format=esm", "build:02_icon_fonts_styles": "cpr src/generate-icon-fonts/styles dist/styles -o", "build:03_icon_fonts_templates": "cpr src/generate-icon-fonts/templates dist/templates -o", "lint": "eslint src --ext ts",