Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
deprecate package
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Oct 5, 2023
1 parent 1fb2fcc commit 4909bc0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
publish:
# Don't run just after creating repo from template
# Also avoid running after merging set-up PR
if: github.run_number > 2
runs-on: ubuntu-latest
permissions: write-all

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches: [main]
pull_request:
schedule:
- cron: "0 */3 * * *"

jobs:
test:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ESBuild plugin removetestid [![test](https://github.com/mayank1513/esbuild-plugin-removetestid/actions/workflows/test.yml/badge.svg)](https://github.com/mayank1513/esbuild-plugin-removetestid/actions/workflows/test.yml) [![codecov](https://codecov.io/gh/mayank1513/esbuild-plugin-removetestid/graph/badge.svg)](https://codecov.io/gh/mayank1513/esbuild-plugin-removetestid) [![Version](https://img.shields.io/npm/v/esbuild-plugin-removetestid.svg?colorB=green)](https://www.npmjs.com/package/esbuild-plugin-removetestid) [![Downloads](https://img.jsdelivr.com/img.shields.io/npm/dt/esbuild-plugin-removetestid.svg)](https://www.npmjs.com/package/esbuild-plugin-removetestid) [![Unit Tests](https://github.com/mayank1513/esbuild-plugin-removetestid/actions/workflows/test.yml/badge.svg)](https://github.com/mayank1513/esbuild-plugin-removetestid/actions/workflows/test.yml) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/esbuild-plugin-removetestid)

> This package is deprecated in favor of [esbuild-plugin-react18](https://github.com/mayank1513/esbuild-plugin-react18).
> Please switch to [esbuild-plugin-react18](https://github.com/mayank1513/esbuild-plugin-react18), which also offers additional options and more control over your build output. There is also a [template repository](https://github.com/mayank1513/turborepo-template.git) which you can use to create your next library.
This is a simple esbuild plugin to remove `data-testid` attribute. Use this along with `esbuild-plugin-ignoretests`. [Ref](https://stackoverflow.com/questions/77027129/how-to-automatically-remove-data-testid-while-building-library-with-tsup-esbuild)

## Compatibility
Expand Down
2 changes: 1 addition & 1 deletion packages/esbuild-plugin-removetestid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "esbuild-plugin-removetestid",
"author": "Mayank Kumar Chaudhari <https://mayank-chaudhari.vercel.app>",
"private": false,
"version": "0.0.3",
"version": "0.0.4",
"description": "ESBuild plugin to remove data-testid attributes",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
"@vitejs/plugin-react": "^4.0.4",
"@vitest/coverage-v8": "^0.34.3",
"esbuild-plugin-ignoretests": "^0.0.3",
"esbuild-plugin-react18": "^0.0.3",
"esbuild-plugin-removetestid": "latest",
"esbuild-react18-useclient": "^1.0.5",
"eslint-config-custom": "workspace:*",
"esbuild-plugin-removetestid": "workspace:*",
"jsdom": "^22.1.0",
"octokit": "^3.1.0",
"react": "^18.2.0",
Expand Down
6 changes: 2 additions & 4 deletions packages/ui/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { defineConfig } from "tsup";
import reactUseClientPlugin from "esbuild-react18-useclient";
import ignoretestsPlugin from "esbuild-plugin-ignoretests";
import removeTestidPlugin from "esbuild-plugin-removetestid";
import react18Plugin from "esbuild-plugin-react18";

export default defineConfig(options => ({
format: ["cjs", "esm"],
target: "es2019",
sourcemap: false,
clean: true,
minify: !options.watch,
esbuildPlugins: [reactUseClientPlugin, ignoretestsPlugin(), removeTestidPlugin()],
esbuildPlugins: [react18Plugin({})],
legacyOutput: true,
}));

0 comments on commit 4909bc0

Please sign in to comment.