From 3ea904c437c415de5fc567cf192b1f6fc3a9084a Mon Sep 17 00:00:00 2001 From: Yuku Kotani Date: Sun, 16 Aug 2020 19:13:18 +0900 Subject: [PATCH] Ignore ESM bundle on build doc --- scripts/build-docs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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));