diff --git a/AGENTS.md b/AGENTS.md index 1af3773..44f5ab4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -19,7 +19,6 @@ And other internal packages: ```bash npm start # Start website dev server npm run build # Build all packages -npm run build:lib # Build page-agent library only npm run lint # ESLint with TypeScript strict rules ``` @@ -28,7 +27,6 @@ npm run lint # ESLint with TypeScript strict rules ```bash # Core library npm run build --workspace=page-agent -npm run build:watch --workspace=page-agent # Website npm run dev --workspace=@page-agent/website diff --git a/packages/page-agent/vite.config.js b/packages/page-agent/vite.config.js index 24298e0..23b1fce 100644 --- a/packages/page-agent/vite.config.js +++ b/packages/page-agent/vite.config.js @@ -34,7 +34,13 @@ const libConfig = { }, outDir: resolve(__dirname, 'dist', 'lib'), rollupOptions: { - external: ['ai', 'ai-motion', 'chalk', 'zod', '@page-agent/*'], + external: [ + 'ai-motion', + 'chalk', + 'zod', + // all the internal packages + /^@page-agent\//, + ], }, minify: false, sourcemap: true, diff --git a/packages/page-controller/package.json b/packages/page-controller/package.json index 236d3d2..90994be 100644 --- a/packages/page-controller/package.json +++ b/packages/page-controller/package.json @@ -32,7 +32,6 @@ "homepage": "https://alibaba.github.io/page-agent/", "scripts": { "build": "vite build", - "build:watch": "vite build --watch", "prepublishOnly": "node -e \"const fs=require('fs');['LICENSE'].forEach(f=>fs.copyFileSync('../../'+f,f))\"", "postpublish": "node -e \"['LICENSE'].forEach(f=>{try{require('fs').unlinkSync(f)}catch{}})\"" } diff --git a/packages/ui/package.json b/packages/ui/package.json index 5963551..a29ab39 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -32,7 +32,6 @@ "homepage": "https://alibaba.github.io/page-agent/", "scripts": { "build": "vite build", - "build:watch": "vite build --watch", "prepublishOnly": "node -e \"const fs=require('fs');['LICENSE'].forEach(f=>fs.copyFileSync('../../'+f,f))\"", "postpublish": "node -e \"['LICENSE'].forEach(f=>{try{require('fs').unlinkSync(f)}catch{}})\"" },