diff --git a/package.json b/package.json index 22a5b69..c180570 100644 --- a/package.json +++ b/package.json @@ -11,13 +11,14 @@ "build": "rimraf dist && tsc" }, "main": "dist/index.js", + "type": "module", "typings": "dist/index.d.ts", "dependencies": {}, "devDependencies": { "@semantic-release/git": "^9.0.0", "rimraf": "^3.0.2", "semantic-release": "^17.2.4", - "typescript": "^4.0.3" + "typescript": "^5.2.2" }, "release": { "branches": [ diff --git a/tsconfig.json b/tsconfig.json index c47a22c..e291214 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { - "target": "es5", - "module": "commonjs", + "target": "ES6", + "module": "ES2022", "moduleResolution": "node", "declaration": true, "removeComments": true, diff --git a/yarn.lock b/yarn.lock index 8fcc1f2..6ed90fb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4344,10 +4344,10 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@^4.0.3: - version "4.0.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.3.tgz#153bbd468ef07725c1df9c77e8b453f8d36abba5" - integrity sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg== +typescript@^5.2.2: + version "5.2.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78" + integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w== uglify-js@^3.1.4: version "3.11.2"