The filenames are expected to match fully qualified names of respective entity definitions in your CDS models, optionally using a dash - instead of a dot . for cosmetic reasons.
You may want to use https://community.sap.com/t5/technology-blogs-by-sap/reusable-components-for-cap-with-cds-plugin/ba-p/13562077 as a simple example for the --ws-pack build option as the emojiplugin cds-plugin is implemented in a workspace folder w...
According to your description you're executing 'cds build --ws-pack' from the workspace folder - please retry from the top-level folder of your project.cds build --ws-pack shall copy the package-lock.json file from project root into the build output ...