UNPKG

@bincode/jekpack

Version:

[![npm version](https://badge.fury.io/js/%40bincode%2Fjekpack.svg)](https://badge.fury.io/js/%40bincode%2Fjekpack) [![Build Status](https://travis-ci.org/yfxie/jekpack.svg?branch=master)](https://travis-ci.org/yfxie/jekpack) [![codecov](https://codecov.io

12 lines (11 loc) 319 B
const fs = require('fs'); const path = require('path'); module.exports = (configPath) => { const hostPath = path.join(process.env.JEKPACK_CONTEXT, configPath); const myPath = path.join(process.env.JEKPACK_ROOT, configPath); if (fs.existsSync(hostPath)) { return hostPath; } else { return myPath; } };