# Using local BJS repo

**URL:** https://forum.babylonjs.com/t/using-local-bjs-repo/38290
**Category:** Questions
**Created:** [February 16, 2023, 8:05pm UTC](https://forum.babylonjs.com/t/using-local-bjs-repo/38290 "2023-02-16T20:05:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![alekop](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/alekop/32/4380_2.png) [@alekop](https://forum.babylonjs.com/u/alekop)
#### Post date: [February 16, 2023, 8:05pm UTC](https://forum.babylonjs.com/t/using-local-bjs-repo/38290/1 "2023-02-16T20:05:02Z")

</div>

Sorry if this has been asked before… How can I use a local BJS repo in my project?

I’ve made some changes in _~/Babylon.js_, and built them with `npm run build:dev`. The _~/Babylonjs/packages/dev/core/dist_ directory has the updated files, but how to get _~/myproj_ to use this build?

Here’s _~/myproj/package.json_:

```
"dependencies": {
  "@babylonjs/core": "../Babylon.js"
}

```

After `npm ci`, the _node\_modules/@babylonjs_ directory exists, but it doesn’t have my changes.

I’ve hacked around this by copying the updated files to node\_modules, but there has to be a better way

---

<div class="post-metadata">

### Author: ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)
#### Post date: [February 16, 2023, 11:15pm UTC](https://forum.babylonjs.com/t/using-local-bjs-repo/38290/2 "2023-02-16T23:15:39Z")

</div>

cc @RaananW

---

<div class="post-metadata">

### Author: ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)
#### Post date: [February 17, 2023, 11:01am UTC](https://forum.babylonjs.com/t/using-local-bjs-repo/38290/3 "2023-02-17T11:01:53Z")

</div>

npm-link to the rescue.

The process is described here - [Start Contributing to Babylon.js | Babylon.js Documentation](https://doc.babylonjs.com/contribute/toBabylon/HowToContribute#the-build), search for " Link a public project to an external one" (sadly i can’t provide a direct link to this part of the docs). You don’t need to run the prepublish step, this is now done automatically for you.

In general - you can use npm-link to link any public package using this method.
