Skip to content

Switch from CodeSandbox CI to pnpm Git exotic sources#739

Merged
karlhorky merged 1 commit into
mainfrom
switch-codesandbox-to-pnpm-github-urls
May 8, 2026
Merged

Switch from CodeSandbox CI to pnpm Git exotic sources#739
karlhorky merged 1 commit into
mainfrom
switch-codesandbox-to-pnpm-github-urls

Conversation

@coderabbitai
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot commented May 8, 2026

CodeSandbox CI is being discontinued and its environment is stuck on Node.js v20, which is incompatible with pnpm v11 (requires Node.js 22+).

Since Preflight has no build or prepare script and its bin points directly at TypeScript source, contributors can install any branch directly via pnpm Git repository exotic sources without a separate build step:

preflight/package.json

Lines 20 to 28 in 78d5f59

"scripts": {
"docker-build": "docker build --tag preflight .",
"docker-build-run": "pnpm docker-build && pnpm docker-run",
"docker-run": "docker run preflight",
"lint": "eslint . --max-warnings 0",
"start": "node --watch ./src/index.ts",
"test": "vitest run",
"test-local": "rm -rf ./__tests__/fixtures/__temp && pnpm test"
},

To test a PR branch, install globally using a Git repository exotic source and the branch name (eg. switch-codesandbox-to-pnpm-github-urls as in the example below), run the CLI, then remove it:

pnpm add --global "upleveled/preflight#switch-codesandbox-to-pnpm-github-urls"
preflight
pnpm remove --global @upleveled/preflight

@coderabbitai
Copy link
Copy Markdown
Contributor Author

coderabbitai Bot commented May 8, 2026

Important

Review skipped

This PR was authored by the user configured for CodeRabbit reviews. CodeRabbit does not review PRs authored by this user. It's recommended to use a dedicated user account to post CodeRabbit review feedback.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d87a1fbe-b1a2-4db8-8fa2-1e94b2b60357

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot mentioned this pull request May 8, 2026
1 task
@karlhorky karlhorky changed the title Switch from CodeSandbox CI to pnpm github.com URLs Switch from CodeSandbox CI to pnpm Git exotic sources May 8, 2026
@karlhorky karlhorky merged commit 597b5bc into main May 8, 2026
7 checks passed
@karlhorky karlhorky deleted the switch-codesandbox-to-pnpm-github-urls branch May 8, 2026 14:51
nene added a commit to sql-formatter-org/sql-formatter that referenced this pull request May 14, 2026
[CodeSandbox CI is being
discontinued](https://news.ycombinator.com/item?id=47418491#:~:text=CodeSandbox%20CI%3A%20Shutting%20down%20on%20April%2015%2C%202026.%20Migrate%20to%20an%20alternative%20CI%20provider%20before%20then)
and its environment is stuck on Node.js v20, which is ancient and
incompatible with an increasing range of new libraries.

- [x] Remove CodeSandbox CI config
- [x] Remove CodeSandbox CI app (in [`sql-formatter-org` GitHub Apps
settings](https://github.com/organizations/sql-formatter-org/settings/installations),
probably needs @nene)
- [ ] Decide on a replacement, if any

## Retaining the functionality

For Preflight, we switched to Git exotic sources (eg. `pnpm add
"upleveled/preflight#switch-codesandbox-to-pnpm-github-urls"`), but this
was possible because we have no build step:

- upleveled/preflight#739

I'm guessing this is not possible for `sql-formatter`, at least how it
is currently set up.

So another option would be `pkg.pr.new` from StackBlitz:

- https://pkg.pr.new/
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.

1 participant