We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a340d1 commit ce9258cCopy full SHA for ce9258c
src/RokuDeploy.ts
@@ -802,7 +802,11 @@ export class RokuDeploy {
802
if (this.fsExtra.existsSync(fileName)) {
803
let configFileText = this.fsExtra.readFileSync(fileName).toString();
804
let parseErrors = [] as ParseError[];
805
- fileOptions = parseJsonc(configFileText, parseErrors);
+ fileOptions = parseJsonc(configFileText, parseErrors, {
806
+ allowEmptyContent: true,
807
+ allowTrailingComma: true,
808
+ disallowComments: false
809
+ });
810
if (parseErrors.length > 0) {
811
throw new Error(`Error parsing "${path.resolve(fileName)}": ` + JSON.stringify(
812
parseErrors.map(x => {
0 commit comments