netlify/eslint-config-node

Feature: add `run_local` script

erezrokah opened this issue · 0 comments

Which problem is this feature request solving?

See netlify/build@ed3775a#diff-21d7febb920de5511d3fd774505b2df8d3c295ff0b2ce579333c0b1c73cf0c80

Similar to the run-e script it would be useful to add run-local and possibly a run-ci script to only run commands locally/on CI

Describe the solution you'd like

Export a run-local scripts as a bin field so consumers can run a command only locally and not on CI.

Describe alternatives you've considered

Duplicating that code across repos

Can you submit a pull request?

Yes

Additional notes

Use https://github.com/watson/is-ci instead of process.env.CI