mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-11 11:39:43 +08:00
* style: use prettier * style: just prettier format, no code changes * style: eslint fix object-shorthand, prefer-const * style: fix no-void * style: no-console
13 lines
239 B
TypeScript
13 lines
239 B
TypeScript
/* eslint-disable */
|
|
/**
|
|
*
|
|
* @param {PathLike} path path to dependencies
|
|
* @returns {Array<string>}
|
|
*/
|
|
export default (path) => {
|
|
const pkgJson = require(path)
|
|
|
|
const { dependencies } = pkgJson
|
|
return Object.keys(dependencies)
|
|
}
|