Resolve the "main.js" file correctly using "path.resolve"
in conjunction with the "__dirname" variable.
Add a prepublish script to make sure that the TypeScript
compiler is being invoked before the package will be
installed. This reduces the need for the manual invocation
of "tsc" as described in the README.