|
1 | 1 | { |
2 | 2 | "name": "@kilnfi/sdk", |
3 | | - "version": "3.1.1", |
| 3 | + "version": "3.1.2", |
4 | 4 | "autor": "Kiln <[email protected]> (https://kiln.fi)", |
5 | 5 | "license": "BUSL-1.1", |
6 | 6 | "description": "JavaScript sdk for Kiln API", |
|
9 | 9 | "module": "./build/esm/index.js", |
10 | 10 | "types": "./build/types/index.d.ts", |
11 | 11 | "typings": "./build/types/index.d.ts", |
| 12 | + "sideEffects": false, |
12 | 13 | "exports": { |
13 | 14 | ".": { |
14 | | - "default": "./build/cjs/kiln.js", |
15 | 15 | "types": "./build/types/kiln.d.ts", |
16 | | - "import": "./build/esm/kiln.js" |
| 16 | + "import": "./build/esm/kiln.js", |
| 17 | + "default": "./build/cjs/kiln.js" |
17 | 18 | } |
18 | 19 | }, |
| 20 | + "files": [ |
| 21 | + "*", |
| 22 | + "!tsconfig.build.json" |
| 23 | + ], |
19 | 24 | "scripts": { |
20 | 25 | "lint": "biome check ./src", |
21 | 26 | "format": "biome check ./src --write --unsafe", |
22 | 27 | "build": "bun run build:esm && bun run build:cjs && bun run build:types", |
23 | | - "build:esm": "tsc --project ./tsconfig.build.json --module es2020 --outDir ./build/esm", |
24 | | - "build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./build/cjs --removeComments --verbatimModuleSyntax false", |
| 28 | + "prepublishOnly": "bun scripts/prepublishOnly.ts", |
| 29 | + "build:esm": "tsc --project ./tsconfig.build.json --module es2020 --outDir ./build/esm && printf '{\"type\":\"commonjs\"}' > ./build/esm/package.json", |
| 30 | + "build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./build/cjs --removeComments --verbatimModuleSyntax false && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./build/cjs/package.json", |
25 | 31 | "build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./build/types --emitDeclarationOnly --declaration --declarationMap" |
26 | 32 | }, |
27 | 33 | "keywords": [ |
|
39 | 45 | }, |
40 | 46 | "homepage": "https://github.com/kilnfi/sdk-js#readme", |
41 | 47 | "dependencies": { |
| 48 | + "@types/bun": "^1.1.11", |
42 | 49 | "fireblocks-sdk": "^4.2.0", |
43 | 50 | "openapi-fetch": "^0.12.0", |
44 | | - "viem": "^1.21.4" |
| 51 | + "viem": "^2.21.29" |
45 | 52 | }, |
46 | 53 | "devDependencies": { |
47 | 54 | "@biomejs/biome": "^1.9.1", |
|
0 commit comments