Skip to content

fix: enhance plugin initialization by adding required files and updating templates#107

Merged
vobu merged 1 commit intomainfrom
fix/plugin-init
Feb 27, 2026
Merged

fix: enhance plugin initialization by adding required files and updating templates#107
vobu merged 1 commit intomainfrom
fix/plugin-init

Conversation

@vobu
Copy link
Collaborator

@vobu vobu commented Feb 27, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 27, 2026 12:25
@vobu vobu merged commit 9839b9a into main Feb 27, 2026
11 checks passed
@vobu vobu deleted the fix/plugin-init branch February 27, 2026 12:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the plugin initialization system by adding missing template files, updating TypeScript configuration for better Node.js ESM support, and adding comprehensive test coverage for scaffolded files.

Changes:

  • Added test coverage to verify all required files are scaffolded during plugin initialization
  • Updated TypeScript module resolution from ES2022 to NodeNext for proper Node.js ESM support
  • Added @camunda8/cli as a devDependency to plugin templates for TypeScript type support
  • Created gitignore template file (stored as 'gitignore' to survive npm publish)
  • Enhanced package.json exports to include TypeScript type definitions

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/integration/plugin-lifecycle.test.ts Added test to verify all required files exist after plugin initialization
src/templates/tsconfig.json Updated module and moduleResolution to NodeNext for proper Node.js ESM support
src/templates/package.json Added @camunda8/cli devDependency and alphabetized dependencies for TypeScript type support
src/templates/gitignore New template file with minimal gitignore rules (node_modules and source maps)
src/commands/plugins.ts Fixed template file reference from '.gitignore' to 'gitignore' with explanatory comment
package.json Enhanced runtime exports with explicit TypeScript type definitions path

@vobu
Copy link
Collaborator Author

vobu commented Feb 27, 2026

(ping back to https://github.com/camunda/product-hub/issues/2638 for ref)

@github-actions
Copy link

This has been released in 2.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants