csskit 0.0.7-canary.17dbae69aa → 0.0.7-canary.337d9ed77c
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/csskit +26 -16
- package/package.json +7 -7
package/bin/csskit
CHANGED
|
@@ -1,28 +1,38 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
set -e
|
|
3
3
|
|
|
4
|
+
SOURCE="${BASH_SOURCE[0]}"
|
|
5
|
+
while [ -L "$SOURCE" ]; do
|
|
6
|
+
DIR="$(cd -P "$(dirname "$SOURCE")" >/dev/null 2>&1 && pwd)"
|
|
7
|
+
TARGET="$(readlink "$SOURCE")"
|
|
8
|
+
case "$TARGET" in
|
|
9
|
+
/*) SOURCE="$TARGET" ;;
|
|
10
|
+
*) SOURCE="$DIR/$TARGET" ;;
|
|
11
|
+
esac
|
|
12
|
+
done
|
|
13
|
+
|
|
4
14
|
# Get script directory
|
|
5
|
-
SCRIPT_DIR="$(cd "$(dirname "${
|
|
15
|
+
SCRIPT_DIR="$(cd "$(dirname "${SOURCE}")" && pwd)"
|
|
6
16
|
|
|
7
17
|
# Detect platform
|
|
8
18
|
case "$(uname -s)" in
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
Linux*) PLATFORM="linux" ;;
|
|
20
|
+
Darwin*) PLATFORM="darwin" ;;
|
|
21
|
+
MINGW* | MSYS* | CYGWIN*) PLATFORM="win32" ;;
|
|
22
|
+
*)
|
|
23
|
+
echo "Unsupported platform: $(uname -s)" >&2
|
|
24
|
+
exit 1
|
|
25
|
+
;;
|
|
16
26
|
esac
|
|
17
27
|
|
|
18
28
|
# Detect architecture
|
|
19
29
|
case "$(uname -m)" in
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
x86_64 | amd64) ARCH="x64" ;;
|
|
31
|
+
aarch64 | arm64) ARCH="arm64" ;;
|
|
32
|
+
*)
|
|
33
|
+
echo "Unsupported architecture: $(uname -m)" >&2
|
|
34
|
+
exit 1
|
|
35
|
+
;;
|
|
26
36
|
esac
|
|
27
37
|
|
|
28
38
|
# Package name for this platform
|
|
@@ -30,9 +40,9 @@ PACKAGE_NAME="csskit-${PLATFORM}-${ARCH}"
|
|
|
30
40
|
|
|
31
41
|
# Find binary in platform-specific optional dependency
|
|
32
42
|
if [ "$PLATFORM" = "win32" ]; then
|
|
33
|
-
BIN_PATH="${SCRIPT_DIR}
|
|
43
|
+
BIN_PATH="${SCRIPT_DIR}/../node_modules/${PACKAGE_NAME}/bin/csskit.exe"
|
|
34
44
|
else
|
|
35
|
-
BIN_PATH="${SCRIPT_DIR}
|
|
45
|
+
BIN_PATH="${SCRIPT_DIR}/../node_modules/${PACKAGE_NAME}/bin/csskit"
|
|
36
46
|
fi
|
|
37
47
|
|
|
38
48
|
if [ -f "$BIN_PATH" ]; then
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "csskit",
|
|
3
|
-
"version": "0.0.7-canary.
|
|
3
|
+
"version": "0.0.7-canary.337d9ed77c",
|
|
4
4
|
"description": "Refreshing CSS",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"./bin"
|
|
12
12
|
],
|
|
13
13
|
"optionalDependencies": {
|
|
14
|
-
"csskit-linux-x64": "0.0.7-canary.
|
|
15
|
-
"csskit-linux-arm64": "0.0.7-canary.
|
|
16
|
-
"csskit-darwin-x64": "0.0.7-canary.
|
|
17
|
-
"csskit-darwin-arm64": "0.0.7-canary.
|
|
18
|
-
"csskit-win32-x64": "0.0.7-canary.
|
|
19
|
-
"csskit-win32-arm64": "0.0.7-canary.
|
|
14
|
+
"csskit-linux-x64": "0.0.7-canary.337d9ed77c",
|
|
15
|
+
"csskit-linux-arm64": "0.0.7-canary.337d9ed77c",
|
|
16
|
+
"csskit-darwin-x64": "0.0.7-canary.337d9ed77c",
|
|
17
|
+
"csskit-darwin-arm64": "0.0.7-canary.337d9ed77c",
|
|
18
|
+
"csskit-win32-x64": "0.0.7-canary.337d9ed77c",
|
|
19
|
+
"csskit-win32-arm64": "0.0.7-canary.337d9ed77c"
|
|
20
20
|
},
|
|
21
21
|
"funding": {
|
|
22
22
|
"url": "https://github.com/sponsors/keithamus"
|