@qse/ssh-sftp 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -36,6 +36,8 @@ npm i @qse/ssh-sftp -D
36
36
 
37
37
  ### `.sftprc.json`
38
38
 
39
+ schema定义 http://www.zhidianbao.cn:8088/qsxxwapdev/edu-ssh-sftp/sftprc.schema.json
40
+
39
41
  | 字段名 | 类型 | 描述 | 默认值 |
40
42
  | ---------------- | ---------------------------------------------------- | ---------------------------------------------- | ---------------------- |
41
43
  | localPath | `string` | | `'dist'` |
package/lib/index.js CHANGED
@@ -437,6 +437,9 @@ function parseOpts(opts) {
437
437
  opts.cleanRemoteFiles = [opts.cleanRemoteFiles].flat(1).filter(Boolean);
438
438
  }
439
439
 
440
+ opts.connectOptions = { ...opts.connectOptions,
441
+ readyTimeout: 2 * 60 * 1000
442
+ };
440
443
  return opts;
441
444
  }
442
445
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qse/ssh-sftp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "教育代码部署工具",
5
5
  "main": "lib/index.js",
6
6
  "author": "Ironkinoko <kinoko_main@outlook.com>",
@@ -8,7 +8,7 @@
8
8
  "scripts": {
9
9
  "start": "dumi dev",
10
10
  "docs:build": "dumi build && cp sftprc.schema.json docs-dist",
11
- "docs:deploy": "ssh-sftp",
11
+ "docs:deploy": "node ./src/cli.js",
12
12
  "build": "father-build",
13
13
  "deploy": "yarn docs:build && yarn docs:deploy && rm -rf docs-dist",
14
14
  "release": "yarn build && npm publish && rm -rf lib",