aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-10-31 15:32:18 +0100
committerArmand Philippot <git@armandphilippot.com>2021-10-31 16:18:24 +0100
commitf321a7d0692d54d6eecc817225e446f49db97580 (patch)
tree4657f1fd40ee12e86f44a5b1d674d08e11720e76
parentcb0578ef618daf15f7895f165723a73f77e75452 (diff)
build: specify engine and set standard-version prerelease hook
-rw-r--r--package.json12
1 files changed, 11 insertions, 1 deletions
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 ."
+ }
}
}