@transitive-sdk/utils-caps 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docker.sh CHANGED
@@ -25,8 +25,8 @@ function findOffset() {
25
25
 
26
26
  OFFSET=$(findOffset)
27
27
  PORT=$(( $BASE_PORT + $OFFSET ))
28
- MIN_PORT=$((30000 + $OFFSET * 100))
29
- MAX_PORT=$((30080 + $OFFSET * 100))
28
+ MIN_PORT=$((60000 + $OFFSET * 100))
29
+ MAX_PORT=$((60080 + $OFFSET * 100))
30
30
 
31
31
  echo "using port offset $OFFSET, i.e., port $PORT and port range $MIN_PORT-$MAX_PORT"
32
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transitive-sdk/utils-caps",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Utilities to build and run Transitive capabilities in dev",
5
5
  "homepage": "https://transitiverobotics.com",
6
6
  "repository": {
package/publish.sh CHANGED
@@ -52,7 +52,7 @@ npm run prepare
52
52
 
53
53
  npm install --no-save javascript-obfuscator@4.0.0
54
54
 
55
- FILES=$(find . -name "*.js" -not -path "**/hi-perf/*" -not -path "**/node_modules/*" -not -path "./dist/*")
55
+ FILES=$(find . -name "*.js" -not -path "**/hi-perf/*" -not -path "**/node_modules/*" -not -path "./dist/*" -not -path "**/var/*")
56
56
  for f in $FILES; do
57
57
  npx javascript-obfuscator --split-strings true --split-strings-chunk-length 8 --string-array-encoding base64 --ignore-imports true --output $f $f
58
58
  # Maybe add later: --self-defending true
package/subScript CHANGED
@@ -36,6 +36,9 @@ fi;
36
36
 
37
37
  if [[ $SUBSCRIPT == "start" ]]; then
38
38
  # ensure dependencies are installed
39
+ if [[ $SUBPROJECT ]]; then
40
+ rm -rf $SUBPROJECT/node_modules/.*-* $SUBPROJECT/node_modules/@*/.*-*
41
+ fi;
39
42
  npm $PREFIX ls || npm $PREFIX update
40
43
  fi;
41
44