File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11import PackageJson from '@npmcli/package-json'
22import assert from 'node:assert'
3+ import * as path from 'node:path'
4+ import { spawnSync } from 'node:child_process'
5+ import { fileURLToPath } from 'node:url'
36import 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
812let 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)
1620if ( ! 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
You can’t perform that action at this time.
0 commit comments