(pkg)
| 102881 | } |
| 102882 | |
| 102883 | packageCanBeInstalled(pkg) { |
| 102884 | const cmds = this.getInstallCommands(pkg); |
| 102885 | if (!cmds.length) { |
| 102886 | return false; |
| 102887 | } |
| 102888 | if (this.config.packBuiltPackages && pkg.prebuiltVariants) { |
| 102889 | for (const variant in pkg.prebuiltVariants) { |
| 102890 | if (pkg._remote && pkg._remote.reference && pkg._remote.reference.includes(variant)) { |
| 102891 | return false; |
| 102892 | } |
| 102893 | } |
| 102894 | } |
| 102895 | const ref = pkg._reference; |
| 102896 | invariant(ref, 'Missing package reference'); |
| 102897 | if (!ref.fresh && !this.force) { |
| 102898 | // this package hasn't been touched |
| 102899 | return false; |
| 102900 | } |
| 102901 | |
| 102902 | // Don't run lifecycle scripts for hoisted packages |
| 102903 | if (!ref.locations.length) { |
| 102904 | return false; |
| 102905 | } |
| 102906 | |
| 102907 | // we haven't actually written this module out |
| 102908 | if (ref.ignore) { |
| 102909 | return false; |
| 102910 | } |
| 102911 | return true; |
| 102912 | } |
| 102913 | |
| 102914 | runCommand(spinner, pkg) { |
| 102915 | var _this4 = this; |
no test coverage detected