zeit/pkg needs to know which assets to include for TypeScript (tsconfig.json
) and be able to resolve any dynamic require
s.
This package.json
shows how to configure zeit/pkg with gluegun.
In this example, the assets
key is used for pkg
to copy necessary files into the built binary
and resolve the dynamic require
s to find extensions and commands. TypeScript requires some basic
type definitions (*.d.ts
files) to compile and run which are included with the TypeScript compiler.