I have now created a RepoA/index.js containing
require('coffee-script/register');
module.exports = require('./src/index.coffee');
which works but is not the solution I was looking for :S
On Wednesday, March 5, 2014 10:25:11 AM UTC+1, Tom Wieland wrote:
>
> By advice of IRC I have removed the './node_modules/.bin' from the
> postinstall but that gives me the same result.
>
>
> On Wed, Mar 5, 2014 at 10:18 AM, Tom <[email protected]> wrote:
>
>> Hi.
>>
>> I have RepoA and RepoB which both contain a package.json.
>>
>> RepoA is my 'library' that I want to use in a set of other projects.
>>
>> All my code is written using CoffeeScript, and I am using Gulp to compile
>> this from a src/ to a build/ directory.
>>
>> RepoA's package.json contains:
>>
>> ...
>> "main": "build/index",
>> ...
>> "dependencies": {
>> ...
>> "gulp": "*",
>> ...
>> },
>> ...
>> "scripts": {
>> "postinstall": "./node_modules/.bin/gulp --require
>> coffee-script/register"
>> },
>> ...
>>
>> When I run npm install from RepoA, it installs all npm packages including
>> gulp then runs the postinstall command, generating my build files and
>> making the main entry work.
>>
>> When I run npm install from RepoB, which has listed RepoA as one of its
>> dependencies using git+https:// to my gitlab instance, it will fail
>> claiming gulp is not installed ("sh: gulp: command not found").
>> When I run npm install from RepoB again, gulp is already installed and
>> the postinstall run works.
>>
>> So it works the second try.
>>
>> What am I doing wrong here?
>>
>> gr,
>>
>> Tom
>>
>
>
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.