Had an issue with zeit/pkg because the generated files (in the dist folder) still had the @/dir/to/your/file references, which pkg could not handle.
In case you need to change your js files from the @/your-file back into their ../../../your-file form, you can use ef-tspm to bring it back. Note, if you do so, you won't need to deal with the extra steps for the module-alias specified above. Trade-off is you have an additional build step. So first you would tsc to build the typescript code, then ef-tspm to properly remove the module aliases.
Had an issue with
zeit/pkgbecause the generated files (in thedistfolder) still had the@/dir/to/your/filereferences, which pkg could not handle.In case you need to change your js files from the
@/your-fileback into their../../../your-fileform, you can use ef-tspm to bring it back. Note, if you do so, you won't need to deal with the extra steps for themodule-aliasspecified above. Trade-off is you have an additional build step. So first you wouldtscto build the typescript code, thenef-tspmto properly remove the module aliases.Thanks for sharing!