Skip to content

Commit

Permalink
third trys the charm
Browse files Browse the repository at this point in the history
  • Loading branch information
aruniverse committed Feb 7, 2022
1 parent 272f8ae commit fa91d81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions create-cospace/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env node

import { fileURLToPath } from "url";
import * as path from "path";
import fs from "fs-extra";
import meow from "meow";
Expand Down Expand Up @@ -58,8 +59,9 @@ const init = async () => {

console.log(`\nCreating cospace in ${cospaceDir}...`);

const __dirname = path.resolve()
await fs.copy(path.join(__dirname, "../template"), cospaceDir);
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
await fs.copy(path.join(__dirname, "./template"), cospaceDir);

process.chdir(cospaceDir);

Expand Down
2 changes: 1 addition & 1 deletion create-cospace/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-cospace",
"version": "0.1.2",
"version": "0.1.3",
"description": "Setup a `CoSpace` to link multiple (mono)repos together!",
"author": "https://github.com/aruniverse",
"repository": {
Expand Down

0 comments on commit fa91d81

Please sign in to comment.