diff --git a/cli/index.js b/cli/index.js index 9cfc608..c57c93c 100644 --- a/cli/index.js +++ b/cli/index.js @@ -1,7 +1,7 @@ #!/usr/bin/env node import { fileURLToPath } from "url"; -import * as path from "path"; +import path from "path"; import fs from "fs-extra"; import meow from "meow"; import { execSync } from "child_process"; @@ -10,7 +10,7 @@ const Commands = { INIT: "init", OVERRIDE: "override", PURGE: "purge", -} +}; const help = ` Usage: @@ -113,11 +113,10 @@ const overridePnpm = async () => { if (added.length) { console.log( `\nYou added the following packages to your CoSpace:\n- ${added.join( - "\n- " + "\n+ " )}` ); } - }; const purge = async () => { diff --git a/cli/package.json b/cli/package.json index b5cd929..14509d7 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,8 +1,9 @@ { "name": "cospace", - "version": "0.4.3", + "version": "0.5.0", "description": "Setup a `CoSpace` to link multiple (mono)repos together!", "author": "https://github.com/aruniverse", + "homepage": "https://aruniverse.github.io/cospace/", "license": "MIT", "repository": { "type": "git", @@ -20,7 +21,11 @@ "cospace", "monorepo", "pnpm", - "workspaces" + "workspace", + "workspaces", + "link", + "symlinks", + "dependencies" ], "dependencies": { "fs-extra": "^10.0.0", diff --git a/cli/template/.npmrc b/cli/template/.npmrc new file mode 100644 index 0000000..8dd490b --- /dev/null +++ b/cli/template/.npmrc @@ -0,0 +1,2 @@ +link-workspace-packages: deep +prefer-workspace-packages: true \ No newline at end of file diff --git a/cli/template/package.json b/cli/template/package.json index ad2aa2f..c3aac79 100644 --- a/cli/template/package.json +++ b/cli/template/package.json @@ -14,8 +14,6 @@ "lage": "^1.5.1" }, "pnpm": { - "overrides": {}, - "prefer-workspace-packages": true, - "link-workspace-packages": "deep" + "overrides": {} } }