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
This will generate a `dist` folder with the compiled code. Next you want to link the package and use it in a different folder.
164
164
165
165
In the patch-node folder, run:
166
166
167
-
```
167
+
```sh
168
168
$ npm link
169
169
```
170
170
171
171
Navigate to a different, empty folder:
172
172
173
-
```
173
+
```sh
174
174
$ cd ..
175
175
$ mkdir test-patch-node
176
176
$ cd test-patch-node
177
177
```
178
178
179
179
In that repository, run the following command to use the locally built package:
180
180
181
-
```
181
+
```sh
182
182
$ npm link @patch-technology/patch
183
183
```
184
184
185
185
This will create a `node_modules` directory in your test repository which will symlink to your locally built package. To test out the package, open a node REPL and import the package and run some queries.
0 commit comments