Skip to content

Commit 05f56ae

Browse files
fix type errors
1 parent 5862a2e commit 05f56ae

File tree

10 files changed

+22
-2
lines changed

10 files changed

+22
-2
lines changed

packages/bundle-analyzer/build.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ export default defineBuildConfig({
3535
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
3636
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
3737
opts.plugins = [
38+
// @ts-expect-error - using rollup plugin
3839
...opts.plugins,
3940
// We analyze this bundle-analyzer package's build
4041
// using the codecov rollup plugin
42+
// @ts-expect-error - using rollup plugin
4143
codecovRollupPlugin({
4244
enableBundleAnalysis:
4345
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",

packages/bundler-plugin-core/build.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ export default defineBuildConfig({
2121
hooks: {
2222
"rollup:options": (_ctx, opts) => {
2323
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
24-
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
24+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call @ts-expect-error - using rollup plugin
2525
opts.plugins = [
26+
// @ts-expect-error - using rollup plugin
2627
...opts.plugins,
28+
// @ts-expect-error - using rollup plugin
2729
codecovRollupPlugin({
2830
enableBundleAnalysis:
2931
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",

packages/nextjs-webpack-plugin/build.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ export default defineBuildConfig({
3030
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
3131
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
3232
opts.plugins = [
33+
// @ts-expect-error - using rollup plugin
3334
...opts.plugins,
35+
// @ts-expect-error - using rollup plugin
3436
codecovRollupPlugin({
3537
enableBundleAnalysis:
3638
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",

packages/nuxt-plugin/build.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ export default defineBuildConfig({
2929
hooks: {
3030
"rollup:options": (_ctx, opts) => {
3131
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
32-
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
32+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call @ts-expect-error - using rollup plugin
3333
opts.plugins = [
34+
// @ts-expect-error - using rollup plugin
3435
...opts.plugins,
36+
// @ts-expect-error - using rollup plugin
3537
codecovRollupPlugin({
3638
enableBundleAnalysis:
3739
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",

packages/remix-vite-plugin/build.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export default defineBuildConfig({
3131
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
3232
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
3333
opts.plugins = [
34+
// @ts-expect-error - using rollup plugin
3435
...opts.plugins,
36+
// @ts-expect-error - using rollup plugin
3537
codecovRollupPlugin({
3638
enableBundleAnalysis:
3739
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",

packages/rollup-plugin/build.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export default defineBuildConfig({
3131
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
3232
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
3333
opts.plugins = [
34+
// @ts-expect-error - using rollup plugin
3435
...opts.plugins,
36+
// @ts-expect-error - using rollup plugin
3537
codecovRollupPlugin({
3638
enableBundleAnalysis:
3739
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",

packages/solidstart-plugin/build.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export default defineBuildConfig({
3131
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
3232
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
3333
opts.plugins = [
34+
// @ts-expect-error - using rollup plugin
3435
...opts.plugins,
36+
// @ts-expect-error - using rollup plugin
3537
codecovRollupPlugin({
3638
enableBundleAnalysis:
3739
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",

packages/sveltekit-plugin/build.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export default defineBuildConfig({
3131
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
3232
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
3333
opts.plugins = [
34+
// @ts-expect-error - using rollup plugin
3435
...opts.plugins,
36+
// @ts-expect-error - using rollup plugin
3537
codecovRollupPlugin({
3638
enableBundleAnalysis:
3739
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",

packages/vite-plugin/build.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export default defineBuildConfig({
3131
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
3232
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
3333
opts.plugins = [
34+
// @ts-expect-error - using rollup plugin
3435
...opts.plugins,
36+
// @ts-expect-error - using rollup plugin
3537
codecovRollupPlugin({
3638
enableBundleAnalysis:
3739
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",

packages/webpack-plugin/build.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ export default defineBuildConfig({
3030
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
3131
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
3232
opts.plugins = [
33+
// @ts-expect-error - using rollup plugin
3334
...opts.plugins,
35+
// @ts-expect-error - using rollup plugin
3436
codecovRollupPlugin({
3537
enableBundleAnalysis:
3638
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",

0 commit comments

Comments
 (0)