Skip to content

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

Open

Description

@adligo

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 "$@"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions