diff --git a/package.json b/package.json index 0b6c021..0a7511f 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "snyk-protect": "npx @snyk/protect" }, "types": "./dist/index.d.ts", + "type": "module", "repository": { "type": "git", "url": "https://github.com/snyk-labs/snyk-api-ts-client" @@ -53,7 +54,7 @@ "jsonq": "^1.2.0", "lodash": "^4.17.21", "snyk-config": "^5.0.0", - "snyk-request-manager": "1.8.3", + "snyk-request-manager": "^1.8.5", "source-map-support": "^0.5.16", "tslib": "^1.10.0", "typescript": "^3.9.5", @@ -69,7 +70,7 @@ "axios-mock-adapter": "^1.19.0", "eslint": "^6.8.0", "eslint-config-prettier": "^6.10.0", - "jest": "^25.1.0", + "jest": "^25.5.4", "jest-mock-axios": "^4.2.0", "nock": "^13.0.7", "prettier": "2.0.5", diff --git a/tsconfig.json b/tsconfig.json index 1f3d977..928be4b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,10 @@ { + "preset": "ts-jest/presets/default-esm", "compilerOptions": { "outDir": "./dist", "pretty": true, "target": "es2019", - "module": "commonjs", + "module": "ESNext", "sourceMap": true, "declaration": true, "importHelpers": true,