Skip to content

Commit fe60235

Browse files
committed
move main package to subfolder
1 parent 7e41dba commit fe60235

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+158
-149
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# production
1616
/build
1717
/artifacts
18-
/dist
18+
dist
1919

2020
# misc
2121
.DS_Store

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ ADBLOCK=1
66

77
legacy-peer-deps=true
88

9-
node-options="--import tsx"
9+
node-options="--experimental-strip-types"

.vscode/react-query-builder.code-workspace

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"name": "🌴 Root",
55
"path": ".."
66
},
7+
{
8+
"name": "📦 React Query Builder",
9+
"path": "../packages/react-query-builder"
10+
},
711
{
812
"name": "🌐 Website",
913
"path": "../website"

examples/vite/vite.config.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,28 @@
1+
/// <reference types="vitest" />
2+
13
import react from '@vitejs/plugin-react';
24
import { defineConfig } from 'vite';
35

46
// https://vitejs.dev/config/
57
export default defineConfig({
68
plugins: [react()],
79
optimizeDeps: { exclude: ['react-query-builder'] },
10+
test: {
11+
globals: true,
12+
includeTaskLocation: true,
13+
browser: {
14+
enabled: true,
15+
provider: 'playwright',
16+
headless: !!process.env.CI || process.argv.includes('--run'),
17+
viewport: { width: 1024, height: 768 },
18+
// https://vitest.dev/guide/browser/playwright
19+
instances: [
20+
{
21+
browser: 'chromium',
22+
globals: true,
23+
includeTaskLocation: true,
24+
},
25+
],
26+
},
27+
},
828
});

examples/vite/vitest.workspace.ts

Lines changed: 0 additions & 26 deletions
This file was deleted.

package-lock.json

Lines changed: 54 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "react-query-builder",
3-
"version": "1.0.0",
2+
"name": "react-query-builder-dev",
3+
"version": "0.0.0",
44
"type": "commonjs",
55
"private": true,
66
"description": "The simplest way to start building with Tanstack Query",
@@ -16,69 +16,30 @@
1616
"email": "[email protected]",
1717
"url": "https://github.com/KurtGokhan"
1818
},
19-
"files": ["*", "!*.tsbuildinfo"],
20-
"sideEffects": false,
21-
"types": "./dist/index.d.ts",
22-
"module": "./dist/index.mjs",
23-
"main": "./dist/index.js",
24-
"exports": {
25-
".": {
26-
"react-query-builder@dev": "./src/index.ts",
27-
"import": "./dist/index.mjs",
28-
"default": "./dist/index.js"
29-
}
30-
},
3119
"scripts": {
32-
"start": "tsup --watch",
33-
"build": "tsup",
3420
"test": "vitest",
3521
"lint": "biome lint",
3622
"format": "biome format",
3723
"check": "biome check",
38-
"prepare": "husky && npm run bundle",
39-
"bundle": "npm run build && node scripts/copyPackageJson",
40-
"publish": "npm run bundle && npm publish ./dist",
41-
"attw": "npx --yes @arethetypeswrong/cli --pack dist",
42-
"publint": "cd dist && npx publint --yes"
24+
"prepare": "husky"
4325
},
4426
"devDependencies": {
4527
"@biomejs/biome": "1.9.4",
4628
"@changesets/cli": "^2.28.1",
47-
"@tanstack/react-query": "^5.66.11",
48-
"@types/react": "19.0.10",
49-
"@vitejs/plugin-react": "^4.3.4",
29+
"@types/node": "^22.13.8",
5030
"husky": "^9.1.7",
5131
"lint-staged": "^15.4.3",
52-
"react": "^19.0.0",
5332
"rimraf": "^6.0.1",
5433
"tsup": "^8.4.0",
55-
"tsx": "^4.19.3",
5634
"typescript": "^5.8.2",
57-
"vite": "^6.2.0",
5835
"vitest": "^3.0.7"
5936
},
60-
"peerDependencies": {
61-
"@tanstack/react-query": "^5.66.0",
62-
"@types/react": ">=18",
63-
"react": ">=18"
64-
},
65-
"peerDependenciesMeta": {
66-
"react": {
67-
"optional": true
68-
},
69-
"@types/react": {
70-
"optional": true
71-
}
72-
},
73-
"overrides": {
74-
"vite": "$vite"
75-
},
7637
"volta": {
7738
"node": "22.14.0",
7839
"npm": "11.1.0"
7940
},
8041
"lint-staged": {
8142
"*": ["biome check --write --no-errors-on-unmatched --files-ignore-unknown=true"]
8243
},
83-
"workspaces": [".", "packages/*", "examples/*", "website"]
44+
"workspaces": ["packages/*", "examples/*", "website"]
8445
}

0 commit comments

Comments
 (0)