tsconfig.json (980B)
1 // This file is needed on most editors to enable the intelligent autocompletion 2 // of LiveView's JavaScript API methods. You can safely delete it if you don't need it. 3 // 4 // Note: This file assumes a basic esbuild setup without node_modules. 5 // We include a generic paths alias to deps to mimic how esbuild resolves 6 // the Phoenix and LiveView JavaScript assets. 7 // If you have a package.json in your project, you should remove the 8 // paths configuration and instead add the phoenix dependencies to the 9 // dependencies section of your package.json: 10 // 11 // { 12 // ... 13 // "dependencies": { 14 // ..., 15 // "phoenix": "../deps/phoenix", 16 // "phoenix_html": "../deps/phoenix_html", 17 // "phoenix_live_view": "../deps/phoenix_live_view" 18 // } 19 // } 20 // 21 // Feel free to adjust this configuration however you need. 22 { 23 "compilerOptions": { 24 "baseUrl": ".", 25 "paths": { 26 "*": ["../deps/*"] 27 }, 28 "allowJs": true, 29 "noEmit": true 30 }, 31 "include": ["js/**/*"] 32 }