Skip to content

Commit b277cef

Browse files
committed
Clean up and add git-json-resolver
1 parent 7c29f91 commit b277cef

File tree

5 files changed

+170
-571
lines changed

5 files changed

+170
-571
lines changed

lib/package.json

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,36 +34,15 @@
3434
"devDependencies": {
3535
"@repo/eslint-config": "workspace:*",
3636
"@repo/typescript-config": "workspace:*",
37-
"@testing-library/react": "^16.3.0",
3837
"@types/node": "^24.3.0",
39-
"@types/react": "^19.1.12",
40-
"@types/react-dom": "^19.1.9",
41-
"@vitejs/plugin-react": "^5.0.2",
4238
"@vitest/coverage-v8": "^3.2.4",
4339
"esbuild-plugin-rdi": "^0.0.0",
44-
"esbuild-plugin-react18": "0.2.6",
45-
"esbuild-plugin-react18-css": "^0.0.4",
46-
"jsdom": "^26.1.0",
47-
"react": "^19.1.1",
48-
"react-dom": "^19.1.1",
40+
"git-json-resolver": "^1.2.0",
4941
"tsup": "^8.5.0",
5042
"typescript": "^5.9.2",
5143
"vite-tsconfig-paths": "^5.1.4",
5244
"vitest": "^3.2.4"
5345
},
54-
"dependencies": {
55-
"r18gs": "^3.0.1"
56-
},
57-
"peerDependencies": {
58-
"@types/react": ">=16.8",
59-
"next": ">=10",
60-
"react": ">=16.8"
61-
},
62-
"peerDependenciesMeta": {
63-
"next": {
64-
"optional": true
65-
}
66-
},
6746
"funding": [
6847
{
6948
"type": "github",
@@ -90,5 +69,8 @@
9069
"Developer Experience",
9170
"DX",
9271
"mayank1513"
93-
]
72+
],
73+
"peerDependencies": {
74+
"git-json-resolver": "^1.2.0"
75+
}
9476
}

lib/src/index.ts

Whitespace-only changes.

lib/tsup.config.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import { defineConfig, type Options } from "tsup";
2-
import react18Plugin from "esbuild-plugin-react18";
3-
import cssPlugin from "esbuild-plugin-react18-css";
42
import { rdiPlugin } from "esbuild-plugin-rdi";
53

64
export default defineConfig(
@@ -13,11 +11,7 @@ export default defineConfig(
1311
clean: !options.watch,
1412
bundle: true,
1513
minify: !options.watch,
16-
esbuildPlugins: [
17-
react18Plugin({ disableJSXRequireDedup: true }),
18-
cssPlugin({ generateScopedName: "[folder]__[local]" }),
19-
rdiPlugin(),
20-
],
14+
esbuildPlugins: [rdiPlugin()],
2115
...options,
2216
}) as Options,
2317
);

lib/vitest.config.mts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { defineConfig } from "vitest/config";
2-
import react from "@vitejs/plugin-react";
32
import tsconfigPaths from "vite-tsconfig-paths";
43

54
// https://vitejs.dev/config/
65
export default defineConfig({
7-
plugins: [react(), tsconfigPaths()],
6+
plugins: [tsconfigPaths()],
87
test: {
9-
environment: "jsdom",
8+
environment: "node",
109
globals: true,
1110
setupFiles: [],
1211
coverage: {

0 commit comments

Comments
 (0)