@transitive-sdk/utils-caps 0.1.0 → 0.1.1

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 (2) hide show
  1. package/package.json +1 -1
  2. package/subScript.sh +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transitive-sdk/utils-caps",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Utilities to build and run Transitive capabilities in dev",
5
5
  "homepage": "https://transitiverobotics.com",
6
6
  "repository": {
package/subScript.sh CHANGED
@@ -40,6 +40,12 @@ fi;
40
40
  if [[ $SUBPROJECT ]]; then
41
41
  if [[ ${npmCommands[$npm_lifecycle_event]} ]]; then
42
42
  echo "Invoking $npm_lifecycle_event in $SUBPROJECT"
43
+
44
+ if [[ $npm_command == "ci" ]] && [[ $npm_lifecycle_event == "install" ]]; then
45
+ echo "ci: Removing $SUBPROJECT/node_modules"
46
+ rm -rf $SUBPROJECT/node_modules
47
+ fi;
48
+
43
49
  npm $PREFIX $npm_lifecycle_event
44
50
  else
45
51
  echo "Invoking $SUBSCRIPT in $SUBPROJECT"