Skip to content

Commit 562847f

Browse files
committed
wip
1 parent ae39479 commit 562847f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/bump-version.mjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
import PackageJson from '@npmcli/package-json'
22
import assert from 'node:assert'
3+
import * as path from 'node:path'
4+
import { spawnSync } from 'node:child_process'
5+
import { fileURLToPath } from 'node:url'
36
import semver from 'semver'
4-
import { spawnSync } from 'child_process'
7+
8+
const __dirname = fileURLToPath(new URL('.', import.meta.url))
59

610
// Let `vsce` get the metadata for the extension
711
// Querying the marketplace API directly is not supported or recommended
812
let result = spawnSync(
9-
'./node_modules/.bin/vsce',
13+
path.resolve(__dirname, '../../node_modules/.bin/vsce'),
1014
['show', 'bradlc.vscode-tailwindcss', '--json'],
1115
{ encoding: 'utf8' },
1216
)
@@ -16,6 +20,7 @@ let metadata = JSON.parse(result.stdout)
1620
if (!metadata) {
1721
console.error(result.stdout)
1822
console.error(result.stderr)
23+
console.error(result.error)
1924
throw new Error('Failed to get extension metadata')
2025
}
2126

0 commit comments

Comments
 (0)