Skip to content

Commit a380974

Browse files
keithamuskoddsson
andcommitted
bundle as separate file allowing module to be modular
Co-authored-by: Kristján Oddsson <[email protected]>
1 parent be8824e commit a380974

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@github/time-elements",
33
"version": "3.1.2",
4-
"main": "dist/index.js",
4+
"main": "dist/bundle.js",
55
"type": "module",
66
"module": "dist/index.js",
77
"types": "dist/index.d.ts",
@@ -14,7 +14,7 @@
1414
"lint": "eslint . --ext .js,.ts && tsc --noEmit",
1515
"lint:fix": "npm run lint -- --fix",
1616
"prebuild": "npm run clean && npm run lint && mkdir dist",
17-
"bundle": "esbuild --bundle dist/index.js --keep-names --outfile=dist/index.js --allow-overwrite --format=esm",
17+
"bundle": "esbuild --bundle dist/index.js --keep-names --outfile=dist/bundle.js --format=esm",
1818
"build": "tsc && npm run bundle",
1919
"prepublishOnly": "npm run build",
2020
"pretest": "npm run build",

0 commit comments

Comments
 (0)