diff --git a/scripts/build-docs.js b/scripts/build-docs.js index a9b6b89242f3..7cbbf469ce5e 100644 --- a/scripts/build-docs.js +++ b/scripts/build-docs.js @@ -35,9 +35,9 @@ 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));