Skip to content

Commit

Permalink
Fix examples version update for removed packages (#11901)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Sep 2, 2024
1 parent 8a1abcf commit 19751df
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion examples/hackernews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/node": "^0.0.0",
"@astrojs/node": "^8.3.3",
"astro": "^4.15.2"
}
}
2 changes: 1 addition & 1 deletion examples/middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
"@astrojs/node": "^0.0.0",
"@astrojs/node": "^8.3.3",
"astro": "^4.15.2",
"html-minifier": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/server-islands/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"astro": "astro"
},
"devDependencies": {
"@astrojs/node": "^0.0.0",
"@astrojs/node": "^8.3.3",
"@astrojs/react": "^3.6.2",
"@astrojs/tailwind": "^5.1.0",
"@fortawesome/fontawesome-free": "^6.6.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
"@astrojs/node": "^0.0.0",
"@astrojs/node": "^8.3.3",
"@astrojs/svelte": "^5.7.0",
"astro": "^4.15.2",
"svelte": "^4.2.19"
Expand Down
2 changes: 1 addition & 1 deletion examples/view-transitions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"devDependencies": {
"@astrojs/tailwind": "^5.1.0",
"@astrojs/node": "^0.0.0",
"@astrojs/node": "^8.3.3",
"astro": "^4.15.2"
}
}
20 changes: 10 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions scripts/deps/update-example-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ for (const workspaceDir of workspaceDirs) {
const packageJson = await readAndParsePackageJson(packageJsonPath);
if (!packageJson) continue;

if (packageJson.private === true) continue

if (!packageJson.name) {
throw new Error(`${packageJsonPath} does not contain a "name" field.`);
}
Expand Down

0 comments on commit 19751df

Please sign in to comment.