-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[public-api] Publish to NPM #10052
[public-api] Publish to NPM #10052
Conversation
aa6d516
to
6348fe2
Compare
6348fe2
to
c887240
Compare
"name": "@gitpod/public-api", | ||
"version": "0.1.5", | ||
"license": "UNLICENSED", | ||
"files": [ | ||
"client", |
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.
why remove this?
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.
It didn't point to any actual files so no need to have it. It's only used for the publish.
- components/gitpod-protocol:scripts | ||
config: | ||
commands: | ||
- ["node", "components-gitpod-protocol--scripts/publish.js", "${version}", "components-public-api-typescript--lib/package"] |
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.
How is node
able to find publish.js
here (the components-
don't look like valid paths?)
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 no idea! This whole thing looks to be way more complicated than it needs to be but not really well placed to simplify. The code here just mirrors what supervisor-api does
config: | ||
packaging: library | ||
dontTest: true | ||
commands: | ||
build: ["yarn", "build"] | ||
yarnLock: ${coreYarnLockBase}/../yarn.lock | ||
tsconfig: tsconfig.json | ||
|
||
- name: publish |
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.
How is this triggered? We already have this:
Lines 81 to 89 in c887240
- name: publish-api | |
type: generic | |
deps: | |
- components/gitpod-protocol:publish | |
- components/local-app-api/typescript-grpcweb:publish | |
- components/supervisor-api/typescript-grpc:publish | |
- components/supervisor-api/typescript-grpcweb:publish | |
- components/ide/jetbrains/gateway-plugin:publish | |
- components/public-api/typescript:publish |
Does that need to be updated?
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.
Not sure, mirrors supervisor-api setup
Description
Publish public-api typescript defs to NPM so they can be consumed by IDE.
Related Issue(s)
Fixes #
How to test
Release Notes
Documentation
NONE