Skip to content

Commit 08e760e

Browse files
committed
AAAH
1 parent 32ecac5 commit 08e760e

2 files changed

Lines changed: 14 additions & 9 deletions

File tree

src/plugins.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ export default class Plugins {
165165
const normalizedUrl = npa(url)
166166
const matches = Object.entries(dependencies ?? {}).find(([, npmVersion]) => {
167167
const normalized = npa(npmVersion)
168-
// if (normalized.type !== normalizedUrl.type) {
169-
// return false
170-
// }
168+
if (normalized.type !== normalizedUrl.type) {
169+
return false
170+
}
171171

172172
// for local file paths
173173
if (normalized.type === 'file' && normalized.raw) {

test/integration/install.integration.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,17 @@ describe('install/uninstall integration tests', () => {
258258

259259
describe('legacy plugin', () => {
260260
it('should install legacy plugin', async () => {
261-
await runCommand('plugins install @oclif/plugin-legacy')
262-
await runCommand('plugins install @heroku-cli/plugin-ps-exec --silent')
263-
const {result, stdout} = await runCommand<Array<{name: string}>>('plugins')
264-
console.log(`stdout is ${stdout}`)
265-
expect(stdout).to.contain('@heroku-cli/plugin-ps-exec')
266-
expect(result?.some((r) => r.name === '@heroku-cli/plugin-ps-exec')).to.be.true
261+
try {
262+
await runCommand('plugins install @oclif/plugin-legacy')
263+
await runCommand('plugins install @heroku-cli/plugin-ps-exec --silent')
264+
const {result, stdout} = await runCommand<Array<{ name: string }>>('plugins')
265+
console.log(`stdout is ${stdout}`)
266+
expect(stdout).to.contain('@heroku-cli/plugin-ps-exec')
267+
expect(result?.some((r) => r.name === '@heroku-cli/plugin-ps-exec')).to.be.true
268+
} catch (e) {
269+
const err: Error = e as Error;
270+
console.log(`ERR: ${err.name}; ${err.message}, ${err.stack}`)
271+
}
267272
})
268273
})
269274
})

0 commit comments

Comments
 (0)