Skip to content

Commit

Permalink
fix: try avoid nodejs 13.0.0 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers authored Apr 12, 2020
1 parent 9b4f8e3 commit b8fa903
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions process-dir.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ async function replacePackage (dir, file, files) {
if (i !== 'index.js') path += '/' + dirname(i).replace(/\\/g, '/')
pkg.exports[path + '/package.json'] = path + '/package.json'
pkg.exports[path] = {
[path]: path + '/index.cjs',
require: path + '/index.cjs',
import: path + '/index.js'
}
Expand Down

0 comments on commit b8fa903

Please sign in to comment.