Skip to content

Commit

Permalink
Fix workspace dependencies (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomOrlo authored May 13, 2021
1 parent d965557 commit dad93fc
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 25 deletions.
13 changes: 13 additions & 0 deletions .changeset/mean-bananas-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'hn.svelte.dev': patch
'@sveltejs/adapter-begin': patch
'@sveltejs/adapter-cloudflare-workers': patch
'@sveltejs/adapter-netlify': patch
'@sveltejs/adapter-node': patch
'@sveltejs/adapter-static': patch
'@sveltejs/adapter-vercel': patch
'create-svelte': patch
'@sveltejs/kit': patch
---

Fix workspace dependencies
4 changes: 2 additions & 2 deletions examples/hn.svelte.dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"preview": "svelte-kit preview"
},
"devDependencies": {
"@sveltejs/adapter-netlify": "workspace:*",
"@sveltejs/kit": "workspace:*",
"@sveltejs/adapter-netlify": "workspace:^",
"@sveltejs/kit": "workspace:^",
"svelte": "^3.38.2"
}
}
2 changes: 1 addition & 1 deletion packages/adapter-begin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@architect/parser": "^3.0.1"
},
"devDependencies": {
"@sveltejs/kit": "workspace:*",
"@sveltejs/kit": "workspace:^",
"rollup": "^2.47.0",
"sirv": "^1.0.11",
"typescript": "^4.2.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-cloudflare-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"toml": "^3.0.0"
},
"devDependencies": {
"@sveltejs/kit": "workspace:*"
"@sveltejs/kit": "workspace:^"
}
}
2 changes: 1 addition & 1 deletion packages/adapter-netlify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore"
},
"dependencies": {
"@sveltejs/kit": "workspace:*",
"@sveltejs/kit": "workspace:^",
"esbuild": "^0.11.18",
"toml": "^3.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"devDependencies": {
"@rollup/plugin-json": "^4.1.0",
"@sveltejs/kit": "workspace:*",
"@sveltejs/kit": "workspace:^",
"c8": "^7.7.2",
"compression": "^1.7.4",
"node-fetch": "^3.0.0-beta.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test": "uvu test test.js"
},
"devDependencies": {
"@sveltejs/kit": "workspace:*",
"@sveltejs/kit": "workspace:^",
"playwright-chromium": "^1.10.0",
"port-authority": "^1.1.2",
"sirv": "^1.0.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore"
},
"dependencies": {
"@sveltejs/kit": "workspace:*",
"@sveltejs/kit": "workspace:^",
"esbuild": "^0.11.18"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"prompts": "^2.4.1"
},
"devDependencies": {
"@sveltejs/kit": "workspace:*",
"@sveltejs/kit": "workspace:^",
"@types/gitignore-parser": "^0.0.0",
"@types/prettier": "^2.2.3",
"@types/prompts": "^2.0.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-svelte/scripts/build-templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function generate_templates(shared) {

if (name === 'package.template.json') {
// TODO package-specific versions
contents = contents.replace(/workspace:\*/g, 'next');
contents = contents.replace(/workspace:\^/g, 'next');
fs.writeFileSync(`${dir}/package.json`, contents);
} else {
ts.push({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"preview": "svelte-kit preview"
},
"devDependencies": {
"@sveltejs/kit": "workspace:*",
"@sveltejs/kit": "workspace:^",
"svelte": "^3.34.0"
},
"type": "module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"preview": "svelte-kit preview"
},
"devDependencies": {
"@sveltejs/kit": "workspace:*",
"@sveltejs/kit": "workspace:^",
"svelte": "^3.34.0"
},
"type": "module"
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"@rollup/plugin-replace": "^2.4.2",
"@sveltejs/kit": "workspace:*",
"@sveltejs/kit": "workspace:^",
"@types/amphtml-validator": "^1.0.1",
"@types/cookie": "^0.4.0",
"@types/marked": "^2.0.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/kit/test/apps/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"preview": "svelte-kit preview"
},
"devDependencies": {
"@sveltejs/adapter-node": "workspace:*",
"@sveltejs/kit": "workspace:*",
"@sveltejs/adapter-node": "workspace:^",
"@sveltejs/kit": "workspace:^",
"svelte": "^3.29.0"
},
"type": "module"
Expand Down
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.

0 comments on commit dad93fc

Please sign in to comment.