Customise mediawiki-core-npm to use diffent directory

In MediaWiki core, npm is not the primary repository layout.
Front-end tests using npm as located in mediawiki-core/tests/frontend.

Change-Id: I834cf469fc68f657f4feb2243eba9a2b81ba8aa3