fix(update): get rid of shell deprecation msg

This commit is contained in:
matt1432 2025-05-10 14:16:55 -04:00
commit 1c22784064
9 changed files with 30 additions and 32 deletions
apps/update-sources/src

View file

@ -19,9 +19,9 @@ const updatePackageJson = async(workspaceDir: string, updates: object) => {
const updateDeps = (deps: string) => {
Object.keys(currentPackageJson[deps]).forEach(async(dep) => {
if (dep === 'astal') {
const latestCommit = JSON.parse(spawnSync('curl',
['-s', 'https://api.github.com/repos/Aylur/astal/commits/main'],
{ shell: true }).stdout.toString()).sha;
const latestCommit = JSON.parse(spawnSync(
['curl', '-s', 'https://api.github.com/repos/Aylur/astal/commits/main'].join(' '), [], { shell: true },
).stdout.toString()).sha;
currentPackageJson[deps][dep] = `https://gitpkg.vercel.app/Aylur/astal/lang/gjs/src?${latestCommit}`;