Skip to content

Commit

Permalink
chore: target es2021 (#264)
Browse files Browse the repository at this point in the history
Co-authored-by: Rhys Arkins <rhys@arkins.net>
  • Loading branch information
JamieMagee and rarkins committed Dec 30, 2021
1 parent 44ac477 commit 10cac3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"scripts": {
"clean": "rm -rf dist",
"compile": "cd src && ncc build ./index.ts -o ../dist -s --target es2020",
"compile": "cd src && ncc build ./index.ts -o ../dist -s --target es2021",
"eslint": "eslint .",
"eslint:fix": "yarn eslint --fix",
"lint": "run-s eslint prettier",
Expand Down
7 changes: 2 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
{
"compilerOptions": {
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"outDir": "./dist",
"target": "es2019",
"target": "ES2021",
"module": "commonjs",
"moduleResolution": "node",
"resolveJsonModule": false,
"importHelpers": true,
"useUnknownInCatchVariables": false /* we aren't prepared for enabling this by default since ts 4.4*/,
"lib": ["es2019"],
"lib": ["ES2021"],
"types": ["node", "jest"]
},
"exclude": ["node_modules", "**/__mocks__/*"]
Expand Down

0 comments on commit 10cac3f

Please sign in to comment.