We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
getPkgName
1 parent e3065f9 commit 5a3b19bCopy full SHA for 5a3b19b
src/utils.js
@@ -52,6 +52,8 @@ const hasFile = (...p) => fs.existsSync(fromRoot(...p))
52
const ifFile = (files, t, f) =>
53
arrify(files).some(file => hasFile(file)) ? t : f
54
55
+const getPkgName = () => pkg.name
56
+
57
const hasPkgProp = props => arrify(props).some(prop => has(pkg, prop))
58
59
const hasPkgSubProp = pkgProp => props =>
@@ -164,11 +166,12 @@ module.exports = {
164
166
appDirectory,
165
167
fromRoot,
168
getConcurrentlyArgs,
169
+ getPkgName,
170
+ hasAnyDep,
171
hasFile,
172
hasLocalConfig,
173
hasPkgProp,
174
hasScript,
- hasAnyDep,
175
ifAnyDep,
176
ifDep,
177
ifDevDep,
0 commit comments