Skip to content

Commit

Permalink
Export module using already working syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Jan 12, 2017
1 parent c7b1cc8 commit 5e6e5bd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,4 +510,4 @@ class Args {
}
}

export default new Args()
module.exports = exports.default = new Args()
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"rules": {
"unicorn/no-process-exit": 0,
"max-lines": 0,
"ava/no-ignored-test-files": 0
"ava/no-ignored-test-files": 0,
"import/no-unresolved": 0
}
},
"author": "leo",
Expand Down
2 changes: 1 addition & 1 deletion test/_fixture.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const args = require('../dist')
const args = require('../')

args.command('install', 'desc here', () => {
console.log('install')
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import test from 'ava'
import execa from 'execa'

// Ours
import args from '../dist'
import args from '../'
import {version} from '../package'

const port = 8000
Expand Down

0 comments on commit 5e6e5bd

Please sign in to comment.