Skip to content

Commit 83b3345

Browse files
authored
Fix type exports (#602)
... and generation
1 parent 02ac4a5 commit 83b3345

10 files changed

+17
-7
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ If you find errors in the definitions, e.g., function calls that should be allow
164164
Placeholder for the next version (at the beginning of the line):
165165
### **WORK IN PROGRESS**
166166
-->
167+
168+
### __WORK IN PROGRESS__
169+
170+
- (Apollon77) Fix types
171+
167172
### 3.2.1 (2024-09-28)
168173

169174
- (@foxriver76) updated types

build/cjs/controllerTools.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

build/cjs/index.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

package.json

+9-4
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,20 @@
1414
"module": "build/esm/index.js",
1515
"exports": {
1616
".": {
17-
"import": "./build/esm/index.js",
18-
"require": "./build/cjs/index.js",
19-
"types": "./build/esm/index.d.ts"
17+
"import": {
18+
"types": "./build/esm/index.d.ts",
19+
"default": "./build/esm/index.js"
20+
},
21+
"require": {
22+
"types": "./build/cjs/index.d.ts",
23+
"default": "./build/cjs/index.js"
24+
}
2025
}
2126
},
2227
"scripts": {
2328
"prebuild": "rimraf ./build",
2429
"build": "tsc -p src/tsconfig.json",
25-
"postbuild": "esm2cjs --in build/esm --out build/cjs -l error && cpy ./**/*.d.ts ./build/cjs/ --cwd=build/esm/",
30+
"postbuild": "esm2cjs --in ./build/esm --out ./build/cjs -l error && cpy ./**/*.d.ts ../cjs/ --cwd=build/esm/",
2631
"watch": "tsc -p src/tsconfig.json --watch",
2732
"lint:ts": "eslint -c eslint.config.mjs src",
2833
"lint": "npm run lint:ts",

0 commit comments

Comments
 (0)