Skip to content

Commit 34b5298

Browse files
committed
Export dist folder
1 parent 8911f1b commit 34b5298

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.changeset/tame-dogs-kiss.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"open-next": patch
3+
---
4+
5+
Export dist folder

packages/open-next/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
"build": "tsc",
1919
"dev": "tsc -w"
2020
},
21+
"exports": {
22+
"./*": "./dist/*"
23+
},
24+
"typesVersions": {
25+
"*": {
26+
"*": [
27+
"dist/*"
28+
]
29+
}
30+
},
2131
"keywords": [],
2232
"author": "",
2333
"files": [

packages/open-next/src/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ export async function build(opts: BuildOptions = {}) {
4343
options = normalizeOptions(opts);
4444

4545
// Pre-build validation
46+
checkRunningInsideNextjsApp();
4647
printNextjsVersion();
4748
printOpenNextVersion();
48-
checkRunningInsideNextjsApp();
4949
const { root: monorepoRoot, packager } = findMonorepoRoot();
5050

5151
// Build Next.js app

0 commit comments

Comments
 (0)