Skip to content

Commit

Permalink
v1.0.0-7
Browse files Browse the repository at this point in the history
  • Loading branch information
adieuadieu committed Nov 13, 2017
1 parent e7855b1 commit 55a27b9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/lambda/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@serverless-chrome/lambda",
"version": "1.0.0-6",
"version": "1.0.0-7",
"description": "Run headless Chrome/Chromium on AWS Lambda",
"author": "Marco Lüthy",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions packages/serverless-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "serverless-plugin-chrome",
"version": "1.0.0-12",
"version": "1.0.0-7",
"description": "A Serverless-framework plugin that takes care of running headless Chrome so that you can move on with getting things done.",
"keywords": [
"serverless",
Expand Down Expand Up @@ -40,7 +40,7 @@
},
"homepage": "https://github.com/adieuadieu/serverless-chrome/tree/master/packages/serverless-plugin",
"dependencies": {
"@serverless-chrome/lambda": "1.0.0-6",
"@serverless-chrome/lambda": "1.0.0-7",
"fs-p": "2.0.0",
"globby": "6.1.0"
},
Expand Down
19 changes: 18 additions & 1 deletion scripts/sync-package-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,23 @@ for PACKAGE in */package.json; do
if [ "$PACKAGE_VERSION" != "$PROJECT_VERSION" ]; then
echo "Updating $PACKAGE_NAME version ..."

JSON=$(jq -r ".version |= \"$PROJECT_VERSION\"" package.json)
JSON=$(jq -r \
".version |= \"$PROJECT_VERSION\"" \
package.json
)

HAS_LAMBDA_DEPENDENCY=$(echo "$JSON" | \
jq -r \
".dependencies | has(\"@serverless-chrome/lambda\")"
)

if [ "$HAS_LAMBDA_DEPENDENCY" = "true" ]; then
JSON=$(echo "$JSON" | \
jq -r \
".dependencies.\"@serverless-chrome/lambda\" |= \"$PROJECT_VERSION\""
)
fi

echo "$JSON" > package.json

else
Expand All @@ -39,3 +55,4 @@ for PACKAGE in */package.json; do
cd ../
done

# @TODO: update integration-test and example dependencies, too

0 comments on commit 55a27b9

Please sign in to comment.