@percy/cli-exec 1.27.0-beta.0 → 1.27.0-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.
- package/dist/exec.js +8 -2
- package/dist/start.js +9 -2
- package/package.json +3 -3
package/dist/exec.js
CHANGED
|
@@ -65,8 +65,14 @@ export const exec = command('exec', {
|
|
|
65
65
|
log.warn('Percy is disabled');
|
|
66
66
|
} else {
|
|
67
67
|
try {
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
// Skip this for app because they are triggered as app:exec
|
|
69
|
+
// Remove this once they move to exec command as well
|
|
70
|
+
if (percy.projectType !== 'app') {
|
|
71
|
+
percy.projectType = percy.client.tokenType();
|
|
72
|
+
percy.skipDiscovery = percy.shouldSkipAssetDiscovery(percy.projectType);
|
|
73
|
+
} else {
|
|
74
|
+
log.debug('Skipping percy project attribute calculation');
|
|
75
|
+
}
|
|
70
76
|
yield* percy.yield.start();
|
|
71
77
|
} catch (error) {
|
|
72
78
|
if (error.name === 'AbortError') throw error;
|
package/dist/start.js
CHANGED
|
@@ -8,14 +8,21 @@ export const start = command('start', {
|
|
|
8
8
|
}
|
|
9
9
|
}, async function* ({
|
|
10
10
|
percy,
|
|
11
|
+
log,
|
|
11
12
|
exit
|
|
12
13
|
}) {
|
|
13
14
|
if (!percy) exit(0, 'Percy is disabled');
|
|
14
15
|
let {
|
|
15
16
|
yieldFor
|
|
16
17
|
} = await import('@percy/cli-command/utils');
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
// Skip this for app because they are triggered as app:exec
|
|
19
|
+
// Remove this once they move to exec command as well
|
|
20
|
+
if (percy.projectType !== 'app') {
|
|
21
|
+
percy.projectType = percy.client.tokenType();
|
|
22
|
+
percy.skipDiscovery = percy.shouldSkipAssetDiscovery(percy.projectType);
|
|
23
|
+
} else {
|
|
24
|
+
log.debug('Skipping percy project attribute calculation');
|
|
25
|
+
}
|
|
19
26
|
|
|
20
27
|
// start percy
|
|
21
28
|
yield* percy.yield.start();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/cli-exec",
|
|
3
|
-
"version": "1.27.0-beta.
|
|
3
|
+
"version": "1.27.0-beta.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@percy/cli-command": "1.27.0-beta.
|
|
36
|
+
"@percy/cli-command": "1.27.0-beta.1",
|
|
37
37
|
"cross-spawn": "^7.0.3",
|
|
38
38
|
"which": "^2.0.2"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "40cdf9c38613ccaf5e3707cd2cd2d2778ffbd5dd"
|
|
41
41
|
}
|