-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
it seems this installs a bunch of ghooks files inside my .git directory
that break, so i can't commit now.
how do i uninstall this stuff?
since they're files inside .git/ they can't just be uninstalled.
these are the errors i get in a TS project.
and renaming to .mjs and using import doesn't help
overall this package should come with a warning that it will mess up your system.
➜ trustgraph git:(dc/cleanup) ✗ gca
file:///Users/dc/dev/hacks/trustgraph/.git/hooks/pre-commit:28
const _nodeModulesPath = path.resolve(__dirname, '../', '../', 'node_modules')
^
ReferenceError: __dirname is not defined in ES module scope
at getNodeModulesAbsoluteEntryPoint (file:///Users/dc/dev/hacks/trustgraph/.git/hooks/pre-commit:28:41)
at file:///Users/dc/dev/hacks/trustgraph/.git/hooks/pre-commit:11:25
at ModuleJob.run (node:internal/modules/esm/module_job:272:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:580:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:98:5)
Node.js v23.6.1
➜ trustgraph git:(dc/cleanup) ✗ gca
file:///Users/dc/dev/hacks/trustgraph/.git/hooks/pre-commit:4
const fs = require('fs')
^
ReferenceError: require is not defined in ES module scope, you can use import instead
at file:///Users/dc/dev/hacks/trustgraph/.git/hooks/pre-commit:4:12
at ModuleJob.run (node:internal/modules/esm/module_job:272:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:580:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:98:5)
Metadata
Metadata
Assignees
Labels
No labels