Skip to content

Commit

Permalink
fix: Use Typescript source files for types
Browse files Browse the repository at this point in the history
Somehow Typescript changed to only include `/// <reference` comments
if they are needed within the source file. In our case this means we have
an empty Typescript definitions files because we only "export" them.

Solution: Export our types from the source.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Jul 2, 2024
1 parent 76f339f commit 205065b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules/
/renovate.json
test/

/renovate.json
File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"version": "1.9.0",
"description": "Nextcloud TypeScript typings",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"typings": "lib/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts"
"types": "./lib/index.d.ts"
},
"./ocs": {
"types": "./dist/ocs.d.ts"
"types": "./lib/ocs.d.ts"
}
},
"scripts": {
Expand Down

0 comments on commit 205065b

Please sign in to comment.