Skip to content

Commit

Permalink
build: Keep targeting ES2020
Browse files Browse the repository at this point in the history
Adds the engines key to the package to ensure vercel uses the latest
node which supports 2020 things
  • Loading branch information
evanpurkhiser committed Oct 17, 2020
1 parent dce568f commit 5596e87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@
"webpack": "^4.44.1",
"webpack-merge": "^4.2.2"
},
"engines": {
"node": "14.x"
},
"volta": {
"node": "14.3.0",
"yarn": "1.22.4"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"target": "ES2018",
"target": "ES2020",
"module": "commonjs",
"esModuleInterop": true,
"lib": ["dom", "ES2020"],
Expand Down

0 comments on commit 5596e87

Please sign in to comment.