Skip to content

Commit

Permalink
Remove unnecessary params
Browse files Browse the repository at this point in the history
  • Loading branch information
portdeveloper committed Oct 27, 2024
1 parent 2783fe3 commit 7df1a2c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions templates/base/packages/nextjs/tsconfig.json.template.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { withDefaults } from '../../../utils.js'

const contents = ({ extraPaths, extraPlugins, extraCompilerOptions, extraInclude, extraExclude }) => `{
const contents = ({ extraPlugins, extraCompilerOptions }) => `{
"compilerOptions": {
"target": "es2020",
"lib": ["dom", "dom.iterable", "esnext"],
Expand All @@ -17,7 +17,7 @@ const contents = ({ extraPaths, extraPlugins, extraCompilerOptions, extraInclude
"jsx": "preserve",
"incremental": true,
"paths": {
"~~/*": ["./*"]${extraPaths[0] ? `,${extraPaths[0]}` : ''}
"~~/*": ["./*"]
},
"plugins": [
{
Expand All @@ -29,17 +29,14 @@ const contents = ({ extraPaths, extraPlugins, extraCompilerOptions, extraInclude
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"${extraInclude[0] ? `,${extraInclude[0]}` : ''}
".next/types/**/*.ts"
],
"exclude": [
"node_modules"${extraExclude[0] ? `,${extraExclude[0]}` : ''}
"node_modules"
]
}`

export default withDefaults(contents, {
extraPaths: '',
extraPlugins: '',
extraCompilerOptions: '',
extraInclude: '',
extraExclude: ''
extraCompilerOptions: ''
})

0 comments on commit 7df1a2c

Please sign in to comment.