-
Notifications
You must be signed in to change notification settings - Fork 247
Closed
Description
Hi,
I'm new to typescript and am trying to add some functionality to some packages in this repo. I tried to to create a node/typescript package and add tonaljs as a dependency and develop my package while modifying the tonaljs. To achieve this, I tried to rely on nodemon so that whenever I make any change on the dependency (@tonaljs), they are automatically propagated to my package.
What I did was:
- Create a new package (my main project)
- Build
tonaljsusingyarn installfollowed byyarn build:all - Use
npm linkon each folder intonal/packages/(I also tried this step on all built files intonal/node_modules/@tonaljs - Use
npm link <name>to add each package from previous step to my own package - [at this point the dependency works fine and I can use the library]
- Use
nodemonon the maintonaljsfolder (NOT the one in my package'snode_modulefolder) to monitor changes (tried this on thetonal/packagesfolder as well as a specific folder liketonal/packages/intervals).
The problem is that nodemon detects changes, but the output of API doesn't change in my package.
Few questions:
- What am I doing wrong?
- Is there any easier way to do this?
- Why doesn't the
mainfile frompackage.jsonexist before the build? - If I want to create the main file on top of this library and modify the library while developing the main, can I do that right in the
tonalfolder, or do I have to create another project and add this as a dependency?
Thank you,
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels