-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
feat: conditional exports, numerous bug fixes and ux improvements #8618
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| /// <reference types="next" /> | ||
| /// <reference types="next/image-types/global" /> | ||
| /// <reference types="next/navigation-types/compat/navigation" /> | ||
| import './.next/types/routes.d.ts'; | ||
| import './.next/dev/types/routes.d.ts'; | ||
|
|
||
| // NOTE: This file should not be edited | ||
| // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,13 +3,20 @@ | |
| "version": "1.5.10", | ||
| "type": "module", | ||
| "exports": { | ||
| "./*": [ | ||
| "./src/*", | ||
| "./src/*.tsx", | ||
| "./src/*/index.tsx", | ||
| "./src/*.ts", | ||
| "./src/*/index.ts" | ||
| ] | ||
| "./*": { | ||
| "rolldown": [ | ||
| "./dist/*", | ||
| "./dist/*.js", | ||
| "./dist/*/index.js" | ||
| ], | ||
| "default": [ | ||
| "./src/*", | ||
| "./src/*.tsx", | ||
| "./src/*/index.tsx", | ||
| "./src/*.ts", | ||
|
Comment on lines
+12
to
+16
|
||
| "./src/*/index.ts" | ||
| ] | ||
| } | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
|
|
@@ -20,7 +27,8 @@ | |
| "compile:ts": "tsc", | ||
| "compile:css": "postcss --dir dist --base src \"src/**/*.module.css\" src/styles/index.css", | ||
| "compile": "node --run compile:ts && node --run compile:css", | ||
| "release": "node --run compile && node scripts/publish.mjs", | ||
| "compile:watch": "node --run compile:ts -- --watch & node --run compile:css -- --watch", | ||
| "release": "node --run compile", | ||
|
Comment on lines
27
to
+31
|
||
| "lint": "node --run lint:js && node --run lint:css", | ||
| "lint:css": "stylelint \"**/*.css\" --allow-empty-input --cache --cache-strategy=content --cache-location=.stylelintcache", | ||
| "lint:css:fix": "node --run lint:css -- --fix", | ||
|
|
@@ -80,14 +88,25 @@ | |
| "typescript": "catalog:" | ||
| }, | ||
| "imports": { | ||
| "#ui/*": [ | ||
| "./src/*", | ||
| "./src/*.tsx", | ||
| "./src/*/index.tsx", | ||
| "./src/*.ts", | ||
| "./src/*/index.ts" | ||
| ] | ||
| "#ui/*": { | ||
| "rolldown": [ | ||
| "./dist/*", | ||
| "./dist/*.js", | ||
| "./dist/*/index.js" | ||
| ], | ||
| "default": [ | ||
| "./src/*", | ||
| "./src/*.tsx", | ||
| "./src/*/index.tsx", | ||
| "./src/*.ts", | ||
| "./src/*/index.ts" | ||
| ] | ||
| } | ||
| }, | ||
| "files": [ | ||
| "dist/**", | ||
| "README.md" | ||
| ], | ||
| "engines": { | ||
| "node": ">=20" | ||
| } | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This overwrites any caller-provided
options.signal, so upstream abort/cancellation will no longer work. If you want a 30s timeout and to respect an existing signal, combine them (e.g.,AbortSignal.any([options.signal, AbortSignal.timeout(30000)])whenoptions.signalis present).