1313 * Identifies the type of B2C Commerce project.
1414 */
1515export type ProjectType =
16- | 'pwa-kit-v3' // PWA Kit v3 storefront (@salesforce/pwa-kit-* packages )
16+ | 'pwa-kit-v3' // PWA Kit v3 storefront (template copy or extensible flavor )
1717 | 'storefront-next' // Storefront Next (Odyssey)
1818 | 'sfra' // SFRA/cartridge-based storefront
1919 | 'custom-api' // Custom SCAPI project
20- | 'headless' // Generic headless (uses SCAPI/dw.json but no specific framework)
21- | 'unknown' ; // Could not determine
20+ | 'headless' ; // Generic headless (uses SCAPI/dw.json but no specific framework)
2221
2322/**
2423 * Detection pattern definition.
@@ -32,18 +31,6 @@ export interface DetectionPattern {
3231 detect : ( workspacePath : string ) => Promise < boolean > ;
3332}
3433
35- /**
36- * Information about detected config files.
37- */
38- export interface ConfigFileInfo {
39- /** Type of configuration file */
40- type : 'dw.json' | 'package.json' | 'mobify.json' | 'api.json' ;
41- /** Path to the file */
42- path : string ;
43- /** Relevant extracted info */
44- metadata ?: Record < string , unknown > ;
45- }
46-
4734/**
4835 * Result of workspace detection.
4936 */
@@ -54,8 +41,6 @@ export interface DetectionResult {
5441 matchedPatterns : string [ ] ;
5542 /** Whether auto-discovery was performed */
5643 autoDiscovered : boolean ;
57- /** Detected configuration files */
58- configFiles : ConfigFileInfo [ ] ;
5944}
6045
6146/**
0 commit comments