Skip to content

Commit

Permalink
fix: emit .js file for node js
Browse files Browse the repository at this point in the history
Otherwise, node js will throw "UNKNOWN FILE EXTENSION .ts".
  • Loading branch information
samuelstroschein committed Dec 25, 2024
1 parent a9002b7 commit 896602f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/stupid-tips-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@lix-js/server-api-schema": patch
---

fix: emit .js file for node js

Otherwise, node js will throw "UNKNOWN FILE EXTENSION .ts".
2 changes: 2 additions & 0 deletions packages/lix-server-api-schema/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
!/dist
/dist/schema.d.ts
Empty file.
2 changes: 1 addition & 1 deletion packages/lix-server-api-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "0.1.0",
"license": "Apache-2.0",
"exports": {
".": "./dist/schema.d.ts"
".": "./dist/schema.js"
},
"scripts": {
"build": "npx openapi-typescript ./src/schema.yaml -o ./dist/schema.d.ts",
Expand Down

0 comments on commit 896602f

Please sign in to comment.