vlcik
vlcik

Reputation: 960

How to ignore generating tsconfig.json in Next.js

My next.js folder structure looks like:

site
│  package.json
│  tsconfig.json
│  tslint.json
│  yarn.lock
│
├─dist
│      index.js
│
└─src
       index.ts

The problem is that every next build src generates new tsconfig.json in src folder. I already configured TS in tsconfig.json placed in parent directory so I don't need new configuration file.

Is there a way how to ignore generating tsconfig.json file during next.js build?

Upvotes: 1

Views: 1466

Answers (1)

juliomalves
juliomalves

Reputation: 50228

Your script should run next build instead.

Next.js automatically detects the src/ folder when it's there.

Upvotes: 1

Related Questions