Skip to content

Commit

Permalink
Notify of new updates after processing commandline input
Browse files Browse the repository at this point in the history
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
  • Loading branch information
Richienb committed Dec 4, 2020
1 parent da3b458 commit 96f1be0
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const path = require("path")
const updateNotifier = require("update-notifier")
const exitHook = require("exit-hook")
const getPort = require("get-port")
const pkg = require("./package.json")

const { babel } = require("@rollup/plugin-babel")
const closure = require("@ampproject/rollup-plugin-closure-compiler")
Expand All @@ -18,20 +17,20 @@ const commonjs = require("@rollup/plugin-commonjs")
const typescript = require("@rollup/plugin-typescript")
const serve = require("rollup-plugin-serve")

updateNotifier({ pkg }).notify()

const { input, showHelp } = meow(`
Usage
$ scratcher [build|watch] <source>
const { input, pkg, showHelp } = meow(`
Usage
$ scratcher [build|watch] <source>
Examples
$ scratcher build
${chalk.green("Successfully built extension!")}
Examples
$ scratcher build
${chalk.green("Successfully built extension!")}
$ scratcher watch
${chalk.cyan("/")} Waiting for changes
$ scratcher watch
${chalk.cyan("/")} Waiting for changes
`)

updateNotifier({ pkg }).notify()

const [
action,
source = path.resolve("source", "index.ts"),
Expand Down

0 comments on commit 96f1be0

Please sign in to comment.