UNPKG
nr-cli
Version:
latest (1.0.9)
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.0.2
0.0.1
Ask for the scripts command to run in the package.json file
github.com/Jameswain/nr
Jameswain/nr
nr-cli
/
index.js
11 lines
(10 loc)
•
246 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
path =
require
(
'path'
);
module
.
exports
= {
getScripts
(
) {
try
{
const
package =
require
(path.
resolve
(process.
cwd
(),
'package.json'
));
if
(package.
scripts
)
return
Object
.
keys
(package.
scripts
); }
catch
(e) { } } }