plugins:link
fails to compile plugins that have typescript as a dependency
#1984
Labels
investigating
We're actively investigating this issue
Summary
Since oclif/plugin-plugins#517 the
plugins:link
command will always try to runtsc
on plugins that contain a dependency oftypescript
. This breaks linking plugins that have a dependency oftypescript
installed via NPM or Yarn, since modules published to NPM will in most cases not contain their typescript source code nor their tsconfig.Steps To Reproduce:
Repository to reproduce: dreamhouse-lwc
NOTE: If your issue is not reproducable by dreamhouse-lwc, i.e. requires specific metadata or files, we require a link to a simple Salesforce project repository with a script to setup a scratch org that reproduces your problem.
yarn add --dev sfdx-cli sfdmu
yarn sfdx plugins:link ./node_modules/sfdmu
Expected result
SFDX links the sfdmu plugin and I am able to call
sfdx sfdmu
Actual result
sfdx tries to compile the source code in the sfdmu module and fails because there is no tsconfig and no typescript code to compile.
System Information
bash
sfdx
sfdx version --verbose --json
sf
sf version --verbose --json
Additional information
see
oclif/plugin-plugins#559
and
oclif/plugin-plugins#517
The text was updated successfully, but these errors were encountered: