f54e99697b
## What does this PR do? This PR fixes build failures on Windows by replacing Unix-only shell commands (`rm -rf`, `cp`, `mkdir -p`) in `package.json` scripts with cross-platform Node.js `fs` built-in commands. This follows the project's existing codebase pattern for cross-platform operations, as seen in `packages/react-ui/package.json` (line 45). ### 🛠️ Changes: - **`packages/runtime`**: Replaced `rm -rf` in `generate-graphql-schema` with `fs.rmSync`. - **`packages/vue`**: Replaced `cp` in `build:types` and `rm -rf` in `clean` with `fs.cpSync` and `fs.rmSync`. - **`packages/angular`**: Replaced `mkdir -p` and `cp` in `build:css` with `fs.mkdirSync` and `fs.cpSync`. - **`examples/v1/next-openai`, `next-pages-router`, `state-machine`**: Replaced `rm -rf` clean commands with a single Node.js loop that deletes `.turbo`, `node_modules`, `dist`, and `.next`. All modified packages now build successfully on Windows. ## Related PRs and Issues - Closes #5601 ## Checklist - [x] I have read the [Contribution Guide](https://github.com/copilotkit/copilotkit/blob/master/CONTRIBUTING.md) - [ ] If the PR changes or adds functionality, I have updated the relevant documentation - [x] "Allow edits by maintainers" is checked (lets us help iterate on your PR directly — faster turnaround for everyone)
97 lines
3.2 KiB
JSON
97 lines
3.2 KiB
JSON
{
|
|
"name": "@copilotkit/angular",
|
|
"version": "0.1.1",
|
|
"description": "Angular library for CopilotKit",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/CopilotKit/CopilotKit.git",
|
|
"directory": "packages/angular"
|
|
},
|
|
"type": "module",
|
|
"main": "dist/fesm2022/copilotkit-angular.mjs",
|
|
"module": "dist/fesm2022/copilotkit-angular.mjs",
|
|
"types": "dist/types/copilotkit-angular.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/types/copilotkit-angular.d.ts",
|
|
"default": "./dist/fesm2022/copilotkit-angular.mjs"
|
|
}
|
|
},
|
|
"./styles.css": "./dist/styles.css"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"build": "ng-packagr -p ng-package.json && npm run build:css",
|
|
"build:css": "tailwindcss -i ./src/styles/globals.css -o ./src/styles/generated.css && node scripts/scope-preflight.mjs ./src/styles/generated.css && node -e \"const fs=require('fs');fs.mkdirSync('./dist',{recursive:true});fs.cpSync('./src/styles/generated.css','./dist/styles.css')\"",
|
|
"dev": "concurrently \"ng-packagr -p ng-package.json --watch\" \"npm run dev:css\"",
|
|
"dev:css": "tailwindcss -i ./src/styles/globals.css -o ./src/styles/generated.css --watch",
|
|
"check-types": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest --watch",
|
|
"publint": "publint .",
|
|
"attw": "attw --pack . --profile node16"
|
|
},
|
|
"dependencies": {
|
|
"@ag-ui/client": "0.0.57",
|
|
"@ag-ui/core": "0.0.57",
|
|
"@copilotkit/a2ui-renderer": "workspace:*",
|
|
"@copilotkit/core": "workspace:*",
|
|
"@copilotkit/shared": "workspace:*",
|
|
"@copilotkit/web-components": "workspace:*",
|
|
"@jetbrains/websandbox": "^1.1.3",
|
|
"clsx": "^2.1.1",
|
|
"highlight.js": "^11.11.1",
|
|
"katex": "^0.16.22",
|
|
"lucide-angular": "^0.540.0",
|
|
"marked": "^16.2.0",
|
|
"rxjs": "^7.8.1",
|
|
"tailwind-merge": "^2.6.0",
|
|
"tslib": "^2.6.0",
|
|
"zod-to-json-schema": "^3.24.5"
|
|
},
|
|
"devDependencies": {
|
|
"@analogjs/vite-plugin-angular": "^1.20.2",
|
|
"@analogjs/vitest-angular": "^1.20.2",
|
|
"@angular/cdk": "^21.2.13",
|
|
"@angular/common": "^21.2.15",
|
|
"@angular/compiler": "^21.2.15",
|
|
"@angular/compiler-cli": "^21.2.15",
|
|
"@angular/core": "^21.2.15",
|
|
"@angular/platform-browser": "^21.2.15",
|
|
"@angular/platform-browser-dynamic": "^21.2.15",
|
|
"@copilotkit/typescript-config": "workspace:*",
|
|
"@lucide/build-icons": "^1.1.0",
|
|
"@tailwindcss/cli": "^4.1.11",
|
|
"@tailwindcss/postcss": "^4.1.11",
|
|
"@tailwindcss/typography": "^0.5.16",
|
|
"@types/katex": "^0.16.7",
|
|
"@types/node": "^22.5.1",
|
|
"@vitest/ui": "^3.2.4",
|
|
"autoprefixer": "^10.4.16",
|
|
"concurrently": "^9.1.0",
|
|
"jsdom": "^24.0.0",
|
|
"ng-packagr": "^21.2.3",
|
|
"postcss": "^8.4.31",
|
|
"reflect-metadata": "^0.2.2",
|
|
"rimraf": "^6.0.1",
|
|
"rxjs": "^7.8.1",
|
|
"tailwindcss": "^4.0.8",
|
|
"tslib": "^2.8.1",
|
|
"tw-animate-css": "^1.3.5",
|
|
"typescript": "5.9.3",
|
|
"vite": "^7.1.4",
|
|
"vitest": "^3.2.4",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"peerDependencies": {
|
|
"@angular/cdk": "^19.0.0 || ^20.0.0 || ^21.0.0",
|
|
"@angular/common": "^19.0.0 || ^20.0.0 || ^21.0.0",
|
|
"@angular/core": "^19.0.0 || ^20.0.0 || ^21.0.0",
|
|
"rxjs": "^7.8.0"
|
|
}
|
|
}
|