Skip to content

Commit a95dadb

Browse files
authored
Merge pull request #7401 from Shopify/patch-web-pixel
Fix dev and build command for web_pixel extensions
2 parents ff230db + 14bfc42 commit a95dadb

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changeset/seven-meals-divide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/cli': patch
3+
---
4+
5+
Fix dev and build command for web_pixel extensions

packages/app/src/cli/models/extensions/specifications/web_pixel_extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ const webPixelSpec = createExtensionSpecification({
3333
partnersWebIdentifier: 'web_pixel',
3434
schema: WebPixelSchema,
3535
appModuleFeatures: (_) => ['esbuild', 'single_js_entry_path'],
36-
getOutputRelativePath: (extension: ExtensionInstance<WebPixelConfigType>) => `dist/${extension.handle}.js`,
36+
getOutputRelativePath: (extension: ExtensionInstance<WebPixelConfigType>) => `${extension.handle}.js`,
3737
clientSteps: [
3838
{
3939
lifecycle: 'deploy',
40-
steps: [{id: 'bundle-ui', name: 'Bundle UI Extension', type: 'bundle_ui', config: {}}],
40+
steps: [{id: 'bundle-ui', name: 'Bundle UI Extension', type: 'bundle_ui', config: {bundleFolder: 'dist/'}}],
4141
},
4242
],
4343
deployConfig: async (config, _) => {

0 commit comments

Comments
 (0)