d3ployer 0.0.6 → 0.0.7

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.
@@ -21,14 +21,14 @@ export function buildRsyncCommand(server, source, dest, files, options = {}) {
21
21
  // include/exclude
22
22
  if (files.exclude) {
23
23
  for (const pattern of files.exclude) {
24
- args.push(`--exclude=${pattern}`);
24
+ args.push(`--exclude="${pattern}"`);
25
25
  }
26
26
  }
27
27
  if (files.include) {
28
28
  for (const pattern of files.include) {
29
- args.push(`--include=${pattern}`);
29
+ args.push(`--include="${pattern}"`);
30
30
  }
31
- args.push('--exclude=*');
31
+ args.push('--exclude="*"');
32
32
  }
33
33
  args.push(source, dest);
34
34
  return args.join(' ');
@@ -62,6 +62,9 @@ export const downloadSkip = (ctx) => {
62
62
  };
63
63
  export const downloadTask = async (ctx, ph) => {
64
64
  const files = ctx.taskConfig;
65
+ if (!files) {
66
+ throw new Exception('No files configuration provided in task config', 1784523741234);
67
+ }
65
68
  const localBase = files.basePath?.startsWith('/')
66
69
  ? files.basePath
67
70
  : path.resolve(ctx.config.rootDir, files.basePath ?? '.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "d3ployer",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {