wrong dir
This commit is contained in:
parent
682d53fb35
commit
7652fefff3
|
|
@ -14,7 +14,7 @@ export default function (project: string) {
|
||||||
|
|
||||||
if (projects().includes(project)) throw `${project} already exists`
|
if (projects().includes(project)) throw `${project} already exists`
|
||||||
|
|
||||||
const dir = join(NOSE_DIR, project, "bin")
|
const dir = join(NOSE_DIR, project)
|
||||||
mkdirSync(dir, { recursive: true })
|
mkdirSync(dir, { recursive: true })
|
||||||
writeFileSync(join(dir, `index.ts`), `export default (c: Context) =>\n "Hello, world!"`)
|
writeFileSync(join(dir, `index.ts`), `export default (c: Context) =>\n "Hello, world!"`)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user