Merge branch 'webpack5_refactor' of github.com:Akylas/NativeScript into webpack5_refactor

This commit is contained in:
Martin Guillon
2021-01-05 15:50:47 +01:00

View File

@ -8,7 +8,12 @@ import { error } from './log';
*/ */
export function projectUsesCustomFlavor(): boolean { export function projectUsesCustomFlavor(): boolean {
const dependencies = getAllDependencies(); const dependencies = getAllDependencies();
return [
'vue',
'angular',
'react',
'svelte'
].includes(determineProjectFlavor())
if (dependencies.includes('nativescript-vue') || if (dependencies.includes('nativescript-vue') ||
dependencies.includes('@nativescript/angular') || dependencies.includes('@nativescript/angular') ||
dependencies.includes('react-nativescript') || dependencies.includes('react-nativescript') ||