From f321a7d0692d54d6eecc817225e446f49db97580 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 31 Oct 2021 15:32:18 +0100 Subject: build: specify engine and set standard-version prerelease hook --- package.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7048257..79d74c9 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,11 @@ "email": "contact@email.com", "url": "https://www.armandphilippot.com" }, + "private": true, + "engines": { + "node": "^16.4.0", + "yarn": "^1.22.0" + }, "scripts": { "build": "webpack --node-env=production && npm run rtl", "fix": "npm-run-all --parallel fix:*", @@ -18,7 +23,7 @@ "lint:js": "eslint --ext .js,.jsx", "lint:php": "composer lint", "lint:scss": "stylelint \"**/*.scss\" --syntax scss --formatter verbose", - "release": "standard-version -s", + "release": "standard-version -a -s", "rtl": "rtlcss assets/css/style.css assets/css/style-rtl.css", "serve": "webpack serve --node-env=development", "watch": "webpack --watch --progress --node-env=development" @@ -70,5 +75,10 @@ "dotenv-expand": "^5.1.0", "i18n-js": "^3.8.0", "modern-normalize": "^1.1.0" + }, + "standard-version": { + "scripts": { + "prerelease": "yarn run build && git add ." + } } } -- cgit v1.2.3