You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by as...@apache.org on 2020/12/09 12:26:26 UTC
[airflow-site] branch master updated: Update package.json to work
with yarn or npm (#337)
This is an automated email from the ASF dual-hosted git repository.
ash pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
The following commit(s) were added to refs/heads/master by this push:
new 834faca Update package.json to work with yarn or npm (#337)
834faca is described below
commit 834faca0f99da977ea69a1804f90d7bea1eba655
Author: Ash Berlin-Taylor <as...@firemirror.com>
AuthorDate: Wed Dec 9 12:26:18 2020 +0000
Update package.json to work with yarn or npm (#337)
I don't have npm installed so this updates the commands in package.json
to work automatically with whichever of yarn or npm invoked the script.
---
landing-pages/package.json | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/landing-pages/package.json b/landing-pages/package.json
index c40b6ac..cf67644 100644
--- a/landing-pages/package.json
+++ b/landing-pages/package.json
@@ -7,19 +7,19 @@
"author": "",
"license": "MIT",
"scripts": {
- "build": "npm run build:webpack && npm run build:hugo",
+ "build": "$npm_execpath run build:webpack && $npm_execpath run build:hugo",
"build:hugo": "cross-env HUGO_ENV=production hugo -d ../dist -s site -v",
- "build:hugo:preview": "npm run build:hugo -- -D -F",
- "build:preview": "npm run build:webpack && npm run build:hugo:preview",
+ "build:hugo:preview": "$npm_execpath run build:hugo -- -D -F",
+ "build:preview": "$npm_execpath run build:webpack && $npm_execpath run build:hugo:preview",
"build:webpack": "cross-env NODE_ENV=production webpack --config webpack.prod.js",
"index": "node ./create-index.js",
"lint": "run-p lint:**",
"lint:css": "stylelint \"site/assets/scss/**/*.scss\"",
"lint:js": "eslint .",
- "prebuild": "rimraf dist && npm run index",
+ "prebuild": "rimraf dist && $npm_execpath run index",
"preview": "run-p preview:**",
- "preview:hugo": "npm run start:hugo -- -D -F",
- "preview:webpack": "npm run start:webpack",
+ "preview:hugo": "$npm_execpath run start:hugo -- -D -F",
+ "preview:webpack": "$npm_execpath run start:webpack",
"start": "run-p start:**",
"start:hugo": "hugo -d ../dist -s site -vw",
"start:webpack": "webpack-dev-server --config webpack.dev.js --hot"