@upstatement/twix 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.
- package/bin/twix +6 -4
- package/package.json +5 -5
package/bin/twix
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
|
+
# basedir is the bin/ directory inside @upstatement/twix
|
|
3
|
+
# We need to go up two levels to @upstatement/, then into the platform package
|
|
2
4
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
5
|
|
|
4
6
|
case "$(uname -s)-$(uname -m)" in
|
|
5
|
-
Darwin-arm64) exec "$basedir
|
|
6
|
-
Darwin-x86_64) exec "$basedir
|
|
7
|
-
Linux-aarch64) exec "$basedir
|
|
8
|
-
Linux-x86_64) exec "$basedir
|
|
7
|
+
Darwin-arm64) exec "$basedir/../../twix-darwin-arm64/bin/twix" "$@" ;;
|
|
8
|
+
Darwin-x86_64) exec "$basedir/../../twix-darwin-x64/bin/twix" "$@" ;;
|
|
9
|
+
Linux-aarch64) exec "$basedir/../../twix-linux-arm64/bin/twix" "$@" ;;
|
|
10
|
+
Linux-x86_64) exec "$basedir/../../twix-linux-x64/bin/twix" "$@" ;;
|
|
9
11
|
*) echo "Unsupported platform: $(uname -s)-$(uname -m)" >&2; exit 1 ;;
|
|
10
12
|
esac
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upstatement/twix",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A formatter for Twig templates with HTML",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/Upstatement/twix.git"
|
|
8
8
|
},
|
|
9
9
|
"optionalDependencies": {
|
|
10
|
-
"@upstatement/twix-darwin-arm64": "0.1.
|
|
11
|
-
"@upstatement/twix-darwin-x64": "0.1.
|
|
12
|
-
"@upstatement/twix-linux-arm64": "0.1.
|
|
13
|
-
"@upstatement/twix-linux-x64": "0.1.
|
|
10
|
+
"@upstatement/twix-darwin-arm64": "0.1.1",
|
|
11
|
+
"@upstatement/twix-darwin-x64": "0.1.1",
|
|
12
|
+
"@upstatement/twix-linux-arm64": "0.1.1",
|
|
13
|
+
"@upstatement/twix-linux-x64": "0.1.1"
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
16
16
|
"twig",
|