File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1- rm -rf .cache
2- export YARN_CACHE_FOLDER=.cache
31npm pack
4- cd tests/e2e/node-js
2+ cd tests/e2e
3+ export YARN_CACHE_FOLDER=.cache
4+ cd node-js
5+ rm -rf .cache
56yarn init --yes
67echo " Installing local bundle from TAR in NodeJS project"
78yarn add ../../../imagekit* .tgz
89node index.js; test_result=$?
910echo $test_result
10- if (( $test_result != 0 )) ; then
11+ if [[ " $test_result " != " 0 " ]] ; then
1112 printf ' %s\n' " Final bundle not working in NodeJS project" >&2
1213 exit 1
1314fi
1415echo " Final bundle working in NodeJS project"
1516
1617cd ../typescript
18+ rm -rf .cache
1719yarn init --yes
1820yarn add typescript --dev
1921echo " Installing local bundle from TAR in Typescript project"
2022yarn add ../../../imagekit* .tgz
2123npx tsc && node index.js; test_result=$?
2224echo $test_result
23- if (( $test_result != 0 )) ; then
25+ if [[ " $test_result " != " 0 " ]] ; then
2426 printf ' %s\n' " Final bundle not working in Typescript project" >&2
2527 exit 1
2628fi
You can’t perform that action at this time.
0 commit comments