Skip to content

Commit

Permalink
Add import extension to es plugin also
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Nelson <minelson@vmware.com>
  • Loading branch information
absoludity committed Mar 7, 2023
1 parent ef8f1e8 commit 1b45e47
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 14 deletions.
4 changes: 3 additions & 1 deletion cmd/kubeapps-apis/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ plugins:
- esModuleInterop=true # use imports as required in modern ts setups
- useOptionals=messages # use optional TypeScript properties instead of undefined
- name: es
opt: target=ts
opt:
- target=ts
- import_extension=none
out: ../../dashboard/src/gen
path: ../../dashboard/node_modules/.bin/protoc-gen-es
- name: connect-es
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2021-2022 the Kubeapps contributors.
// SPDX-License-Identifier: Apache-2.0

// @generated by protoc-gen-es v1.0.0 with parameter "target=ts"
// @generated by protoc-gen-es v1.0.0 with parameter "target=ts,import_extension=none"
// @generated from file kubeappsapis/core/packages/v1alpha1/packages.proto (package kubeappsapis.core.packages.v1alpha1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand All @@ -15,7 +15,7 @@ import type {
PlainMessage,
} from "@bufbuild/protobuf";
import { Any, Message, proto3 } from "@bufbuild/protobuf";
import { Plugin } from "../../plugins/v1alpha1/plugins_pb.js";
import { Plugin } from "../../plugins/v1alpha1/plugins_pb";

/**
* GetAvailablePackageSummariesRequest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2021-2022 the Kubeapps contributors.
// SPDX-License-Identifier: Apache-2.0

// @generated by protoc-gen-es v1.0.0 with parameter "target=ts"
// @generated by protoc-gen-es v1.0.0 with parameter "target=ts,import_extension=none"
// @generated from file kubeappsapis/core/packages/v1alpha1/repositories.proto (package kubeappsapis.core.packages.v1alpha1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand All @@ -15,8 +15,8 @@ import type {
PlainMessage,
} from "@bufbuild/protobuf";
import { Any, Message, proto3 } from "@bufbuild/protobuf";
import { Context } from "./packages_pb.js";
import { Plugin } from "../../plugins/v1alpha1/plugins_pb.js";
import { Context } from "./packages_pb";
import { Plugin } from "../../plugins/v1alpha1/plugins_pb";

/**
* AddPackageRepositoryRequest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2021-2022 the Kubeapps contributors.
// SPDX-License-Identifier: Apache-2.0

// @generated by protoc-gen-es v1.0.0 with parameter "target=ts"
// @generated by protoc-gen-es v1.0.0 with parameter "target=ts,import_extension=none"
// @generated from file kubeappsapis/core/plugins/v1alpha1/plugins.proto (package kubeappsapis.core.plugins.v1alpha1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2021-2022 the Kubeapps contributors.
// SPDX-License-Identifier: Apache-2.0

// @generated by protoc-gen-es v1.0.0 with parameter "target=ts"
// @generated by protoc-gen-es v1.0.0 with parameter "target=ts,import_extension=none"
// @generated from file kubeappsapis/plugins/fluxv2/packages/v1alpha1/fluxv2.proto (package kubeappsapis.plugins.fluxv2.packages.v1alpha1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2021-2022 the Kubeapps contributors.
// SPDX-License-Identifier: Apache-2.0

// @generated by protoc-gen-es v1.0.0 with parameter "target=ts"
// @generated by protoc-gen-es v1.0.0 with parameter "target=ts,import_extension=none"
// @generated from file kubeappsapis/plugins/helm/packages/v1alpha1/helm.proto (package kubeappsapis.plugins.helm.packages.v1alpha1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand All @@ -15,8 +15,8 @@ import type {
PlainMessage,
} from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";
import { InstalledPackageReference } from "../../../../core/packages/v1alpha1/packages_pb.js";
import { DockerCredentials } from "../../../../core/packages/v1alpha1/repositories_pb.js";
import { InstalledPackageReference } from "../../../../core/packages/v1alpha1/packages_pb";
import { DockerCredentials } from "../../../../core/packages/v1alpha1/repositories_pb";

/**
* InstalledPackageDetailCustomDataHelm
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2021-2022 the Kubeapps contributors.
// SPDX-License-Identifier: Apache-2.0

// @generated by protoc-gen-es v1.0.0 with parameter "target=ts"
// @generated by protoc-gen-es v1.0.0 with parameter "target=ts,import_extension=none"
// @generated from file kubeappsapis/plugins/kapp_controller/packages/v1alpha1/kapp_controller.proto (package kubeappsapis.plugins.kapp_controller.packages.v1alpha1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2021-2022 the Kubeapps contributors.
// SPDX-License-Identifier: Apache-2.0

// @generated by protoc-gen-es v1.0.0 with parameter "target=ts"
// @generated by protoc-gen-es v1.0.0 with parameter "target=ts,import_extension=none"
// @generated from file kubeappsapis/plugins/resources/v1alpha1/resources.proto (package kubeappsapis.plugins.resources.v1alpha1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand All @@ -19,7 +19,7 @@ import {
Context,
InstalledPackageReference,
ResourceRef,
} from "../../../core/packages/v1alpha1/packages_pb.js";
} from "../../../core/packages/v1alpha1/packages_pb";

/**
* SecretType
Expand Down

0 comments on commit 1b45e47

Please sign in to comment.