-
Notifications
You must be signed in to change notification settings - Fork 14
build: modernize dev deps #711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
69f1b0c
build: typecheck deno and node separately
serhalp cae27f0
chore(devDeps): upgrade and clean many dev deps
serhalp a564e4b
build: simplify build clean
serhalp 8b9297f
fix: temporarily add unrun
serhalp abcc61a
Revert "fix: temporarily add unrun"
serhalp d7c6682
chore(devDeps): bulk upgrade again
serhalp e8cd996
chore: use TypeScript 7 RC
serhalp 3532c8f
Revert "chore: use TypeScript 7 RC"
serhalp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,6 +1,2 @@ | ||
| #!/usr/bin/env sh | ||
| FILES=$(git diff --cached --name-only) | ||
| [ -z "$FILES" ] && exit 0 | ||
|
|
||
| # Run lint-staged on all staged | ||
| echo "$FILES" | npx lint-staged | ||
| pnpm exec nano-staged |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,4 @@ | ||
| { | ||
| "*.{json,yml,md}": ["prettier --write"], | ||
| "*.{ts,js,cjs}": ["prettier --write", "eslint --fix", "vitest run related --passWithNoTests"] | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,21 @@ | ||
| import { defineConfig } from 'tsdown' | ||
|
|
||
| // `react`/`react-dom` are devDependencies, so tsdown won't auto-externalize them (it only does so | ||
| // for `dependencies`/`peerDependencies`). Keep them external so the runtime resolves the correct build. | ||
| const external = [/^react(-dom)?(\/.*)?$/] | ||
|
|
||
| export default defineConfig({ | ||
| entry: { | ||
| index: 'src/index.ts', | ||
| serverless: 'src/runtimes/netlify-functions.ts', | ||
| edge: 'src/runtimes/netlify-edge-functions.ts', | ||
| 'entry.server.edge': 'src/entry.server.edge.tsx', | ||
| }, | ||
| format: ['esm'], | ||
| dts: true, | ||
| target: 'node22', | ||
| external, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://tsdown.dev/guide/migrate-from-tsup#deprecated-but-compatible-options seems like |
||
| // Derive extensions from the package's `type` (`.mjs`/`.d.mts` for ESM, `.js`/`.d.ts` for | ||
| // CJS) instead of tsdown's fixed `.mjs`/`.cjs`, to match the paths in `exports`. | ||
| fixedExtension: false, | ||
| }) | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.