Skip to content

Commit 4fd1522

Browse files
authored
Merge pull request #282 from db-ui/281-running-db-uigif-results-in-an-error
fix: switched from CommonJS to ES Module
2 parents 023382b + 5b844bf commit 4fd1522

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
},
1010
"license": "Apache-2.0",
1111
"bin": {
12-
"@db-ui/gif": "dist/index.js"
12+
"@db-ui/gif": "dist/index.mjs"
1313
},
14-
"main": "index.js",
14+
"main": "dist/index.mjs",
1515
"files": [
1616
"dist/"
1717
],
1818
"scripts": {
1919
"build": "npm-run-all -p build:*",
20-
"build:01_icon_fonts_common": "esbuild src/generate-icon-fonts/cli.ts --bundle --outfile=dist/index.js --platform=node --packages=external",
20+
"build:01_icon_fonts_common": "esbuild src/generate-icon-fonts/cli.ts --bundle --outfile=dist/index.mjs --platform=node --packages=external --format=esm",
2121
"build:02_icon_fonts_styles": "cpr src/generate-icon-fonts/styles dist/styles -o",
2222
"build:03_icon_fonts_templates": "cpr src/generate-icon-fonts/templates dist/templates -o",
2323
"lint": "eslint src --ext ts",

0 commit comments

Comments
 (0)