Skip to content

chore: add a script to try the first install locally - #73

Merged
versnic merged 1 commit into
mainfrom
chore/try-install-script
Nov 6, 2026
Merged

versnic merged 1 commit into
mainfrom
chore/try-install-script

Conversation

@versnic

@versnic versnic commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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 installed dws with a fake home folder (HOME, USERPROFILE, APPDATA, LOCALAPPDATA and XDG_CONFIG_HOME point into the sandbox, DEV_WORKSPACE_CONFIG is 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 for dws after --.

It never reaches users: scripts/ is outside the package's files list and no npm script points to it. The new test/package.test.js runs npm pack --dry-run and fails if the package ever holds anything beyond index.js, lib/*.js, package.json, README.md and LICENSE.

CONTRIBUTING.md documents it next to the DEV_WORKSPACE_CONFIG advice.

🤖 Generated with Claude Code

@versnic versnic self-assigned this Nov 6, 2026
@github-actions github-actions Bot added maintenance Refactoring, tests, formatting and other upkeep release: none Merging publishes nothing labels Nov 6, 2026
@versnic
versnic merged commit 4db4429 into main Nov 6, 2026
17 checks passed
@versnic
versnic deleted the chore/try-install-script branch November 6, 2026 13:47
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 0.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions Bot added the released Included in a published release (added by semantic-release) label Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Refactoring, tests, formatting and other upkeep release: none Merging publishes nothing released Included in a published release (added by semantic-release)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant