@predotdev/mcp 2.0.0 → 2.0.1
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/package.json +1 -1
- package/src/setup.mjs +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@predotdev/mcp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "pre.dev in any coding agent: Browser Agents in the Chrome you already use and in the cloud, plus specs and plans. One command to set up. Free and open source.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/setup.mjs
CHANGED
|
@@ -147,7 +147,9 @@ export function createSetup(ctx) {
|
|
|
147
147
|
function installApp() {
|
|
148
148
|
if (path.resolve(packageRoot) === path.resolve(APP_DIR)) return ok(`Installed in ${APP_DIR.replace(home, '~')}`);
|
|
149
149
|
fs.mkdirSync(path.join(APP_DIR, 'src'), { recursive: true });
|
|
150
|
-
|
|
150
|
+
// Every module in src/, so a new one can never be left out of the installed copy.
|
|
151
|
+
const modules = fs.readdirSync(path.join(packageRoot, 'src')).filter(name => name.endsWith('.mjs')).map(name => `src/${name}`);
|
|
152
|
+
for (const file of [...modules, 'package.json', 'LICENSE', 'README.md']) {
|
|
151
153
|
const from = path.join(packageRoot, file);
|
|
152
154
|
if (!fs.existsSync(from)) continue;
|
|
153
155
|
const tmp = path.join(APP_DIR, `${file}.${process.pid}`);
|