Skip to content

Commit

Permalink
fix(create-docusaurus): Fix TS issues on newly initialized sites (#10694
Browse files Browse the repository at this point in the history
)
  • Loading branch information
slorber authored Nov 19, 2024
1 parent be7bace commit 5344bc1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/tests-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,15 @@ jobs:
- name: Installation
run: yarn || yarn || yarn
- name: Generate test-website project against main branch
run: yarn test:build:website -s
run: yarn test:build:website -st
- name: Install test-website project with npm
run: npm install
working-directory: ../test-website
env:
npm_config_registry: http://localhost:4873
- name: TypeCheck website
working-directory: ../test-website
run: yarn typecheck
- name: Start test-website project
run: npm run start -- --no-open
working-directory: ../test-website
Expand Down Expand Up @@ -197,15 +200,17 @@ jobs:
- name: Installation
run: yarn || yarn || yarn
- name: Generate test-website project against main branch
run: yarn test:build:website -s
run: yarn test:build:website -st
- name: Install test-website project with pnpm
run: |
npm install -g pnpm
# Fix some peer dependencies errors
pnpm add @algolia/client-search @types/react@17 typescript
pnpm install
working-directory: ../test-website
env:
npm_config_registry: http://localhost:4873
- name: TypeCheck website
working-directory: ../test-website
run: yarn typecheck
- name: Start test-website project
run: pnpm start --no-open
working-directory: ../test-website
Expand Down
5 changes: 0 additions & 5 deletions packages/docusaurus-tsconfig/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
"moduleResolution": "bundler",
"module": "esnext",
"noEmit": true,
"types": [
"node",
"@docusaurus/module-type-aliases",
"@docusaurus/theme-classic"
],
"baseUrl": ".",
"paths": {
"@site/*": ["./*"]
Expand Down

0 comments on commit 5344bc1

Please sign in to comment.