-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
chore(workspace): automatically publish urql-core to JSR #3574
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6242042
add support for publishing to jsr
JoviDeCroock 5e0cdd1
fix
JoviDeCroock 700dfcd
add missing types
JoviDeCroock dc73935
only publish @urql/core for now
JoviDeCroock a58c29b
remove dry run
JoviDeCroock 6d11bca
add dry run
JoviDeCroock a8c320f
fixes
JoviDeCroock c76a92a
run publish for first version
JoviDeCroock 2c3a4ae
undo change as published
JoviDeCroock 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 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 |
---|---|---|
|
@@ -3,6 +3,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
|
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,15 @@ | ||
{ | ||
"name": "@urql/exchange-auth", | ||
"version": "2.1.6", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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,15 @@ | ||
{ | ||
"name": "@urql/exchange-context", | ||
"version": "0.2.1", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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,15 @@ | ||
{ | ||
"name": "@urql/exchange-execute", | ||
"version": "2.2.2", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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 @@ | ||
{ | ||
"name": "@urql/exchange-graphcache", | ||
"version": "7.0.2", | ||
"exports": { | ||
".": "./src/index.ts", | ||
"./extras": "./src/extras/index.ts", | ||
"./default-storage": "./src/default-storage/index.ts" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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,15 @@ | ||
{ | ||
"name": "@urql/exchange-persisted", | ||
"version": "4.2.0", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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,15 @@ | ||
{ | ||
"name": "@urql/exchange-populate", | ||
"version": "1.1.2", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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,15 @@ | ||
{ | ||
"name": "@urql/exchange-refocus", | ||
"version": "1.0.2", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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,15 @@ | ||
{ | ||
"name": "@urql/exchange-request-policy", | ||
"version": "1.1.0", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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,15 @@ | ||
{ | ||
"name": "@urql/exchange-retry", | ||
"version": "1.2.1", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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,16 @@ | ||
{ | ||
"name": "@urql/core", | ||
"version": "5.0.2", | ||
"exports": { | ||
".": "./src/index.ts", | ||
"./internal": "./src/internal/index.ts" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "@urql/introspection", | ||
"version": "1.0.3", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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,16 @@ | ||
{ | ||
"name": "@urql/next", | ||
"version": "1.1.1", | ||
"exports": { | ||
".": "./src/index.ts", | ||
"./rsc": "./src/rsc.ts" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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,15 @@ | ||
{ | ||
"name": "@urql/preact", | ||
"version": "4.0.5", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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,13 @@ | ||
{ | ||
"name": "urql", | ||
"version": "4.0.7", | ||
"exports": "src/index.ts", | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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,15 @@ | ||
{ | ||
"name": "@urql/storage-rn", | ||
"version": "1.1.0", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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,15 @@ | ||
{ | ||
"name": "@urql/svelte", | ||
"version": "4.1.1", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"cypress", | ||
"**/*.test.*", | ||
"**/*.spec.*", | ||
"**/*.test.*.snap", | ||
"**/*.spec.*.snap" | ||
] | ||
} |
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.
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, and annotations like
Map
below, seem a little concerning to me.These are all internal functions and this seems to imply to me that JSR is enforcing a rule based on publishing raw TypeScript.
This may mean that we'd have to maintain a lot of changes across the code base for JSR and make a huge amount of changes. I think this would be reasonable if JSR/Deno would be the more popular platform over Node/npm, but it isn't.
We can implement an eslint rule for this (and there may even be an auto fixing one), but assuming declaration support is present in Deno, and we can publish prebuilts to JSR, wouldn't that be an easier way forward here?
If JSR doesn't allow this though, I think this seems a tad aggressive. Isolated declaration-like changes make sense to me, but changing all annotations to be statically analysable (except for functions where no assignment type is fine, but no return type isn't) seems a little aggressive 😅
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.
I've shared that feedback with them, not much more I can do. We can ofcourse publish the bundled files instead that's true
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.
Gotcha! If we can't publish declarations yet, let's maybe publish this one package then figure out whether we want to do these changes for all packages.
Don't want to block this, but also want to make sure we don't have to make wide ranging changes across all packages of course 💙
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.
So to handle publishing JS we have to add a reference to the JS file