@multiplatform.one/cli 1.0.27 → 1.0.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplatform.one/cli",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "author": "BitSpur <support@bitspur.com> (https://bitspur.com)",
5
5
  "contributors": [
6
6
  {
@@ -51,7 +51,7 @@
51
51
  "@types/node": "~20.12.13",
52
52
  "tsup": "^8.1.0",
53
53
  "typescript": "~5.3.3",
54
- "@multiplatform.one/utils": "^0.0.12"
54
+ "@multiplatform.one/utils": "^0.0.13"
55
55
  },
56
56
  "dependencies": {
57
57
  "commander": "^9.5.0",
package/scripts/update.sh CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  set -e
4
4
 
5
+ MULTIPLATFORM_REMOTE="$1"
5
6
  if ! (cat app/package.json | grep -q multiplatform.one); then
6
7
  echo "\033[0;31mError:\033[0m not a multiplatform.one project" >&2
7
8
  exit 1
@@ -23,7 +24,15 @@ echo "TEMP_DIR $TEMP_DIR"
23
24
  cd "$TEMP_DIR"
24
25
  cookiecutter "$@"
25
26
  COOKIECUTTER_DIR="$TEMP_DIR/$(ls "$TEMP_DIR")"
27
+ if [ -d "$TEMP_DIR/multiplatform.one" ]; then
28
+ MULTIPLATFORM_DIR="$TEMP_DIR/multiplatform_one"
29
+ else
30
+ MULTIPLATFORM_DIR="$TEMP_DIR/multiplatform.one"
31
+ fi
32
+ git clone "$MULTIPLATFORM_REMOTE" "$MULTIPLATFORM_DIR"
26
33
  cd "$COOKIECUTTER_DIR"
34
+ rm -rf .git
35
+ mv "$MULTIPLATFORM_DIR/.git" .git
27
36
  git add .
28
37
  git commit -m "Updated multiplatform.one"
29
38
  cd "$PROJECT_DIR"