Bump packages to fix linter
This commit is contained in:
parent
ed9506bbaf
commit
0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions
9
node_modules/@pkgr/utils/lib/monorepo.js
generated
vendored
Normal file
9
node_modules/@pkgr/utils/lib/monorepo.js
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
var _a, _b, _c, _d;
|
||||
import path from 'node:path';
|
||||
import { tryGlob, tryRequirePkg } from './helpers.js';
|
||||
const pkg = (_a = tryRequirePkg(path.resolve('package.json'))) !== null && _a !== void 0 ? _a : {};
|
||||
const lernaConfig = (_b = tryRequirePkg(path.resolve('lerna.json'))) !== null && _b !== void 0 ? _b : {};
|
||||
const pkgsPath = (_d = (_c = lernaConfig.packages) !== null && _c !== void 0 ? _c : pkg.workspaces) !== null && _d !== void 0 ? _d : [];
|
||||
export const isMonorepo = Array.isArray(pkgsPath) && pkgsPath.length > 0;
|
||||
export const monorepoPkgs = isMonorepo ? tryGlob(pkgsPath) : [];
|
||||
//# sourceMappingURL=monorepo.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue