UNPKG

@quasar/app-webpack

Version:

Quasar Framework App CLI with Webpack

18 lines (16 loc) 358 B
/** * Get the resolved path of a host package. */ module.exports.getPackagePath = function getPackagePath(pkgName, dir) { if (dir === void 0) { console.error('getPackagePath() -> dir param is required') process.exit(1) } try { return require.resolve(pkgName, { paths: [dir] }) } catch { /* do and return nothing */ } }