diff --git a/debian/patches/0430-use-yarn.patch b/debian/patches/0430-use-yarn.patch index fac199863d..2663ba5016 100644 --- a/debian/patches/0430-use-yarn.patch +++ b/debian/patches/0430-use-yarn.patch @@ -1,10 +1,11 @@ --- a/package.json +++ b/package.json -@@ -13,6 +13,7 @@ +@@ -13,6 +13,8 @@ "webpack-prod": "NODE_ENV=production webpack --config config/webpack.config.js" }, "dependencies": { + "yarn": "^1.5.1", ++ "ajv-keywords": "2.1.1", "autosize": "^4.0.0", "axios": "^0.17.1", "babel-core": "^6.26.0", diff --git a/debian/rake-tasks.sh b/debian/rake-tasks.sh index cd3e67a1c1..4971d81342 100755 --- a/debian/rake-tasks.sh +++ b/debian/rake-tasks.sh @@ -30,7 +30,7 @@ chmod 0700 ${gitlab_data_dir}/.gitlab_shell_secret echo "Installing node modules..." runuser -u ${gitlab_user} -- sh -c 'install -d /var/lib/gitlab/node_modules' -runuser -u ${gitlab_user} -- sh -c 'npm install yarn' +runuser -u ${gitlab_user} -- sh -c 'npm install yarn ajv-keywords@2.1.1' runuser -u ${gitlab_user} -- sh -c 'node_modules/.bin/yarn install' echo "Precompiling locales..."