Skip to content

Conversation

@chrisolsen
Copy link
Collaborator

@chrisolsen chrisolsen commented Sep 22, 2025

Steps needed to test

Run the npm run pg:setup script (it can be run multiple times)

Switch branches either by command line or your IDE. The playgrounds should auto-swap and create a new one if it doesn't already exist.

⚠️Caution: back up your existing playground dir before testing this just in case.

@chrisolsen chrisolsen changed the title temp Playground swap git hook Sep 22, 2025
@bdfranck
Copy link
Collaborator

@chrisolsen I ran npm run pg:setup on MacOS 26.0. I got the following error:

sh: ./scripts/pg-setup: /usr/bin/bash: bad interpreter: No such file or directory

I switched the shebang line to #!/bin/sh and then it worked as expected.

Copy link
Collaborator

@vanessatran-ddi vanessatran-ddi left a comment

Choose a reason for hiding this comment

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

I tested on my local and it works:

thytran142@Trans-MacBook-Pro new-ui-components % npm run pg:setup

> @abgov/ui-components@0.0.0 pg:setup
> ./scripts/pg-setup

Do you want to automate playground swapping? (yes/no) yes
[post-checkout] file has been added to .git/hooks

@chrisolsen chrisolsen closed this Oct 20, 2025
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.

3 participants