Skip to content

Comments

add npm install to build.sh#2

Open
mkuettel wants to merge 1 commit intodiva-exchange:developfrom
mkuettel:npm-install
Open

add npm install to build.sh#2
mkuettel wants to merge 1 commit intodiva-exchange:developfrom
mkuettel:npm-install

Conversation

@mkuettel
Copy link

When I first ran the build script I didn't have npm installed but had tsc, I then got the following error

 ⇒  Creating diva.yml file…
../../build.ts:20:16 - error TS2307: Cannot find module 'fs' or its corresponding type declarations.

20 import fs from 'fs';

With more similar errors following.

This occured because the node dependencies were not installed. I therefore installed npm and added an npm install to the script.

We might need to pass further options because we want this scripted nicely, but for now I propose just adding an npm install call before the call to the typescript compiler tsc.

When I first ran the build script I didn't have npm installed but had tsc,
I then got the following error

     ⇒  Creating diva.yml file…
    ../../build.ts:20:16 - error TS2307: Cannot find module 'fs' or its corresponding type declarations.

    20 import fs from 'fs';

With more similar errors following.

This occured because the node dependencies were not installed.
I therefore installed npm and added an npm install to the script.

We might need to pass further options because we want this scripted
nicely, but for now I propose just adding an npm install call before the
call to the typescript compiler tsc.
@mkuettel
Copy link
Author

@diva-exchange do you think this needs to be in there as well? Is this ready to be merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant