♻️ Call ff-init through a function

Fixes #8
This commit is contained in:
trickypr 2021-12-03 16:55:33 +11:00
parent 210b304130
commit 4ecc743b8c
2 changed files with 5 additions and 10 deletions

View file

@ -4,7 +4,7 @@ import { resolve } from 'path'
import { bin_name, log } from '..'
import { dispatch } from '../utils'
export const init = async (directory: Command): Promise<void> => {
export const init = async (directory: Command | string): Promise<void> => {
if (process.platform == 'win32') {
// Because Windows cannot handle paths correctly, we're just calling a script as the workaround.
log.info(