diff --git a/packages/client/src/client.js b/packages/client/src/client.js index 9aa087687..e3a93fc91 100644 --- a/packages/client/src/client.js +++ b/packages/client/src/client.js @@ -173,7 +173,7 @@ export class PercyClient { tags: tagsArr, 'cli-start-time': cliStartTime, source: source, - 'prod-build': this.config.percy?.prodBuild + 'skip-base-build': this.config.percy?.skipBaseBuild }, relationships: { resources: { diff --git a/packages/client/test/client.test.js b/packages/client/test/client.test.js index 7e00b4526..5fd2564d7 100644 --- a/packages/client/test/client.test.js +++ b/packages/client/test/client.test.js @@ -389,10 +389,10 @@ describe('PercyClient', () => { })); }); - it('creates a new build with prodBuild config', async () => { + it('creates a new build with skipBaseBuild config', async () => { client = new PercyClient({ token: 'PERCY_TOKEN', - config: { percy: { prodBuild: true } } + config: { percy: { skipBaseBuild: true } } }); await expectAsync(client.createBuild({ projectType: 'web' })).toBeResolvedTo({ data: { @@ -424,7 +424,7 @@ describe('PercyClient', () => { 'cli-start-time': null, source: 'user_created', partial: client.env.partial, - 'prod-build': true, + 'skip-base-build': true, tags: [] } })); diff --git a/packages/core/src/config.js b/packages/core/src/config.js index c56f93511..747bce2a0 100644 --- a/packages/core/src/config.js +++ b/packages/core/src/config.js @@ -17,7 +17,7 @@ export const configSchema = { labels: { type: 'string' }, - prodBuild: { + skipBaseBuild: { type: 'boolean', default: false }