jakejs / jake

JavaScript build tool, similar to Make or Rake. Built to work with Node.js.
http://jakejs.com
Apache License 2.0
1.96k stars 190 forks source link

--tasks print source code of jakefile.js #427

Closed tit closed 1 year ago

tit commented 1 year ago

Hi, sorry for my bad English.

Previously, --tasks returned only a list of tasks (expected). Now it began to return the source code of the entire file. Why?

cat jakefile.js

const Jake = require('jake')

Jake.desc('Playground')
Jake.task('playground', () => {
  console.log('playground')
})
jake --tasks

 () => {
  console.log('playground')
}

 () => {
  console.log('playground')
}

jake playground   # Playground

Jake version: 10.8.6

mde commented 1 year ago

Fixed and pushed to NPM in v10.8.7. Thank you so much for reporting this!