File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 11// not an airtight indicator, but a good gut-check to even bother trying
2- const { promisify } = require ( 'util' )
3- const fs = require ( 'fs' )
4- const stat = promisify ( fs . stat )
2+ const { stat } = require ( 'fs/promises' )
53module . exports = ( { cwd = process . cwd ( ) } = { } ) =>
64 stat ( cwd + '/.git' ) . then ( ( ) => true , ( ) => false )
Original file line number Diff line number Diff line change 11{
22 "name" : " @npmcli/git" ,
3- "version" : " 5.0.4 " ,
3+ "version" : " 5.0.5 " ,
44 "main" : " lib/index.js" ,
55 "files" : [
66 " bin/" ,
Original file line number Diff line number Diff line change 168168 "devDependencies": {
169169 "@npmcli/docs": "^1.0.0",
170170 "@npmcli/eslint-config": "^4.0.2",
171- "@npmcli/git": "^5.0.4 ",
171+ "@npmcli/git": "^5.0.5 ",
172172 "@npmcli/mock-globals": "^1.0.0",
173173 "@npmcli/mock-registry": "^1.0.0",
174174 "@npmcli/template-oss": "4.21.3",
17621762 }
17631763 },
17641764 "node_modules/@npmcli/git": {
1765- "version": "5.0.4 ",
1766- "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-5.0.4 .tgz",
1767- "integrity": "sha512-nr6/WezNzuYUppzXRaYu/W4aT5rLxdXqEFupbh6e/ovlYFQ8hpu1UUPV3Ir/YTl+74iXl2ZOMlGzudh9ZPUchQ ==",
1765+ "version": "5.0.5 ",
1766+ "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-5.0.5 .tgz",
1767+ "integrity": "sha512-x8hXItC8OFOwdgERzRIxg0ic1lQqW6kSZFFQtZTCNYOeGb9UqzVcod02TYljI9UBl4RtfcyQ0A7ygmcGFvEqWw ==",
17681768 "inBundle": true,
17691769 "dependencies": {
17701770 "@npmcli/promise-spawn": "^7.0.0",
Original file line number Diff line number Diff line change 199199 "devDependencies" : {
200200 "@npmcli/docs" : " ^1.0.0" ,
201201 "@npmcli/eslint-config" : " ^4.0.2" ,
202- "@npmcli/git" : " ^5.0.4 " ,
202+ "@npmcli/git" : " ^5.0.5 " ,
203203 "@npmcli/mock-globals" : " ^1.0.0" ,
204204 "@npmcli/mock-registry" : " ^1.0.0" ,
205205 "@npmcli/template-oss" : " 4.21.3" ,
You can’t perform that action at this time.
0 commit comments