SmartThingsCommunity / edge-cli-plugin

Apache License 2.0
4 stars 9 forks source link

fix: change outdir to generate correct code links #19

Closed john-u closed 3 years ago

john-u commented 3 years ago

relates to SmartThingsCommunity/smartthings-cli#200

Types of Changes

john-u commented 3 years ago

After further investigation, I've found I can achieve the same output by leaving outDir set to dist and instead setting the following repositoryPrefix in package.json

"oclif": {
    "repositoryPrefix": "<%- repo %>/blob/v<%- version %>/<%- _.replace(commandPath, 'dist', 'src') %>"
}

However, I am hesitant to patch it this way since it seems every OCLIF CLI I can find open source has lib as a Typescript outDir (it's generated this way by the oclif CLI). Having our outDir set to dist caused this issue and we can't guarantee there won't be other issues related to it now or in the future.

smartthingspi commented 3 years ago

:tada: This PR is included in version 1.4.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: