You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where `github.com/snyk/cli-extension-foo` is the name of the dependency and `../../cli-extension-foo` is your local copy of the repo, using a path relative to the `cliv2/go.mod` file.
422
+
423
+
Then run
424
+
425
+
```sh
426
+
make build
427
+
```
428
+
429
+
to build the CLI, and run it as usual with `./binary-releases/snyk-macos-arm64` (check the contents of `binary-releases/` to confirm the name of the binary, as this varies by platform).
430
+
431
+
### TypeScript
432
+
433
+
Find the line in `package.json` referencing the dependency you want to update, e.g. `"snyk-foo": "^1.2.3",` to point to your local copy of the dependency:
434
+
435
+
```json
436
+
"snyk-foo": "file:../snyk-foo",
437
+
```
438
+
439
+
assuming that you have the repo pulled down at `../snyk-foo` relative to the root of the CLI. Then, run:
440
+
441
+
```sh
442
+
npm install
443
+
```
444
+
445
+
to update your `package-lock.json`, and temporarily commit both changes:
446
+
447
+
```
448
+
git add package*.json && git commit -m "temp"
449
+
```
450
+
451
+
Be sure to drop that commit once you are done testing locally.
452
+
453
+
Then run:
454
+
455
+
```sh
456
+
make clean && make build
457
+
```
458
+
459
+
to build the ClI, and run it as usual with `./binary-releases/snyk-macos-arm64` (check the contents of `binary-releases/` to confirm the name of the binary, as this varies by platform).
0 commit comments