nixos-configs/packages/some-sass-language-server/update.nix
matt1432 ab8626e3b1
All checks were successful
Discord / discord commits (push) Has been skipped
feat(sass): switch to @use and setup lsp server
2024-10-31 15:35:03 -04:00

16 lines
440 B
Nix

#bash
''
cd "$FLAKE/packages/some-sass-language-server" || return
latest=$(npm outdated --json | jq -r '.["some-sass-language-server"]["latest"]' || true)
echo "$latest"
sed -i "s#\"some-sass-language-server\": \"[^\"]*\"#\"some-sass-language-server\": \"$latest\"#" ./package.json
npm update
npm_hash="$(prefetch-npm-deps ./package-lock.json)"
sed -i "s#npmDepsHash = .*#npmDepsHash = \"$npm_hash\";#" ./default.nix
''