mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
18 lines
358 B
JavaScript
Executable File
18 lines
358 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
'use strict'
|
|
|
|
const packageInfo = require('../package.json')
|
|
|
|
const execSync = require('child_process').execSync
|
|
|
|
process.stdout.write(
|
|
JSON.stringify(
|
|
{
|
|
version: require('../package.json').version,
|
|
commit: execSync(`git rev-parse HEAD`).toString().trim()
|
|
},
|
|
null,
|
|
' '
|
|
)
|
|
)
|