Skip to content

Commit

Permalink
Merge pull request #58 from frontsideair/no-no-optional
Browse files Browse the repository at this point in the history
No --no-optional
  • Loading branch information
frontsideair authored Jun 2, 2022
2 parents f8b36dc + 4f80ed9 commit 1f5cf9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/yarnhook/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
];

Expand Down
2 changes: 1 addition & 1 deletion packages/yarnhook/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 1f5cf9d

Please sign in to comment.