From 75a9d56624b211bdc88630bb4ad890e5e6caf64f Mon Sep 17 00:00:00 2001 From: itsOdell Date: Thu, 16 May 2024 11:17:01 -0400 Subject: [PATCH] feat: force developer to use yarn This solves alot of issues in PR's that have package-lock.json becuase they did npm install, this update forces an error and exits out when developer runs npm install --- .npmrc | 1 + package.json | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..d1cdf2f0 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict = true \ No newline at end of file diff --git a/package.json b/package.json index 7878b902..e1da546a 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,10 @@ "url": "https://github.com/hydralauncher/hydra.git" }, "type": "module", + "engines": { + "npm": "please-use-yarn", + "yarn": ">= 1.19.1" + }, "scripts": { "format": "prettier --write .", "format-check": "prettier --check .",