Skip to content

CEXT-6074: Fix issues surfaced during test implementation#403

Open
iivvaannxx wants to merge 1 commit intomainfrom
CEXT-5711-commands-source-app
Open

CEXT-6074: Fix issues surfaced during test implementation#403
iivvaannxx wants to merge 1 commit intomainfrom
CEXT-5711-commands-source-app

Conversation

@iivvaannxx
Copy link
Copy Markdown
Collaborator

@iivvaannxx iivvaannxx commented Apr 20, 2026

Description

Source code changes of issues/code organization made during #373.

Summary

Refactors aio-commerce-lib-app and aio-commerce-lib-config CLI commands to make them testable:

  • cwd passed as an explicit parameter (no more process.cwd() reliance in the core logic),
  • path helpers extracted
  • Prettier formatting skipped under VITEST to avoid its cold-start cost.

Changes

  • lib-app: split init into run(options?) + exec(), consistent error handling across generate / hooks commands, path helpers in commands/utils.ts, generator extracted from generate/actions/main.ts into lib.ts.
  • lib-config: encryption setup now creates the target .env file if missing instead of failing.
  • scripting-utils (private): new touch helper.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 20, 2026

🦋 Changeset detected

Latest commit: 0372861

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@adobe/aio-commerce-lib-config Patch
@adobe/aio-commerce-lib-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added without-changeset The PR does not contain a Changeset file pkg: aio-commerce-lib-config Includes changes in `packages/aio-commerce-lib-config` pkg: aio-commerce-lib-app Includes changes in `packages/aio-commerce-lib-app` private-pkg: scripting-utils Includes changes to `packages-private/scripting-utils` labels Apr 20, 2026
@iivvaannxx iivvaannxx force-pushed the CEXT-5711-commands-source-app branch from 9dce893 to eebb314 Compare April 20, 2026 15:46
@github-actions github-actions bot added with-changeset The PR contains a Changeset file. and removed without-changeset The PR does not contain a Changeset file labels Apr 20, 2026
@iivvaannxx iivvaannxx force-pushed the CEXT-5711-commands-source-app branch from eebb314 to 0372861 Compare April 20, 2026 15:50
@iivvaannxx iivvaannxx changed the title CEXT-5711: Fix issues surfaced during test implementation CEXT-6074: Fix issues surfaced during test implementation Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: aio-commerce-lib-app Includes changes in `packages/aio-commerce-lib-app` pkg: aio-commerce-lib-config Includes changes in `packages/aio-commerce-lib-config` private-pkg: scripting-utils Includes changes to `packages-private/scripting-utils` with-changeset The PR contains a Changeset file.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant