chore(create-payload-app): migrate to esm, adjust init-next tests

This commit is contained in:
Elliot DeNolf
2024-03-14 11:12:01 -04:00
parent e3e0f056a9
commit 53a09f4989
19 changed files with 179 additions and 90 deletions

View File

@@ -1,6 +1,6 @@
import prompts from 'prompts'
import type { CliArgs } from '../types'
import type { CliArgs } from '../types.js'
export async function parseProjectName(args: CliArgs): Promise<string> {
if (args['--name']) return args['--name']
@@ -9,8 +9,8 @@ export async function parseProjectName(args: CliArgs): Promise<string> {
const response = await prompts(
{
name: 'value',
message: 'Project name?',
type: 'text',
message: 'Project name?',
validate: (value: string) => !!value.length,
},
{