{"_id":"@andyrmitchell/pm-link-auto","_rev":"7-d68098b5c245da0b981c112f89c3b12b","name":"@andyrmitchell/pm-link-auto","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.0":{"name":"@andyrmitchell/pm-link-auto","version":"0.1.0","author":{"name":"Andy Mitchell","email":"your-email"},"license":"MIT","_id":"@andyrmitchell/pm-link-auto@0.1.0","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"bin":{"pm-link-auto":"dist/cli.js"},"dist":{"shasum":"db613b64ea33ca9b50dc371ca13d19baa3450446","tarball":"https://registry.npmjs.org/@andyrmitchell/pm-link-auto/-/pm-link-auto-0.1.0.tgz","fileCount":7,"integrity":"sha512-r+1xnaOjo1IdDWZASqUUM1bPDaVrzreDIlOs1WgfnD2xLMFFP5Fx2cRdxd0Wr35AdxF6LrjnbCsSx6QA13ls8w==","signatures":[{"sig":"MEQCIAZdF+wsUE986uoH2wUA0U1oJLchlPctFKlp0hV5W963AiBvcccjiDv43qBt9+oSx4aCfoIrmXpK0uwZKMCbiSAFlA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20760},"type":"module","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.ts"}},"gitHead":"b29012b39fb99cacccde86bfbb10697bd1266f51","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","actor":{"name":"andyrmitchell","type":"user","email":"a.r.mitchell@gmail.com"},"email":"a.r.mitchell@gmail.com"},"_npmVersion":"10.9.2","description":"Automatically finds, configures, and links local package dependencies for a seamless development workflow.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","dependencies":{"glob":"^10.4.1","chalk":"^5.3.0","recast":"^0.23.11","prompts":"^2.4.2","cosmiconfig":"^9.0.0","@babel/parser":"^7.27.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^3.0.7","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^20.12.12","@types/prompts":"^2.4.9"},"_npmOperationalInternal":{"tmp":"tmp/pm-link-auto_0.1.0_1751392053749_0.6500942354140979","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@andyrmitchell/pm-link-auto","version":"0.1.1","author":{"name":"Andy Mitchell","email":"your-email"},"license":"MIT","_id":"@andyrmitchell/pm-link-auto@0.1.1","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"homepage":"https://github.com/andymitchell/pm-link-auto#readme","bugs":{"url":"https://github.com/andymitchell/pm-link-auto/issues"},"bin":{"pm-link-auto":"dist/cli.js"},"dist":{"shasum":"a995d3a779313bcfe926847fa9f5c3970e9d7b20","tarball":"https://registry.npmjs.org/@andyrmitchell/pm-link-auto/-/pm-link-auto-0.1.1.tgz","fileCount":7,"integrity":"sha512-GDZL/MxHkrvgMrK76vcr+o8tn0fhIUImccnT0HGqPtsqcnoa4VuDfFoMEAqab4mAQpWaH2x2tko3/TeNJSKYrw==","signatures":[{"sig":"MEUCIQDYcB02pNAMIW6Gvts2vI+Ez4Yhy8E/7t+2xnqzAfksQgIgCnNTJWJzGF2JUz78UEBcupUZSc2xbHxrkzMiFdO4edU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20880},"type":"module","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.ts"}},"gitHead":"7df401954e99c8fd5af800e41b52ec4eb54854d3","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","actor":{"name":"andyrmitchell","type":"user","email":"a.r.mitchell@gmail.com"},"email":"a.r.mitchell@gmail.com"},"repository":{"url":"git+https://github.com/andymitchell/pm-link-auto.git","type":"git"},"_npmVersion":"10.9.2","description":"Automatically finds, configures, and links local package dependencies for a seamless development workflow.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","dependencies":{"glob":"^10.4.1","chalk":"^5.3.0","recast":"^0.23.11","prompts":"^2.4.2","cosmiconfig":"^9.0.0","@babel/parser":"^7.27.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^3.0.7","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^20.12.12","@types/prompts":"^2.4.9"},"_npmOperationalInternal":{"tmp":"tmp/pm-link-auto_0.1.1_1751392260889_0.9561811785194141","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@andyrmitchell/pm-link-auto","version":"0.1.2","author":{"name":"Andy Mitchell","email":"your-email"},"license":"MIT","_id":"@andyrmitchell/pm-link-auto@0.1.2","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"homepage":"https://github.com/andymitchell/pm-link-auto#readme","bugs":{"url":"https://github.com/andymitchell/pm-link-auto/issues"},"bin":{"pm-link-auto":"dist/cli.js"},"dist":{"shasum":"0324db7c57afb304a7080ae60a7cf13a3bd300a1","tarball":"https://registry.npmjs.org/@andyrmitchell/pm-link-auto/-/pm-link-auto-0.1.2.tgz","fileCount":7,"integrity":"sha512-SXUvcf5uW2hJv+kFJLvAsXlw9QSlYafk4txnXAU7YKvPhveQ9zOxpji7tP6vqtb+3hsT83z5fozIfnTES3QC3A==","signatures":[{"sig":"MEQCIFiXbm3+AXU7CAFFcB4ZgeHf23SW/YWzD28u1WmYQaqrAiA4uyxZtFGPBYPtUaciD1VOcfh3alO1nmDvPwGKWAVJfg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21108},"type":"module","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.ts"}},"gitHead":"e2d7dd1423177589bba9d0390e788435072bcdfc","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","actor":{"name":"andyrmitchell","type":"user","email":"a.r.mitchell@gmail.com"},"email":"a.r.mitchell@gmail.com"},"repository":{"url":"git+https://github.com/andymitchell/pm-link-auto.git","type":"git"},"_npmVersion":"10.9.2","description":"Automatically finds, configures, and links local package dependencies for a seamless development workflow.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","dependencies":{"glob":"^10.4.1","chalk":"^5.3.0","recast":"^0.23.11","prompts":"^2.4.2","cosmiconfig":"^9.0.0","@babel/parser":"^7.27.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^3.0.7","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^20.12.12","@types/prompts":"^2.4.9"},"_npmOperationalInternal":{"tmp":"tmp/pm-link-auto_0.1.2_1751392681437_0.07126616244902828","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@andyrmitchell/pm-link-auto","version":"0.2.0","author":{"name":"Andy Mitchell","email":"your-email"},"license":"MIT","_id":"@andyrmitchell/pm-link-auto@0.2.0","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"homepage":"https://github.com/andymitchell/pm-link-auto#readme","bugs":{"url":"https://github.com/andymitchell/pm-link-auto/issues"},"bin":{"pm-link-auto":"dist/cli.js"},"dist":{"shasum":"f4e27280eba001673961ffd8ca50de7eaab87ae1","tarball":"https://registry.npmjs.org/@andyrmitchell/pm-link-auto/-/pm-link-auto-0.2.0.tgz","fileCount":8,"integrity":"sha512-CoO7SYToc1jgAHmLjAW267n6pVi5ktJuZKPqeDN+m2ldjo1kaft7JICXG5Ki8dBqgXe43ljuDrsrLhDvzpNsEA==","signatures":[{"sig":"MEUCIHZQJGGztd5jVLhZrEi323kIdqExvQ2ruDgQqBSFMkDxAiEA1GqyFJYRrVBh623jkDDCn+btDNuospZCuF3ga25dS3U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25378},"type":"module","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.ts"}},"gitHead":"255481f68b7b494ba4c12c9fa66514be93a65299","scripts":{"test":"vitest","build":"tsup && cp -a 'public' 'dist/public'","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","actor":{"name":"andyrmitchell","type":"user","email":"a.r.mitchell@gmail.com"},"email":"a.r.mitchell@gmail.com"},"repository":{"url":"git+https://github.com/andymitchell/pm-link-auto.git","type":"git"},"_npmVersion":"10.9.2","description":"Automatically finds, configures, and links local package dependencies for a seamless development workflow.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","dependencies":{"glob":"^10.4.1","chalk":"^5.3.0","recast":"^0.23.11","find-up":"^7.0.0","prompts":"^2.4.2","cosmiconfig":"^9.0.0","@babel/parser":"^7.27.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^3.0.7","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^20.12.12","@types/prompts":"^2.4.9"},"_npmOperationalInternal":{"tmp":"tmp/pm-link-auto_0.2.0_1751447186470_0.780405261458528","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@andyrmitchell/pm-link-auto","version":"0.2.1","author":{"name":"Andy Mitchell","email":"your-email"},"license":"MIT","_id":"@andyrmitchell/pm-link-auto@0.2.1","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"homepage":"https://github.com/andymitchell/pm-link-auto#readme","bugs":{"url":"https://github.com/andymitchell/pm-link-auto/issues"},"bin":{"pm-link-auto":"dist/cli.js"},"dist":{"shasum":"a6033e05231922969f43e3f1778467ccc4a76987","tarball":"https://registry.npmjs.org/@andyrmitchell/pm-link-auto/-/pm-link-auto-0.2.1.tgz","fileCount":9,"integrity":"sha512-eKQWuHDL8QPk4iVsfV5cuSo77bq/Ma82Qftt+ppge+8O34EDrXwSvcKVIFev9e7+0qieu7swnKlj2nPoutPk/Q==","signatures":[{"sig":"MEYCIQDosFR2wEJrgUKScJRhF+/zbtEPiq48h7uWTrx+LkH5HwIhAN4Ra9k5y/z422f1DpXzchfbm9+17v7n1dAElIzeTUr2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26356},"type":"module","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.ts"}},"gitHead":"fa6614eec6699766ac89706db4de5f7277db4485","scripts":{"test":"vitest","build":"tsup && cp -a 'public' 'dist/public'","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"repository":{"url":"git+https://github.com/andymitchell/pm-link-auto.git","type":"git"},"_npmVersion":"10.9.2","description":"Automatically finds, configures, and links local package dependencies for a seamless development workflow.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","dependencies":{"glob":"^10.4.1","chalk":"^5.3.0","recast":"^0.23.11","find-up":"^7.0.0","prompts":"^2.4.2","cosmiconfig":"^9.0.0","@babel/parser":"^7.27.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^3.0.7","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^20.12.12","@types/prompts":"^2.4.9"},"_npmOperationalInternal":{"tmp":"tmp/pm-link-auto_0.2.1_1752224780701_0.7130818382360433","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@andyrmitchell/pm-link-auto","version":"0.3.0","author":{"name":"Andy Mitchell","email":"your-email"},"license":"MIT","_id":"@andyrmitchell/pm-link-auto@0.3.0","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"homepage":"https://github.com/andymitchell/pm-link-auto#readme","bugs":{"url":"https://github.com/andymitchell/pm-link-auto/issues"},"bin":{"pm-link-auto":"dist/cli.js"},"dist":{"shasum":"1d3d8820e72e733c72fb41d8bdf4e77a37b834c9","tarball":"https://registry.npmjs.org/@andyrmitchell/pm-link-auto/-/pm-link-auto-0.3.0.tgz","fileCount":9,"integrity":"sha512-NnPYYnMdLfT1MKHmZtQ5yUa0GPfLe5Fq2fwyJuzSmR1Yedthc2QyUkaHmQ7KsjBonz20zoG9fcPAPN4Db58M0A==","signatures":[{"sig":"MEUCIQCHbFSnysr01WTOslBih6LwBPEcWEHHIJvm6PKx2fbdPAIgUTIyHSxMcqcz2luMIIame0gMgZh/5l8uRDFSTdu4zUs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24434},"type":"module","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.ts"}},"gitHead":"d406cd33ba7b709a214805b726aac53f04a8afed","scripts":{"test":"vitest","build":"tsup && cp -a 'public' 'dist/public'","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"repository":{"url":"git+https://github.com/andymitchell/pm-link-auto.git","type":"git"},"workspaces":["../../../../../test/libs/my-package"],"_npmVersion":"10.9.2","description":"Automatically finds, configures, and links local package dependencies for a seamless development workflow.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","dependencies":{"glob":"^10.4.1","chalk":"^5.3.0","recast":"^0.23.11","find-up":"^7.0.0","prompts":"^2.4.2","cosmiconfig":"^9.0.0","@babel/parser":"^7.27.7","@andyrmitchell/file-io":"^0.15.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^3.0.7","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^20.12.12","@types/prompts":"^2.4.9"},"_npmOperationalInternal":{"tmp":"tmp/pm-link-auto_0.3.0_1753360039412_0.36671399825487505","host":"s3://npm-registry-packages-npm-production"},"workspaces_from_pm_link_auto":["../../../../../test/libs/my-package"]},"0.3.1":{"name":"@andyrmitchell/pm-link-auto","version":"0.3.1","description":"Automatically finds, configures, and links local package dependencies for a seamless development workflow.","type":"module","sideEffects":false,"bin":{"pm-link-auto":"dist/cli.js"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.ts"}},"scripts":{"build_release":"npm run build_prepare && np","build":"tsup && cp -a 'public' 'dist/public'","pkglint":"./build/publint_pipeable.sh","build_prepare":"npm run build && npm run pkglint","prepublishOnly":"npm run build_prepare","test":"vitest","test:watch":"vitest --watch"},"author":{"name":"Andy Mitchell","email":"your-email"},"license":"MIT","dependencies":{"@andyrmitchell/file-io":"^0.15.2","@babel/parser":"^7.27.7","chalk":"^5.3.0","cosmiconfig":"^9.0.0","find-up":"^7.0.0","glob":"^10.4.1","prompts":"^2.4.2","recast":"^0.23.11"},"devDependencies":{"@types/jest":"^29.5.14","@types/node":"^20.12.12","@types/prompts":"^2.4.9","tsup":"^8.3.5","typescript":"^5.8.2","vitest":"^3.0.7"},"engines":{"node":">=22.0.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/andymitchell/pm-link-auto.git"},"workspaces":["../../../../../test/libs/my-package"],"workspaces_from_pm_link_auto":["../../../../../test/libs/my-package"],"_id":"@andyrmitchell/pm-link-auto@0.3.1","gitHead":"469466b742f5d1eaac340a827ae8cbdf852f910a","bugs":{"url":"https://github.com/andymitchell/pm-link-auto/issues"},"homepage":"https://github.com/andymitchell/pm-link-auto#readme","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-TISEoYa4AB83+JNzkofGvcSj5sq8tGj58TZ+SfrCRvoJA44RzjbGY4Ee8RG8Yh2f50ESYqeEWSVo7tYUlwm53Q==","shasum":"0cfd9961664024e95863c7898600ad9f7524a572","tarball":"https://registry.npmjs.org/@andyrmitchell/pm-link-auto/-/pm-link-auto-0.3.1.tgz","fileCount":9,"unpackedSize":25286,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC4BQfqJj8KPMOl9Bqb7TDnf+JVwU/BYyuJdXwHp+v4sAIhANPPucTfeDtqB/IMR4DusPMeD0RYLD5IPDkqsTHjeEaJ"}]},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"directories":{},"maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pm-link-auto_0.3.1_1753360356876_0.21514358267253142"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-01T17:47:33.664Z","modified":"2025-07-24T12:32:37.200Z","0.1.0":"2025-07-01T17:47:33.924Z","0.1.1":"2025-07-01T17:51:01.085Z","0.1.2":"2025-07-01T17:58:01.594Z","0.2.0":"2025-07-02T09:06:26.658Z","0.2.1":"2025-07-11T09:06:20.883Z","0.3.0":"2025-07-24T12:27:19.576Z","0.3.1":"2025-07-24T12:32:37.035Z"},"bugs":{"url":"https://github.com/andymitchell/pm-link-auto/issues"},"author":{"name":"Andy Mitchell","email":"your-email"},"license":"MIT","homepage":"https://github.com/andymitchell/pm-link-auto#readme","repository":{"type":"git","url":"git+https://github.com/andymitchell/pm-link-auto.git"},"description":"Automatically finds, configures, and links local package dependencies for a seamless development workflow.","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"readme":"\n# @andyrmitchell/pm-link-auto\n\nAre you consuming unpublished packages in your project? \n\nIt's probably a pain to maintain the dependencies across multiple team members or devices. \n\nThis solves it with with a single config file of just the package **names** you need. \n\n-   ✅ **Declarative Single Source of Truth:** Define all local dependencies in a configuration file.\n-   ✅ **Auto-Discovery:** If the package path is wrong or missing, the tool can search a root directory to find it.\n-   ✅ **Conflict-Free:** It symlinks the packages rather than adding their paths directly to package.json, avoiding conflicting developer's paths \n\n## How it Works\n\n- You define the package names you need in `pm-link-auto.config.ts`. Treat it like `dependencies` in package.json and commit it to Git.\n- It searches all packages.json on your machine for name matches, and uses their local paths\n- It creates a directory in your project for holding the symlinks to the found packages' paths\n- It adds that directory the `workspaces` of your `package.json`\n- When you run `npm i`, npm automatically resolves package-paths in `workspaces` and integrates them into your project (as if you'd run `npm i <package>` or `npm link <package>`)\n\n## Installation\n\n\nInstall the tool as a development dependency in your project.\n\n```bash\nnpm install -D @andyrmitchell/pm-link-auto\n```\n\nTo create the config file automatically, run... \n```bash\nnpm pm-link-auto\n```\n\n\n## Usage\n\n\n1.  **Create a configuration file** in your project's root directory named `pm-link-auto.config.ts`. Using TypeScript gives you the best editor support and type safety.\n\n    ```typescript\n    // pm-link-auto.config.ts\n\n    import type { LinkerConfig } from '@andyrmitchell/pm-link-auto';\n\n    const config: LinkerConfig = {\n      // This is where the local packages will be symlinked from.\n      // This directory will be added to your Git repo, and to your package.json workspaces.\n      // But its **contents** will be added to .gitignore \n      // Do not add anything else to it, as it's cleared every time it runs.\n      packageSymlinkDirectory: \"./pm-link-auto-packages\",\n      \n      // Optional: The root directory to search for packages if a path is missing.\n      // Supports `~` for home directory. Defaults to your home directory.\n      packageSearchRoot: '~/dev/projects',\n\n      \n\n      // A list of packages you need to link.\n      packages: [\n        {\n          name: '@my-scope/shared-ui',\n          // Optional: The tool will try to discover the path if you omit it.\n          // Path is relative to this config file.\n          path: '../../shared-ui',\n        },\n        {\n          name: '@my-scope/auth-library',\n          // Path is missing, so the tool will search for it in `packageSearchRoot`.\n        },\n      ],\n    };\n\n    export default config;\n    ```\n    *(Note: You can also use a `.js` file if you prefer.)*\n\n2.  **Run the linker:**\n\n    ```bash\n    npx pm-link-auto\n    ```\n\n    The tool will validate the paths, ask for permission to find any missing ones, update the config file, and perform the symlinks.\n\n3.  **Run npm install**\n    \n    ```bash\n    npm i\n    ```\n\n    This will install the new packages added to your `package.json` `workspaces`\n\n3.  **(Recommended) Add to `preinstall`**\n\n    To make this fully automatic, add it to your `package.json` `scripts`. This way, links are refreshed before every `npm install`.\n\n    ```json\n    \"scripts\": {\n      \"preinstall\": \"pm-link-auto\"\n    }\n    ```\n\n\n\n## License\n\nMIT","readmeFilename":"README.MD"}