-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronise package with module template (November 2023) (#157)
- Loading branch information
Showing
9 changed files
with
787 additions
and
964 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 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 |
---|---|---|
@@ -1 +1 @@ | ||
v16 | ||
lts/* |
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.