@rpcbase/cli 0.77.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 +1 -1
- package/src/cmd-deploy.js +6 -3
- package/src/index.js +6 -0
package/package.json
CHANGED
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,10 @@ export const deploy = async (argv) => {
|
|
|
97
97
|
// "*.env*",
|
|
98
98
|
"*.js.map",
|
|
99
99
|
"*.md",
|
|
100
|
-
|
|
100
|
+
].concat(argv.ignore)
|
|
101
|
+
|
|
102
|
+
console.log("EEE", excludeList)
|
|
103
|
+
|
|
101
104
|
|
|
102
105
|
const excludeArgs = excludeList.map((p) => `--exclude='${p}'`).join(" ");
|
|
103
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) => {
|