gamecontroller.js
gamecontroller.js copied to clipboard
Update package.json
The main property in package.json should refer to the entry point of your source code (which in this case is src/gamecontrol.js.
It allows other developers to include your package in their own program, e.g.
import gamecontrol from 'gamecontroller.js';
gamecontrol.on('connect', ...);
in TypeScript.