diff --git a/components/BUILD.yaml b/components/BUILD.yaml index 13edf607ec8241..1408708f00b803 100644 --- a/components/BUILD.yaml +++ b/components/BUILD.yaml @@ -86,6 +86,7 @@ packages: - components/supervisor-api/typescript-grpc:publish - components/supervisor-api/typescript-grpcweb:publish - components/ide/jetbrains/gateway-plugin:publish + - components/public-api/typescript:publish - name: all-apps type: generic deps: diff --git a/components/public-api/typescript/BUILD.yaml b/components/public-api/typescript/BUILD.yaml index c222f5cac9d735..79cf1afd147027 100644 --- a/components/public-api/typescript/BUILD.yaml +++ b/components/public-api/typescript/BUILD.yaml @@ -4,9 +4,9 @@ packages: deps: - components/gitpod-protocol:lib srcs: - - "src/*.ts" - - "src/*.js" + - src/** - package.json + - tsconfig.json config: packaging: library dontTest: true @@ -14,3 +14,16 @@ packages: build: ["yarn", "build"] yarnLock: ${coreYarnLockBase}/../yarn.lock tsconfig: tsconfig.json + + - name: publish + type: generic + env: + - DO_PUBLISH=${publishToNPM} + argdeps: + - npmPublishTrigger + deps: + - :lib + - components/gitpod-protocol:scripts + config: + commands: + - ["node", "components-gitpod-protocol--scripts/publish.js", "${version}", "components-public-api-typescript--lib/package"] diff --git a/components/public-api/typescript/package.json b/components/public-api/typescript/package.json index ba30c29c7372cf..1f590fab3841c3 100644 --- a/components/public-api/typescript/package.json +++ b/components/public-api/typescript/package.json @@ -1,10 +1,8 @@ { - "private": true, "name": "@gitpod/public-api", "version": "0.1.5", "license": "UNLICENSED", "files": [ - "client", "lib" ], "scripts": { @@ -14,11 +12,9 @@ "test:brk": "yarn test --inspect-brk" }, "dependencies": { - "@gitpod/content-service": "0.1.5", "@gitpod/gitpod-protocol": "0.1.5", "@grpc/grpc-js": "^1.3.7", "google-protobuf": "^3.19.1", - "inversify": "^5.0.1", "opentracing": "^0.14.4" }, "devDependencies": { diff --git a/components/public-api/typescript/src/gitpod/v1/pagination_grpc_pb.js b/components/public-api/typescript/src/gitpod/v1/pagination_grpc_pb.js index 97b3a2461dbeac..73b62953a5c701 100644 --- a/components/public-api/typescript/src/gitpod/v1/pagination_grpc_pb.js +++ b/components/public-api/typescript/src/gitpod/v1/pagination_grpc_pb.js @@ -1 +1,7 @@ -// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file +/** + * Copyright (c) 2022 Gitpod GmbH. All rights reserved. + * Licensed under the GNU Affero General Public License (AGPL). + * See License-AGPL.txt in the project root for license information. + */ + +// GENERATED CODE -- NO SERVICES IN PROTO diff --git a/components/public-api/typescript/src/gitpod/v1/pagination_pb.d.ts b/components/public-api/typescript/src/gitpod/v1/pagination_pb.d.ts index 02189ceda7f94f..b8f59e54acb9fa 100644 --- a/components/public-api/typescript/src/gitpod/v1/pagination_pb.d.ts +++ b/components/public-api/typescript/src/gitpod/v1/pagination_pb.d.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2022 Gitpod GmbH. All rights reserved. + * Licensed under the GNU Affero General Public License (AGPL). + * See License-AGPL.txt in the project root for license information. + */ + // package: gitpod.v1 // file: gitpod/v1/pagination.proto diff --git a/components/public-api/typescript/src/gitpod/v1/pagination_pb.js b/components/public-api/typescript/src/gitpod/v1/pagination_pb.js index 93350dc151cf67..7e9712ffa4e8c0 100644 --- a/components/public-api/typescript/src/gitpod/v1/pagination_pb.js +++ b/components/public-api/typescript/src/gitpod/v1/pagination_pb.js @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2022 Gitpod GmbH. All rights reserved. + * Licensed under the GNU Affero General Public License (AGPL). + * See License-AGPL.txt in the project root for license information. + */ + // source: gitpod/v1/pagination.proto /** * @fileoverview diff --git a/components/public-api/typescript/src/gitpod/v1/prebuilds_grpc_pb.d.ts b/components/public-api/typescript/src/gitpod/v1/prebuilds_grpc_pb.d.ts index 8c7b44127e2a2f..5a63c51fd2c655 100644 --- a/components/public-api/typescript/src/gitpod/v1/prebuilds_grpc_pb.d.ts +++ b/components/public-api/typescript/src/gitpod/v1/prebuilds_grpc_pb.d.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2022 Gitpod GmbH. All rights reserved. + * Licensed under the GNU Affero General Public License (AGPL). + * See License-AGPL.txt in the project root for license information. + */ + // package: gitpod.v1 // file: gitpod/v1/prebuilds.proto diff --git a/components/public-api/typescript/src/gitpod/v1/prebuilds_grpc_pb.js b/components/public-api/typescript/src/gitpod/v1/prebuilds_grpc_pb.js index 109f85462bcd2f..011e797b3dc044 100644 --- a/components/public-api/typescript/src/gitpod/v1/prebuilds_grpc_pb.js +++ b/components/public-api/typescript/src/gitpod/v1/prebuilds_grpc_pb.js @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2022 Gitpod GmbH. All rights reserved. + * Licensed under the GNU Affero General Public License (AGPL). + * See License-AGPL.txt in the project root for license information. + */ + // GENERATED CODE -- DO NOT EDIT! 'use strict'; diff --git a/components/public-api/typescript/src/gitpod/v1/prebuilds_pb.d.ts b/components/public-api/typescript/src/gitpod/v1/prebuilds_pb.d.ts index 39144bfeaf5fca..802a4e97cc4c5a 100644 --- a/components/public-api/typescript/src/gitpod/v1/prebuilds_pb.d.ts +++ b/components/public-api/typescript/src/gitpod/v1/prebuilds_pb.d.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2022 Gitpod GmbH. All rights reserved. + * Licensed under the GNU Affero General Public License (AGPL). + * See License-AGPL.txt in the project root for license information. + */ + // package: gitpod.v1 // file: gitpod/v1/prebuilds.proto diff --git a/components/public-api/typescript/src/gitpod/v1/prebuilds_pb.js b/components/public-api/typescript/src/gitpod/v1/prebuilds_pb.js index 5df3f80ed23bca..fba52106e33dd3 100644 --- a/components/public-api/typescript/src/gitpod/v1/prebuilds_pb.js +++ b/components/public-api/typescript/src/gitpod/v1/prebuilds_pb.js @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2022 Gitpod GmbH. All rights reserved. + * Licensed under the GNU Affero General Public License (AGPL). + * See License-AGPL.txt in the project root for license information. + */ + // source: gitpod/v1/prebuilds.proto /** * @fileoverview diff --git a/components/public-api/typescript/src/gitpod/v1/workspaces_grpc_pb.d.ts b/components/public-api/typescript/src/gitpod/v1/workspaces_grpc_pb.d.ts index c3b61dba73ce96..1bb3a36e4f33a4 100644 --- a/components/public-api/typescript/src/gitpod/v1/workspaces_grpc_pb.d.ts +++ b/components/public-api/typescript/src/gitpod/v1/workspaces_grpc_pb.d.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2022 Gitpod GmbH. All rights reserved. + * Licensed under the GNU Affero General Public License (AGPL). + * See License-AGPL.txt in the project root for license information. + */ + // package: gitpod.v1 // file: gitpod/v1/workspaces.proto diff --git a/components/public-api/typescript/src/gitpod/v1/workspaces_grpc_pb.js b/components/public-api/typescript/src/gitpod/v1/workspaces_grpc_pb.js index 8c5343d1fa2402..3912cb60f821e4 100644 --- a/components/public-api/typescript/src/gitpod/v1/workspaces_grpc_pb.js +++ b/components/public-api/typescript/src/gitpod/v1/workspaces_grpc_pb.js @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2022 Gitpod GmbH. All rights reserved. + * Licensed under the GNU Affero General Public License (AGPL). + * See License-AGPL.txt in the project root for license information. + */ + // GENERATED CODE -- DO NOT EDIT! 'use strict'; diff --git a/components/public-api/typescript/src/gitpod/v1/workspaces_pb.d.ts b/components/public-api/typescript/src/gitpod/v1/workspaces_pb.d.ts index 0de486d69b867b..027dc255633c48 100644 --- a/components/public-api/typescript/src/gitpod/v1/workspaces_pb.d.ts +++ b/components/public-api/typescript/src/gitpod/v1/workspaces_pb.d.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2022 Gitpod GmbH. All rights reserved. + * Licensed under the GNU Affero General Public License (AGPL). + * See License-AGPL.txt in the project root for license information. + */ + // package: gitpod.v1 // file: gitpod/v1/workspaces.proto diff --git a/components/public-api/typescript/src/gitpod/v1/workspaces_pb.js b/components/public-api/typescript/src/gitpod/v1/workspaces_pb.js index f5e5f6bb386762..b78833af5df4c5 100644 --- a/components/public-api/typescript/src/gitpod/v1/workspaces_pb.js +++ b/components/public-api/typescript/src/gitpod/v1/workspaces_pb.js @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2022 Gitpod GmbH. All rights reserved. + * Licensed under the GNU Affero General Public License (AGPL). + * See License-AGPL.txt in the project root for license information. + */ + // source: gitpod/v1/workspaces.proto /** * @fileoverview