-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use tsup for building * Combine build steps in CI * Update constraints.pro Co-authored-by: Frederik Bolding <[email protected]> --------- Co-authored-by: Frederik Bolding <[email protected]>
- Loading branch information
1 parent
163d7fd
commit 53f01f4
Showing
7 changed files
with
539 additions
and
847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { defineConfig } from 'tsup'; | ||
|
||
export default defineConfig({ | ||
// The entry to bundle. | ||
entry: [ | ||
'src/**/*.ts', | ||
'!src/**/__fixtures__/**/*', | ||
'!src/**/__mocks__/**/*', | ||
'!src/**/__test__/**/*', | ||
'!src/**/__tests__/**/*', | ||
'!src/**/__snapshots__/**/*', | ||
'!src/**/*.test.ts', | ||
'!src/**/*.test-d.ts', | ||
'!src/**/*.test.*.ts', | ||
], | ||
|
||
// The output formats. We want to generate both CommonJS and ESM bundles. | ||
// https://tsup.egoist.dev/#bundle-formats | ||
format: ['cjs', 'esm'], | ||
|
||
// Generate sourcemaps as separate files. | ||
// https://tsup.egoist.dev/#generate-sourcemap-file | ||
sourcemap: true, | ||
|
||
// Clean the dist folder before bundling. | ||
clean: true, | ||
|
||
// Enables shimming of `__dirname` and `import.meta.url`, so that they work | ||
// in both CommonJS and ESM. | ||
// https://tsup.egoist.dev/#inject-cjs-and-esm-shims | ||
shims: true, | ||
|
||
// Hide unnecessary logs from the console. Warnings and errors will still be | ||
// shown. | ||
silent: true, | ||
|
||
// Split the output into chunks. This is useful for tree-shaking. | ||
// https://tsup.egoist.dev/#code-splitting | ||
splitting: true, | ||
}); |
Oops, something went wrong.