Skip to content

Commit

Permalink
fix(schema): fix resources dir for maven plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo van Rijswijk committed Apr 5, 2019
1 parent d0e564a commit ea130e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions mvn/mvnPublish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ set -e

# Called from packages/$project by npm postpublish, so the pwd is already the project folder

RESOURCES_DIR=${1:-dist}
echo $RESOURCES_DIR
PROJ_BASE=$(basename `pwd`)
PACKAGE_VERSION=$(cat package.json \
| grep version \
Expand All @@ -12,9 +14,9 @@ PACKAGE_VERSION=$(cat package.json \

echo "Deploying $PROJ_BASE $PACKAGE_VERSION..."

echo "Copying dist files to resources"
echo "Copying $RESOURCES_DIR files to resources"
mkdir -p mvn/resources
cp -r dist mvn/resources/$PROJ_BASE
cp -r $RESOURCES_DIR mvn/resources/$PROJ_BASE

echo "Starting deploy process"
cd mvn
Expand Down
2 changes: 1 addition & 1 deletion packages/mutation-testing-report-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"typings": "dist/src/index.d.ts",
"scripts": {
"test": "mocha -r source-map-support/register dist/test/**/*.js",
"postpublish": "../../mvn/mvnPublish.sh"
"postpublish": "../../mvn/mvnPublish.sh dist/src"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit ea130e9

Please sign in to comment.