oclif / dev-cli

MIT License
61 stars 56 forks source link

Missing modules in windows installer #101

Open RobQuistNL opened 5 years ago

RobQuistNL commented 5 years ago

After building a windows app (from Linux because building it on Windows doesn't work), and running the generated installer, the program does seem to run, but the commands added seem to be missing:

C:\Users\PC>catalyst
A tool to manage dependencies and speed up your process

VERSION
  @gamemakerhub/catalyst/0.0.0 win32-x64 node-v10.15.3

USAGE
  $ catalyst [COMMAND]

COMMANDS
  hello  describe the command here
  help   display help for catalyst
  tree   List the contents of the current project

C:\Users\PC>catalyst tree
Error: Cannot find module 'C:/Program Files/@gamemakerhubcatalyst/client/lib/commands/tree'
    at fetch (C:/Program Files/@gamemakerhubcatalyst/client/node_modules/@oclif/config/lib/plugin.js:97:31)
    at Plugin.findCommand (C:/Program Files/@gamemakerhubcatalyst/client/node_modules/@oclif/config/lib/plugin.js:115:21)
    at Object.load (C:/Program Files/@gamemakerhubcatalyst/client/node_modules/@oclif/config/lib/plugin.js:48:72)
    at Config.runCommand (C:/Program Files/@gamemakerhubcatalyst/client/node_modules/@oclif/config/lib/config.js:149:27)    at Main.run (C:/Program Files/@gamemakerhubcatalyst/client/node_modules/@oclif/command/lib/main.js:21:27)
    at Main._run (C:/Program Files/@gamemakerhubcatalyst/client/node_modules/@oclif/command/lib/command.js:35:31)
sthuber90 commented 5 years ago

Having the same issue, after building windows app on Mac! Were you able to solve or work around this issue? I'm really stuck here and have no idea, how I can distribute my CLI

RobQuistNL commented 5 years ago

I actually got rid of this and made my CLI in PHP with a custom NSIS installer.. So not really a solution for you I think, sorry :P

sthuber90 commented 5 years ago

Setting "composite": false in tsconfig.json did the trick for me. I believe this issue can be closed then with a reference also on https://github.com/oclif/dev-cli/pull/109 as possible fix to this issue.