Skip to content

Commit

Permalink
chore: Upgrade codecov plugin versions in our uploads (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
suejung-sentry authored Dec 2, 2024
1 parent 2234eb0 commit 072682c
Show file tree
Hide file tree
Showing 22 changed files with 337 additions and 301 deletions.
14 changes: 14 additions & 0 deletions .changeset/empty-news-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@codecov/nextjs-webpack-plugin": patch
"@codecov/bundler-plugin-core": patch
"@codecov/remix-vite-plugin": patch
"@codecov/solidstart-plugin": patch
"@codecov/sveltekit-plugin": patch
"@codecov/bundle-analyzer": patch
"@codecov/webpack-plugin": patch
"@codecov/rollup-plugin": patch
"@codecov/nuxt-plugin": patch
"@codecov/vite-plugin": patch
---

Bump codecov plugin version for uploading stats
4 changes: 3 additions & 1 deletion packages/bundle-analyzer/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ 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, @typescript-eslint/no-floating-promises
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
2 changes: 1 addition & 1 deletion packages/bundle-analyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@types/node": "^20.11.15",
"@types/yargs": "^17.0.33",
"@vitest/coverage-v8": "^1.5.0",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@0.0.1-beta.5",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@1.5.0",
"msw": "^2.1.5",
"ts-node": "^10.9.2",
"typedoc": "^0.25.12",
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, @typescript-eslint/no-floating-promises
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: 1 addition & 1 deletion packages/bundler-plugin-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@types/node": "^20.11.15",
"@types/semver": "^7.5.6",
"@vitest/coverage-v8": "^1.5.0",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@0.0.1-beta.5",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@1.5.0",
"msw": "^2.1.5",
"testdouble": "^3.20.1",
"testdouble-vitest": "^0.1.3",
Expand Down
4 changes: 3 additions & 1 deletion packages/nextjs-webpack-plugin/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,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, @typescript-eslint/no-floating-promises
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: 1 addition & 1 deletion packages/nextjs-webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@types/node": "^20.10.0",
"@types/webpack": "^5.28.5",
"@vitest/coverage-v8": "^1.5.0",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@0.0.1-beta.5",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@1.5.0",
"msw": "^2.1.5",
"ts-node": "^10.9.2",
"typedoc": "^0.25.12",
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, @typescript-eslint/no-floating-promises
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: 1 addition & 1 deletion packages/nuxt-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@rollup/plugin-replace": "^5.0.5",
"@types/node": "^20.11.15",
"@vitest/coverage-v8": "^1.5.0",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@0.0.1-beta.5",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@1.5.0",
"msw": "^2.1.5",
"ts-node": "^10.9.2",
"typedoc": "^0.25.12",
Expand Down
4 changes: 3 additions & 1 deletion packages/remix-vite-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, @typescript-eslint/no-floating-promises
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: 1 addition & 1 deletion packages/remix-vite-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@rollup/plugin-replace": "^5.0.5",
"@types/node": "^20.11.15",
"@vitest/coverage-v8": "^1.5.0",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@0.0.1-beta.5",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@1.5.0",
"msw": "^2.1.5",
"ts-node": "^10.9.2",
"typedoc": "^0.25.12",
Expand Down
4 changes: 3 additions & 1 deletion packages/rollup-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, @typescript-eslint/no-floating-promises
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: 1 addition & 1 deletion packages/rollup-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@rollup/plugin-replace": "^5.0.5",
"@types/node": "^20.11.15",
"@vitest/coverage-v8": "^1.5.0",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@0.0.1-beta.5",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@1.5.0",
"msw": "^2.1.5",
"rollup": "4.22.4",
"ts-node": "^10.9.2",
Expand Down
4 changes: 3 additions & 1 deletion packages/solidstart-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, @typescript-eslint/no-floating-promises
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: 1 addition & 1 deletion packages/solidstart-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@rollup/plugin-replace": "^5.0.5",
"@types/node": "^20.11.15",
"@vitest/coverage-v8": "^1.5.0",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@0.0.1-beta.5",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@1.5.0",
"msw": "^2.1.5",
"ts-node": "^10.9.2",
"typedoc": "^0.25.12",
Expand Down
4 changes: 3 additions & 1 deletion packages/sveltekit-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, @typescript-eslint/no-floating-promises
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: 1 addition & 1 deletion packages/sveltekit-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@rollup/plugin-replace": "^5.0.5",
"@types/node": "^20.11.15",
"@vitest/coverage-v8": "^1.5.0",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@0.0.1-beta.5",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@1.5.0",
"msw": "^2.1.5",
"ts-node": "^10.9.2",
"typedoc": "^0.25.12",
Expand Down
4 changes: 3 additions & 1 deletion packages/vite-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, @typescript-eslint/no-floating-promises
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: 1 addition & 1 deletion packages/vite-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@rollup/plugin-replace": "^5.0.5",
"@types/node": "^20.11.15",
"@vitest/coverage-v8": "^1.5.0",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@0.0.1-beta.5",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@1.5.0",
"msw": "^2.1.5",
"ts-node": "^10.9.2",
"typedoc": "^0.25.12",
Expand Down
4 changes: 3 additions & 1 deletion packages/webpack-plugin/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,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, @typescript-eslint/no-floating-promises
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: 1 addition & 1 deletion packages/webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@types/node": "^20.10.0",
"@types/webpack": "^5.28.5",
"@vitest/coverage-v8": "^1.5.0",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@0.0.1-beta.5",
"codecovProdRollupPlugin": "npm:@codecov/rollup-plugin@1.5.0",
"msw": "^2.1.5",
"ts-node": "^10.9.2",
"typedoc": "^0.25.12",
Expand Down
Loading

0 comments on commit 072682c

Please sign in to comment.