Skip to content

Commit

Permalink
Fix to include customer JSON templates in theme package (#1250)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmanzella authored Jan 31, 2023
1 parent 885df76 commit 99b88ca
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cuddly-papayas-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/theme': patch
---

Fix to include customer JSON templates in `theme package`
8 changes: 7 additions & 1 deletion packages/theme/src/cli/services/package.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,16 @@ describe('packageTheme', () => {
const themeRelativePaths = [
'assets/base.css',
'config/settings_schema.json',
'config/unsupported_dir/settings_schema.json',
'templates/customers/account.json',
'invalid-file.md',
'invalid/file.liquid',
]
const expectedThemeRelativePaths = ['assets/base.css', 'config/settings_schema.json']
const expectedThemeRelativePaths = [
'assets/base.css',
'config/settings_schema.json',
'templates/customers/account.json',
]
await createFiles(themeRelativePaths, inputDirectory)
await createSettingsSchema(
'[{"name": "theme_info", "theme_name": "Dawn", "theme_version": "7.0.2"}]',
Expand Down
1 change: 1 addition & 0 deletions packages/theme/src/cli/services/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const themeDirectoriesPattern = [
'sections',
'snippets',
'templates',
'templates/customers',
'release-notes.md',
].join('/**|')

Expand Down

0 comments on commit 99b88ca

Please sign in to comment.