Skip to content
Merged
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"license": "MIT",
"dependencies": {
"@babel/polyfill": "^7.7.0",
"cli-color": "^2.0.0",
"commander": "^4.0.1",
"picocolors": "^1.1.1",
"promptly": "^3.0.3",
"semver": "^6.3.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node
import "@babel/polyfill";

import clc from "cli-color";
import colors from "picocolors";
import { Command } from "commander";
import { confirm } from "promptly";

Expand Down Expand Up @@ -60,7 +60,7 @@ program
.parse(process.argv);

// Print program name and version (like what Yarn does)
console.log(clc.bold(`${name} v${version}`));
console.log(colors.bold(`${name} v${version}`));

// Make sure we're installing at least one package
if (program.args.length === 0) {
Expand Down
6 changes: 3 additions & 3 deletions src/constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clc from "cli-color";
import colors from "picocolors";

// Some constants so we get an undefined
// error instead of a silent typo in case
Expand All @@ -8,5 +8,5 @@ export const yarn = "yarn";
export const pnpm = "pnpm";

// Create prefixes for error/success events
export const errorText = clc.red.bold("ERR");
export const successText = clc.green.bold("SUCCESS");
export const errorText = colors.red(colors.bold("ERR"));
export const successText = colors.green(colors.bold("SUCCESS"));
Loading