Skip to content

The kitchen files are packaged, or the installer cannot find them - #841

Merged
sridharkalaibala merged 1 commit into
developfrom
fix/the-kitchen-files-are-packaged
Sep 16, 2026
Merged

sridharkalaibala merged 1 commit into
developfrom
fix/the-kitchen-files-are-packaged

Conversation

@sridharkalaibala

Copy link
Copy Markdown
Contributor

This is why POS#839 is failing Packaging checks. Merge this before the promotion.

The three files added for the kitchen announcement are required at runtime and were absent from build.files:

src/order-alert.js  requires  src/kitchen-call.js
src/kot-manager.js  requires  src/kitchen-announce.js
src/main.js         requires  src/kitchen-announce.js

A packaged installer would have started and then failed with "Cannot find module" on a customer machine - and nowhere else. Not here, not in CI, not on any machine running from source. That is exactly what this check exists for, and why it runs before a release rather than after one.

After the fix:

[package] all local requires are packaged (51 modules checked)

Found on the night this was going to a client.

The packaging check caught this on the promotion PR, which is exactly
where it is meant to: the three files added for the kitchen announcement
were required at runtime and absent from build.files.

    src/order-alert.js requires src/kitchen-call.js
    src/kot-manager.js requires src/kitchen-announce.js
    src/main.js requires src/kitchen-announce.js

A packaged installer would have started and then failed with "Cannot find
module" on a customer machine, and nowhere else - not here, not in CI,
not on any machine running from source. That is the whole reason this
check exists, and the reason it runs before a release rather than after
one.

Found the night this was going to a client.
@sridharkalaibala
sridharkalaibala merged commit 47f8620 into develop Sep 16, 2026
9 checks passed
@github-actions github-actions Bot added the ready for QA Merged to develop and live on develop.posnic.io - anyone can test it label Sep 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Merged to develop. Anyone can test this - you do not need write access.

Try it at https://develop.posnic.io, or run it yourself:

git fetch origin develop && git checkout develop
npm install && npm --prefix api install
npm run dev   # then http://localhost:3000

When you have tested it, say what you did and what happened, and set
QA passed or QA failed. If you cannot set labels, just comment -
a maintainer will.

Reporting that something is broken is as useful as fixing it. It is
better found here than by a shopkeeper.

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

Labels

ready for QA Merged to develop and live on develop.posnic.io - anyone can test it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant