Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure isolated testing of create-svelte with local packages #5524

Merged
merged 6 commits into from
Jul 14, 2022

Conversation

dominikg
Copy link
Member

@dominikg dominikg commented Jul 14, 2022

PR for vite-3 branch, not master!

sets up a separate pnpm workspace and hard links local packages with absolute file paths via pnpm overrides

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
  • This message body should clearly illustrate what problems it solves.
  • Ideally, include a test that fails without this PR but passes with it.

Tests

  • Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

  • If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. All changesets should be patch until SvelteKit 1.0

@changeset-bot
Copy link

changeset-bot bot commented Jul 14, 2022

⚠️ No Changeset found

Latest commit: d22513c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Rich-Harris
Copy link
Member

this is amazing

Rich-Harris added a commit that referenced this pull request Jul 14, 2022
* Upgrade to Vite 3

* this... seems to work?

* try this

* remove some more unneeded fixStacktrace options

* upgrade to 3.0.0-beta.9

* update default port

* 3.0.0 final

* 3.0.0 final for site

* vite-plugin-svelte 1.0.1

* bump rollup

* update enforced_config

* add EnforcedConfig type

* wow i did a terrible job of implementing this before

* leave windows paths as-is

* Revert "leave windows paths as-is"

This reverts commit 06de105.

* try this

* actually if anything i guess it should be this

* ugh

* fix firefox test

* add some logging that might help diagnose windows failure

* i think this might work

* more logging

* maybe this

* try to simplify logging so that stuff is slightly easier to diagnose

* argh

* Revert "argh"

This reverts commit 9e2d017.

* Revert "try to simplify logging so that stuff is slightly easier to diagnose"

This reverts commit 2a975ec.

* [docs] add JSDocs for Vite build process

* format

* loop over values instead with `Object.values`

* missed a closing bracket

* fix: ensure isolated testing of create-svelte with local packages (#5524)

* fix: move create-svelte test working dir out of pnpm workspae

* fix: copy-paste error, adapter-auto override

* fix: readd check command

* fix: ensure that create-svelte tests generate test apps outside our main pnpm workspace

* fix format

* fix: readd --no-frozen-lockfile to override pnpm default when CI is true

* remove logging

* enforce vite 3

Co-authored-by: Rich Harris <[email protected]>
Co-authored-by: Ignatius Bagus <[email protected]>
Co-authored-by: Dominik G <[email protected]>
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.

2 participants