Files
windmill/typescript-client/package.json
T
Ruben Fiszel 0f625580f3 fix: use tsc for clean .d.ts files instead of tsdown bundled types
tsdown's bundled .d.ts output uses namespace declarations that reference
forward-declared types, which breaks Monaco/ATA type acquisition.

Switch to:
- tsdown for JS bundles (ESM + CJS) with --no-dts
- tsc with emitDeclarationOnly for clean individual .d.ts files

This restores the type structure from 1.617.0 which worked correctly
with Monaco editor's automatic type acquisition.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 16:22:16 +00:00

35 lines
766 B
JSON

{
"name": "windmill-client",
"description": "Windmill SDK client for browsers and Node.js",
"version": "1.618.2",
"author": "Ruben Fiszel",
"license": "Apache 2.0",
"devDependencies": {
"@types/node": "^20.17.16",
"tsdown": "^0.12.9",
"typescript": "^5.4.5"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
}
}
},
"prepublish": "tsdown --format esm --format cjs --no-dts && tsc",
"files": [
"dist",
"LICENSE",
"README.md",
"package.json"
]
}