-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
Just like typescript path alias, where multiple paths can be tied to an alias make it possible to do so in the package.json
/* other tsconfig,json setting */
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
"baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
"paths": {
"@/*": [
"./src/*",
"./dist/*"
],
}, /* Specify a set of entries that re-map imports to additional lookup locations. */make it same for package.json where the build and src path could differ
Something like this
"main": "dist/server.js",
"_moduleAliases": {
"@": ["src", "dist"]
},Metadata
Metadata
Assignees
Labels
No labels