Skip to content

Commit bdc1314

Browse files
author
Shailesh M. Pachbhai
committed
feat: fix js parsing
1 parent dea3cdf commit bdc1314

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/migration/related/LwcMigration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class LwcMigration extends BaseRelatedObjectMigration {
2828
const type = 'assessment';
2929
const pwd = shell.pwd();
3030
shell.cd(this.projectPath);
31-
// sfProject.retrieve(LWCTYPE, this.org.getUsername());
31+
sfProject.retrieve(LWCTYPE, this.org.getUsername());
3232
const filesMap = this.processLwcFiles(this.projectPath);
3333
shell.cd(pwd);
3434
return this.processFiles(filesMap, type);

src/utils/lwcparser/jsParser/JavaScriptParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class JavaScriptParser {
1818
const jsContentMap = new Map<string, string>();
1919
// Read the JavaScript file
2020
const code = fs.readFileSync(filePath, 'utf-8');
21-
if (code.includes('Generated class DO NOT MODIFY')) {
21+
if (code.includes('Generated class DO NOT MODIFY') || code.includes(oldSource + '/')) {
2222
return null;
2323
}
2424
jsContentMap.set(FileConstant.BASE_CONTENT, code);

0 commit comments

Comments
 (0)