Skip to content

Commit 7e260b6

Browse files
authored
fix: expected the module specifier to be a string literal (#34)
1 parent 7ecf777 commit 7e260b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/cli/src/angular/migrations/standalone/0004-migrate-import-statements.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export const migrateImportStatements = async (
1010
) => {
1111
// Get all typescript source files in the project and update any @ionic/angular imports to @ionic/angular/standalone
1212
for (const sourceFile of project.getSourceFiles()) {
13+
if (!sourceFile.getFilePath().endsWith(".ts")) {
14+
continue;
15+
}
16+
1317
let hasChanges = false;
1418

1519
const importDeclarations = sourceFile.getImportDeclarations();

0 commit comments

Comments
 (0)