Skip to content

Commit

Permalink
fix(scripts): transforms need module.exports, Close #59
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Jan 26, 2018
1 parent be04613 commit d1862a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ if (buildCode === 1) {
process.exit(1);
}

shell.exec(`
echo '\\r\\nmodule.exports = exports["default"];' >> ./packages/umi-test/lib/transformers/jsTransformer.js
`);
shell.exec(`
echo '\\r\\nmodule.exports = exports["default"];' >> ./packages/umi-test/lib/transformers/tsTransformer.js
`);

const cp = fork(
join(process.cwd(), 'node_modules/.bin/lerna'),
['publish', '--skip-npm'].concat(process.argv.slice(2)),
Expand Down

0 comments on commit d1862a8

Please sign in to comment.