1#!/bin/sh
2
3if [ -z "$1" ]; then
4 echo "Usage: npm run version:set <version>"
5 exit 1
6fi
7
8sed -i '' "s/\"version\": \"[^\"]*\"/\"version\": \"$1\"/" package.json manifest.json
9sed -i '' "s/\(@version[[:space:]]*\)[^[:space:]]*/\1$1/" content.user.js
10
11npm i
12
13echo "Version set to $1"