Codefend 3 migration guide
Back up your existing
.codefendrc.jsonand commit your original source before upgrading.Install Codefend 3 as a local development dependency:
bashnpm install --save-dev codefend@3Move the old configuration aside before generating a fresh one.
--initoverwrites an existing file:bashnpx codefend --initMerge your source layout, transformations, and custom parser settings into the new configuration using the reference. Keep a dedicated disposable output separate from input.
Use
parser.name: "custom"for a customregexList. Replace the deprecatedParser_Aalias withdefaultwhen retaining the built-in combined rules.Check the configuration and inspect the printed diagnostics:
bashnpx codefend --checkGenerate output, then build and test that generated program:
bashnpx codefend --obfuscate
Codefend requires Node.js 18.0.0 or newer. Review troubleshooting for current path, binary, replacement, and pool limitations before migrating a larger project.