Skip to content

Commit ef2a554

Browse files
committed
fix: mark ESM distributables as ESM files
fixes #17
1 parent f665809 commit ef2a554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"scripts": {
5050
"build": "yarn build:cjs && yarn build:esm",
5151
"build:cjs": "yarn rrun tsc --outDir cjs --module commonjs --target es2018",
52-
"build:esm": "yarn rrun tsc --outDir esm --module esnext --target es2018",
52+
"build:esm": "yarn rrun tsc --outDir esm --module esnext --target es2018 && echo '{\"name\": \"puppeteer-intercept-and-modify-requests\", \"type\": \"module\"}' > esm/package.json",
5353
"clean": "git clean -dfX --exclude=node_modules src && beemo typescript:sync-project-refs",
5454
"format": "yarn rrun prettier --write \"./{src,tests,.config}/**/!(*.d).{.js,jsx,ts,tsx,json,md}\"",
5555
"postinstallDev": "yarn prepare",

0 commit comments

Comments
 (0)