diff --git a/index.ts b/index.ts index 355abe8..e96bf04 100644 --- a/index.ts +++ b/index.ts @@ -15,5 +15,7 @@ export { ConfigurationOptions, AdditionalOptions, BasePath } from "./client/clie export { Fireblocks } from "./client/client" export { FireblocksResponse } from "./response/fireblocksResponse" export { FireblocksError } from "./error/fireblocksError" +export { AxiosManager } from "./network/axiosManager" +export { Configuration, ConfigurationParameters } from "./configuration" export * from "./api"; export * from "./models"; diff --git a/package.json b/package.json index 6f4ab0e..1158a63 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,14 @@ "license": "MIT License", "main": "./dist/index.js", "typings": "./dist/index.d.ts", + "module": "./dist/esm/index.js", + "sideEffects": false, + "files": [ + "dist" + ], "scripts": { - "build": "tsc && npm run copy:package", - "copy:package": "cp package.json dist/", + "build": "tsc && tsc -p tsconfig.esm.json && npm run copy:package", + "copy:package": "cp package.json dist/ && cp package.json dist/esm/", "prepare": "npm run build", "postversion": "if [ \"$SKIP_POSTVERSION\" != \"true\" ]; then git push && git push --tags; fi", "test": "jest --coverage --passWithNoTests --runInBand --detectOpenHandles --forceExit", diff --git a/tsconfig.esm.json b/tsconfig.esm.json new file mode 100644 index 0000000..fcae4c7 --- /dev/null +++ b/tsconfig.esm.json @@ -0,0 +1,14 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "esnext", + "moduleResolution": "node", + "outDir": "dist/esm", + "declaration": false + }, + "exclude": [ + "dist", + "node_modules", + "tests" + ] +}