Skip to content

Commit

Permalink
fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
suejung-sentry committed Nov 15, 2024
1 parent 5862a2e commit 05f56ae
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/bundle-analyzer/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ export default defineBuildConfig({
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
opts.plugins = [
// @ts-expect-error - using rollup plugin
...opts.plugins,
// We analyze this bundle-analyzer package's build
// using the codecov rollup plugin
// @ts-expect-error - using rollup plugin
codecovRollupPlugin({
enableBundleAnalysis:
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",
Expand Down
4 changes: 3 additions & 1 deletion packages/bundler-plugin-core/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ export default defineBuildConfig({
hooks: {
"rollup:options": (_ctx, opts) => {
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
// eslint-disable-next-line @typescript-eslint/no-unsafe-call @ts-expect-error - using rollup plugin
opts.plugins = [
// @ts-expect-error - using rollup plugin
...opts.plugins,
// @ts-expect-error - using rollup plugin
codecovRollupPlugin({
enableBundleAnalysis:
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",
Expand Down
2 changes: 2 additions & 0 deletions packages/nextjs-webpack-plugin/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export default defineBuildConfig({
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
opts.plugins = [
// @ts-expect-error - using rollup plugin
...opts.plugins,
// @ts-expect-error - using rollup plugin
codecovRollupPlugin({
enableBundleAnalysis:
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",
Expand Down
4 changes: 3 additions & 1 deletion packages/nuxt-plugin/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ export default defineBuildConfig({
hooks: {
"rollup:options": (_ctx, opts) => {
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
// eslint-disable-next-line @typescript-eslint/no-unsafe-call @ts-expect-error - using rollup plugin
opts.plugins = [
// @ts-expect-error - using rollup plugin
...opts.plugins,
// @ts-expect-error - using rollup plugin
codecovRollupPlugin({
enableBundleAnalysis:
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",
Expand Down
2 changes: 2 additions & 0 deletions packages/remix-vite-plugin/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export default defineBuildConfig({
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
opts.plugins = [
// @ts-expect-error - using rollup plugin
...opts.plugins,
// @ts-expect-error - using rollup plugin
codecovRollupPlugin({
enableBundleAnalysis:
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",
Expand Down
2 changes: 2 additions & 0 deletions packages/rollup-plugin/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export default defineBuildConfig({
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
opts.plugins = [
// @ts-expect-error - using rollup plugin
...opts.plugins,
// @ts-expect-error - using rollup plugin
codecovRollupPlugin({
enableBundleAnalysis:
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",
Expand Down
2 changes: 2 additions & 0 deletions packages/solidstart-plugin/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export default defineBuildConfig({
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
opts.plugins = [
// @ts-expect-error - using rollup plugin
...opts.plugins,
// @ts-expect-error - using rollup plugin
codecovRollupPlugin({
enableBundleAnalysis:
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",
Expand Down
2 changes: 2 additions & 0 deletions packages/sveltekit-plugin/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export default defineBuildConfig({
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
opts.plugins = [
// @ts-expect-error - using rollup plugin
...opts.plugins,
// @ts-expect-error - using rollup plugin
codecovRollupPlugin({
enableBundleAnalysis:
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",
Expand Down
2 changes: 2 additions & 0 deletions packages/vite-plugin/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export default defineBuildConfig({
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
opts.plugins = [
// @ts-expect-error - using rollup plugin
...opts.plugins,
// @ts-expect-error - using rollup plugin
codecovRollupPlugin({
enableBundleAnalysis:
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",
Expand Down
2 changes: 2 additions & 0 deletions packages/webpack-plugin/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export default defineBuildConfig({
if (process.env.PLUGIN_CODECOV_TOKEN && Array.isArray(opts.plugins)) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
opts.plugins = [
// @ts-expect-error - using rollup plugin
...opts.plugins,
// @ts-expect-error - using rollup plugin
codecovRollupPlugin({
enableBundleAnalysis:
typeof process.env.PLUGIN_CODECOV_TOKEN === "string",
Expand Down

0 comments on commit 05f56ae

Please sign in to comment.