isaacs / tshy

Other
869 stars 17 forks source link

Using glob should not override tshy.exports on run #63

Closed novascreen closed 3 months ago

novascreen commented 4 months ago

I was trying the glob exports with a config like this:

"tshy": {
  "exports": "./src/**"
}

unfortunately when i run tshy it overrides tshy.exports with the results of the glob. So next time I want to add a file, i'll have to change it back to "./src/**", which kind of defeats the purpose.

I would expect it to change exports, but not tshy.exports.

isaacs commented 4 months ago

Ah, yeah, that's annoying. The whole point is that you want to add files and not update anything.