Code Monkey home page Code Monkey logo

exec-if-exists's People

Contributors

k2snowman69 avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

exec-if-exists's Issues

Improve E2E testing

We should spawn a normal npm exec vs exec-if-exists and make sure it's the same

Add testing

Add testing and update the circleci config to run them

Fails to exit process when used via husky

When the husky config looks like this:

module.exports = {
  hooks: {
    'commit-msg': [
      'echo npm',
      'exec-if-exists npm -v',
      'echo does not exist',
      'exec-if-exists asdfasdfasdfadsf -v',
      'echo commitlint',
      'exec-if-exists commitlint -E HUSKY_GIT_PARAMS',
    ].join(' && '),
    'pre-commit': 'lint-staged',
    'pre-push': 'npm test',
  },
};

The output looks like this:

husky > commit-msg (node v12.18.4)
npm
6.14.6
_stream_readable.js:681
    dest.end();
         ^

TypeError: dest.end is not a function
    at Socket.onend (_stream_readable.js:681:10)
    at Object.onceWrapper (events.js:421:28)
    at Socket.emit (events.js:327:22)
    at endReadableNT (_stream_readable.js:1220:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
husky > commit-msg hook failed (add --no-verify to bypass)

So looks like something is wrong with exiting the first process or maybe piping?

Picks up globally installed packages

  1. Clone this repo
  2. Run npm i
  3. Run npm run start npm -v

Expected:
npm ERR! could not determine executable to run

Actual:
The version of the globally installed npm library

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Preset package is missing a renovate-config entry (@snowcoders)

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
  • actions/setup-node v4
.github/workflows/publish.yml
  • actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
  • actions/setup-node v4
npm
package.json
  • find-up ^7.0.0
  • @release-it/keep-a-changelog 5.0.0
  • @snowcoders/renovate-config 3.0.0-beta.17
  • @types/which 3.0.3
  • @typescript-eslint/eslint-plugin 6.20.0
  • @typescript-eslint/parser 6.20.0
  • changelog-updater 2.0.3
  • concurrently 8.2.2
  • cpy-cli 5.0.0
  • eslint 8.56.0
  • eslint-config-prettier 9.1.0
  • eslint-plugin-import 2.29.1
  • eslint-plugin-prettier 5.1.3
  • husky 9.0.7
  • jest 29.7.0
  • lint-staged 15.2.1
  • prettier 3.2.4
  • release-it 17.0.3
  • rimraf 5.0.5
  • sortier 2.0.2
  • ts-jest 29.1.2
  • tslib 2.6.2
  • typescript 5.3.3
  • node >=16.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.