Skip to content

Commit bbea3ae

Browse files
seandmccarthyisaacroldan
authored andcommitted
Adding svg to channel specification file patterns
1 parent a4b3b84 commit bbea3ae

File tree

1 file changed

+3
-6
lines changed
  • packages/app/src/cli/models/extensions/specifications

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import {createExtensionSpecification} from '../specification.js'
22
import {BaseSchemaWithHandle} from '../schemas.js'
33
import {zod} from '@shopify/cli-kit/node/schema'
4-
import {joinPath, relativePath} from '@shopify/cli-kit/node/path'
4+
import {joinPath} from '@shopify/cli-kit/node/path'
55

66
const ChannelSpecificationSchema = BaseSchemaWithHandle.extend({
77
type: zod.literal('channel_config'),
88
name: zod.string().optional(),
9-
channel_requirements: zod.any(),
109
})
1110

1211
const SUBDIRECTORY_NAME = 'specifications'
13-
const FILE_EXTENSIONS = ['json', 'toml', 'yaml', 'yml']
12+
const FILE_EXTENSIONS = ['json', 'toml', 'yaml', 'yml', 'svg']
1413

1514
// Generate glob patterns for all supported file types
1615
const getGlobPatterns = () => FILE_EXTENSIONS.map((ext) => joinPath(SUBDIRECTORY_NAME, '**', `*.${ext}`))
@@ -20,12 +19,10 @@ const channelSpecificationSpec = createExtensionSpecification({
2019
schema: ChannelSpecificationSchema,
2120
buildConfig: {mode: 'copy_files', filePatterns: getGlobPatterns()},
2221
appModuleFeatures: () => [],
23-
deployConfig: async (config, directory) => {
22+
deployConfig: async (config, _directory) => {
2423
return {
2524
handle: config.handle,
2625
name: config.name,
27-
specifications,
28-
channel_requirements: config.channel_requirements,
2926
}
3027
},
3128
})

0 commit comments

Comments
 (0)