File tree 4 files changed +280
-15
lines changed
4 files changed +280
-15
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 1.2.4" ,
4
4
"description" : " Typescript SDK for the Orca protocol." ,
5
5
"main" : " dist/index.js" ,
6
+ "module" : " dist/index.mjs" ,
6
7
"types" : " dist/index.d.ts" ,
8
+ "exports" : {
9
+ "." : {
10
+ "require" : " ./dist/index.js" ,
11
+ "import" : " ./dist/index.mjs" ,
12
+ "types" : " ./dist/index.d.ts"
13
+ }
14
+ },
7
15
"license" : " MIT" ,
8
16
"dependencies" : {
9
17
"@orca-so/aquafarm" : " ^0.0.12" ,
28
36
"lint-staged" : " >=10" ,
29
37
"prettier" : " ^2.3.2" ,
30
38
"ts-jest" : " ^27.0.3" ,
39
+ "tsup" : " ^5.10.0" ,
31
40
"typescript" : " ^4.3.2"
32
41
},
33
42
"scripts" : {
34
- "build" : " tsc -p src " ,
35
- "watch" : " tsc -w -p src " ,
43
+ "build" : " tsup src/index.ts --format esm,cjs --dts " ,
44
+ "watch" : " tsup src/index.ts --watch --format esm,cjs --dts " ,
36
45
"prettier-format" : " prettier --config .prettierrc 'src/**/*.ts' --write" ,
37
46
"prepare" : " husky install" ,
38
- "prepublishOnly" : " tsc -p src " ,
47
+ "prepublishOnly" : " tsup src/index.ts --format esm,cjs --dts " ,
39
48
"test" : " jest"
40
49
},
41
50
"lint-staged" : {
Original file line number Diff line number Diff line change 1
1
import { u64 } from "@solana/spl-token" ;
2
2
import Decimal from "decimal.js" ;
3
- import { OrcaToken , OrcaU64 } from "../.." ;
3
+ import { OrcaU64 } from "." ;
4
+ import { OrcaToken } from "../.." ;
4
5
import { OrcaFarmParams } from "../../../model/orca/farm/farm-types" ;
5
6
import { OrcaPoolParams } from "../../../model/orca/pool/pool-types" ;
6
7
import { DecimalUtil } from "./decimal-utils" ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ../tsconfig-base.json" ,
3
- "compilerOptions" : {
4
- "composite" : true ,
5
- },
6
- }
3
+ "compilerOptions" : {}
4
+ }
You can’t perform that action at this time.
0 commit comments