Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: move flush to top-level
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 13, 2018
1 parent 4eb3887 commit 6b7af6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require('ts-node/register')
require('../src').run()
.then(require('../src/flush'))
.then(require('../flush'))
.catch(require('@oclif/errors/handle'))

// const {Command, flags, parse} = require('../src')
Expand Down
2 changes: 1 addition & 1 deletion src/flush.ts → flush.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export = async () => {
module.exports = async () => {
try {
const {ux} = require('cli-ux')
await ux.flush()
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"node": ">=8.0.0"
},
"files": [
"/flush.js",
"/lib"
],
"homepage": "https://github.com/oclif/command",
Expand Down

0 comments on commit 6b7af6a

Please sign in to comment.