Skip to content

Commit

Permalink
chore: update tsconfig target and module to es2022 (#33)
Browse files Browse the repository at this point in the history
This enables the option to use top level await and is also
aligned with the latest angular tsconfig target
  • Loading branch information
pmpak authored Nov 24, 2023
1 parent 9a0056f commit 56fb514
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ const y = yargs().option('patterns', {
describe: 'Default patterns',
type: 'array',
default: ['/**/*.html', '/**/*.ts'],
// eslint-disable-next-line id-denylist
string: true,
hidden: true
});

const parsed = y.parse() as any; // temporary any
const parsed = await y.parse();

export const cli: any = y // temporary any
const cli = await y
.usage('Extract strings from files for translation.\nUsage: $0 [options]')
.version(process.env.npm_package_version)
.alias('version', 'v')
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"noImplicitThis": true,
"removeComments": true,
"declaration": true,
"target": "es2020",
"target": "es2022",
"lib": [
"es2020",
"es2022",
"dom"
],
"module": "es2020",
"module": "es2022",
"esModuleInterop": true,
"moduleResolution": "node",
"outDir": "dist",
Expand Down

0 comments on commit 56fb514

Please sign in to comment.