-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: prepare jsr publish #989
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Hey, @easymikey,
|
4503181
to
0ebd232
Compare
src/core.ts
Outdated
code: () => null, | ||
signal: () => null, | ||
message: () => ProcessOutput.getErrorMessage(error, self._from) | ||
self._resolved = 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.
Let's keep the formatting for valid git blame.
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.
Done
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.
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.
Sorry, I rebase another commit, everything is ok now
6ad4f65
to
aa021be
Compare
@antongolub what do you think about adding test:coverege job to pull request action? |
We've already done. Line 89 in 14ff473
|
3040ed4
to
aa021be
Compare
aa021be
to
3f6370c
Compare
3f6370c
to
7701870
Compare
Tell me, why are they launched only by the maintainer? |
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.
Almost done. Just a few suggestions
--ext=<.mjs> default extension | ||
--install, -i install dependencies | ||
--version, -v print current zx version | ||
--help, -h print help | ||
--repl start repl | ||
--experimental enables experimental features (deprecated) | ||
|
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.
Let's keep this extra line.
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.
d1
scripts/build-jsr.mjs
Outdated
|
||
import fs from 'node:fs' | ||
import path from 'node:path' | ||
const cwd = process.cwd() |
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.
Let's use root-based resolve, like here
Line 22 in 9f15fd4
const root = path.resolve(__dirname, '..') |
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.
d1
) | ||
|
||
fs.writeFileSync( | ||
path.resolve(cwd, 'jsr.json'), |
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.
cwd > root
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.
d1
@@ -70,6 +70,7 @@ | |||
"pretest": "npm run build", | |||
"test": "npm run test:size && npm run fmt:check && npm run test:unit && npm run test:types && npm run test:license", |
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.
- "test": "... && npm run test:jsr"
- add
jsr.json
to.gitignore
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.
Ahhh... its in temp. Ok, nvm
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.
lgtm. Thanks for the contribution!
@antongolub Thanks for opportunity and your patience :) |
Fixes #980
Description
To support JSR: