-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hello! Interesting project!
I'm trying to try it out. I've set up a few fence.json files just to get a feel of how things could work (currently using dependency-cruiser).
I've installed the CLI into node_modules using npm install @good-fences/api and I've set up a script in package.json:
{
// ...
"scripts": {
// ...
"good-fences": "good-fences"
},
// ...Then I run it like so
$ npm run good-fences apps/app1 apps/app2 mylibBut unfortunately I'm met with
> good-fences
> good-fences apps/app1 apps/app2 mylib
.../myapps/node_modules/@good-fences/api/good-fences.js:24
const result = goodFences({
^
TypeError: goodFences is not a function
at Object.<anonymous> (.../myapps/node_modules/@good-fences/api/good-fences.js:24:16)
at Module._compile (node:internal/modules/cjs/loader:1562:14)
at Object..js (node:internal/modules/cjs/loader:1699:10)
at Module.load (node:internal/modules/cjs/loader:1313:32)
at Function._load (node:internal/modules/cjs/loader:1123:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
at node:internal/main/run_main_module:36:49
Node.js v22.13.1What am I doing wrong?
P.S. A getting started guide would be awesome!
coldPen, prasanthlouis, nfm, aperkaz, Frank3K and 1 more
Metadata
Metadata
Assignees
Labels
No labels