tsarr 1.7.1 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsarr",
3
- "version": "1.7.1",
3
+ "version": "1.8.0",
4
4
  "author": "Robbe Verhelst",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,6 +44,21 @@
44
44
  "./prowlarr": {
45
45
  "import": "./dist/clients/prowlarr.js",
46
46
  "types": "./dist/clients/prowlarr.d.ts"
47
+ },
48
+ "./radarr/types": {
49
+ "types": "./dist/clients/radarr-types.d.ts"
50
+ },
51
+ "./sonarr/types": {
52
+ "types": "./dist/clients/sonarr-types.d.ts"
53
+ },
54
+ "./lidarr/types": {
55
+ "types": "./dist/clients/lidarr-types.d.ts"
56
+ },
57
+ "./readarr/types": {
58
+ "types": "./dist/clients/readarr-types.d.ts"
59
+ },
60
+ "./prowlarr/types": {
61
+ "types": "./dist/clients/prowlarr-types.d.ts"
47
62
  }
48
63
  },
49
64
  "description": "Type-safe TypeScript SDK for Servarr APIs (Radarr, Sonarr, etc.)",
@@ -71,7 +86,7 @@
71
86
  "registry": "https://registry.npmjs.org/"
72
87
  },
73
88
  "scripts": {
74
- "build": "bun run generate && bun run build:js && bun run build:types",
89
+ "build": "bun run generate && bun run generate:types && bun run build:js && bun run build:types",
75
90
  "build:js": "bun build src/index.ts --outdir dist --target node --minify --splitting && bun build src/clients/radarr.ts --outdir dist/clients --target node --format esm && bun build src/clients/sonarr.ts --outdir dist/clients --target node --format esm && bun build src/clients/lidarr.ts --outdir dist/clients --target node --format esm && bun build src/clients/readarr.ts --outdir dist/clients --target node --format esm && bun build src/clients/prowlarr.ts --outdir dist/clients --target node --format esm",
76
91
  "build:types": "tsc --project tsconfig.build.json",
77
92
  "prepublishOnly": "bun run build",
@@ -82,6 +97,7 @@
82
97
  "format": "biome format . --write",
83
98
  "typecheck": "tsc --noEmit",
84
99
  "generate": "bun run scripts/generate.ts",
100
+ "generate:types": "bun run scripts/generate-type-exports.ts",
85
101
  "generate:radarr": "bun run scripts/generate-radarr.ts",
86
102
  "generate:sonarr": "bun run scripts/generate-sonarr.ts",
87
103
  "clean": "rm -rf src/generated && rm -rf dist",
Binary file