From 726d111e71fc4d5217f4fe948be5621e30c09ec2 Mon Sep 17 00:00:00 2001 From: Bryce Thorup Date: Mon, 18 May 2026 11:01:00 -0600 Subject: [PATCH] test_14 --- action.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/action.js b/action.js index 501df65..1cd34aa 100644 --- a/action.js +++ b/action.js @@ -38,7 +38,7 @@ readdirSync(".") .forEach(async (moduleFile) => { const modName = moduleFile.slice(0, -3); const modInitPath = `${modName}/__init__.mpy`; - const modPyPath = `${modName}/${modName}.mpy`; + const modPyPath = `${modName}.mpy`; // compile mpy file execSync(`pipx run mpy-cross ${moduleFile}`, { @@ -46,12 +46,11 @@ readdirSync(".") }); // Add module files to repo - await sendFile(modInitPath, new ArrayBuffer(0)); await sendFile(modPyPath, readFileSync(`${modName}.mpy`).buffer); // Update urls packageJsonUrls.push([`${libName}/${modInitPath}`, "__init__.mpy"]); - packageJsonUrls.push([`${libName}/${modPyPath}`, `${modName}.mpy`]); + packageJsonUrls.push([`${libName}/${modPyPath}`, modPyPath]); }); // Add package.json to repo