My project structure is as follows:
workspace
|- thegame
|- node_modules
| package.json
| bs-config.json
|- src
| tsconfig.json
|- app
| game.model.ts (<-- I want to import game-engine here)
|- game-engine
|- dist (generated after local build)
| package.json
| tsconfig.json
|- lib
| index.ts (the main engine module)
I am running an Angular2 application in the "thegame" directory using "npm start".
What do I need to add to the thegame/src/tsconfig.json so that I can import Engine from 'game-engine' in game.model.ts?
import { Engine } from 'game-engine';
I have attempted to symlink "game-engine" to "thegame/node_modules", but when I run the project with lite-server, it returns "404 GET /game-engine"
I want to develop the engine separately from the web application. Any suggestions on how to achieve this would be appreciated.
This project is based on Angular 2 Quickstart available at https://github.com/angular/quickstart