Commit 3c27114
fix(ci): Fix CI/CD pipeline and update package configuration
This commit resolves the npm ci failure and prepares the package for publishing to npm.
- Remove package-lock.json from .gitignore to enable npm ci
- Regenerate package-lock.json with correct dependencies
- Update .gitignore to exclude dist/ and *.tgz files
- Add proper peer dependencies for React 17-19 and PatternFly 5-7
- Use range syntax (>=5.0.0 <7.0.0) to support prerelease versions
- Update repository URLs to github.com/patternfly/context-for-ai
- Update package name references from @kelseamann/semantic-ui-layer to @patternfly/context-for-ai
- Rename rollup.config.js to rollup.config.mjs for ES module support
- Add CSS files to rollup externals to prevent bundling errors
- Rename jest.config.js to jest.config.cjs for CommonJS compatibility
- Update npm scripts for ESLint 9 compatibility (remove --ext flag)
- Remove non-existent isFlat prop from Card component (use isPlain in inference)
- Fix addContext() function calls to use correct signature (context, semanticName, isQualified)
- Fix React Hooks rule violation in MenuToggle (move useSemanticContext outside try-catch)
- Add Modal.displayName to satisfy ESLint react/display-name rule
- Fix Modal ref type to use any instead of HTMLDivElement
- Remove unused inferCategory imports
- Rename unused aiMetadata params to _aiMetadata to satisfy linting rules
- Fix inferLinkPurpose parameter type from React.ReactNode to unknown
- Update all references to new package name in README.md
- Update ARCHITECTURE.md with new package name
- Update src/index.ts comment
All CI/CD steps now pass locally:
✅ npm ci - Works with new package-lock.json
✅ Type check - All TypeScript errors resolved
✅ Linter - All ESLint errors fixed
✅ Tests - All 10 tests passing
✅ Build - Successfully builds CJS and ESM bundles
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 406230e commit 3c27114
File tree
17 files changed
+1725
-1773
lines changed- scripts
- src
- components
- core
- data-display
- forms
- overlay
- utils
17 files changed
+1725
-1773
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| |||
File renamed without changes.
0 commit comments