Skip to content

Commit

Permalink
Uppdate tsconfig for latest vite with react
Browse files Browse the repository at this point in the history
  • Loading branch information
timngyn committed Jun 22, 2024
1 parent b531ffe commit b1d8c80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
4 changes: 2 additions & 2 deletions build-system-tests/scripts/mega-app-copy-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ if [[ "$FRAMEWORK" == 'react' && "$BUILD_TOOL" == 'vite' ]]; then
# https://ui.docs.amplify.aws/react/getting-started/troubleshooting#vite
echo "cp templates/components/react/vite/index.html mega-apps/${MEGA_APP_NAME}/index.html"
cp templates/components/react/vite/index.html mega-apps/${MEGA_APP_NAME}/index.html
echo "cp templates/components/react/vite/template-tsconfig-vite-${BUILD_TOOL_VERSION}.json mega-apps/${MEGA_APP_NAME}/tsconfig.json"
cp templates/components/react/vite/template-tsconfig-vite-${BUILD_TOOL_VERSION}.json mega-apps/${MEGA_APP_NAME}/tsconfig.json
echo "cp templates/components/react/vite/template-tsconfig-vite-${BUILD_TOOL_VERSION}.json mega-apps/${MEGA_APP_NAME}/tsconfig.app.json"
cp templates/components/react/vite/template-tsconfig-vite-${BUILD_TOOL_VERSION}.json mega-apps/${MEGA_APP_NAME}/tsconfig.app.json
echo "cp templates/components/react/vite/vite.config.ts mega-apps/${MEGA_APP_NAME}/vite.config.ts"
cp templates/components/react/vite/vite.config.ts mega-apps/${MEGA_APP_NAME}/vite.config.ts
fi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{
"compilerOptions": {
"composite": true,
"allowJs": true,
"target": "ESNext",
"lib": [
"DOM",
"DOM.Iterable",
"ESNext"
],
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"module": "ESNext",
"skipLibCheck": true,
"moduleResolution": "bundler",
Expand All @@ -20,12 +17,5 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": [
"src"
],
"references": [
{
"path": "./tsconfig.node.json"
}
]
"include": ["src"]
}

0 comments on commit b1d8c80

Please sign in to comment.