* Refactored `lib/metro` and added types + cleaned up `tsconfig.json` + minor changes to `build.mjs` and `package.json` * Made requested changes + added eslint rule to restrict top-level await * Exclude `transform-async-to-generator` from `env` (async/await is es7)
35 lines
850 B
JSON
35 lines
850 B
JSON
{
|
|
"exclude": ["dist"],
|
|
|
|
"compilerOptions": {
|
|
"strict": true,
|
|
|
|
"paths": {
|
|
"@core/*": ["./src/core/*"],
|
|
"@lib": ["./src/lib"],
|
|
"@lib/*": ["./src/lib/*"],
|
|
"@metro": ["./src/lib/metro"],
|
|
"@metro/*": ["./src/lib/metro/*"],
|
|
"@ui": ["./src/lib/ui"],
|
|
"@ui/*": ["./src/lib/ui/*"],
|
|
"@types": ["./src/lib/utils/types.ts"],
|
|
"bunny-build": ["./src/modules.d.ts"]
|
|
},
|
|
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
|
|
"noEmit": true,
|
|
|
|
"allowJs": true,
|
|
"checkJs": true,
|
|
|
|
"plugins": [
|
|
{ "transform": "typescript-transform-paths", "afterDeclarations": true }
|
|
],
|
|
|
|
"jsx": "react",
|
|
"target": "esnext"
|
|
}
|
|
}
|