Skip to content

Commit

Permalink
fix: Version .d.ts redirection files
Browse files Browse the repository at this point in the history
It's simpler this way, not having to deal with
lifecycle scripts.
Sure, it clutters the root of the repo a bit, but oh well.
  • Loading branch information
franky47 committed Aug 30, 2023
1 parent 7bde5a1 commit e90b752
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 22 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@ yarn-error.log
.volumes/
package-lock.json
.next/

# Symbolic links for moduleResolution: node projects
app.d.ts
pages.d.ts
14 changes: 0 additions & 14 deletions .npmignore

This file was deleted.

1 change: 1 addition & 0 deletions app.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/app'
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@
"cypress:run": "cypress run --headless",
"ci": "run-s build test:types",
"e2e": "run-s cypress:install test:e2e:next:build test:e2e:ci",
"prepare": "husky install",
"prepack": "run-p link:*",
"link:app": "echo \"export * from './dist/app'\" > app.d.ts",
"link:pages": "echo \"export * from './dist/pages'\" > pages.d.ts"
"prepare": "husky install"
},
"peerDependencies": {
"next": "^13",
Expand Down
1 change: 1 addition & 0 deletions pages.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/pages'

0 comments on commit e90b752

Please sign in to comment.