Skip to content

Commit

Permalink
feat: fix js parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
shailesh-sf committed Dec 5, 2024
1 parent dea3cdf commit bdc1314
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/migration/related/LwcMigration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class LwcMigration extends BaseRelatedObjectMigration {
const type = 'assessment';
const pwd = shell.pwd();
shell.cd(this.projectPath);
// sfProject.retrieve(LWCTYPE, this.org.getUsername());
sfProject.retrieve(LWCTYPE, this.org.getUsername());
const filesMap = this.processLwcFiles(this.projectPath);
shell.cd(pwd);
return this.processFiles(filesMap, type);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/lwcparser/jsParser/JavaScriptParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class JavaScriptParser {
const jsContentMap = new Map<string, string>();
// Read the JavaScript file
const code = fs.readFileSync(filePath, 'utf-8');
if (code.includes('Generated class DO NOT MODIFY')) {
if (code.includes('Generated class DO NOT MODIFY') || code.includes(oldSource + '/')) {
return null;
}
jsContentMap.set(FileConstant.BASE_CONTENT, code);
Expand Down

0 comments on commit bdc1314

Please sign in to comment.