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
|
@ -102,8 +102,6 @@ new-design:
|
||||||
'ora': '^6.1.0'
|
'ora': '^6.1.0'
|
||||||
'prompts': '^2.4.2'
|
'prompts': '^2.4.2'
|
||||||
'recursive-readdir': '^2.2.2'
|
'recursive-readdir': '^2.2.2'
|
||||||
peer:
|
|
||||||
'@freesewing/core': *freesewing
|
|
||||||
noble:
|
noble:
|
||||||
peer:
|
peer:
|
||||||
'@freesewing/bella': *freesewing
|
'@freesewing/bella': *freesewing
|
||||||
|
|
|
@ -9,7 +9,6 @@ import { oraPromise } from 'ora'
|
||||||
import { execa } from 'execa'
|
import { execa } from 'execa'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import { fileURLToPath } from 'url'
|
import { fileURLToPath } from 'url'
|
||||||
import { capitalize } from '@freesewing/core'
|
|
||||||
|
|
||||||
// Current working directory
|
// Current working directory
|
||||||
let filename
|
let filename
|
||||||
|
@ -116,6 +115,8 @@ export const getChoices = async () => {
|
||||||
return { template, name, manager }
|
return { template, name, manager }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1)
|
||||||
|
|
||||||
// Keep track of directories that need to be created
|
// Keep track of directories that need to be created
|
||||||
const dirPromises = {}
|
const dirPromises = {}
|
||||||
const ensureDir = async (file, suppress = false) => {
|
const ensureDir = async (file, suppress = false) => {
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
},
|
},
|
||||||
"peerDependencies": {},
|
"peerDependencies": {},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@freesewing/core": "^3.0.0-alpha.2",
|
|
||||||
"axios": "^1.1.2",
|
"axios": "^1.1.2",
|
||||||
"chalk": "^5.0.1",
|
"chalk": "^5.0.1",
|
||||||
"execa": "^6.1.0",
|
"execa": "^6.1.0",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue