pkgDir.js 222 B

1234567891011
  1. 'use strict';
  2. const path = require('path');
  3. const pkgUp = require('./pkgUp').default;
  4. exports.__esModule = true;
  5. exports.default = function (cwd) {
  6. const fp = pkgUp({ cwd });
  7. return fp ? path.dirname(fp) : null;
  8. };