Workers KV namespace storage weren't supported on single scripts, and a lot of the code between multi and single scripts was duplicated.
This renames the shared/multiscript.js file to shared/allScripts.js, and uses that code in deploy/lib/singlescript.js. Consequentially, single scripts now support Workers KV.
Actually, this breaks route deployment of single scripts due to lack of support in cloudflare-workers-toolkit. My bad. I'll work on fixing this, and then come back with another PR.
Workers KV namespace storage weren't supported on single scripts, and a lot of the code between multi and single scripts was duplicated.
This renames the
shared/multiscript.js
file toshared/allScripts.js
, and uses that code indeploy/lib/singlescript.js
. Consequentially, single scripts now support Workers KV.