Browse Source

add npmignore

pull/126/head
butlerx 7 years ago
parent
commit
f10c7b4138
No known key found for this signature in database GPG Key ID: B37CA765BAA89170
  1. 21
      .npmignore
  2. 7
      package.json
  3. 2
      wetty.mjs

21
.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

7
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",

2
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];
}

Loading…
Cancel
Save