Skip to content

Commit

Permalink
move to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Aug 16, 2024
1 parent b212fd9 commit c0e19f6
Show file tree
Hide file tree
Showing 29 changed files with 34 additions and 42 deletions.
2 changes: 1 addition & 1 deletion examples/aws-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@aws-sdk/client-s3": "^3.540.0",
"@aws-sdk/s3-request-presigner": "^3.540.0",
"sst": "ion"
"sst": "latest"
},
"devDependencies": {
"@types/aws-lambda": "8.10.142"
Expand Down
2 changes: 1 addition & 1 deletion examples/aws-astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@aws-sdk/s3-request-presigner": "^3.540.0",
"astro": "^4.5.9",
"astro-sst": "^2.41.2",
"sst": "ion",
"sst": "latest",
"typescript": "^5.4.3"
}
}
2 changes: 1 addition & 1 deletion examples/aws-cluster/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@aws-sdk/s3-request-presigner": "^3.556.0",
"express": "^4.19.2",
"multer": "^1.4.5-lts.1",
"sst": "ion"
"sst": "latest"
},
"devDependencies": {
"@types/aws-lambda": "8.10.137"
Expand Down
2 changes: 1 addition & 1 deletion examples/aws-drizzle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"@types/aws-lambda": "^8.10.142",
"drizzle-kit": "0.23.0",
"drizzle-orm": "^0.32.1",
"sst": "ion"
"sst": "latest"
}
}
2 changes: 1 addition & 1 deletion examples/aws-email/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"license": "ISC",
"dependencies": {
"@aws-sdk/client-sesv2": "^3.515.0",
"sst": "ion"
"sst": "latest"
},
"devDependencies": {
"@types/aws-lambda": "8.10.142"
Expand Down
2 changes: 1 addition & 1 deletion examples/aws-hono/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"@aws-sdk/client-s3": "^3.552.0",
"@aws-sdk/s3-request-presigner": "^3.552.0",
"hono": "^4.1.3",
"sst": "ion"
"sst": "latest"
}
}
2 changes: 1 addition & 1 deletion examples/aws-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"next": "14.1.4",
"react": "^18",
"react-dom": "^18",
"sst": "ion"
"sst": "latest"
},
"devDependencies": {
"@types/node": "^20",
Expand Down
2 changes: 1 addition & 1 deletion examples/aws-nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"nuxt": "^3.11.2",
"sst": "ion",
"sst": "latest",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/aws-realtime-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"next": "14.2.3",
"react": "^18",
"react-dom": "^18",
"sst": "ion"
"sst": "latest"
},
"devDependencies": {
"@types/node": "^20",
Expand Down
4 changes: 2 additions & 2 deletions examples/aws-remix-stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"isbot": "^4.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sst": "ion"
"sst": "latest"
},
"devDependencies": {
"@remix-run/dev": "^2.8.1",
Expand All @@ -38,4 +38,4 @@
"engines": {
"node": "\u003e=18.0.0"
}
}
}
2 changes: 1 addition & 1 deletion examples/aws-remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"isbot": "^4.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sst": "ion"
"sst": "latest"
},
"devDependencies": {
"@remix-run/dev": "^2.8.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/aws-solid-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@solidjs/router": "^0.13.6",
"@solidjs/start": "1.0.2",
"solid-js": "^1.8.17",
"sst": "ion",
"sst": "latest",
"vinxi": "^0.3.12"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions examples/aws-svelte-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"scripts": {
"build": "vite build",
"check": "svelte-kit sync \u0026\u0026 svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync \u0026\u0026 svelte-check --tsconfig ./tsconfig.json --watch",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"dev": "vite dev",
"preview": "vite preview"
},
Expand All @@ -23,7 +23,7 @@
"dependencies": {
"@aws-sdk/client-s3": "^3.567.0",
"@aws-sdk/s3-request-presigner": "^3.567.0",
"sst": "ion",
"sst": "latest",
"svelte-kit-sst": "2.43.0"
}
}
2 changes: 1 addition & 1 deletion examples/aws-trpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@trpc/client": "11.0.0-rc.340",
"@trpc/server": "11.0.0-rc.340",
"sst": "ion",
"sst": "latest",
"zod": "^3.22.4"
}
}
2 changes: 1 addition & 1 deletion examples/cloudflare-hono/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "ISC",
"dependencies": {
"hono": "^4.2.3",
"sst": "ion"
"sst": "latest"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240405.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/cloudflare-trpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@trpc/client": "^11.0.0-rc.359",
"@trpc/server": "^11.0.0-rc.359",
"sst": "ion",
"sst": "latest",
"zod": "^3.23.5"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/cloudflare-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"license": "ISC",
"dependencies": {
"@cloudflare/workers-types": "^4.20240403.0",
"sst": "ion"
"sst": "latest"
}
}
4 changes: 2 additions & 2 deletions examples/secret-link-all/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"author": "",
"license": "ISC",
"dependencies": {
"sst": "ion"
"sst": "latest"
},
"devDependencies": {
"@types/aws-lambda": "8.10.137"
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ion",
"name": "sst",
"workspaces": [
"www",
"platform",
Expand Down
2 changes: 1 addition & 1 deletion pkg/global/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func Upgrade(existingVersion string, nextVersion string) (string, error) {
func UpgradeNode(existingVersion string, nextVersion string) (map[string]string, error) {
result := make(map[string]string)
if nextVersion == "" {
pkg, err := npm.Get("sst", "ion")
pkg, err := npm.Get("sst", "latest")
if err != nil {
return result, err
}
Expand Down
3 changes: 1 addition & 2 deletions platform/templates/astro/preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"type": "npm",
"properties": {
"file": "package.json",
"package": "sst",
"version": "ion"
"package": "sst"
}
},
{
Expand Down
3 changes: 1 addition & 2 deletions platform/templates/js-aws/preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"type": "npm",
"properties": {
"file": "package.json",
"package": "sst",
"version": "ion"
"package": "sst"
}
},
{
Expand Down
3 changes: 1 addition & 2 deletions platform/templates/js-cloudflare/preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"type": "npm",
"properties": {
"file": "package.json",
"package": "sst",
"version": "ion"
"package": "sst"
}
},
{
Expand Down
3 changes: 1 addition & 2 deletions platform/templates/nextjs/preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"type": "npm",
"properties": {
"file": "package.json",
"package": "sst",
"version": "ion"
"package": "sst"
}
},
{
Expand Down
3 changes: 1 addition & 2 deletions platform/templates/nuxt/preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"type": "npm",
"properties": {
"file": "package.json",
"package": "sst",
"version": "ion"
"package": "sst"
}
},
{
Expand Down
3 changes: 1 addition & 2 deletions platform/templates/remix/preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"type": "npm",
"properties": {
"file": "package.json",
"package": "sst",
"version": "ion"
"package": "sst"
}
}
]
Expand Down
3 changes: 1 addition & 2 deletions platform/templates/solid-start/preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"type": "npm",
"properties": {
"file": "package.json",
"package": "sst",
"version": "ion"
"package": "sst"
}
},
{
Expand Down
3 changes: 1 addition & 2 deletions platform/templates/svelte-kit/preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"type": "npm",
"properties": {
"file": "package.json",
"package": "sst",
"version": "ion"
"package": "sst"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions sdk/js/scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const cpus = {
};

const tmp = `tmp`;
const binaryPackages = [];
const binaryPackages = [] as string[];
for (const artifact of artifacts) {
if (artifact.type !== "Binary") continue;
const os = artifact.goos;
Expand Down Expand Up @@ -59,7 +59,7 @@ for (const artifact of artifacts) {
binaryPackages.push(dir);
}

const tag = snapshot ? "ion-snapshot" : "ion";
const tag = snapshot ? "snapshot" : "latest";
try {
for (const dir of binaryPackages) {
await $`cd ${dir} && npm publish --access public --tag ${tag}`;
Expand Down

0 comments on commit c0e19f6

Please sign in to comment.