@percy/cli-command 1.31.14-beta.0 → 1.31.14-beta.1

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.
Files changed (2) hide show
  1. package/dist/flags.js +10 -1
  2. package/package.json +5 -5
package/dist/flags.js CHANGED
@@ -85,6 +85,15 @@ export const disableCache = {
85
85
  percyrc: 'discovery.disableCache',
86
86
  group: 'Percy'
87
87
  };
88
+ export const maxCacheRam = {
89
+ name: 'max-cache-ram',
90
+ description: 'Cap asset-discovery cache memory in MB (e.g. 300)',
91
+ env: 'PERCY_MAX_CACHE_RAM',
92
+ percyrc: 'discovery.maxCacheRam',
93
+ type: 'integer',
94
+ parse: Number,
95
+ group: 'Percy'
96
+ };
88
97
  export const debug = {
89
98
  name: 'debug',
90
99
  description: 'Debug asset discovery and do not upload snapshots',
@@ -106,7 +115,7 @@ export const labels = {
106
115
  export const GLOBAL = [verbose, quiet, silent, labels];
107
116
  export const PERCY = [config, dryRun];
108
117
  export const SERVER = [port];
109
- export const DISCOVERY = [allowedHostnames, disallowedHostnames, networkIdleTimeout, disableCache, debug];
118
+ export const DISCOVERY = [allowedHostnames, disallowedHostnames, networkIdleTimeout, disableCache, maxCacheRam, debug];
110
119
 
111
120
  // export the namespace as the default
112
121
  export * as default from './flags.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/cli-command",
3
- "version": "1.31.14-beta.0",
3
+ "version": "1.31.14-beta.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,9 +36,9 @@
36
36
  "test:coverage": "yarn test --coverage"
37
37
  },
38
38
  "dependencies": {
39
- "@percy/config": "1.31.14-beta.0",
40
- "@percy/core": "1.31.14-beta.0",
41
- "@percy/logger": "1.31.14-beta.0"
39
+ "@percy/config": "1.31.14-beta.1",
40
+ "@percy/core": "1.31.14-beta.1",
41
+ "@percy/logger": "1.31.14-beta.1"
42
42
  },
43
- "gitHead": "a87281473a9f5cb69a3030845cc4d6b4b81509b0"
43
+ "gitHead": "dd6957822cc94d460fd9c043a44cc4c9c5fcba23"
44
44
  }