Skip to content

Commit

Permalink
simple banner for deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeseda committed Apr 8, 2024
1 parent 142f638 commit 025a12a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/binary-config
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ console.log(`Building Begin... (DEPLOY: ${DEPLOY}, BUILD_ALL: ${BUILD_ALL})`)
let config = {
name: 'begin',
bin: {
cli: '../src/index.js'
cli: '../src/pkg-index.js'
},
pkg: {
// Don't manually include runtimes/deno.js in scripts, as it fails on pkg#997
Expand Down
7 changes: 7 additions & 0 deletions src/pkg-index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /usr/bin/env node

process.stderr.write('\x1b[41m\x1b[37m\x1b[1m DEPRECATION NOTICE: \x1b[0m \x1b[31m\x1b[1mThe Begin CLI is now available via npm\x1b[0m\n')
process.stderr.write('\x1b[1mPlease run "npm install -g @begin/deploy" to install the latest version\x1b[0m\n')

const begin = require('./index')
begin()

0 comments on commit 025a12a

Please sign in to comment.