Skip to content

Commit a7394ef

Browse files
committed
chore(validate): skip executable-bit checks; invoke scripts via node in CI
1 parent edf620c commit a7394ef

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

scripts/validate.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,8 @@ async function validateBuildSystem() {
135135

136136
// Check if scripts are executable (not applicable in Windows)
137137
if (process.platform !== 'win32') {
138-
await check('build script is executable', async () => {
139-
const stat = await fs.stat(path.join(scriptsDir, 'build.js'));
140-
return (stat.mode & 0o111) !== 0;
141-
});
142-
143-
await check('dev server script is executable', async () => {
144-
const stat = await fs.stat(path.join(scriptsDir, 'dev-server.js'));
145-
return (stat.mode & 0o111) !== 0;
146-
});
138+
// Executable bit is optional because scripts are invoked via `node <script>.js` in CI
139+
log.info('Skipping executable bit checks for scripts on non-Windows (invoked via node).');
147140
}
148141

149142
// Check configuration files

0 commit comments

Comments
 (0)