Skip to content

Conversation

@shazron
Copy link
Member

@shazron shazron commented Sep 29, 2025

Description

  • aio app pack will include package-lock.json now by default
  • aio app pack has a new flag: --[no]-lock-file (default true, new)
  • aio app install will install using npm ci if a lockfile is included, and npm install if a lockfile is missing
  • aio app install has a new flag: --[no]-allow-scripts (default true, for legacy support - added here for future disabling of scripts as needed)

How Has This Been Tested?

  • local link the app plugin, and pack and install an app (with and without the --no-lock-file flag)
  • app is installed using npm ci if lockfile is included (with or without --no-allow-scripts)
  • app is installed using npm install if lockfile is not included (with or without --no-allow-scripts)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov
Copy link

codecov bot commented Sep 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@shazron shazron marked this pull request as ready for review September 29, 2025 11:12
Copy link
Member

@moritzraho moritzraho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just wondering why we need the extra allow script flag

@shazron
Copy link
Member Author

shazron commented Sep 29, 2025

lgtm, just wondering why we need the extra allow script flag

this was mentioned in the description

@moritzraho
Copy link
Member

moritzraho commented Sep 29, 2025

this was mentioned in the description

meant from a feature perspective, why introduce this flag and not other npm flags or no flags? how does it relate to the lock file?

@shazron
Copy link
Member Author

shazron commented Sep 30, 2025

meant from a feature perspective, why introduce this flag and not other npm flags or no flags? how does it relate to the lock file?

Replied privately.

@shazron shazron merged commit 7406627 into master Sep 30, 2025
9 checks passed
@shazron shazron deleted the story/ACNA-4061 branch September 30, 2025 10:15
purplecabbage pushed a commit that referenced this pull request Nov 10, 2025
…reproducibility and security (#885)

* add `aio app install --[no]-allow-scripts` flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants