Skip to content

Commit

Permalink
bump v10 (#299)
Browse files Browse the repository at this point in the history
* update: use clinic scoped packages

* 10.0.0
  • Loading branch information
RafaelGSS authored Nov 15, 2021
1 parent dd04d9b commit 93ea371
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
16 changes: 8 additions & 8 deletions bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const result = commist()
}
})
.register('doctor', catchify(async function (argv) {
const version = require('@nearform/doctor/package.json').version
const version = require('@clinic/doctor/package.json').version

const args = subarg(argv, {
alias: {
Expand Down Expand Up @@ -94,14 +94,14 @@ const result = commist()
} else if (args['visualize-only'] || args['--'].length > 1) {
checkArgs('doctor', args, 'clinic-doctor', version)
await trackTool('doctor', args, version)
await runTool('doctor', require('@nearform/doctor'), version, args, { color: 'green' })
await runTool('doctor', require('@clinic/doctor'), version, args, { color: 'green' })
} else {
printHelp('clinic-doctor', version)
process.exit(1)
}
}))
.register('bubbleprof', catchify(async function (argv) {
const version = require('@nearform/bubbleprof/package.json').version
const version = require('@clinic/bubbleprof/package.json').version

const args = subarg(argv, {
alias: {
Expand Down Expand Up @@ -134,14 +134,14 @@ const result = commist()
} else if (args['visualize-only'] || args['--'].length > 1) {
checkArgs('bubbleprof', args, 'clinic-bubbleprof', version)
await trackTool('bubbleprof', args, version)
await runTool('bubbleprof', require('@nearform/bubbleprof'), version, args, { color: 'blue' })
await runTool('bubbleprof', require('@clinic/bubbleprof'), version, args, { color: 'blue' })
} else {
printHelp('clinic-bubbleprof', version)
process.exit(1)
}
}))
.register('flame', catchify(async function (argv) {
const version = require('@nearform/flame/version')
const version = require('@clinic/flame/version')

const args = subarg(argv, {
alias: {
Expand Down Expand Up @@ -174,14 +174,14 @@ const result = commist()
} else if (args['visualize-only'] || args['--'].length > 1) {
checkArgs('flame', args, 'clinic-flame', version)
await trackTool('flame', args, version)
await runTool('flame', require('@nearform/flame'), version, args, { color: 'yellow' })
await runTool('flame', require('@clinic/flame'), version, args, { color: 'yellow' })
} else {
printHelp('clinic-flame', version)
process.exit(1)
}
}))
.register('heapprofiler', catchify(async function (argv) {
const version = require('@nearform/clinic-heap-profiler/package.json').version
const version = require('@clinic/heap-profiler/package.json').version

const args = subarg(argv, {
alias: {
Expand Down Expand Up @@ -213,7 +213,7 @@ const result = commist()
} else if (args['visualize-only'] || args['--'].length > 1) {
checkArgs('heap-profiler', args, 'clinic-heap-profiler', version)
await trackTool('heap-profiler', args, version)
await runTool('heap-profiler', require('@nearform/clinic-heap-profiler'), version, args, { color: 'yellow' })
await runTool('heap-profiler', require('@clinic/heap-profiler'), version, args, { color: 'yellow' })
} else {
printHelp('clinic-heap-profiler', version)
process.exit(1)
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "clinic",
"description": "Clinic.js diagnoses your performance issues",
"repository": "clinicjs/node-clinic",
"version": "9.1.0",
"version": "10.0.0",
"engines": {
"node": ">= 12.13.0"
},
Expand All @@ -18,10 +18,10 @@
"lint": "standard --fix | snazzy"
},
"dependencies": {
"@nearform/bubbleprof": "^7.0.1",
"@nearform/doctor": "^8.1.0",
"@nearform/flame": "^9.1.0",
"@nearform/clinic-heap-profiler": "^1.1.0",
"@clinic/bubbleprof": "^8.0.0",
"@clinic/doctor": "^9.0.0",
"@clinic/flame": "^10.0.0",
"@clinic/heap-profiler": "^3.0.0",
"any-shell-escape": "^0.1.1",
"async": "^3.0.1",
"autocannon": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions test/cli-bubbleprof-version.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test('clinic bubbleprof --version', function (t) {
t.error(err)
t.equal(
stdout,
`v${require('@nearform/bubbleprof/package.json').version}\n`
`v${require('@clinic/bubbleprof/package.json').version}\n`
)
t.end()
})
Expand All @@ -19,7 +19,7 @@ test('clinic bubbleprof -v', function (t) {
t.error(err)
t.equal(
stdout,
`v${require('@nearform/bubbleprof/package.json').version}\n`
`v${require('@clinic/bubbleprof/package.json').version}\n`
)
t.end()
})
Expand Down
4 changes: 2 additions & 2 deletions test/cli-doctor-version.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test('clinic doctor --version', function (t) {
t.error(err)
t.equal(
stdout,
`v${require('@nearform/doctor/package.json').version}\n`
`v${require('@clinic/doctor/package.json').version}\n`
)
t.end()
})
Expand All @@ -19,7 +19,7 @@ test('clinic doctor -v', function (t) {
t.error(err)
t.equal(
stdout,
`v${require('@nearform/doctor/package.json').version}\n`
`v${require('@clinic/doctor/package.json').version}\n`
)
t.end()
})
Expand Down
4 changes: 2 additions & 2 deletions test/cli-flame-version.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test('clinic flame --version', function (t) {
t.error(err)
t.equal(
stdout,
`v${require('@nearform/flame/version')}\n`
`v${require('@clinic/flame/version')}\n`
)
t.end()
})
Expand All @@ -19,7 +19,7 @@ test('clinic flame -v', function (t) {
t.error(err)
t.equal(
stdout,
`v${require('@nearform/flame/version')}\n`
`v${require('@clinic/flame/version')}\n`
)
t.end()
})
Expand Down
4 changes: 2 additions & 2 deletions test/cli-heapprofiler-version.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ const cli = require('./cli.js')
test('clinic heapprofiler --version', function (t) {
cli({}, ['clinic', 'heapprofiler', '--version'], function (err, stdout) {
t.error(err)
t.equal(stdout, `v${require('@nearform/clinic-heap-profiler/package.json').version}\n`)
t.equal(stdout, `v${require('@clinic/heap-profiler/package.json').version}\n`)
t.end()
})
})

test('clinic heapprofiler -v', function (t) {
cli({}, ['clinic', 'heapprofiler', '-v'], function (err, stdout) {
t.error(err)
t.equal(stdout, `v${require('@nearform/clinic-heap-profiler/package.json').version}\n`)
t.equal(stdout, `v${require('@clinic/heap-profiler/package.json').version}\n`)
t.end()
})
})

0 comments on commit 93ea371

Please sign in to comment.