chore: implement AST parsing of next config

This commit is contained in:
Elliot DeNolf
2024-03-25 23:26:05 -04:00
parent 0651daa1d4
commit 5cf49aa166
6 changed files with 128 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
import type { CompilerOptions } from 'typescript'
import * as CommentJson from 'comment-json'
import { initNext } from 'create-payload-app/commands'
import execa from 'execa'
import fs from 'fs'
import path from 'path'
@@ -9,8 +10,6 @@ import tempy from 'tempy'
import { fileURLToPath } from 'url'
import { promisify } from 'util'
import { initNext } from '../../packages/create-payload-app/src/lib/init-next.js'
const filename = fileURLToPath(import.meta.url)
const dirname = path.dirname(filename)