diff --git a/package.json b/package.json index 536348d..b844b66 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "version": "0.0.1", "scripts": { "dev": "npx nodemon --inspect .", + "preinstall": "npx use-yarn", "predev": "npx check-env PORT FB_APP_SECRET FB_ACCESS_TOKEN FB_VERIFY_TOKEN" }, "dependencies": { @@ -17,6 +18,7 @@ "ngrok": "3.0.1", "nodemon": "1.17.3", "prettier": "1.12.1", + "use-yarn": "2.2.0", "xo": "0.20.3" }, "prettier": { diff --git a/yarn.lock b/yarn.lock index 6278ef3..bdbc177 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1563,6 +1563,12 @@ is-js-type@^2.0.0: dependencies: js-types "^1.0.0" +is-npm-not-yarn@^2.0.3: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-npm-not-yarn/-/is-npm-not-yarn-2.0.4.tgz#cdf64c89cbfd564ad949808382723177a109ec39" + dependencies: + slash "^1.0.0" + is-npm@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4" @@ -3178,6 +3184,13 @@ url-pattern@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/url-pattern/-/url-pattern-1.0.3.tgz#0409292471b24f23c50d65a47931793d2b5acfc1" +use-yarn@2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/use-yarn/-/use-yarn-2.2.0.tgz#355da1edf17acc56d7b243fcaa817bd92fd0be4a" + dependencies: + is-npm-not-yarn "^2.0.3" + minimist "^1.2.0" + use@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/use/-/use-3.1.0.tgz#14716bf03fdfefd03040aef58d8b4b85f3a7c544"