Skip to content

Commit

Permalink
fix: Use re-exports rather than symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Aug 30, 2023
1 parent 1b164db commit 7bde5a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ yarn-error.log
.volumes/
package-lock.json
.next/

# Symbolic links for moduleResolution: node projects
app.d.ts
pages.d.ts
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@
"ci": "run-s build test:types",
"e2e": "run-s cypress:install test:e2e:next:build test:e2e:ci",
"prepare": "husky install",
"prepack": "ln -s ./dist/app.d.ts app.d.ts && ln -s ./dist/pages.d.ts pages.d.ts"
"prepack": "run-p link:*",
"link:app": "echo \"export * from './dist/app'\" > app.d.ts",
"link:pages": "echo \"export * from './dist/pages'\" > pages.d.ts"
},
"peerDependencies": {
"next": "^13",
Expand Down

0 comments on commit 7bde5a1

Please sign in to comment.