Files
cloud-code/claude-code-source/node_modules/.pnpm/diff@8.0.4/node_modules/diff/CONTRIBUTING.md
janlaywss 6187147b74 reconstruct and build @anthropic-ai/claude-code source from source map
- Extract 4756 source files from cli.js.map (57MB)
- Set up Bun build system with bun:bundle feature flag shim
- Configure 90+ compile-time feature flags matching production defaults
- Inject MACRO constants (VERSION, BUILD_TIME, etc.)
- Create stubs for private packages (color-diff-napi, modifiers-napi, etc.)
- Install all public dependencies via pnpm
- Patch commander v14 to allow multi-char short flags (-d2e)
- Build output: dist/cli.js (22MB), verified working
2026-03-31 19:19:50 +08:00

988 B

Building and testing

yarn
yarn test

To run tests in a browser (for instance to test compatibility with Firefox, with Safari, or with old browser versions), run yarn karma start, then open http://localhost:9876/ in the browser you want to test in. Results of the test run will appear in the terminal where yarn karma start is running.

If you notice any problems, please report them to the GitHub issue tracker at http://github.com/kpdecker/jsdiff/issues.

Releasing

Run a test in Firefox via the procedure above before releasing.

A full release may be completed by first updating the "version" property in package.json, then running the following:

yarn clean
yarn build
yarn npm publish

After releasing, remember to:

  • commit the package.json change and push it to GitHub
  • create a new version tag on GitHub
  • update diff.js on the gh-pages branch to the latest built version from the dist/ folder.