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

Commit c371fee

Browse files
committed
fix pub scripts
1 parent d9d5139 commit c371fee

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

publish/pack.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22

3-
SOURCE_DIR=../src;
4-
TO_SOURCE_DIR=src;
5-
PACK_DIR=package;
6-
ROOT_DIR=..;
3+
SOURCE_DIR=../src
4+
TO_SOURCE_DIR=src
5+
PACK_DIR=package
6+
ROOT_DIR=..
77
PUBLISH=--publish
88

9-
install(){
9+
install() {
1010
npm i
1111
}
1212

@@ -44,4 +44,4 @@ pack() {
4444
node_modules/.bin/rimraf "$TO_SOURCE_DIR"
4545
}
4646

47-
install && pack
47+
install && pack

publish/publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
22

3-
PACK_DIR=package;
3+
PACK_DIR=package
44

55
publish() {
66
cd $PACK_DIR
77
echo 'Publishing to npm...'
88
npm publish *.tgz
99
}
1010

11-
pack.sh && publish
11+
./pack.sh && publish

0 commit comments

Comments
 (0)