"scripts": { "dev": "typescript-module-alias ./test/a.ts" } production"scripts": { "build": "typescript-module-alias-build ./test" } set dist dirdefault the dist dir is 'dist' "scripts": { "build": "typescript-module-alias-build ./test --out-dir release" } ...
Typescript: Path MappingThough we can avoid a runtime error(Module Not Found) for module alias resolution, compiling typescript is stil a differenct matter. Fot tsc, tsconfig.json has this path mappings configuration.{ "baseUrl": "packages", "paths": { "@jjangga0214/*": ["*/src"], ...