Drop the cds add warning: 0.3.1 writes the project's module format - #32
Merged
Merged
Conversation
@cap2ui5/cds-plugin 0.3.1 (cap2UI5/cap2UI5#92, #93) makes `cds add cap2ui5` write its first app with import in an ES module project and with require otherwise. The quickstart and the project-structure page told readers to rename the file or rewrite its first line; that is no longer needed. The pages that name the current release say 0.3.1, and the deployment page's dependency asks for ^0.3.1, the first version with the fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NwpbkojNzGmuJrFdbwo5JF
oblomov-dev
marked this pull request as ready for review
September 29, 2026 11:46
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.
Merge only once
@cap2ui5/cds-plugin@0.3.1is on npm (cap2UI5/cap2UI5#93, then thev0.3.1tag). Until then the warning is still true for whatnpm addinstalls.What changes
cds add cap2ui5writesrequire(rename the file to.cjsor rewrite its first line) is removed. Since 0.3.1 (cds add cap2ui5: write the first app in the project's module format cap2UI5#92), the file is written withimportorrequire, whichever module format the project'spackage.jsondeclares."@cap2ui5/cds-plugin": "^0.3.1", the first version with the fix.npx cap2ui5 abap2js" (history), and the samples'peerDependenciesexample (^0.3.0, which is what@cap2ui5/samplesdeclares).Checks
npm run checkagainst the release branch (plugin 0.3.1) and abap2UI5 main: verify-refs OK, build OK.🤖 Generated with Claude Code
https://claude.ai/code/session_01NwpbkojNzGmuJrFdbwo5JF
Generated by Claude Code