diff --git a/.gitignore b/.gitignore index 9dd52854..0d06ceaa 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,7 @@ yarn-error.log .volumes/ package-lock.json .next/ + +# Symbolic links for moduleResolution: node projects +app.d.ts +pages.d.ts diff --git a/package.json b/package.json index 4d3eb817..a94ac669 100644 --- a/package.json +++ b/package.json @@ -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",