Skip to content

Add pre/post workflow hook support to build system#98

Merged
Ikuni17 merged 1 commit intoelastic:masterfrom
Ikuni17:feature/add-workflow-hooks-to-build
Apr 2, 2026
Merged

Add pre/post workflow hook support to build system#98
Ikuni17 merged 1 commit intoelastic:masterfrom
Ikuni17:feature/add-workflow-hooks-to-build

Conversation

@Ikuni17
Copy link
Copy Markdown
Contributor

@Ikuni17 Ikuni17 commented Apr 2, 2026

Summary

AI assisted with Cursor + gpt-5.4-high

  • Updates scripts/build-actions.ts to detect optional src/pre.ts and src/post.ts entrypoints, build them with ncc, and flatten the output into dist/pre.js and dist/post.js
  • Cleans the existing dist/ directory before each rebuild to avoid stale artifacts
  • Updates README.md with documentation for the new action layout conventions (optional pre/post hooks)
  • Removes allowImportingTsExtensions from tsconfig.json
  • Adds TypeScript-specific formatter setting in .vscode/settings.json

Update build-actions to detect optional src/pre.ts and src/post.ts
entrypoints, build them with ncc into temporary directories, then
flatten the output into dist/pre.js and dist/post.js. The existing
dist/ directory is now cleaned before each rebuild.

Also updates README documentation with the new action layout
conventions, removes allowImportingTsExtensions from tsconfig, and
adds TypeScript formatter setting for VS Code.

Made-with: Cursor
@Ikuni17 Ikuni17 requested a review from a team as a code owner April 2, 2026 18:58
Ikuni17 added a commit to Ikuni17/elastic-github-actions that referenced this pull request Apr 2, 2026
Build system hooks, README updates, tsconfig, and vscode settings
changes have been moved to PR elastic#98.

Made-with: Cursor
@Ikuni17 Ikuni17 self-assigned this Apr 2, 2026
@Ikuni17 Ikuni17 added the skip-for-release-notes Exclude from auto-generated release notes when publishing the next release. label Apr 2, 2026
@Ikuni17 Ikuni17 merged commit c863143 into elastic:master Apr 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-for-release-notes Exclude from auto-generated release notes when publishing the next release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant