// ███╗ ███╗ █████╗ ███╗ ██╗██╗███████╗███████╗███████╗████████╗ // ████╗ ████║██╔══██╗████╗ ██║██║██╔════╝██╔════╝██╔════╝╚══██╔══╝ // ██╔████╔██║███████║██╔██╗ ██║██║█████╗ █████╗ ███████╗ ██║ // ██║╚██╔╝██║██╔══██║██║╚██╗██║██║██╔══╝ ██╔══╝ ╚════██║ ██║ // ██║ ╚═╝ ██║██║ ██║██║ ╚████║██║██║ ███████╗███████║ ██║ // ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝╚═╝ ╚══════╝╚══════╝ ╚═╝ // MIT License (c) 2020–present Cezar Augusto, presence implies inheritance import {hasProjectDependency} from './project-manifest' // Whether a project depends on a framework that brings its own refresh // runtime. Read from the project's package.json, with no notice attached. export function usesReact(projectPath: string): boolean { return hasProjectDependency(projectPath, 'react') } export function usesVue(projectPath: string): boolean { return hasProjectDependency(projectPath, 'vue') } export function usesSvelte(projectPath: string): boolean { return hasProjectDependency(projectPath, 'svelte') }