Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I want to configure the name of the output files and which files are bundled.
By default, the JS that are output'd are an index file, cjs and esm files with both production and development versions and respective maps. But I want to build a single umd file named
So I added the following flags to the build command:
tsdx build --format umd --name index
However this while output no index file and two umd files both production and development versions and respective maps.
So I just added postbuild script to copy the contents of the production files and delete the other files.
# rename dist files cp ./dist/index.umd.production.min.js ./dist/index.js cp ./dist/index.umd.production.min.js.map ./dist/index.js.map # delete duplicates rm -rf ./dist/index.umd.*
Ideally all I want to output is a single production minified file called
How can I achieve this by configuring the