Skip to content

Commit 23c3507

Browse files
committed
experimenting
1 parent 3fe8528 commit 23c3507

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/plugins.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ export default class Plugins {
243243

244244
await rm(join(this.config.dataDir, 'yarn.lock'), {force: true})
245245

246+
console.log(`package.json is ${await readFile(this.pjsonPath, 'utf-8')}`)
246247
return plugin
247248
} catch (error: unknown) {
248249
this.debug('error installing plugin:', error)

test/integration/install.integration.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {runCommand} from '@oclif/test'
22
import {dim} from 'ansis'
33
import {expect} from 'chai'
4-
import * as fs from 'node:fs';
54
import {rm} from 'node:fs/promises'
65
import {dirname, join, resolve} from 'node:path'
76
import {fileURLToPath} from 'node:url'
@@ -209,7 +208,6 @@ describe('install/uninstall integration tests', () => {
209208
// Install a third plugin by a local tarball. This one is alphabetically after the second one.
210209
await runCommand(`plugins install "file://${pluginLocalTarball}`)
211210
const {result: thirdResult, stdout: thirdStdout} = await runCommand<Array<{name: string}>>('plugins')
212-
console.log(fs.readFileSync(join('~', '.local', 'share', 'sf', 'package.json')))
213211
expect(thirdStdout).to.contain(pluginShortName)
214212
expect(thirdResult?.some((r) => r.name === otherPlugin)).to.be.true
215213
expect(thirdResult?.some((r) => r.name === yetAnotherPlugin)).to.be.true
@@ -263,7 +261,6 @@ describe('install/uninstall integration tests', () => {
263261
await runCommand('plugins install @oclif/plugin-legacy')
264262
await runCommand('plugins install @heroku-cli/plugin-ps-exec --silent')
265263
const {result, stdout} = await runCommand<Array<{name: string}>>('plugins')
266-
console.log(fs.readFileSync(join('~', '.local', 'share', 'sf', 'package.json')))
267264
console.log(`stdout is ${stdout}`)
268265
expect(stdout).to.contain('@heroku-cli/plugin-ps-exec')
269266
expect(result?.some((r) => r.name === '@heroku-cli/plugin-ps-exec')).to.be.true

0 commit comments

Comments
 (0)