From 8985798a86101fcda966a43d851bebfa802309bd Mon Sep 17 00:00:00 2001 From: Vitor Dino Date: Tue, 13 Apr 2021 02:27:25 -0300 Subject: [PATCH] chore: remove implicit yarn dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit uses `npm run` for a more agnostic way of running (if you use yarn, it will use yarn anyway). this change also removes a implicit dependency. i’m a yarn person, but this was failing on some build machines — either using an older yarn version, or just using npm. --- package.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 0ee46c1..23dde24 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,7 @@ "url": "https://github.com/storybookjs/addon-postcss.git" }, "engines": { - "node": ">=10", - "yarn": "^1.17.0" + "node": ">=10" }, "main": "dist/index.js", "files": [ @@ -21,11 +20,11 @@ ], "scripts": { "build": "rm -rf dist & tsc", - "lint": "yarn lint-code && yarn lint-style -c", + "lint": "npm run lint-code && npm run lint-style -c", "lint-code": "eslint '{example,src}/**/*.{js,ts,tsx}'", - "lint-style": "yarn prettier '{example,src}/**/*.{js,ts,tsx,css,html,json,md,mdx,scss,yml}'", + "lint-style": "prettier '{example,src}/**/*.{js,ts,tsx,css,html,json,md,mdx,scss,yml}'", "test": "jest --passWithNoTests", - "prepublishOnly": "yarn build" + "prepublishOnly": "npm run build" }, "husky": { "hooks": {