test_14
Push to main / Reset-Version-Tag (push) Successful in 6s

This commit is contained in:
2026-05-18 11:01:00 -06:00
parent 212ecf3cb0
commit 726d111e71
+2 -3
View File
@@ -38,7 +38,7 @@ readdirSync(".")
.forEach(async (moduleFile) => { .forEach(async (moduleFile) => {
const modName = moduleFile.slice(0, -3); const modName = moduleFile.slice(0, -3);
const modInitPath = `${modName}/__init__.mpy`; const modInitPath = `${modName}/__init__.mpy`;
const modPyPath = `${modName}/${modName}.mpy`; const modPyPath = `${modName}.mpy`;
// compile mpy file // compile mpy file
execSync(`pipx run mpy-cross ${moduleFile}`, { execSync(`pipx run mpy-cross ${moduleFile}`, {
@@ -46,12 +46,11 @@ readdirSync(".")
}); });
// Add module files to repo // Add module files to repo
await sendFile(modInitPath, new ArrayBuffer(0));
await sendFile(modPyPath, readFileSync(`${modName}.mpy`).buffer); await sendFile(modPyPath, readFileSync(`${modName}.mpy`).buffer);
// Update urls // Update urls
packageJsonUrls.push([`${libName}/${modInitPath}`, "__init__.mpy"]); packageJsonUrls.push([`${libName}/${modInitPath}`, "__init__.mpy"]);
packageJsonUrls.push([`${libName}/${modPyPath}`, `${modName}.mpy`]); packageJsonUrls.push([`${libName}/${modPyPath}`, modPyPath]);
}); });
// Add package.json to repo // Add package.json to repo