From a7ea049686a95ac3b1f8ce5dc74b16374a0d3189 Mon Sep 17 00:00:00 2001 From: Fatih Altinok Date: Thu, 2 Jun 2022 14:31:52 +0300 Subject: [PATCH 1/2] Remove --no-optional flags by default --- packages/yarnhook/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/yarnhook/index.js b/packages/yarnhook/index.js index 1219b52..4345943 100755 --- a/packages/yarnhook/index.js +++ b/packages/yarnhook/index.js @@ -25,35 +25,35 @@ const lockfileSpecs = [ lockfile: "yarn.lock", command: "yarn", version: "1", - arguments: ["install", "--prefer-offline", "--pure-lockfile", "--ignore-optional"] + arguments: ["install", "--prefer-offline", "--pure-lockfile"] }, { checkfile: "package-lock.json", lockfile: "package-lock.json", command: "npm", version: ">=5", - arguments: ["install", "--prefer-offline", "--no-audit", "--no-save", "--no-optional"] + arguments: ["install", "--prefer-offline", "--no-audit", "--no-save"] }, { checkfile: "npm-shrinkwrap.json", lockfile: "npm-shrinkwrap.json", command: "npm", version: "<5", - arguments: ["install", "--prefer-offline", "--no-audit", "--no-save", "--no-optional"] + arguments: ["install", "--prefer-offline", "--no-audit", "--no-save"] }, { checkfile: "pnpm-lock.yaml", lockfile: "pnpm-lock.yaml", command: "pnpm", version: ">=3", - arguments: ["install", "--prefer-offline", "--prefer-frozen-lockfile", "--no-optional"] + arguments: ["install", "--prefer-offline", "--prefer-frozen-lockfile"] }, { checkfile: "shrinkwrap.yaml", lockfile: "shrinkwrap.yaml", command: "pnpm", version: "<3", - arguments: ["install", "--prefer-offline", "--prefer-frozen-shrinkwrap", "--no-optional"] + arguments: ["install", "--prefer-offline", "--prefer-frozen-shrinkwrap"] } ]; From 4f80ed9deac8bf05bd142310e8ca7a8bf60da6c0 Mon Sep 17 00:00:00 2001 From: Fatih Altinok Date: Thu, 2 Jun 2022 14:32:49 +0300 Subject: [PATCH 2/2] v0.6.0 --- packages/yarnhook/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/yarnhook/package.json b/packages/yarnhook/package.json index d42a8b2..b9b805d 100644 --- a/packages/yarnhook/package.json +++ b/packages/yarnhook/package.json @@ -1,6 +1,6 @@ { "name": "yarnhook", - "version": "0.5.3", + "version": "0.6.0", "description": "Run `yarn install`, `npm install` or `pnpm install` on git hooks automatically", "keywords": [ "npm",