From 95289c1ea3616086aa3a7c78ac1685107faf3e63 Mon Sep 17 00:00:00 2001 From: itwillwork <15855766+itwillwork@users.noreply.github.com> Date: Tue, 4 Jun 2024 13:40:52 +0300 Subject: [PATCH] chore: add engine-strict (#1601) Co-authored-by: Andrey Morozov --- .npmrc | 1 + package.json | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.npmrc b/.npmrc index ab452cdd98..38e66fa56c 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ registry=https://registry.npmjs.org legacy-peer-deps=true +engine-strict=true diff --git a/package.json b/package.json index aa89e375a2..3b4d889150 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,12 @@ "version": "6.16.0", "description": "Gravity UI base styling and components", "license": "MIT", + "engines": { + "node": ">= 18", + "npm": ">= 9", + "yarn": "Please use npm instead of yarn to install dependencies", + "pnpm": "Please use npm instead of pnpm to install dependencies" + }, "repository": { "type": "git", "url": "https://github.com/gravity-ui/uikit" @@ -83,7 +89,7 @@ "lint:prettier:fix": "cross-env prettier --write '**/*.md'", "lint": "run-p lint:*", "typecheck": "tsc --noEmit", - "prepublishOnly": "npm run build", + "prepublishOnly": "npm run build && npm pkg delete engines", "playwright:install": "playwright install --with-deps", "playwright": "playwright test --config=playwright/playwright.config.ts", "playwright:update": "npm run playwright -- -u",