@transitive-sdk/utils-caps 0.2.9 → 0.2.11

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.
Files changed (3) hide show
  1. package/docker.sh +4 -3
  2. package/package.json +3 -3
  3. package/rundev.sh +4 -1
package/docker.sh CHANGED
@@ -62,8 +62,10 @@ mkdir -p /tmp/pers/common
62
62
  PERS_CAP_DIR=/tmp/pers/${CAP_NAME//\"/}
63
63
  mkdir -p $PERS_CAP_DIR
64
64
 
65
- # bind mounts for all .js files in capability root folder
66
- jsFiles=$(for n in *.js; do echo -v $PWD/$n:/app/$n; done)
65
+ # bind mounts for all non-symlink .js files in capability root folder and cloud
66
+ jsFiles=$(for n in $(find *.js cloud/*.js -not -type l 2> /dev/null); do
67
+ echo -v $PWD/$n:/app/$n;
68
+ done)
67
69
 
68
70
  docker run -it --rm --init \
69
71
  --env MQTT_URL=mqtts://mosquitto \
@@ -73,7 +75,6 @@ docker run -it --rm --init \
73
75
  -p $PORT:1000 -p $PORT:1000/udp \
74
76
  -v /tmp/pers/common:/persistent/common \
75
77
  -v $PERS_CAP_DIR:/persistent/self \
76
- -v $PWD/cloud:/app/cloud \
77
78
  $jsFiles \
78
79
  --network=cloud_caps \
79
80
  --name $CONTAINER_NAME \
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transitive-sdk/utils-caps",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "description": "Utilities to build and run Transitive capabilities in dev",
5
5
  "homepage": "https://transitiverobotics.com",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@transitive-sdk/utils": ">=0.9.5",
32
- "esbuild": "^0.18.15"
31
+ "@transitive-sdk/utils": "^0.17.2",
32
+ "esbuild": "^0.28.0"
33
33
  }
34
34
  }
package/rundev.sh CHANGED
@@ -42,6 +42,8 @@ tryToSourceROS foxy
42
42
  tryToSourceROS galactic
43
43
  tryToSourceROS humble
44
44
  tryToSourceROS iron
45
+ tryToSourceROS jazzy
46
+ tryToSourceROS kilted
45
47
 
46
48
  # Make sure a config file exists
47
49
  if [[ ! -e ~/.transitive/config.json ]]; then
@@ -54,4 +56,5 @@ TRPACKAGE=$CAP \
54
56
  TRCONFIG="$(cat ~/.transitive/config.json | tr -d '\n' | sed "s#$CAP#package#")" \
55
57
  NODE_ARGS=$@ \
56
58
  TRANSITIVE_IS_ROBOT=1 \
57
- npm start
59
+ FORCE_COLOR=1 \
60
+ npm start "ignore, for monitoring: startPackage.sh $CAP" 2>&1 | tee -a ~/.transitive/packages/$CAP/log