Skip to content

Commit 5344bc1

Browse files
authored
fix(create-docusaurus): Fix TS issues on newly initialized sites (#10694)
1 parent be7bace commit 5344bc1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/tests-e2e.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,15 @@ jobs:
160160
- name: Installation
161161
run: yarn || yarn || yarn
162162
- name: Generate test-website project against main branch
163-
run: yarn test:build:website -s
163+
run: yarn test:build:website -st
164164
- name: Install test-website project with npm
165165
run: npm install
166166
working-directory: ../test-website
167167
env:
168168
npm_config_registry: http://localhost:4873
169+
- name: TypeCheck website
170+
working-directory: ../test-website
171+
run: yarn typecheck
169172
- name: Start test-website project
170173
run: npm run start -- --no-open
171174
working-directory: ../test-website
@@ -197,15 +200,17 @@ jobs:
197200
- name: Installation
198201
run: yarn || yarn || yarn
199202
- name: Generate test-website project against main branch
200-
run: yarn test:build:website -s
203+
run: yarn test:build:website -st
201204
- name: Install test-website project with pnpm
202205
run: |
203206
npm install -g pnpm
204-
# Fix some peer dependencies errors
205-
pnpm add @algolia/client-search @types/react@17 typescript
207+
pnpm install
206208
working-directory: ../test-website
207209
env:
208210
npm_config_registry: http://localhost:4873
211+
- name: TypeCheck website
212+
working-directory: ../test-website
213+
run: yarn typecheck
209214
- name: Start test-website project
210215
run: pnpm start --no-open
211216
working-directory: ../test-website

packages/docusaurus-tsconfig/tsconfig.json

-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111
"moduleResolution": "bundler",
1212
"module": "esnext",
1313
"noEmit": true,
14-
"types": [
15-
"node",
16-
"@docusaurus/module-type-aliases",
17-
"@docusaurus/theme-classic"
18-
],
1914
"baseUrl": ".",
2015
"paths": {
2116
"@site/*": ["./*"]

0 commit comments

Comments
 (0)