node running, runtime version awareness

This commit is contained in:
2026-02-25 23:24:07 -06:00
parent e89b5991ec
commit 495b81236a
54 changed files with 4308 additions and 246 deletions

View File

@@ -152,12 +152,15 @@ INSERT INTO runtime (
"environment": {
"env_type": "node_modules",
"dir_name": "node_modules",
"create_command": ["npm", "init", "-y"],
"create_command": ["sh", "-c", "mkdir -p {env_dir} && cp {manifest_path} {env_dir}/ 2>/dev/null || true"],
"interpreter_path": null
},
"dependencies": {
"manifest_file": "package.json",
"install_command": ["npm", "install", "--prefix", "{pack_dir}"]
"install_command": ["npm", "install", "--prefix", "{env_dir}"]
},
"env_vars": {
"NODE_PATH": "{env_dir}/node_modules"
}
}'::jsonb
) ON CONFLICT (ref) DO UPDATE SET