Skip to content

Commit 632745c

Browse files
Merge pull request #266 from salesforcecli/u/spachbhai/W-17149811/lwc-filter-js
@W-17149811: feat: fix js parsing
2 parents cfb6513 + bdc1314 commit 632745c

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
@@ -27,7 +27,7 @@ export class LwcMigration extends BaseRelatedObjectMigration {
2727
const type = 'assessment';
2828
const pwd = shell.pwd();
2929
shell.cd(this.projectPath);
30-
// sfProject.retrieve(LWCTYPE, this.org.getUsername());
30+
sfProject.retrieve(LWCTYPE, this.org.getUsername());
3131
const filesMap = this.processLwcFiles(this.projectPath);
3232
shell.cd(pwd);
3333
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)