refactor(new-design): Remove dependency on core
This commit is contained in:
parent
ff49991204
commit
28811c71e9
3 changed files with 2 additions and 4 deletions
|
@ -9,7 +9,6 @@ import { oraPromise } from 'ora'
|
|||
import { execa } from 'execa'
|
||||
import axios from 'axios'
|
||||
import { fileURLToPath } from 'url'
|
||||
import { capitalize } from '@freesewing/core'
|
||||
|
||||
// Current working directory
|
||||
let filename
|
||||
|
@ -116,6 +115,8 @@ export const getChoices = async () => {
|
|||
return { template, name, manager }
|
||||
}
|
||||
|
||||
const capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1)
|
||||
|
||||
// Keep track of directories that need to be created
|
||||
const dirPromises = {}
|
||||
const ensureDir = async (file, suppress = false) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue