opencode
opencode copied to clipboard
refactor: use structuredClone instead of JSON parse/stringify
Replace JSON.parse(JSON.stringify(x)) with structuredClone(x) for deep cloning in publish scripts.
structuredClone is the modern native API for this - cleaner and handles more edge cases correctly.