Write the translator as npx --no-install cap2ui5 abap2js - #35
Merged
Merged
Conversation
The unscoped npm name cap2ui5 was withdrawn and can be published by anyone. Where the plugin is not installed, a bare `npx cap2ui5 abap2js` downloads and runs whatever npm has under that name. With --no-install, npx runs the project's own @cap2ui5/cds-plugin bin or fails. - Every bare `npx cap2ui5` on the site now reads `npx --no-install cap2ui5`. - The migration page's heading is now "Translate it: `cap2ui5 abap2js`", matching the plugin README. Its anchor and the README anchor it links to changed with it, and the internal links point to the new anchor. - The migration page now installs @abaplint/core before the command and says the command needs @cap2ui5/cds-plugin installed. - AGENTS.md now has this as a rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017qE7GHShC7hMeY88tFr3wj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The
cap2ui5command is a bin of the scoped package@cap2ui5/cds-plugin. The unscoped npm namecap2ui5was withdrawn and can be published by anyone. Where the plugin is not installed, a barenpx cap2ui5 abap2js …downloads and runs whatever npm has under that name. With--no-install, npx runs the project's own@cap2ui5/cds-pluginbin or fails, and never downloads.cap2UI5/cap2UI5 already follows this rule in
plugin/README.mdandAGENTS.md. This PR makes the site match.Changes
npx cap2ui5in the site sources now readsnpx --no-install cap2ui5. That is 11 places across the guide pages and the architecture reference.cap2ui5 abap2js", matching the plugin README's heading.#translate-it-cap2ui5-abap2js, and the 4 internal links point to it.@abaplint/corefirst, as the README does, because the plugin has it only as an optional peer dependency.@cap2ui5/cds-plugininstalled in the project, and that in apackage.jsonscript the command is a plaincap2ui5 abap2js ….AGENTS.md: the two mentions of the command are updated, and a new rule is added. It says to always use--no-installand to leavecds add cap2ui5,package.jsonscripts andnpx -p @cap2ui5/cds-plugin cap2ui5 …as they are.Outside links to the old section anchor
#translate-it-npx-cap2ui5-abap2jswill now land at the top of the page instead of on the section.Checks
npm run check:cipasses, with cap2UI5/cap2UI5 and abap2UI5 checked out:🤖 Generated with Claude Code
https://claude.ai/code/session_017qE7GHShC7hMeY88tFr3wj
Generated by Claude Code