diff --git a/changelog/2026-12-03-scaffold-experimental-version.md b/changelog/2026-12-03-scaffold-experimental-version.md new file mode 100644 index 0000000000..c8ea242cca --- /dev/null +++ b/changelog/2026-12-03-scaffold-experimental-version.md @@ -0,0 +1 @@ +Development: `npm run module:new` scaffolds an Octatrack draft at version `0.1.0-experimental`, the version a first release is listed under. Before, it scaffolded `0.1.0`, and because `module:qualify` binds a test procedure's record to the version it ran under, a draft tested before the rename had to run the procedure again. diff --git a/scripts/module-doctor.test.mjs b/scripts/module-doctor.test.mjs index a5a235a5ca..a481578272 100644 --- a/scripts/module-doctor.test.mjs +++ b/scripts/module-doctor.test.mjs @@ -58,6 +58,8 @@ describe('module doctor', () => { try { const made = spawnSync(process.execPath, ['scripts/scaffold-module.mjs', id, '--kind', kind, '--author', 'example-author'], { cwd: root, encoding: 'utf8', env: { ...process.env, MODWERK_BOARD: 'off' } }) expect(made.status, made.stderr).toBe(0) + // the version it will be listed under, so a test procedure run on the draft binds to it + expect(JSON.parse(readFileSync(join(root, 'sdk/drafts', id, 'octamod.module.json'), 'utf8')).version).toBe('0.1.0-experimental') const result = doctor('--draft', id) expect(result.stdout).toContain('The experimental lines are green') expect(result.status, result.stdout).toBe(0) diff --git a/scripts/scaffold-module.mjs b/scripts/scaffold-module.mjs index a794c573ef..430810e1d6 100644 --- a/scripts/scaffold-module.mjs +++ b/scripts/scaffold-module.mjs @@ -85,6 +85,9 @@ if(!id||!['dsp','coldfire'].includes(kind)||!author)throw new Error('Usage: npm const port=option('--port',null),upstreamFolder=option('--upstream',null) if((port||upstreamFolder)&&(kind!=='dsp'||port!=='airwindows'||!upstreamFolder))throw new Error('Usage: npm run module:new -- my-port --kind dsp --port airwindows --upstream /plugins/LinuxVST/src/ --author github-login') const document=JSON.parse(await readFile(resolve(root,'public/module-repository.example.json'),'utf8')) +// A first release is listed as -experimental, and module:qualify binds a test procedure's record to the version it ran +// under: a draft scaffolded as plain 0.1.0 had to run the procedure again after its rename (Loopbox, 3 December 2026). +document.version='0.1.0-experimental' document.id=id;document.key=id.toUpperCase().replaceAll('-',' ');document.name=id.split('-').map(word=>word[0]?.toUpperCase()+word.slice(1)).join(' ');document.author={github:author,credits:[author]} if(kind==='coldfire'){document.category='playback';document.compatibility.location='Flex / Static';document.compatibility.effectId=null;document.controls=[]} parseModuleDocument(document)