Skip to content

Commit 8a15af1

Browse files
committed
Move binary files
1 parent 9c23f74 commit 8a15af1

File tree

8 files changed

+6
-23
lines changed

8 files changed

+6
-23
lines changed

bin/test_openapi.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
"version": "42.2.5",
44
"main": "dist/index.js",
55
"files": [
6-
"bin",
7-
"dist",
8-
"!*~"
6+
"dist"
97
],
108
"bin": {
11-
"test-openapi": "bin/test_openapi.js"
9+
"test-openapi": "dist/bin/index.js"
1210
},
1311
"scripts": {
1412
"test": "gulp test"

src/cli/main.js renamed to src/bin/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env node
12
'use strict'
23

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

3132
const eRunCli = addErrorHandler(runCli, runCliHandler)
3233

33-
module.exports = {
34-
runCli: eRunCli,
35-
}
34+
eRunCli()
File renamed without changes.
File renamed without changes.

src/cli/index.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,4 @@
33
// eslint-disable-next-line import/no-unassigned-import
44
require('./node_compat')
55

6-
module.exports = {
7-
...require('./cli'),
8-
...require('./run'),
9-
}
6+
module.exports = require('./run')

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const test = require('ava')
44
const execa = require('execa')
55

6-
const BINARY_PATH = `${__dirname}/../bin/test_openapi.js`
6+
const BINARY_PATH = `${__dirname}/../dist/bin/index.js`
77
const TASKS_FILE = `${__dirname}/tasks.yml`
88

99
test('Smoke test', async t => {

0 commit comments

Comments
 (0)