-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Remove shamefully-hoist #4842
Remove shamefully-hoist #4842
Changes from 27 commits
8e19090
43894bd
5ad376d
0f33481
eded44a
26aeb42
26ff183
7f40e0a
b19b38e
a5c73f2
53047d4
97a6323
56654ff
c981686
1c95185
ee76e75
5043133
cd7731c
e8d690a
688cf54
667a66f
9f2e8e9
1bbe0fc
ee9416c
7ea5209
e380263
d587153
d7afd58
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@astrojs/image': patch | ||
--- | ||
|
||
Specify sharp as optional peer dependency |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@astrojs/markdown-remark': patch | ||
--- | ||
|
||
Fix non-hoisted remark/rehype plugin loading |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
'astro': patch | ||
'@astrojs/image': patch | ||
'@astrojs/mdx': patch | ||
'@astrojs/netlify': patch | ||
'@astrojs/preact': patch | ||
'@astrojs/rss': patch | ||
'@astrojs/svelte': patch | ||
'@astrojs/tailwind': patch | ||
'@astrojs/vue': patch | ||
'@astrojs/markdown-remark': patch | ||
'@astrojs/telemetry': patch | ||
--- | ||
|
||
Add missing dependencies, support strict dependency installation (e.g. pnpm) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@astrojs/rss': patch | ||
--- | ||
|
||
Remove path-browserify dependency |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# Expose Astro dependencies for `pnpm` users | ||
shamefully-hoist=true | ||
public-hoist-pattern[]=*lit* |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
import { defineConfig } from 'astro/config'; | ||
import preact from '@astrojs/preact' | ||
|
||
// https://astro.build/config | ||
export default defineConfig({}); | ||
export default defineConfig({ | ||
integrations: [preact()] | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
import { devices } from '@playwright/test'; | ||
// NOTE: Sometimes, tests fail with `TypeError: process.stdout.clearLine is not a function` | ||
// for some reason. This comes from Vite, and is conditionally called based on `isTTY`. | ||
// We set it to false here to skip this odd behavior. | ||
process.stdout.isTTY = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I hit this special case locally where e2e is failing on |
||
|
||
const config = { | ||
testMatch: 'e2e/*.test.js', | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -263,6 +263,12 @@ async function tryLoadConfig( | |
optimizeDeps: { entries: [] }, | ||
clearScreen: false, | ||
appType: 'custom', | ||
// NOTE: Vite doesn't externalize linked packages by default. During testing locally, | ||
// these dependencies trip up Vite's dev SSR transform. In the future, we should | ||
// avoid `vite.createServer` and use `loadConfigFromFile` instead. | ||
ssr: { | ||
external: ['@astrojs/mdx', '@astrojs/react'], | ||
}, | ||
Comment on lines
+269
to
+271
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added these packages to NOTE: there's a comment explaining this above the highlight change |
||
}); | ||
try { | ||
const mod = await viteServer.ssrLoadModule(configPath); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: could we use
path.extname
fromnode
here? I'm not sure since it importedpath-browserify
before (maybe just a auto-import issue).Context:
path-browserify
was imported byastro-rss
before but was not declared as dependency. Thought we could simplify remove the package with a simpler replacement.