Skip to content
This repository has been archived by the owner on Dec 19, 2021. It is now read-only.

Commit

Permalink
fix pub scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bradmartin committed Jul 11, 2019
1 parent d9d5139 commit c371fee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions publish/pack.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

SOURCE_DIR=../src;
TO_SOURCE_DIR=src;
PACK_DIR=package;
ROOT_DIR=..;
SOURCE_DIR=../src
TO_SOURCE_DIR=src
PACK_DIR=package
ROOT_DIR=..
PUBLISH=--publish

install(){
install() {
npm i
}

Expand Down Expand Up @@ -44,4 +44,4 @@ pack() {
node_modules/.bin/rimraf "$TO_SOURCE_DIR"
}

install && pack
install && pack
4 changes: 2 additions & 2 deletions publish/publish.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

PACK_DIR=package;
PACK_DIR=package

publish() {
cd $PACK_DIR
echo 'Publishing to npm...'
npm publish *.tgz
}

pack.sh && publish
./pack.sh && publish

0 comments on commit c371fee

Please sign in to comment.