tsconfig.json
{
"compilerOptions": {
"lib": ["ESNext"],
"target": "ES2022",
"module": "CommonJS",
"rootDir": "./src",
"moduleResolution": "node16",
"baseUrl": ".",
"paths": {
"#src/*": ["src/*"],
},
"resolveJsonModule": true,
"declaration": true,
"outDir": "dist",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"strictPropertyInitialization": false,
"skipDefaultLibCheck": true,
"skipLibCheck": true
},
"exclude": ["node_modules"],
"include": ["src/**/*"]
}
but when I do
import { ... } from "#src/lib"