-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(echo): Use tsup for building distributable (#5658)
* refactor(build): migrate to tsup and update configs * refactor: Rename config files to .mjs format * fix: correct type entry in package.json * chore: remove redundant npm scripts * refactor(echo): Remove unnecessary splitting option * chore: Update package paths and dependencies
- Loading branch information
Showing
11 changed files
with
1,206 additions
and
705 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
export type SupportedFrameworkName = 'nextjs' | 'express' | 'nuxt' | 'h3'; | ||
export type SupportedFrameworkName = 'next' | 'express' | 'nuxt' | 'h3'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { defineConfig } from 'tsup'; | ||
import { type SupportedFrameworkName } from './src'; | ||
|
||
const frameworks: SupportedFrameworkName[] = ['h3', 'express', 'next', 'nuxt']; | ||
|
||
export default defineConfig({ | ||
entry: ['src/index.ts', ...frameworks.map((framework) => `src/${framework}.ts`)], | ||
sourcemap: false, | ||
clean: true, | ||
treeshake: true, | ||
dts: true, | ||
format: ['cjs', 'esm'], | ||
minify: true, | ||
minifyWhitespace: true, | ||
minifyIdentifiers: true, | ||
minifySyntax: true, | ||
}); |
Oops, something went wrong.