@rpcbase/cli 0.76.0 → 0.78.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.76.0",
3
+ "version": "0.78.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,
@@ -91,12 +91,16 @@ export const deploy = async (argv) => {
91
91
  ".wireit/",
92
92
  "coverage/",
93
93
  "node_modules/",
94
+ "infrastructure/data/",
94
95
  ".gitignore",
95
96
  "*.css.map",
96
97
  // "*.env*",
97
98
  "*.js.map",
98
99
  "*.md",
99
- ];
100
+ ].concat(argv.ignore)
101
+
102
+ console.log("EEE", excludeList)
103
+
100
104
 
101
105
  const excludeArgs = excludeList.map((p) => `--exclude='${p}'`).join(" ");
102
106
  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) => {