Skip to content

Commit

Permalink
chore: update build
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Oct 27, 2023
1 parent 51d1750 commit 6349f74
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
},
Expand Down
7 changes: 3 additions & 4 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
1 change: 1 addition & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"include": ["src"],
"exclude": ["tests", "./src/**/*.spec.ts", "./src/**/*.mock.ts", "./src/**/*.handlers.ts"],
"compilerOptions": {
"moduleResolution": "node",
"sourceMap": true,
"rootDir": "./src"
}
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 6349f74

Please sign in to comment.