Skip to content

Commit

Permalink
rolling back ES2022 tsconfig.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanb committed Jul 30, 2024
1 parent 9510294 commit 8479653
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/json-csv-node/src/exporter.cts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type NodeExportOptions = ExportOptions & { encoding: BufferEncoding }
*/
export const checkOptions = (opts?: Partial<NodeExportOptions>): NodeExportOptions => {
const options: Partial<NodeExportOptions> = baseCheckOptions(opts)
options.encoding = opts.encoding || 'utf8'
options.encoding = opts.encoding ?? 'utf8'
return options as NodeExportOptions
}

Expand Down
4 changes: 2 additions & 2 deletions tsconfig-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"forceConsistentCasingInFileNames": true,
"incremental": true,
"inlineSourceMap": false,
"lib": ["ES2022"],
"lib": ["ES6"],
"module": "Node16",
"moduleResolution": "Node16",
"resolveJsonModule": true,
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"sourceMap": true,
"target": "ES2022"
"target": "ES6"
}
}

0 comments on commit 8479653

Please sign in to comment.