Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Commit

Permalink
build: change ts target from es5 to ES2020
Browse files Browse the repository at this point in the history
Code is executed in nodeJS, so we can raise the target version.

Also, this patch prevent the sequelize error below:
  `Class constructor Model cannot be invoked without 'new'`

Solution:
  sequelize/sequelize#7840 (comment)
  • Loading branch information
LuckyWindsck committed May 3, 2021
1 parent b971cac commit f17293e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsconfig.json
Expand Up @@ -4,7 +4,7 @@

/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"target": "ES2020", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
// "lib": [], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */
Expand Down

0 comments on commit f17293e

Please sign in to comment.