Merge pull request #8349 from backstage/rugvip/cjs

add more explicit support for .mjs and .cjs extensions
This commit is contained in:
Ben Lambert
2021-12-13 13:35:24 +01:00
committed by GitHub
9 changed files with 30 additions and 10 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ async function main() {
const srcDir = resolvePath(rootPath, packageDir, 'src');
if (await fs.pathExists(srcDir)) {
const files = await globby(['**/*.{js,jsx,ts,tsx}'], {
const files = await globby(['**/*.{js,jsx,ts,tsx,mjs,cjs}'], {
cwd: srcDir,
});
fileQueue.push(