Skip to content

Commit 262cb5f

Browse files
Copy Redpanda runtime assets during build
1 parent a75cb39 commit 262cb5f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ It captures practical rules that prevent avoidable CI and PR churn.
2929
- Tests should verify observable behavior changes, not only internal/config state.
3030
- Example: for a security option, assert a real secure/insecure behavior difference.
3131
- Test-only helper files under `src` (for example `*-test-utils.ts`) must be explicitly excluded from package `tsconfig.build.json` so they are not emitted into `build` and accidentally published.
32+
- Runtime assets required by compiled code must be copied during the normal build lifecycle, not only during `prepack`, so local workspace builds produce usable output.
3233
- For substantial changes to GitHub Actions, runner images, Node/npm versions, or release/publish automation, consider running the manual `Node.js Package` workflow as a dry-run publish sanity check.
3334
- Select the PR branch as the workflow ref to test publish workflow changes before merging.
3435
- Use a representative version input, for example the next planned semver.

packages/modules/redpanda/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
"access": "public"
2626
},
2727
"scripts": {
28-
"prepack": "shx cp ../../../README.md . && shx cp ../../../LICENSE . && shx cp -r src/assets build",
29-
"build": "tsc --project tsconfig.build.json"
28+
"prepack": "shx cp ../../../README.md . && shx cp ../../../LICENSE .",
29+
"build": "tsc --project tsconfig.build.json",
30+
"postbuild": "shx cp -r src/assets build"
3031
},
3132
"dependencies": {
3233
"handlebars": "^4.7.9",

0 commit comments

Comments
 (0)