chore(repo): initialize planarchy workspace
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import path from "path";
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
transpilePackages: [
|
||||
"@planarchy/api",
|
||||
"@planarchy/db",
|
||||
"@planarchy/engine",
|
||||
"@planarchy/shared",
|
||||
"@planarchy/staffing",
|
||||
"@planarchy/ui",
|
||||
],
|
||||
typedRoutes: true,
|
||||
// Webpack config (used by `next build` and `next dev` without --turbo)
|
||||
webpack(config) {
|
||||
config.resolve.alias = {
|
||||
...config.resolve.alias,
|
||||
"~": path.resolve(__dirname, "src"),
|
||||
};
|
||||
// Resolve .js imports to .ts/.tsx (TypeScript ESM convention)
|
||||
config.resolve.extensionAlias = {
|
||||
...config.resolve.extensionAlias,
|
||||
".js": [".ts", ".tsx", ".js"],
|
||||
".jsx": [".tsx", ".jsx"],
|
||||
};
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user