Skip to content

Commit

Permalink
Fix type exports (#602)
Browse files Browse the repository at this point in the history
... and generation
  • Loading branch information
Apollon77 authored Oct 2, 2024
1 parent 02ac4a5 commit 83b3345
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 7 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ If you find errors in the definitions, e.g., function calls that should be allow
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->

### __WORK IN PROGRESS__

- (Apollon77) Fix types

### 3.2.1 (2024-09-28)

- (@foxriver76) updated types
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion build/cjs/controllerTools.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions build/cjs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,20 @@
"module": "build/esm/index.js",
"exports": {
".": {
"import": "./build/esm/index.js",
"require": "./build/cjs/index.js",
"types": "./build/esm/index.d.ts"
"import": {
"types": "./build/esm/index.d.ts",
"default": "./build/esm/index.js"
},
"require": {
"types": "./build/cjs/index.d.ts",
"default": "./build/cjs/index.js"
}
}
},
"scripts": {
"prebuild": "rimraf ./build",
"build": "tsc -p src/tsconfig.json",
"postbuild": "esm2cjs --in build/esm --out build/cjs -l error && cpy ./**/*.d.ts ./build/cjs/ --cwd=build/esm/",
"postbuild": "esm2cjs --in ./build/esm --out ./build/cjs -l error && cpy ./**/*.d.ts ../cjs/ --cwd=build/esm/",
"watch": "tsc -p src/tsconfig.json --watch",
"lint:ts": "eslint -c eslint.config.mjs src",
"lint": "npm run lint:ts",
Expand Down

0 comments on commit 83b3345

Please sign in to comment.