Skip to content

Commit f124fdb

Browse files
committed
migrate packages to tsgo
1 parent 1832cc1 commit f124fdb

File tree

49 files changed

+91
-48
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+91
-48
lines changed

apps/builder/app/services/csrf-session.server.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ const csrfSessionStorage = createCookieSessionStorage({
3838
},
3939
});
4040

41-
const toBase64Url = (buffer: ArrayBuffer) => {
42-
return Buffer.from(buffer).toString("base64url");
41+
const toBase64Url = (buffer: ArrayBuffer | ArrayBufferView) => {
42+
return Buffer.from(
43+
buffer instanceof ArrayBuffer ? buffer : buffer.buffer
44+
).toString("base64url");
4345
};
4446

4547
export const getRequestAuthHash = async (request: Request) => {

apps/builder/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build:http-client": "pnpm --filter=@webstudio-is/http-client build",
1515
"dev": "pnpm build:http-client && remix vite:dev",
1616
"dev:auth": "pnpm build:http-client && DEBUG=OAuth2Strategy,ws:* remix vite:dev",
17-
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
17+
"typecheck": "tsgo --noEmit --emitDeclarationOnly false",
1818
"test": "vitest run"
1919
},
2020
"dependencies": {

fixtures/react-router-cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "webstudio-react-router-cloudflare",
33
"scripts": {
4-
"typecheck": "wrangler types && tsc",
4+
"typecheck": "wrangler types && tsgo",
55
"cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
66
"fixtures:link": "pnpm cli link --link https://p-d845c167-ea07-4875-b08d-83e97c09dcce-dot-${BUILDER_HOST:-main.development.webstudio.is}'?authToken=e9d1343f-9298-4fd3-a66e-f89a5af2dd93'",
77
"fixtures:sync": "pnpm cli sync --buildId f565d527-32e7-4731-bc71-aca9e9574587 && pnpm prettier --write ./.webstudio/",

fixtures/react-router-docker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"build": "react-router build",
44
"dev": "react-router dev",
55
"start": "react-router-serve ./build/server/index.js",
6-
"typecheck": "tsc",
6+
"typecheck": "tsgo --noEmit",
77
"cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
88
"fixtures:link": "pnpm cli link --link https://p-d845c167-ea07-4875-b08d-83e97c09dcce-dot-${BUILDER_HOST:-main.development.webstudio.is}'?authToken=e9d1343f-9298-4fd3-a66e-f89a5af2dd93'",
99
"fixtures:sync": "pnpm cli sync --buildId f565d527-32e7-4731-bc71-aca9e9574587 && pnpm prettier --write ./.webstudio/",

fixtures/react-router-netlify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "webstudio-react-router-netlify",
33
"scripts": {
4-
"typecheck": "tsc",
4+
"typecheck": "tsgo --noEmit",
55
"cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
66
"fixtures:link": "pnpm cli link --link https://p-d845c167-ea07-4875-b08d-83e97c09dcce-dot-${BUILDER_HOST:-main.development.webstudio.is}'?authToken=e9d1343f-9298-4fd3-a66e-f89a5af2dd93'",
77
"fixtures:sync": "pnpm cli sync --buildId f565d527-32e7-4731-bc71-aca9e9574587 && pnpm prettier --write ./.webstudio/",

fixtures/react-router-vercel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "webstudio-react-router-vercel",
33
"scripts": {
4-
"typecheck": "tsc",
4+
"typecheck": "tsgo --noEmit",
55
"cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
66
"fixtures:link": "pnpm cli link --link https://p-d845c167-ea07-4875-b08d-83e97c09dcce-dot-${BUILDER_HOST:-main.development.webstudio.is}'?authToken=e9d1343f-9298-4fd3-a66e-f89a5af2dd93'",
77
"fixtures:sync": "pnpm cli sync --buildId f565d527-32e7-4731-bc71-aca9e9574587 && pnpm prettier --write ./.webstudio/",

fixtures/ssg-netlify-by-project-id/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"build": "vite build",
77
"postbuild": "prettier --write \"dist/**/*.html\" || true",
88
"dev": "vite dev",
9-
"typecheck": "tsc",
9+
"typecheck": "tsgo --noEmit",
1010
"cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
1111
"fixtures:link": "pnpm cli link --link https://p-8a7358b1-7de3-459d-b7b1-56dddfb6ce1e-dot-${BUILDER_HOST:-main.development.webstudio.is}'?authToken=f55154e6-36b9-4920-bc81-3095cc88f8ff'",
1212
"fixtures:sync": "pnpm cli sync && pnpm prettier --write ./.webstudio/",

fixtures/ssg/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"build": "vite build",
77
"postbuild": "prettier --write \"dist/**/*.html\" || true",
88
"dev": "vite dev",
9-
"typecheck": "tsc",
9+
"typecheck": "tsgo --noEmit",
1010
"cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
1111
"fixtures:link": "pnpm cli link --link ${BUILDER_URL_DEPRECATED:-https://main.development.webstudio.is}'/builder/d845c167-ea07-4875-b08d-83e97c09dcce?authToken=e9d1343f-9298-4fd3-a66e-f89a5af2dd93'",
1212
"fixtures:sync": "pnpm cli sync --buildId a2e8de30-03d5-4514-a3a6-406b3266a3af && pnpm prettier --write ./.webstudio/",

fixtures/webstudio-cloudflare-template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"fixtures:build": "pnpm cli build --template cloudflare --template saas-helpers --template internal && pnpm prettier --write ./app/ ./package.json ./tsconfig.json",
88
"build": "remix vite:build",
99
"dev": "remix vite:dev",
10-
"typecheck": "tsc",
10+
"typecheck": "tsgo --noEmit",
1111
"deploy": "npm run build && wrangler pages deploy ./build/client",
1212
"start": "wrangler pages dev ./build/client",
1313
"typegen": "wrangler types",

fixtures/webstudio-features/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"type": "module",
33
"scripts": {
4-
"typecheck": "tsc",
4+
"typecheck": "tsgo --noEmit",
55
"build": "react-router build",
66
"dev": "react-router dev",
77
"cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",

0 commit comments

Comments
 (0)