@teleporthq/teleport-project-generator 0.19.21 → 0.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.ts CHANGED
@@ -257,7 +257,7 @@ export class ProjectGenerator {
257
257
  }
258
258
  }
259
259
 
260
- if ((this.pageGenerator as HTMLComponentGenerator)?.addExternalComponents) {
260
+ if ('addExternalComponents' in this.pageGenerator) {
261
261
  ;(this.pageGenerator as unknown as HTMLComponentGenerator).addExternalComponents({
262
262
  externals: components,
263
263
  skipValidation: true,
@@ -339,7 +339,7 @@ export class ProjectGenerator {
339
339
  }
340
340
  }
341
341
 
342
- if ((this.componentGenerator as HTMLComponentGenerator)?.addExternalComponents) {
342
+ if ('addExternalComponents' in this.componentGenerator) {
343
343
  ;(this.componentGenerator as unknown as HTMLComponentGenerator).addExternalComponents({
344
344
  externals: components,
345
345
  skipValidation: true,