Skip to content

Commit

Permalink
Ignore ESM bundle on build doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yukukotani committed Aug 16, 2020
1 parent f4a96d4 commit e37d862
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/build-docs.js
Expand Up @@ -35,9 +35,11 @@ if (isPullRequest) {
}

shell.cp(`${prettierPath}/standalone.js`, `${docs}/`);
shell.cp(`${prettierPath}/parser-*.js`, `${docs}/`);
shell.cp(`${prettierPath}/parser-!(*.module).js`, `${docs}/`);

const parserModules = globby.sync(["parser-*.js"], { cwd: prettierPath });
const parserModules = globby.sync(["parser-!(*.module).js"], {
cwd: prettierPath,
});
const parsers = {};
for (const file of parserModules) {
const plugin = require(path.join(prettierPath, file));
Expand Down

0 comments on commit e37d862

Please sign in to comment.