vscode/npm: moved fastbasic to cc65 pack

This commit is contained in:
Steven Hugg committed 2026-10-05 11:35:54 +02:00
1 parent 66bf8e538a
commit 1c042dff48
2 files changed
+6 -3

No files matched your search

+3 -1
View File
@@ -64,7 +64,9 @@ describe('extension asset packs', function () {
});
it('puts cc65 and SDCC 3.x in their own packs, with the tools that hand off to them', function () {
for (var f of ['src/worker/wasm/cc65.wasm', 'src/worker/wasm/ca65.wasm', 'src/worker/wasm/ld65.wasm', 'src/worker/fs/cc65-fs-nes.zip']) {
for (var f of ['src/worker/wasm/cc65.wasm', 'src/worker/wasm/ca65.wasm', 'src/worker/wasm/ld65.wasm', 'src/worker/fs/cc65-fs-nes.zip',
'src/worker/wasm/fastbasic-int.js', 'src/worker/wasm/fastbasic-int.wasm',
'src/worker/wasm/fastbasic-fp.js', 'src/worker/wasm/fastbasic-fp.wasm']) {
assert.equal(packForFile(f), 'cc65', f);
}
for (var f of ['src/worker/wasm/sdcc.wasm', 'src/worker/wasm/sdasgb.js', 'src/worker/wasm/sdldz80.wasm', 'src/worker/fs/fssdcc.data', 'src/worker/fs/fssdcc.js.metadata']) {
+3 -2
View File
@@ -63,10 +63,11 @@ const EXTRA_FILES_RE = new RegExp('^src/worker/(' + [
'fs/(oscar64-fs|cc2600-fs|cc7800-fs|sdcc-fs)\\.zip',
].join('|') + ')');
// cc65 and SDCC 3.x (SDCC 4.x is in extra) each serve a family of platforms,
// cc65 (with fastbasic, which always assembles with ca65) and SDCC 3.x
// (SDCC 4.x is in extra) each serve a family of platforms,
// so they get their own packs: a NES user never downloads SDCC, nor a Game Boy
// user cc65's 10MB of per-target filesystems.
const CC65_FILES_RE = /^src\/worker\/(wasm\/(cc65|ca65|ld65)\.(js|wasm)|fs\/cc65-fs-[^/]+\.zip)$/;
const CC65_FILES_RE = /^src\/worker\/(wasm\/(cc65|ca65|ld65|fastbasic-int|fastbasic-fp)\.(js|wasm)|fs\/cc65-fs-[^/]+\.zip)$/;
const SDCC_FILES_RE = /^src\/worker\/(wasm\/(sdcc|sdasz80|sdasgb|sdldz80)\.(js|wasm)|fs\/fssdcc\.[^/]+)$/;
/**