From f10c7b4138ebb45045d4ad61cfe47af910906f64 Mon Sep 17 00:00:00 2001 From: butlerx Date: Mon, 8 Jan 2018 11:38:52 +0000 Subject: [PATCH] add npmignore --- .npmignore | 21 +++++++++++++++++++++ package.json | 7 ------- wetty.mjs | 2 +- 3 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..31df1f2 --- /dev/null +++ b/.npmignore @@ -0,0 +1,21 @@ +lib-cov +*.seed +*.log +*.csv +*.dat +*.out +*.pid +*.gz + +tmp +pids +logs +results + +npm-debug.log +node_modules/* +.esm-cache +src +*.yml +Dockerfile +*.png diff --git a/package.json b/package.json index c883276..0ce0df2 100644 --- a/package.json +++ b/package.json @@ -13,13 +13,6 @@ "url": "https://github.com/butlerx/wetty/issues" }, "main": "index.js", - "files": [ - "bin", - "public", - "app.js", - "cli.js", - "wetty.js" - ], "scripts": { "lint": "eslint .", "lint:fix": "eslint . --fix", diff --git a/wetty.mjs b/wetty.mjs index a71a69f..fa3e791 100644 --- a/wetty.mjs +++ b/wetty.mjs @@ -44,7 +44,7 @@ function getCommand(socket, sshuser, sshhost, sshport, sshauth) { const args = process.getuid() === 0 && sshhost === 'localhost' ? ['login', '-h', socket.client.conn.remoteAddress.split(':')[3]] - : ['./bin/ssh', ssh, '-p', sshport, '-o', `PreferredAuthentications=${sshauth}`]; + : ['bin/ssh', ssh, '-p', sshport, '-o', `PreferredAuthentications=${sshauth}`]; return [args, ssh]; }