Files
copilotkit__copilotkit/nx.json
T
David McKay c6ca283e96 feat(ci): bundle-size tracking + ES-compat checks (OSS-123, OSS-121)
Adds two CI signals for keeping the published packages small and broadly compatible:

- Bundle size: size-limit file-mode config across packages plus a
  CopilotChat import-size regression signal (gzip) so growth in the
  headline consumer entrypoint is visible on every PR. A bundle-size
  workflow comments results on the PR (Phase 1: no hard-fail).
- ES compatibility: a compat-check (es-check) script across 9 packages
  with a root .browserslistrc, validating built .mjs/.cjs against the
  es2022 build target.

The measure script is importable (measureBundle) and unit-tested. Dev
docs live under dev-docs/ (bundle-size.md, browser-compat.md). All
action refs are pinned to full commit SHAs for supply-chain safety.
2026-05-29 16:44:35 -07:00

100 lines
2.4 KiB
JSON

{
"$schema": "https://nx.dev/reference/nx-json",
"namedInputs": {
"default": [
"{projectRoot}/**/*",
"!{projectRoot}/node_modules/**/*",
"!{projectRoot}/**/*.md",
"!{projectRoot}/**/*.yml",
"!{projectRoot}/**/*.yaml"
],
"production": [
"default",
"!{projectRoot}/**/*.test.*",
"!{projectRoot}/**/*.spec.*",
"!{projectRoot}/**/__tests__/**"
],
"test": [
"{projectRoot}/src/**/*.ts",
"{projectRoot}/src/**/*.tsx",
"{projectRoot}/**/__tests__/**",
"{projectRoot}/**/*.test.*",
"{projectRoot}/**/*.spec.*"
]
},
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"inputs": ["production", "{projectRoot}/.env*"],
"outputs": ["{projectRoot}/dist/**"],
"cache": true
},
"dev": {
"dependsOn": ["^build"],
"cache": false
},
"test": {
"dependsOn": ["^build"],
"inputs": ["test"],
"outputs": ["{projectRoot}/coverage/**"],
"cache": true
},
"test:watch": {
"cache": false
},
"test:coverage": {
"inputs": ["test"],
"outputs": ["{projectRoot}/coverage/**"],
"cache": true
},
"check-types": {
"dependsOn": ["^build", "^check-types"],
"cache": true
},
"generate-graphql-schema": {
"dependsOn": ["^build"],
"outputs": ["{projectRoot}/__snapshots__/**"],
"cache": true
},
"graphql-codegen": {
"dependsOn": ["^build"],
"cache": true
},
"link:global": {
"cache": false
},
"unlink:global": {
"cache": false
},
"build:css": {
"cache": true,
"outputs": [
"{projectRoot}/dist/styles.css",
"{projectRoot}/src/styles/generated.css"
]
},
"storybook:build": {
"dependsOn": ["^build"],
"outputs": ["{projectRoot}/storybook-static/**"],
"cache": true
},
"publint": {
"dependsOn": ["build"],
"inputs": ["{projectRoot}/package.json", "{projectRoot}/dist/**"],
"cache": true
},
"attw": {
"dependsOn": ["build"],
"inputs": ["{projectRoot}/package.json", "{projectRoot}/dist/**"],
"cache": true
},
"compat-check": {
"dependsOn": ["build"],
"inputs": ["{projectRoot}/package.json", "{projectRoot}/dist/**"],
"cache": true
}
},
"parallel": 14,
"defaultBase": "main"
}