diff --git a/README.md b/README.md index 43d70cf..03897b2 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,14 @@ To begin, either: * Use the init command for an empty workspace: ```cmd -npx bos-workspace init [configAccount] +npx bos-workspace init ``` * Clone widgets from an existing [account](https://near.social/mob.near/widget/Everyone): ```cmd npx bos-workspace clone [accountId] [dest] +npx bos-workspace dev [dest | accountId] ``` * Or install `bos-workspace` within an existing project: diff --git a/lib/init.ts b/lib/init.ts index 249b406..dae3c60 100644 --- a/lib/init.ts +++ b/lib/init.ts @@ -30,12 +30,12 @@ export async function initProject(pwd: string, template: string) { const dir = res.dir || path.join(pwd, slug); const templateDir = path.join(__dirname, '..', '..', 'templates') try { - await mvdir(path.join(templateDir, codebase), dir, { copy: true }); - await mvdir(path.join(dir, "_gitignore"), path.join(dir, ".gitignore")); + await mvdir(path.resolve(templateDir, codebase), path.resolve(dir), { copy: true }); + await mvdir(path.resolve(dir, "_gitignore"), path.resolve(dir, ".gitignore")); - await mvdir(path.join(dir, "_github"), path.join(dir, ".github")); + await mvdir(path.resolve(dir, "_github"), path.resolve(dir, ".github")); - const prefixPath = (p) => path.join(dir, p); + const prefixPath = (p) => path.resolve(dir, p); // await mvdir( // path.join(dir, "/%ACCOUNT_ID%"), diff --git a/package.json b/package.json index 7fe2386..7cb6234 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bos-workspace", - "version": "1.0.0-alpha.18", + "version": "1.0.0-alpha.19", "description": "", "bin": { "bos-workspace": "./bin/bw.js",