Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions cli/index.js
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -10,7 +10,7 @@ const Commands = {
INIT: "init",
OVERRIDE: "override",
PURGE: "purge",
}
};

const help = `
Usage:
Expand Down Expand Up @@ -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 () => {
Expand Down
9 changes: 7 additions & 2 deletions cli/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -20,7 +21,11 @@
"cospace",
"monorepo",
"pnpm",
"workspaces"
"workspace",
"workspaces",
"link",
"symlinks",
"dependencies"
],
"dependencies": {
"fs-extra": "^10.0.0",
Expand Down
2 changes: 2 additions & 0 deletions cli/template/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
link-workspace-packages: deep
prefer-workspace-packages: true
4 changes: 1 addition & 3 deletions cli/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
"lage": "^1.5.1"
},
"pnpm": {
"overrides": {},
"prefer-workspace-packages": true,
"link-workspace-packages": "deep"
"overrides": {}
}
}