Skip to content

Commit

Permalink
fix types not getting properly built
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz committed Jul 30, 2024
1 parent 2527917 commit c9c1d2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/little-rings-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@cloudflare/next-on-pages': patch
---

fix typescript declaration files not getting properly built
4 changes: 3 additions & 1 deletion packages/next-on-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"scripts": {
"lint": "eslint src templates",
"types-check": "tsc --noEmit",
"build:types": "tsc -p tsconfig.api.json -p tsconfig.fetch-handler.json",
"build:types:api": "tsc -p tsconfig.api.json",
"build:types:fetch-handler": "tsc -p tsconfig.api.json",
"build:types": "npm run build:types:api && npm run build:types:fetch-handler",
"build": "esbuild --bundle --platform=node ./src/index.ts ./src/api/index.ts --external:esbuild --external:chokidar --external:server-only --outdir=./dist",
"build:watch": "npm run build -- --watch=forever",
"build:no-nodejs-compat-error-page": "node ./build-no-nodejs-compat-flag-static-error-page.mjs",
Expand Down

0 comments on commit c9c1d2b

Please sign in to comment.