Skip to content

Commit

Permalink
πŸ— scrtipt: changelog support windows (ant-design#27232)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 authored Oct 19, 2020
1 parent ab6a4ec commit ff1b5c2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/print-changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,13 @@ async function printLog() {
fs.writeFileSync(path.join(__dirname, 'previewEditor', 'index.html'), html, 'utf8');

// Start preview
const ls = spawn('npx', [
'http-server',
path.join(__dirname, 'previewEditor'),
'-c-1',
'-p',
'2893',
]);
const ls = spawn(
'npx',
['http-server', path.join(__dirname, 'previewEditor'), '-c-1', '-p', '2893'],
{
shell: true,
},
);
ls.stdout.on('data', data => {
console.log(data.toString());
});
Expand Down

0 comments on commit ff1b5c2

Please sign in to comment.