|
1 | 1 | { |
2 | 2 | "name": "walutomat-sdk", |
3 | | - "version": "0.1.0", |
| 3 | + "version": "0.2.0", |
4 | 4 | "description": "Unofficial TypeScript client for the Walutomat API v2.0.0", |
5 | 5 | "keywords": [ |
6 | 6 | "api", |
|
19 | 19 | "dist" |
20 | 20 | ], |
21 | 21 | "type": "module", |
22 | | - "main": "./dist/index.js", |
| 22 | + "main": "./dist/cjs/index.js", |
| 23 | + "module": "./dist/index.js", |
23 | 24 | "types": "./dist/index.d.ts", |
24 | 25 | "exports": { |
25 | 26 | ".": { |
26 | | - "types": "./dist/index.d.ts", |
27 | | - "import": "./dist/index.js" |
| 27 | + "import": { |
| 28 | + "types": "./dist/index.d.ts", |
| 29 | + "default": "./dist/index.js" |
| 30 | + }, |
| 31 | + "require": { |
| 32 | + "types": "./dist/cjs/index.d.ts", |
| 33 | + "default": "./dist/cjs/index.js" |
| 34 | + } |
28 | 35 | }, |
29 | 36 | "./account": { |
30 | | - "types": "./dist/endpoints/account.d.ts", |
31 | | - "import": "./dist/endpoints/account.js" |
| 37 | + "import": { |
| 38 | + "types": "./dist/endpoints/account.d.ts", |
| 39 | + "default": "./dist/endpoints/account.js" |
| 40 | + }, |
| 41 | + "require": { |
| 42 | + "types": "./dist/cjs/endpoints/account.d.ts", |
| 43 | + "default": "./dist/cjs/endpoints/account.js" |
| 44 | + } |
32 | 45 | }, |
33 | 46 | "./transfers": { |
34 | | - "types": "./dist/endpoints/transfers.d.ts", |
35 | | - "import": "./dist/endpoints/transfers.js" |
| 47 | + "import": { |
| 48 | + "types": "./dist/endpoints/transfers.d.ts", |
| 49 | + "default": "./dist/endpoints/transfers.js" |
| 50 | + }, |
| 51 | + "require": { |
| 52 | + "types": "./dist/cjs/endpoints/transfers.d.ts", |
| 53 | + "default": "./dist/cjs/endpoints/transfers.js" |
| 54 | + } |
36 | 55 | }, |
37 | 56 | "./direct-fx": { |
38 | | - "types": "./dist/endpoints/direct-fx.d.ts", |
39 | | - "import": "./dist/endpoints/direct-fx.js" |
| 57 | + "import": { |
| 58 | + "types": "./dist/endpoints/direct-fx.d.ts", |
| 59 | + "default": "./dist/endpoints/direct-fx.js" |
| 60 | + }, |
| 61 | + "require": { |
| 62 | + "types": "./dist/cjs/endpoints/direct-fx.d.ts", |
| 63 | + "default": "./dist/cjs/endpoints/direct-fx.js" |
| 64 | + } |
40 | 65 | }, |
41 | 66 | "./market-fx": { |
42 | | - "types": "./dist/endpoints/market-fx.d.ts", |
43 | | - "import": "./dist/endpoints/market-fx.js" |
| 67 | + "import": { |
| 68 | + "types": "./dist/endpoints/market-fx.d.ts", |
| 69 | + "default": "./dist/endpoints/market-fx.js" |
| 70 | + }, |
| 71 | + "require": { |
| 72 | + "types": "./dist/cjs/endpoints/market-fx.d.ts", |
| 73 | + "default": "./dist/cjs/endpoints/market-fx.js" |
| 74 | + } |
44 | 75 | }, |
45 | 76 | "./auth": { |
46 | | - "types": "./dist/auth.d.ts", |
47 | | - "import": "./dist/auth.js" |
| 77 | + "import": { |
| 78 | + "types": "./dist/auth.d.ts", |
| 79 | + "default": "./dist/auth.js" |
| 80 | + }, |
| 81 | + "require": { |
| 82 | + "types": "./dist/cjs/auth.d.ts", |
| 83 | + "default": "./dist/cjs/auth.js" |
| 84 | + } |
48 | 85 | }, |
49 | 86 | "./errors": { |
50 | | - "types": "./dist/errors.d.ts", |
51 | | - "import": "./dist/errors.js" |
| 87 | + "import": { |
| 88 | + "types": "./dist/errors.d.ts", |
| 89 | + "default": "./dist/errors.js" |
| 90 | + }, |
| 91 | + "require": { |
| 92 | + "types": "./dist/cjs/errors.d.ts", |
| 93 | + "default": "./dist/cjs/errors.js" |
| 94 | + } |
52 | 95 | }, |
53 | 96 | "./types": { |
54 | 97 | "types": "./dist/types/index.d.ts" |
55 | 98 | } |
56 | 99 | }, |
57 | 100 | "scripts": { |
58 | | - "build": "tsc -p tsconfig.build.json", |
| 101 | + "build": "tsc -p tsconfig.build.json && tsc -p tsconfig.cjs.build.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json", |
59 | 102 | "typecheck": "tsc --noEmit", |
60 | 103 | "test": "vitest run --exclude 'src/__integration__/**'", |
61 | 104 | "test:watch": "vitest --exclude 'src/__integration__/**'", |
|
0 commit comments