chore: fix package-lock format compatibility
use make directives to conditionally run different sed options
on MacOS vs Linux
@@ -80,7 +80,12 @@ fmt-misc:
npm run format:misc > /dev/null
.PHONY: fmt-package-lock
fmt-package-lock:
+# check if we're running on MacOS
+ifeq "$(shell uname)" "Darwin"
sed -i '' -e 's|git+ssh://git@github.com|https://github.com|' package-lock.json
+else
+ sed -i -e 's|git+ssh://git@github.com|https://github.com|' package-lock.json
+endif
.PHONY: fmt
fmt: fmt-js fmt-css fmt-misc fmt-package-lock
