Skip to content

Commit e5d1bf4

Browse files
committed
build: update main field in dist package.json
1 parent 0682baa commit e5d1bf4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

postpack.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ import pkg from './package.json'
77
*/
88
delete pkg.type
99

10+
pkg.main = 'index.js'
11+
1012
fs.writeFileSync('./dist/package.json', JSON.stringify(pkg, null, 2))

0 commit comments

Comments
 (0)