Skip to content

Commit

Permalink
Fixes keystone start requiring Typescript by removing `tsconfig.jso…
Browse files Browse the repository at this point in the history
…n` from the generated AdminUI output (#8293)

Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com>
  • Loading branch information
Josh Calder and dcousens committed Feb 12, 2023
1 parent 071605c commit 0fada1b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/ten-beers-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-6/core': patch
---

Fixes `keystone start` requiring Typescript by removing `tsconfig.json` from the generated AdminUI output
9 changes: 5 additions & 4 deletions packages/core/src/admin-ui/templates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ export const writeAdminFiles = (
configFileExists: boolean
): AdminFileToWrite[] => {
return [
...['next.config.js', 'tsconfig.json'].map(
outputPath =>
({ mode: 'copy', inputPath: Path.join(pkgDir, 'static', outputPath), outputPath } as const)
),
{
mode: 'copy',
inputPath: Path.join(pkgDir, 'static', 'next.config.js'),
outputPath: 'next.config.js',
},
{
mode: 'copy',
inputPath: Path.join(pkgDir, 'static', 'favicon.ico'),
Expand Down

1 comment on commit 0fada1b

@vercel
Copy link

@vercel vercel bot commented on 0fada1b Feb 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.