rioj7 / command-variable

Visual Studio Code extension for variable substitution via ${command:commandID}
51 stars 10 forks source link

build error: Extension entrypoint(s) missing #44

Closed GitMensch closed 1 year ago

GitMensch commented 1 year ago
$>git clone https://github.com/rioj7/command-variable
$>cd command-variable
$> vsce publish
 ERROR  Extension entrypoint(s) missing. Make sure these files exist and aren't ignored by '.vscodeignore':
  extension/out/extension-common.js

What parts are missing in these lines above?

rioj7 commented 1 year ago

@GitMensch Before you publish you have to run the npm task build, this will create the file out/extension-common.js

rioj7 commented 1 year ago

@GitMensch Does it help to publish this extension to open-vsx if I add the prepublish step to the package.json.

The doc for publish-extensions does not tell how to configure this step in the extension repo.

rioj7 commented 1 year ago

@GitMensch Reading the doc page extension_issues.md of the open-vsx/publish-extensions repo I think you can get it to work for open-vsx by adding the following JSON to

https://github.com/open-vsx/publish-extensions/blob/master/extensions.json

  "rioj7.command-variable": {
    "repository": "https://github.com/rioj7/command-variable",
    "prepublish": "npm run build"
  },