summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDeniz Akşimşek <deniz@denizaksimsek.com>2022-05-16 23:09:11 +0300
committerDeniz Akşimşek <deniz@denizaksimsek.com>2022-05-16 23:09:11 +0300
commitd9232a8b4c2eef78b76137fa7f37905a0c59d4c9 (patch)
tree5932b9a6f589b62a247f50bb13959feb79210a2c
parentca67d7ae6fcd1635f44120d8dc5aadd7627741fa (diff)
downloadmissing-d9232a8b4c2eef78b76137fa7f37905a0c59d4c9.tar.gz
missing-d9232a8b4c2eef78b76137fa7f37905a0c59d4c9.zip
build minor fixes
-rw-r--r--build/postcss.ts2
-rwxr-xr-xbuild/version-archive.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/build/postcss.ts b/build/postcss.ts
index 15bd000..5c34e11 100644
--- a/build/postcss.ts
+++ b/build/postcss.ts
@@ -63,7 +63,7 @@ const w = async (data: Uint8Array, path: string | URL) => {
console.log("Wrote " + path)
}
-build()
+if (import.meta.main) await build()
export default build
diff --git a/build/version-archive.sh b/build/version-archive.sh
index f4d51c8..ef41586 100755
--- a/build/version-archive.sh
+++ b/build/version-archive.sh
@@ -3,7 +3,7 @@ set -e
root_dist=$(realpath dist)
- command -v git grep npm
+command -v git grep npm
rm -rf dist/src.tmp.d
git clone . dist/src.tmp.d
@@ -15,7 +15,7 @@ git clone . dist/src.tmp.d
echo "${0}: Checking out $tag"
git checkout $tag
echo "${0}: Building $tag"
- npm run build
+ [ -f ./_build/postcss.ts ] && ./_build/postcss.ts || ./_build/postcss.js
echo "${0}: Built, placing into /$tag/"
mkdir -p $root_dist/archive/$tag