File tree Expand file tree Collapse file tree 1 file changed +28
-23
lines changed Expand file tree Collapse file tree 1 file changed +28
-23
lines changed Original file line number Diff line number Diff line change @@ -165,29 +165,34 @@ function rawRecordToFullRecord(
165165 } : RawPackageRecord < boolean >
166166) : PackageRecord {
167167 const needsPlaywright = ! ! devDependencies && 'playwright' in devDependencies ;
168-
169- const match = packageNameRE . exec ( packageName ) ;
170- if ( ! match ) throw new Error ( `Unknown package ${ packageName } ` ) ;
171-
172- const [ , packageType , baseName ] = match ;
173-
174- switch ( packageType ) {
175- case 'bundle' :
176- return {
177- changes : hasChanges ,
178- directory : directory ,
179- name : packageName ,
180- needsPlaywright,
181- bundleName : baseName ,
182- } ;
183- case 'tab' :
184- return {
185- changes : hasChanges ,
186- directory : directory ,
187- name : packageName ,
188- needsPlaywright,
189- tabName : baseName ,
190- } ;
168+ if (
169+ packageName === '@sourceacademy/modules' ||
170+ packageName === '@sourceacademy/bundles' ||
171+ packageName === '@sourceacademy/tabs'
172+ ) {
173+ const match = packageNameRE . exec ( packageName ) ;
174+ if ( ! match ) throw new Error ( `Unknown package ${ packageName } ` ) ;
175+
176+ const [ , packageType , baseName ] = match ;
177+
178+ switch ( packageType ) {
179+ case 'bundle' :
180+ return {
181+ changes : hasChanges ,
182+ directory : directory ,
183+ name : packageName ,
184+ needsPlaywright,
185+ bundleName : baseName ,
186+ } ;
187+ case 'tab' :
188+ return {
189+ changes : hasChanges ,
190+ directory : directory ,
191+ name : packageName ,
192+ needsPlaywright,
193+ tabName : baseName ,
194+ } ;
195+ }
191196 }
192197
193198 return {
You can’t perform that action at this time.
0 commit comments