Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
.json and .node can be specified as scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
igorklopov committed Aug 4, 2017
1 parent 60607ec commit 9ab508a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/walker.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class Walker {
for (const script of scripts) {
const stat = await fs.stat(script);
if (stat.isFile()) {
if (!isDotJS(script)) {
if (!isDotJS(script) && !isDotJSON(script) & !isDotNODE(script)) {
log.warn('Non-javascript file is specified in \'scripts\'.', [
'Pkg will probably fail to parse. Specify *.js in glob.',
script ]);
Expand Down

0 comments on commit 9ab508a

Please sign in to comment.