diff --git a/package.json b/package.json index 7490a58a..2b89b37f 100644 --- a/package.json +++ b/package.json @@ -55,9 +55,9 @@ ], "scripts": { "build": "yarn clean && yarn build:cjs && yarn build:esm && yarn build:types", - "build:cjs": "tsc --project tsconfig.build.json --module CommonJS --moduleResolution Node --outDir ./dist/cjs --removeComments --verbatimModuleSyntax false && echo > ./dist/cjs/package.json '{\"type\":\"commonjs\"}'", - "build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm && echo > ./dist/esm/package.json '{\"type\":\"module\",\"sideEffects\":false}'", - "build:types": "tsc --project tsconfig.build.json --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap", + "build:cjs": "tsc --project tsconfig.build.json --module commonjs --outDir ./dist/cjs --removeComments --verbatimModuleSyntax false && echo > ./dist/cjs/package.json '{\"type\":\"commonjs\"}'", + "build:esm": "tsc --project tsconfig.build.json --module es2015 --outDir ./dist/esm && echo > ./dist/esm/package.json '{\"type\":\"module\",\"sideEffects\":false}'", + "build:types": "tsc --project tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap", "clean": "rm -rf dist tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo", "coverage": "vitest run --coverage", "postinstall": "husky install", @@ -91,7 +91,7 @@ "dependencies": { "@lifi/types": "10.0.0-alpha.23", "@solana/wallet-adapter-base": "^0.9.23", - "@solana/web3.js": "^1.87.2", + "@solana/web3.js": "^1.87.3", "eth-rpc-errors": "^4.0.3", "viem": "^2.0.0-alpha.17" }, diff --git a/tsconfig.base.json b/tsconfig.base.json index c1ad0878..22d37e3d 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -35,12 +35,11 @@ "module": "NodeNext", "target": "ES2021", // Setting this to `ES2021` enables native support for `Node v16+`: https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping. "lib": [ - "ESNext", // By using ES2022 we get access to the `.cause` property on `Error` instances. - "DOM", // We are adding `DOM` here to get the `fetch`, etc. types. This should be removed once these types are available via DefinitelyTyped. - "DOM.Iterable" + "ES2022", // By using ES2022 we get access to the `.cause` property on `Error` instances. + "DOM" // We are adding `DOM` here to get the `fetch`, etc. types. This should be removed once these types are available via DefinitelyTyped. ], // Skip type checking for node modules - "skipLibCheck": true, + "skipLibCheck": true } } diff --git a/tsconfig.build.json b/tsconfig.build.json index d3b8b7c7..00cd8234 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -4,6 +4,7 @@ "include": ["src"], "exclude": ["tests", "./src/**/*.spec.ts", "./src/**/*.mock.ts", "./src/**/*.handlers.ts"], "compilerOptions": { + "moduleResolution": "node", "sourceMap": true, "rootDir": "./src" } diff --git a/yarn.lock b/yarn.lock index 77894a48..35bbb8fe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -73,7 +73,7 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.17.2, @babel/runtime@npm:^7.22.6": +"@babel/runtime@npm:^7.17.2, @babel/runtime@npm:^7.23.2": version: 7.23.2 resolution: "@babel/runtime@npm:7.23.2" dependencies: @@ -644,7 +644,7 @@ __metadata: "@lifi/types": 10.0.0-alpha.23 "@mswjs/interceptors": ^0.25.7 "@solana/wallet-adapter-base": ^0.9.23 - "@solana/web3.js": ^1.87.2 + "@solana/web3.js": ^1.87.3 "@types/ws": ^8.5.8 "@typescript-eslint/eslint-plugin": ^6.9.0 "@typescript-eslint/parser": ^6.9.0 @@ -974,11 +974,11 @@ __metadata: languageName: node linkType: hard -"@solana/web3.js@npm:^1.87.2": - version: 1.87.2 - resolution: "@solana/web3.js@npm:1.87.2" +"@solana/web3.js@npm:^1.87.3": + version: 1.87.3 + resolution: "@solana/web3.js@npm:1.87.3" dependencies: - "@babel/runtime": ^7.22.6 + "@babel/runtime": ^7.23.2 "@noble/curves": ^1.2.0 "@noble/hashes": ^1.3.1 "@solana/buffer-layout": ^4.0.0 @@ -993,7 +993,7 @@ __metadata: node-fetch: ^2.6.12 rpc-websockets: ^7.5.1 superstruct: ^0.14.2 - checksum: 775378ea775bc2559202125eae8c7eb975301616690f12e391440200d229c6255b6fcc28718d837d072895fd6853f49fc7b738d8f6f834d61610af1766c6d8c7 + checksum: 221f2f5e4e7b331beb250efc32213e6ef6ad0fe2621504c4c63d82dbb7272137b1f435bdc2cf4282c70734704744384b8b31e88a1001686addbed19e1c423329 languageName: node linkType: hard