diff --git a/config/exceptions.yaml b/config/exceptions.yaml index db199bd25c3..4dc7bf906ff 100644 --- a/config/exceptions.yaml +++ b/config/exceptions.yaml @@ -24,4 +24,7 @@ packageJson: css-theme: main: dist/theme.css module: '!' + utils: + # react-scripts doesn't handle .mjs files correctly + module: '!' diff --git a/config/scripts.yaml b/config/scripts.yaml index 54a8b702e71..72923876c84 100644 --- a/config/scripts.yaml +++ b/config/scripts.yaml @@ -30,4 +30,8 @@ core: coverage: "BABEL_ENV=production nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov" pattern-info: prebuild: "node src/prebuild.js" +utils: + # react-scripts doesn't handle .mjs files correctly + modulebuild: '!' + build: "npm run clean && npm run nodebuild"