bcoe / bcoe/c8

Linking to c8 as a program in your path on Node 26

Open
#611 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.1k
Forks
99
PR merge metrics
No merged PRs in 30d

Description

Hi all, I've moved to node 26 and am having an issue where I need to call c8.js instead of just c8.

@see doc here;

https://github.com/adligo/ui_bm.ts.adligo.org/blob/main/SETUP_UI_BM_ENVIRONMENT.md#setup-the-c8-code-coverage-tool-globally

However, I've also overcome this issue with my symbolic linking program in version 1.7.0, let me know if you would like me to contribute something similar to c8.

...

https://github.com/adligo/slink.ts.adligo.org

My quick fix is to create a seperate Bash script for Windows and for Unix.

https://github.com/adligo/slink.ts.adligo.org/blob/main/src/bin/unix/slink

```
#!/bin/bash
# This is the new shell script for slink on node 26+ on unix
node --disable-warning=DEP0190 /usr/local/lib/node_modules/\@ts.adligo.org/slink/dist/slink.mjs "$@"
```

https://github.com/adligo/slink.ts.adligo.org/blob/main/src/bin/win/slink

```
#!/bin/bash
# This is the new shell script for slink on node 26+ on windows, use GitBash to execute it
# https://git-scm.com/install/windows
node --disable-warning=DEP0190 ~/AppData/Roaming/npm/node_modules/\@ts.adligo.org/slink/dist/slink.mjs "$@"
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported behavior on Node 26 by following the linked c8 setup instructions and comparing invocation as c8 versus c8.js. Review the Unix and Windows examples in the linked slink scripts for context on executable wrappers. Done means the c8 command can be invoked as documented on both platforms without requiring c8.js.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs, shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.