Skip to content

Commit

Permalink
feat: migrate to latest oclif version (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
Souvikns authored Mar 2, 2022
1 parent 9b49922 commit 33d0eb5
Show file tree
Hide file tree
Showing 27 changed files with 4,911 additions and 9,177 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist
lib
test/helpers
18 changes: 18 additions & 0 deletions bin/dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env nod

const oclif = require('@oclif/core')

const path = require('path')
const project = path.join(__dirname, '..', 'tsconfig.json')

// In dev mode -> use ts-node and dev plugins
process.env.NODE_ENV = 'development'

require('ts-node').register({project})

// In dev mode, always show stack traces
oclif.settings.debug = true;

// Start the CLI
oclif.run().then(oclif.flush).catch(oclif.Errors.handle)

3 changes: 3 additions & 0 deletions bin/dev.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

node "%~dp0\dev" %*
6 changes: 2 additions & 4 deletions bin/run
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env node

require('reflect-metadata');
const oclif = require('@oclif/core')

require('@oclif/command').run()
.then(require('@oclif/command/flush'))
.catch(require('@oclif/errors/handle'))
oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'))
Loading

0 comments on commit 33d0eb5

Please sign in to comment.