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
If you want to develop this package and use it locally in your project (without publishing it), follow these steps:
130
+
131
+
#### 1 - Creating a Symbolic Link for the Development Package:
132
+
In the root of the scanoss.js package, run the command:
133
+
134
+
```bash
135
+
npm install && npm run build && npm link .
136
+
```
137
+
This command creates a global symbolic link in your system that points to the local location of your package. This means you can use the package in any other Node.js project on your machine as if it were installed globally.
In the root of the project where you want to use the scanoss package, run the command:
142
+
143
+
```bash
144
+
npm link scanoss
145
+
```
146
+
This will create a symbolic link in your project to the globally linked scanoss package. Any changes made in the package will be immediately reflected in the consuming project.
Remember that once you finish developing or using the package locally, you should break the link to avoid potential issues with future versions or with installing other packages. To do this, simply run:
141
151
142
-
main();
152
+
```bash
153
+
npm unlink scanoss
143
154
```
144
-
# Build and test the module
155
+
in both the project and the scanoss package. This will remove the symbolic links and restore the normal state of the packages.
0 commit comments