diff --git a/package.json b/package.json index 855afb4..8099b52 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "@tcgdex/sdk", "version": "2.4.2", "main": "./dist/cjs/tcgdex.node.js", + "module": "./dist/modules/tcgdex.node.js", "types": "./dist/types/tcgdex.d.ts", "description": "Communicate with the Open Source TCGdex API in Javascript/Typescript using the SDK", "repository": "https://github.com/tcgdex/javascript-sdk.git", diff --git a/tsconfig.es2015.json b/tsconfig.es2015.json index 6670264..3f597a2 100644 --- a/tsconfig.es2015.json +++ b/tsconfig.es2015.json @@ -2,7 +2,7 @@ "extends": "./tsconfig.json", "include": ["./src/tcgdex.node.ts"], "compilerOptions": { - "target": "ES2020", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ + "target": "ES2015", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ "module": "ES2015", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "declaration": false, /* Generates corresponding '.d.ts' file. */ "declarationDir": null,