11import { createExtensionSpecification } from '../specification.js'
22import { BaseSchemaWithHandle } from '../schemas.js'
33import { 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
66const ChannelSpecificationSchema = BaseSchemaWithHandle . extend ( {
77 type : zod . literal ( 'channel_config' ) ,
88 name : zod . string ( ) . optional ( ) ,
9- channel_requirements : zod . any ( ) ,
109} )
1110
1211const 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
1615const 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