@fuzo/soccer-board 0.2.0-alpha.1 → 0.2.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -318,33 +318,23 @@ Make sure player photos are accessible and CORS is configured correctly if loadi
318
318
 
319
319
  ## 💻 Local Development
320
320
 
321
- If you want to use the library locally in your project during development (to test changes before publishing), check out [LOCAL_DEVELOPMENT.md](./LOCAL_DEVELOPMENT.md) for detailed instructions.
322
-
323
- **Quick Start:**
321
+ If you want to use the library locally in your project during development (to test changes before publishing), you can use the `file:` protocol in your `package.json`:
324
322
 
325
323
  ```bash
326
- # 1. From the library directory
327
- cd soccer-board-angular
328
- npm run link # Builds and creates global link (points to dist/soccer-board-angular)
329
-
330
- # 2. From your project
331
- cd /your/project
332
- npm link @fuzo/soccer-board # Links to local version
333
-
334
- # 3. After making changes, rebuild:
335
- cd soccer-board-angular
336
- npm run build # Rebuild the library
337
-
338
- # 4. When ready to publish:
339
- cd /your/project
340
- npm unlink @fuzo/soccer-board
341
- cd soccer-board-angular
342
- npm publish --access public
324
+ # In your project's package.json, add:
325
+ {
326
+ "dependencies": {
327
+ "@fuzo/soccer-board": "file:/absolute/path/to/soccer-board-workspace/dist/soccer-board-angular"
328
+ }
329
+ }
330
+
331
+ # Then install:
332
+ npm install
343
333
  ```
344
334
 
345
- **⚠️ Important:** The `npm run link` command creates a symlink pointing to `dist/soccer-board-angular/` (the built package), NOT to `soccer-board-angular/` (the source directory). This is correct because npm needs to link to the packaged, built version of the library.
335
+ **Note:** After making changes to the library, rebuild it (`npm run build` in the library directory) and reinstall in your project (`npm install`) to see the changes.
346
336
 
347
- See [LOCAL_DEVELOPMENT.md](./LOCAL_DEVELOPMENT.md) for more details and troubleshooting.
337
+ For more advanced local development options (including npm link), see the source repository's documentation.
348
338
 
349
339
  ## 🤝 Contributing
350
340