Skip to content

Commit

Permalink
Rename transpileBrs to allowBrighterScriptInBrightScript
Browse files Browse the repository at this point in the history
  • Loading branch information
justinMBullard committed May 19, 2022
1 parent 4e17bf5 commit a5de16b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/BsConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,5 @@ export interface BsConfig {
* Force BRS file to be transpiled
* @default false
*/
transpileBrs?: boolean;
allowBrighterScriptInBrightScript?: boolean;
}
2 changes: 1 addition & 1 deletion src/files/BrsFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class BrsFile {
this.extension = util.getExtension(this.srcPath);

//all BrighterScript files need to be transpiled
if (this.extension?.endsWith('.bs') || program?.options?.transpileBrs) {
if (this.extension?.endsWith('.bs') || program?.options?.allowBrighterScriptInBrightScript) {
this.needsTranspiled = true;
this.parseMode = ParseMode.BrighterScript;
}
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export class Util {
config.showDiagnosticsInConsole = config.showDiagnosticsInConsole === false ? false : true;
config.sourceRoot = config.sourceRoot ? standardizePath(config.sourceRoot) : undefined;
config.cwd = config.cwd ?? process.cwd();
config.transpileBrs = config.transpileBrs === true ? true : false;
config.allowBrighterScriptInBrightScript = config.allowBrighterScriptInBrightScript === true ? true : false;
config.emitDefinitions = config.emitDefinitions === true ? true : false;
if (typeof config.logLevel === 'string') {
config.logLevel = LogLevel[(config.logLevel as string).toLowerCase()];
Expand Down

0 comments on commit a5de16b

Please sign in to comment.