File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11while ($true ) {
22 Start-Sleep - s 1
3- & node lib / index.js
3+ & node dist / index.js
44}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ function isContainerLoggerReady(state) {
2323
2424( ( ) => {
2525 const containerId = process . argv [ 2 ] ;
26- const state = JSON . parse ( readFileSync ( './lib /state.json' ) . toString ( 'utf-8' ) ) ;
26+ const state = JSON . parse ( readFileSync ( './dist /state.json' ) . toString ( 'utf-8' ) ) ;
2727 let isReady = false ;
2828 if ( containerId ) {
2929 isReady = isContainerReady ( state , containerId ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ $CONTAINER_ID=$args[0]
66
77if ( $CONTAINER_ID ) {
88 echo " checking if container:$CONTAINER_ID exists"
9- if (select-string - Pattern $CONTAINER_ID - Path ./ lib / state.json) {
9+ if (select-string - Pattern $CONTAINER_ID - Path ./ dist / state.json) {
1010 echo " container $CONTAINER_ID is ready"
1111 Exit 0
1212 } else {
@@ -15,7 +15,7 @@ if ( $CONTAINER_ID ) {
1515 }
1616} else {
1717 echo " checking if container logger is ready"
18- if (select-string - Pattern " ready" - Path ./ lib / state.json) {
18+ if (select-string - Pattern " ready" - Path ./ dist / state.json) {
1919 echo " ready"
2020 Exit 0
2121 } else {
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ CONTAINER_ID=$1
77
88if [ -n " $CONTAINER_ID " ]; then
99 echo " checking if container: $CONTAINER_ID exists"
10- grep -q $CONTAINER_ID ./lib /state.json
10+ grep -q $CONTAINER_ID ./dist /state.json
1111else
1212 echo " checking if container logger is ready"
13- grep -q " ready" ./lib /state.json
13+ grep -q " ready" ./dist /state.json
1414fi
1515
1616
Original file line number Diff line number Diff line change 4949 "lint-fix" : " eslint '*/**/*.js' --fix" ,
5050 "test" : " node ./node_modules/mocha/bin/_mocha './{,!(node_modules)/**/}*.spec.js' --exit" ,
5151 "test:ci" : " yarn test" ,
52- "start" : " node lib /index.js" ,
52+ "start" : " node dist /index.js" ,
5353 "version" : " exit 0" ,
5454 "build" : " rm -rf dist && tsc -p tsconfig.json"
5555 }
You can’t perform that action at this time.
0 commit comments