Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
fix: fixed yarn detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Mar 24, 2018
1 parent f085e22 commit 214be06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"@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",
Expand Down
7 changes: 6 additions & 1 deletion src/generators/app.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
// 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[] = []

Expand Down

0 comments on commit 214be06

Please sign in to comment.