add more explicit support for .mjs and .cjs extensions

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-12-02 22:48:07 +01:00
parent c2da6492fb
commit 25dfc2d483
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(