-
Notifications
You must be signed in to change notification settings - Fork 846
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into avatar-referer-policy
- Loading branch information
Showing
223 changed files
with
6,670 additions
and
7,893 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,3 +1,3 @@ | ||
# Add the following users as reviewers on new pull requests | ||
|
||
* @benoitgrelard @andy-hook @vladmoroz @lucasmotta | ||
* @StephenHaney @vladmoroz @lucasmotta @hadihallak @chaance |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,6 @@ | ||
releases: | ||
"@radix-ui/react-scroll-area": minor | ||
|
||
declined: | ||
- primitives | ||
- ssr-testing |
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,5 +1,4 @@ | ||
releases: | ||
"@radix-ui/react-scroll-area": patch | ||
"@radix-ui/react-select": patch | ||
|
||
declined: | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,48 @@ | ||
import { globSync } from 'glob'; | ||
import * as esbuild from 'esbuild'; | ||
import * as tsup from 'tsup'; | ||
|
||
async function build(path) { | ||
const file = `${path}/src/index.ts`; | ||
const dist = `${path}/dist`; | ||
|
||
const esbuildConfig = { | ||
entryPoints: [file], | ||
external: ['@radix-ui/*'], | ||
packages: 'external', | ||
bundle: true, | ||
sourcemap: true, | ||
format: 'cjs', | ||
target: 'es2022', | ||
outdir: dist, | ||
}; | ||
|
||
await esbuild.build(esbuildConfig); | ||
console.log(`Built ${path}/dist/index.js`); | ||
|
||
await esbuild.build({ | ||
...esbuildConfig, | ||
format: 'esm', | ||
outExtension: { '.js': '.mjs' }, | ||
}); | ||
console.log(`Built ${path}/dist/index.mjs`); | ||
|
||
// tsup is used to emit d.ts files only (esbuild can't do that). | ||
// | ||
// Notes: | ||
// 1. Emitting d.ts files is super slow for whatever reason. | ||
// 2. It could have fully replaced esbuild (as it uses that internally), | ||
// but at the moment its esbuild version is somewhat outdated. | ||
// It’s also harder to configure and esbuild docs are more thorough. | ||
await tsup.build({ | ||
entry: [file], | ||
format: ['cjs', 'esm'], | ||
dts: { only: true }, | ||
outDir: dist, | ||
silent: true, | ||
external: [/@radix-ui\/.+/], | ||
}); | ||
console.log(`Built ${path}/dist/index.d.ts`); | ||
} | ||
|
||
globSync('packages/*/*').forEach(build); |
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
Oops, something went wrong.