Repository navigation
chore: add a script to try the first install locally - #73
Merged
Merged
Conversation
|
🎉 This PR is included in version 0.9.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Adds
scripts/try-install.js, a development tool to try the first install of the working copy without publishing it and without touching your own settings.It packs the working copy with
npm pack, installs the archive globally into a temporary npm prefix, and runs the installeddwswith a fake home folder (HOME,USERPROFILE,APPDATA,LOCALAPPDATAandXDG_CONFIG_HOMEpoint into the sandbox,DEV_WORKSPACE_CONFIGis removed). The fake home has sample projects for the first-run question to suggest. Options:--empty-home,--legacy(a config from before 0.3.0),--again(second run), and arguments fordwsafter--.It never reaches users:
scripts/is outside the package'sfileslist and no npm script points to it. The newtest/package.test.jsrunsnpm pack --dry-runand fails if the package ever holds anything beyondindex.js,lib/*.js,package.json,README.mdandLICENSE.CONTRIBUTING.mddocuments it next to theDEV_WORKSPACE_CONFIGadvice.🤖 Generated with Claude Code