Skip to content

Commit

Permalink
Move binary files
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Mar 1, 2019
1 parent 9c23f74 commit 8a15af1
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 23 deletions.
6 changes: 0 additions & 6 deletions bin/test_openapi.js

This file was deleted.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
"version": "42.2.5",
"main": "dist/index.js",
"files": [
"bin",
"dist",
"!*~"
"dist"
],
"bin": {
"test-openapi": "bin/test_openapi.js"
"test-openapi": "dist/bin/index.js"
},
"scripts": {
"test": "gulp test"
Expand Down
5 changes: 2 additions & 3 deletions src/cli/main.js → src/bin/index.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
'use strict'

const { exit } = require('process')
Expand Down Expand Up @@ -30,6 +31,4 @@ const runCliHandler = function({ tasks, message }) {

const eRunCli = addErrorHandler(runCli, runCliHandler)

module.exports = {
runCli: eRunCli,
}
eRunCli()
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions src/cli/index.js

This file was deleted.

5 changes: 1 addition & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@
// eslint-disable-next-line import/no-unassigned-import
require('./node_compat')

module.exports = {
...require('./cli'),
...require('./run'),
}
module.exports = require('./run')
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const test = require('ava')
const execa = require('execa')

const BINARY_PATH = `${__dirname}/../bin/test_openapi.js`
const BINARY_PATH = `${__dirname}/../dist/bin/index.js`
const TASKS_FILE = `${__dirname}/tasks.yml`

test('Smoke test', async t => {
Expand Down

0 comments on commit 8a15af1

Please sign in to comment.