@jayfong/x-server 2.89.0 → 2.90.0

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.
@@ -25,14 +25,14 @@ class DeployUtil {
25
25
  const appDir = `./${appName}`;
26
26
  await ssh.execCommand((0, _vtils.dedent)`
27
27
  set -ex
28
- mkdir -p ./app_files/${appName}
28
+ mkdir -p ./app_files/${appName}/${options.channel || 'dist'}
29
29
  mkdir -p ${appDir}
30
30
  `, {
31
31
  cwd: options.dir,
32
32
  onStdout: buf => console.log(buf.toString()),
33
33
  onStderr: buf => console.log(buf.toString())
34
34
  });
35
- const remoteAppFile = `${options.dir}/app_files/${appName}/${_path.default.basename(appFile)}`;
35
+ const remoteAppFile = `${options.dir}/app_files/${appName}/${options.channel || 'dist'}/${_path.default.basename(appFile)}`;
36
36
  await ssh.putFile(appFile, remoteAppFile);
37
37
  await ssh.execCommand((0, _vtils.dedent)`
38
38
  set -ex
@@ -20,14 +20,14 @@ export class DeployUtil {
20
20
  const appDir = `./${appName}`;
21
21
  await ssh.execCommand(dedent`
22
22
  set -ex
23
- mkdir -p ./app_files/${appName}
23
+ mkdir -p ./app_files/${appName}/${options.channel || 'dist'}
24
24
  mkdir -p ${appDir}
25
25
  `, {
26
26
  cwd: options.dir,
27
27
  onStdout: buf => console.log(buf.toString()),
28
28
  onStderr: buf => console.log(buf.toString())
29
29
  });
30
- const remoteAppFile = `${options.dir}/app_files/${appName}/${path.basename(appFile)}`;
30
+ const remoteAppFile = `${options.dir}/app_files/${appName}/${options.channel || 'dist'}/${path.basename(appFile)}`;
31
31
  await ssh.putFile(appFile, remoteAppFile);
32
32
  await ssh.execCommand(dedent`
33
33
  set -ex
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "2.89.0",
3
+ "version": "2.90.0",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",