[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#914296: ITP: node-path-parse -- Node.js path.parse() ponyfill




On 2018, നവംബർ 22 9:15:16 PM IST, Nicolas Mora <nicolas@babelouest.org> wrote:
>Le 2018-11-22 03:54, Pirate Praveen a écrit :
>> I suggest you embed it inside (same for other simple dependencies)
>> node-istanbuljs. See
>>
>https://wiki.debian.org/Javascript/Nodejs/Npm2Deb#Embedding_some_modules
>
>Thanks, I will do that.
>
>One question about this process though.
>
>In this case, the package node-path-parse is a dependency of 
>node-istanbul on the install stage, but not on the build stage.
>
>So my idea is to copy node-path-parse to 
>node-istanbuljs/debian/components and append to the file 
>debian/node-istanbul-lib-report.install the new component:

No, debian/components/path-parse is only metadata. See the example packages.

>debian/components/node-path-parse/package.json 
>usr/lib/nodejs/path-parse/
>debian/components/node-path-parse/index.js usr/lib/nodejs/path-parse/
>
>There is no need for a build script.
>
>Do you agree?

You'll still need an install script to copy path-parse to node_modules/path-parse.

path-parse directory will be created with gbp import-dsc. I have added more steps to the wiki. Let me know if you need more info on any of the steps.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


Reply to: