Skip to content

Commit 6a5fde1

Browse files
authored
Website shouldn't be a workspace (#611)
1 parent 0d461ff commit 6a5fde1

File tree

11 files changed

+8671
-7363
lines changed

11 files changed

+8671
-7363
lines changed

.changeset/old-mayflies-attack.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'graphql-ws': patch
3+
---
4+
5+
No more workspaces
6+
7+
This version does not contain any code changes.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
with:
2626
node-version-file: .node-version
2727
- name: Check
28-
run: yarn workspaces foreach -A -p -v run check:${{ matrix.check }}
28+
run: yarn check:${{ matrix.check }}
2929

3030
test:
3131
name: Test

.github/workflows/website.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@ on:
1111
- website/**
1212

1313
jobs:
14+
check-type:
15+
name: Check type
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
- name: Setup and install
21+
uses: the-guild-org/shared-config/setup@v1
22+
with:
23+
node-version-file: .node-version
24+
working-directory: website
25+
- name: Check
26+
working-directory: website
27+
run: yarn check:type
28+
1429
deploy:
1530
name: Deploy
1631
runs-on: ubuntu-latest
@@ -22,6 +37,9 @@ jobs:
2237
uses: the-guild-org/shared-config/setup@v1
2338
with:
2439
node-version-file: .node-version
40+
- name: Install
41+
working-directory: website
42+
run: yarn install
2543
- name: Generate documentation
2644
run: yarn gendocs
2745
- name: Deploy

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dist/
66
out/
77
.vscode/
88
.yarn/*
9+
website/.yarn/*
910
!.yarn/releases
1011
!.yarn/plugins
1112
!.yarn/patches

.yarn/patches/@changesets-cli-npm-2.27.11-fc68e5c2cd.patch

Lines changed: 0 additions & 49 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@
9494
"format": "yarn check:format --write",
9595
"gendocs": "typedoc --options typedoc.js src/ && node scripts/post-gendocs.mjs",
9696
"postbuild": "node scripts/fix-declaration-directives.mjs",
97-
"postpack": "npm pkg set --no-json workspaces[]=. workspaces[]=website",
98-
"prepack": "npm pkg delete workspaces",
9997
"test": "vitest",
10098
"release": "yarn build && yarn changeset publish"
10199
},
@@ -104,7 +102,7 @@
104102
},
105103
"devDependencies": {
106104
"@changesets/changelog-github": "^0.5.0",
107-
"@changesets/cli": "patch:@changesets/cli@npm%3A2.27.11#~/.yarn/patches/@changesets-cli-npm-2.27.11-fc68e5c2cd.patch",
105+
"@changesets/cli": "^2.27.11",
108106
"@fastify/websocket": "^9.0.0",
109107
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
110108
"@rollup/plugin-terser": "^0.4.4",
@@ -134,9 +132,5 @@
134132
"vitest": "^2.1.8",
135133
"ws": "8.12.0",
136134
"ws7": "npm:ws@^7.5.9"
137-
},
138-
"workspaces": [
139-
".",
140-
"website"
141-
]
135+
}
142136
}

website/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.

website/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"private": true,
44
"scripts": {
55
"build": "next build && next-sitemap --config next-sitemap.config.cjs",
6-
"check:format": "echo 'Check is done in root...'",
7-
"check:lint": "echo 'Check is done in root...'",
86
"check:type": "tsc --noEmit",
97
"start": "next"
108
},

website/tsconfig.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
2-
"extends": "../tsconfig.json",
32
"compilerOptions": {
43
"lib": ["dom", "dom.iterable", "esnext"],
54
"module": "esnext",
65
"resolveJsonModule": true,
76
"allowJs": true,
87
"noEmit": true,
98
"incremental": true,
10-
"isolatedModules": true
9+
"isolatedModules": true,
10+
"skipLibCheck": true,
11+
"strict": false,
12+
"esModuleInterop": true,
13+
"moduleResolution": "node",
14+
"jsx": "preserve"
1115
},
1216
"include": [
1317
"src",

0 commit comments

Comments
 (0)