UNPKG

ci-scripts

Version:

Useful scripts to execute from your CI runner. For example, post to Slack and GitHub when your build completes:

12 lines (9 loc) 247 B
const path = require('path'); const dir = process.cwd(); const pkg = path.join(dir, 'package.json'); try { // eslint-disable-next-line import/no-dynamic-require module.exports = require(pkg); } catch (error) { module.exports = {}; }