[Pkg-javascript-devel] membership please :)
Dmitry Smirnov
onlyjob at debian.org
Mon Dec 30 23:47:14 UTC 2013
Hi Jérémy,
On Mon, 30 Dec 2013 20:57:19 Jérémy Lal wrote:
> Welcome Dmitry,
>
> i'm not convinced
> /usr/lib/nodejs/smash.js
> /usr/lib/nodejs/smash/smash.js
>
> is a nice layout for a node module, please consider this instead:
>
> Usually, what i do now when upstream has a non-straightforward layout,
> i keep it untouched and put package.json and the other needed files
> in the path, into /usr/lib/nodejs/smash/
> That way nodejs will find
> /usr/lib/nodejs/smash/package.json
> and be able to require the module from there, without needing a patch.
> As a bonus, require("package.json").version will work and won't need
> to be fixed either.
>
> i hope that helps,
I will consider that layout when I'll be working on node/js packages.
Thank you.
All the best for the new year.
--
Best wishes,
Dmitry Smirnov.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20131231/acb349f9/attachment.sig>
More information about the Pkg-javascript-devel
mailing list