diff --git a/gpx/package.json b/gpx/package.json index c7b7de20..756fba48 100644 --- a/gpx/package.json +++ b/gpx/package.json @@ -1,7 +1,8 @@ { "name": "gpx", "version": "1.0.0", - "main": "dist/src/index.js", + "type": "module", + "exports": "./dist/src/index.js", "types": "dist/src/index.d.ts", "repository": { "type": "git", @@ -25,4 +26,4 @@ "ts-jest": "^29.1.2", "typescript": "^5.4.5" } -} +} \ No newline at end of file diff --git a/gpx/tsconfig.json b/gpx/tsconfig.json index 5651496e..b07c04c0 100644 --- a/gpx/tsconfig.json +++ b/gpx/tsconfig.json @@ -1,9 +1,10 @@ { "compilerOptions": { - "module": "ES6", - "target": "ES5", + "module": "ES2020", + "target": "ES2015", "declaration": true, "outDir": "./dist", + "moduleResolution": "node", }, "include": [ "src",