fix: fixed yarn detection
MODIFY
package.json
package.json
"@oclif/plugin-not-found": "^1.0.4",
"debug": "^3.1.0",
"fixpack": "^2.3.1",
- "has-yarn": "^1.0.0",
"lodash": "^4.17.5",
"nps-utils": "^1.5.0",
"sort-pjson": "^1.0.2",

MODIFY
src/generators/app.ts
src/generators/app.ts
// tslint:disable no-floating-promises
// tslint:disable no-console
+import {execSync} from 'child_process'
import * as fs from 'fs'
import * as _ from 'lodash'
import * as path from 'path'
import * as Generator from 'yeoman-generator'
import yosay = require('yosay')
-const hasYarn = require('has-yarn')()
const nps = require('nps-utils')
const sortPjson = require('sort-pjson')
const fixpack = require('fixpack')
const debug = require('debug')('generator-oclif')
const {version} = require('../../package.json')
+let hasYarn = false
+try {
+ execSync('yarn -v')
+ hasYarn = true
+} catch {}
// function stringToArray(s: string) {
// const keywords: string[] = []

fix: fixed yarn detection