We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.mjs
.cjs
compas run
1 parent e65689b commit 9632d80Copy full SHA for 9632d80
packages/cli/src/utils.js
@@ -25,7 +25,11 @@ export function collectScripts() {
25
const userDir = pathJoin(process.cwd(), "scripts");
26
if (existsSync(userDir)) {
27
for (const item of readdirSync(userDir)) {
28
- if (!item.endsWith(".js")) {
+ if (
29
+ !item.endsWith(".js") &&
30
+ !item.endsWith(".mjs") &&
31
+ !item.endsWith(".cjs")
32
+ ) {
33
continue;
34
}
35
0 commit comments