@gamedev-sensei/tsup-config
v1.1.2
Published
Provides simple tsup configuration function `definePackageConfig` that instructs tsup to:
Readme
@gamedev-sensei/tsup-config
Provides simple tsup configuration function definePackageConfig that instructs tsup to:
- build for
cjsandesm - put build files in the
distdirectory - start compilation from
src/index.tsfile - resolve alias
@tosrcinternally to support@/somethingimports - type definitions
- source maps
Additionally, you can pass tsup config to definePackageConfig to override parts of config.
Installation
Yarn:
yarn add @gamedev-sensei/tsup-configNpm:
npm i @gamedev-sensei/tsup-config