Recommended npm packaging flow #25
Replies: 1 comment
-
There are several difficulties in publishing libmedia to npm at present:
Therefore, I don’t have any good suggestions on npm packing at present. The development way I recommend is to depend on the source code to develop and compile what you need. |
Beta Was this translation helpful? Give feedback.
-
Dear maintainer,
I would like to ask the recommended way to modify the configs for the npm packing flow for this scenario:
src/
), the new code includes new-added ts, .wgsl files and generatedist/
, the entry point of package modules would beindex.js
(oravplayer.js
in this scenario we only need avplayer module rather than avtranscoder etc.).npm publish
files indist/
into npm package registry for the user, they should not see the source codenpm install libmedia
for installation then he/she canimport {xxx} from libmedia
rather than import thins from node_modules/Thanks
Beta Was this translation helpful? Give feedback.
All reactions