Skip to content

Always call npm install when preparing project - #1087

Merged
rosen-vladimirov merged 1 commit into
masterfrom
vladimirov/always-install-deps
Oct 21, 2015
Merged

Always call npm install when preparing project#1087
rosen-vladimirov merged 1 commit into
masterfrom
vladimirov/always-install-deps

Conversation

@rosen-vladimirov

Copy link
Copy Markdown
Contributor

Preparing project should always call npm install just to make sure all dependencies
are installed. Currently we are not calling it when node_modules dir exists.
This was due to requirement that when you have node_modules and change something in
node_modules/tns-core-modules directory, npm install will override your changes.
The fact is that this is totally incorrect behavior on our side and also making changes
in node_modules/<package_name> is forbidden. Anyway, in case you make changes there,
calling npm install will not override them.

Remove the incorrect check and always call npm install.

Fix unit test which was passing due to missing npm install before. The problem with it now is that

{scopedName:  "0.0.0-prealpha.3"}

Will create an object with property "scopedName" instead of the required one "@reactivex/rxjs".

@rosen-vladimirov rosen-vladimirov self-assigned this Oct 20, 2015
@rosen-vladimirov rosen-vladimirov added this to the 1.5.0 milestone Oct 20, 2015
@rosen-vladimirov

Copy link
Copy Markdown
Contributor Author

run ci

@rosen-vladimirov
rosen-vladimirov force-pushed the vladimirov/always-install-deps branch from d01214b to c2dac4a Compare October 20, 2015 16:00
@ns-bot

ns-bot commented Oct 20, 2015

Copy link
Copy Markdown

Test FAILed.

@rosen-vladimirov
rosen-vladimirov force-pushed the vladimirov/always-install-deps branch from c2dac4a to d9251ea Compare October 20, 2015 16:10
@ns-bot

ns-bot commented Oct 20, 2015

Copy link
Copy Markdown

Test FAILed.

@teobugslayer

Copy link
Copy Markdown
Contributor

👍

Preparing project should always call `npm install` just to make sure all dependencies
are installed. Currently we are not calling it when node_modules dir exists.
This was due to requirement that when you have node_modules and change something in
node_modules/tns-core-modules directory, `npm install` will override your changes.
The fact is that this is totally incorrect behavior on our side and also making changes
in `node_modules/<package_name>` is forbidden. Anyway, in case you make changes there,
calling `npm install` will not override them.

Remove the incorrect check and always call `npm install`.
@rosen-vladimirov
rosen-vladimirov force-pushed the vladimirov/always-install-deps branch from d9251ea to 6e3db2b Compare October 21, 2015 17:29
@ns-bot

ns-bot commented Oct 21, 2015

Copy link
Copy Markdown

Test PASSed.

rosen-vladimirov added a commit that referenced this pull request Oct 21, 2015
…deps

Always call npm install when preparing project
@rosen-vladimirov
rosen-vladimirov merged commit 0b42cc9 into master Oct 21, 2015
@rosen-vladimirov
rosen-vladimirov deleted the vladimirov/always-install-deps branch October 21, 2015 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants