fileExists reports whether the named file exists and is not a directory.
(path string)
| 1189 | |
| 1190 | // fileExists reports whether the named file exists and is not a directory. |
| 1191 | func fileExists(path string) bool { |
| 1192 | info, err := os.Stat(path) |
| 1193 | return err == nil && !info.IsDir() |
| 1194 | } |
| 1195 | |
| 1196 | // resolveNodeEntry finds the TypeScript/JavaScript entry point for a Node.js Pulumi project. |
| 1197 | // It checks package.json "main" first, then falls back to index.ts / index.js. |
no outgoing calls
no test coverage detected