@rpcbase/cli 0.77.0 → 0.79.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/cli",
3
- "version": "0.77.0",
3
+ "version": "0.79.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
package/src/cmd-deploy.js CHANGED
@@ -1,4 +1,4 @@
1
- import { execSync } from "child_process";
1
+ import { execFileSync, execSync } from "child_process";
2
2
  import fs from "fs";
3
3
  import path from "path";
4
4
  import os from "os";
@@ -7,7 +7,7 @@ import validator from "validator";
7
7
  export const deploy = async (argv) => {
8
8
  const log = (message) => {
9
9
  if (argv.verbose) console.log(message);
10
- };
10
+ }
11
11
 
12
12
  const {
13
13
  RB_DEPLOY_HOST,
@@ -97,7 +97,8 @@ export const deploy = async (argv) => {
97
97
  // "*.env*",
98
98
  "*.js.map",
99
99
  "*.md",
100
- ];
100
+ ].concat(argv.ignore)
101
+
101
102
 
102
103
  const excludeArgs = excludeList.map((p) => `--exclude='${p}'`).join(" ");
103
104
  const rsyncCmd = [
package/src/index.js CHANGED
@@ -57,6 +57,12 @@ yargs(hideBin(process.argv))
57
57
  alias: "v",
58
58
  describe: "Run with verbose logging",
59
59
  type: "boolean",
60
+ })
61
+ .option("ignore", {
62
+ alias: "i",
63
+ describe: "Exclude additional files from the rsync command",
64
+ type: "array",
65
+ default: [],
60
66
  });
61
67
  },
62
68
  async(argv) => {