diff --git a/deploy-npm-versioned b/deploy-npm-versioned index 168e631..8fd0d17 100755 --- a/deploy-npm-versioned +++ b/deploy-npm-versioned @@ -29,7 +29,7 @@ npm ci npm run deploy echo "[[ Deploy ]] Extracting version info." -read -r major minor patch <<< "$(node -pe "require('./package.json').version" | awk '{split($0, a, "[\.\-\+]"); print a[1], a[2], a[3]}')" +read -r major minor patch <<< "$(node -pe "require('./package.json').version" | awk '{split($0, a, "[\.\+\-]"); print a[1], a[2], a[3]}')" dst_dirs="$dst_dir/$major.$minor.$patch $dst_dir/$major.$minor.x $dst_dir/$major.x.x" echo "[[ Deploy ]] Copying files from '$tmp_dir/dist' to the following directories: $dst_dirs"