1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00
squid-js/scripts/get-metadata.js

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,
' '
)
)