Skip to content

Commit

Permalink
Update pkg-index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeseda committed Apr 16, 2024
1 parent d1b440f commit 7983802
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/pkg-index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#! /usr/bin/env node

console.log(process.stdin.isTTY ? '•' : '')

if (process.stdin.isTTY) {
console.log('\x1b[41m\x1b[37m\x1b[1m DEPRECATION NOTICE: \x1b[0m \x1b[31m\x1b[1mThe Begin Deploy CLI is now updated via npm\x1b[0m')
console.log('\x1b[1mPlease run "npm install -g @begin/deploy" to install the latest version\x1b[0m\n')
if (process.env.NODE_ENV !== 'testing') {
console.error('\x1b[41m\x1b[37m\x1b[1m DEPRECATION NOTICE: \x1b[0m \x1b[31m\x1b[1mThe Begin Deploy CLI is now updated via npm\x1b[0m')
console.error('\x1b[1mPlease run "npm install -g @begin/deploy" to install the latest version\x1b[0m\n')
}

require('./index')()

0 comments on commit 7983802

Please sign in to comment.