React hooks and components shared by ShapeDiver App Builder and other projects. This might eventually become an npm package.
Set @AppBuilderShared and @AppBuilderLib aliases for the package directory. Both must resolve to the same root: internals use @AppBuilderLib/ (feature-sliced design), while some modules still import @AppBuilderShared/.
e.g. {librarypath} = src/shared
Vite (vite.config.ts)
{
resolve: {
alias: {
"@AppBuilderShared": path.resolve(__dirname, "./{librarypath}"),
"@AppBuilderLib": path.resolve(__dirname, "./{librarypath}"),
},
},
}
Typescript (tsconfig.json)
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@AppBuilderShared/*": ["./{librarypath}/*"],
"@AppBuilderLib/*": ["./{librarypath}/*"]
}
}
}