Skip to content

Commit 01a332d

Browse files
committed
Remove suffix from standard JS output file
1 parent ca7cdd8 commit 01a332d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"repository": "dgraham/delegated-events",
77
"main": "dist/index.umd.js",
8-
"module": "dist/index.esm.js",
8+
"module": "dist/index.js",
99
"types": "index.d.ts",
1010
"scripts": {
1111
"clean": "rm -rf build dist",
@@ -14,7 +14,7 @@
1414
"lint": "eslint delegated-events.js test",
1515
"bootstrap": "git submodule update --init && npm install",
1616
"prebuild": "npm run clean && npm run flow && npm run ts && npm run lint",
17-
"build": "rollup -c && cp delegated-events.js.flow dist/index.esm.js.flow && cp delegated-events.js.flow dist/index.umd.js.flow",
17+
"build": "rollup -c && cp delegated-events.js.flow dist/index.js.flow && cp delegated-events.js.flow dist/index.umd.js.flow",
1818
"pretest": "npm run clean && npm run flow && npm run ts && npm run lint && rollup -c rollup.config.test.js",
1919
"test": "karma start --single-run --browsers ChromeHeadless karma.conf.js",
2020
"prebrowser": "npm run pretest",

rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
input: 'delegated-events.js',
55
output: [
66
{
7-
file: 'dist/index.esm.js',
7+
file: 'dist/index.js',
88
format: 'es'
99
},
1010
{

0 commit comments

Comments
 (0)