Skip to content

Commit

Permalink
Ship compiled JS output
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Sep 30, 2022
1 parent 641bbe9 commit 479a011
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/pretty-pans-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro-og-canvas': patch
---

Ship compiled JavaScript output instead of uncompiled TypeScript.
5 changes: 4 additions & 1 deletion packages/astro-og-canvas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
},
"bugs": "https://github.com/delucis/astro-og-canvas/issues",
"exports": {
".": "./src/index.ts"
".": "./dist/index.js"
},
"files": [
"dist"
],
"scripts": {
"build": "tsc",
"prepublish": "npm run build"
Expand Down
3 changes: 3 additions & 0 deletions packages/astro-og-canvas/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"extends": "astro/tsconfigs/strictest",
"include": ["src"],
"compilerOptions": {
"declaration": true,
"noEmit": false,
"outDir": "./dist",
"skipLibCheck": true
}
}

0 comments on commit 479a011

Please sign in to comment.