Skip to content

Commit 2935da9

Browse files
refactor: Move into packages directory (#112)
* refactor: Move into packages dir * Update tsconfig * Move @types/node
1 parent e80027f commit 2935da9

25 files changed

+260
-175
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22.2.0
1+
v20.15.0

integrations/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"react-dom": "^18.3.1"
3232
},
3333
"devDependencies": {
34-
"@tanstack/config": "<1.0.0",
34+
"@tanstack/config": "workspace:*",
3535
"@types/react": "^18.3.3",
3636
"@types/react-dom": "^18.3.0",
3737
"@vitejs/plugin-react": "^4.3.1"

integrations/vanilla/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"test:build": "vite build && vitest && publint --strict && attw --pack"
2727
},
2828
"devDependencies": {
29-
"@tanstack/config": "<1.0.0"
29+
"@tanstack/config": "workspace:*"
3030
}
3131
}

integrations/vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"vue": "^3.4.31"
3030
},
3131
"devDependencies": {
32-
"@tanstack/config": "<1.0.0",
32+
"@tanstack/config": "workspace:*",
3333
"@vitejs/plugin-vue": "^5.0.5"
3434
}
3535
}

nx.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,20 @@
55
"useInferencePlugins": false,
66
"parallel": 5,
77
"targetDefaults": {
8-
"test:build": {
9-
"cache": true
10-
},
118
"test:eslint": {
129
"cache": true
1310
},
1411
"test:types": {
1512
"cache": true
1613
},
14+
"test:build": {
15+
"cache": true
16+
},
1717
"test:format": {
1818
"cache": true
19+
},
20+
"test:sherif": {
21+
"cache": true
1922
}
2023
}
2124
}

package.json

Lines changed: 13 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,40 @@
11
{
2-
"name": "@tanstack/config",
3-
"type": "module",
4-
"version": "0.9.1",
5-
"packageManager": "pnpm@9.4.0",
6-
"description": "Configuration and tools for publishing and maintaining TanStack projects.",
7-
"author": "tannerlinsley",
8-
"license": "MIT",
9-
"funding": {
10-
"type": "github",
11-
"url": "https://github.com/sponsors/tannerlinsley"
12-
},
13-
"homepage": "https://tanstack.com/config",
2+
"name": "root",
3+
"private": true,
144
"repository": {
155
"type": "git",
166
"url": "https://github.com/TanStack/config.git"
177
},
18-
"sideEffects": false,
19-
"exports": {
20-
"./eslint": {
21-
"import": {
22-
"default": "./src/eslint/index.js"
23-
}
24-
},
25-
"./publish": {
26-
"import": {
27-
"types": "./src/publish/index.d.ts",
28-
"default": "./src/publish/index.js"
29-
}
30-
},
31-
"./vite": {
32-
"import": {
33-
"types": "./src/vite/index.d.ts",
34-
"default": "./src/vite/index.js"
35-
}
36-
},
37-
"./package.json": "./package.json"
38-
},
39-
"bin": {
40-
"tanstack-config": "./bin/config.js"
41-
},
42-
"files": [
43-
"bin",
44-
"src"
45-
],
46-
"engines": {
47-
"node": ">=18"
48-
},
49-
"preferGlobal": false,
8+
"packageManager": "pnpm@9.4.0",
9+
"type": "module",
5010
"scripts": {
5111
"preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...')} else {process.exit(1)}\" || npx -y only-allow pnpm",
5212
"test": "pnpm run test:ci",
53-
"test:pr": "nx run-many --targets=test:format,test:eslint,test:types,test:build",
54-
"test:ci": "nx run-many --targets=test:format,test:eslint,test:types,test:build",
55-
"test:build": "publint --strict",
56-
"test:types": "tsc",
57-
"test:eslint": "eslint ./bin ./src",
13+
"test:pr": "nx affected --targets=test:format,test:eslint,test:types,test:build,test:sherif",
14+
"test:ci": "nx run-many --targets=test:format,test:eslint,test:types,test:build,test:sherif",
15+
"test:build": "nx affected --target=test:build",
16+
"test:types": "nx affected --target=test:types",
17+
"test:eslint": "nx affected --target=test:eslint",
18+
"test:sherif": "sherif",
5819
"test:format": "pnpm run prettier --check",
5920
"prettier": "prettier --ignore-unknown .",
6021
"prettier:write": "pnpm run prettier --write",
61-
"cipublish": "node ./bin/config.js publish --cwd .",
22+
"cipublish": "node ./packages/config/bin/config.js publish --cwd .",
6223
"cipublishforce": "CI=true pnpm cipublish"
6324
},
6425
"nx": {
6526
"includedScripts": [
66-
"test:format",
67-
"test:eslint",
68-
"test:types",
69-
"test:build"
27+
"test:format"
7028
]
7129
},
72-
"dependencies": {
73-
"@commitlint/parse": "^19.0.3",
74-
"@eslint/js": "^8.57.0",
75-
"commander": "^12.1.0",
76-
"current-git-branch": "^1.1.0",
77-
"esbuild-register": "^3.5.0",
78-
"eslint-plugin-import-x": "^0.5.3",
79-
"eslint-plugin-n": "^17.9.0",
80-
"globals": "^15.8.0",
81-
"interpret": "^3.1.1",
82-
"jsonfile": "^6.1.0",
83-
"liftoff": "^5.0.0",
84-
"minimist": "^1.2.8",
85-
"rollup-plugin-preserve-directives": "^0.4.0",
86-
"semver": "^7.6.2",
87-
"simple-git": "^3.25.0",
88-
"typescript-eslint": "^7.15.0",
89-
"v8flags": "^4.0.1",
90-
"vite-plugin-dts": "^3.9.1",
91-
"vite-plugin-externalize-deps": "^0.8.0",
92-
"vite-tsconfig-paths": "^4.3.2"
93-
},
9430
"devDependencies": {
9531
"@arethetypeswrong/cli": "^0.15.3",
96-
"@types/current-git-branch": "^1.1.6",
97-
"@types/eslint": "^8.56.10",
98-
"@types/interpret": "^1.1.3",
99-
"@types/jsonfile": "^6.1.4",
100-
"@types/liftoff": "^4.0.3",
101-
"@types/minimist": "^1.2.5",
10232
"@types/node": "^20.14.9",
103-
"@types/semver": "^7.5.8",
104-
"@types/v8flags": "^3.1.3",
105-
"eslint": "^8.57.0",
10633
"jsdom": "^24.1.0",
10734
"nx": "^19.4.0",
10835
"prettier": "^3.3.2",
10936
"publint": "^0.2.8",
110-
"type-fest": "^4.21.0",
37+
"sherif": "^0.9.0",
11138
"typescript": "^5.5.3",
11239
"vite": "^5.3.3",
11340
"vitest": "^1.6.0"

packages/config/package.json

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"name": "@tanstack/config",
3+
"version": "0.9.1",
4+
"description": "Configuration and tools for publishing and maintaining TanStack projects.",
5+
"author": "tannerlinsley",
6+
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/TanStack/config.git",
10+
"directory": "packages/config"
11+
},
12+
"homepage": "https://tanstack.com/config",
13+
"funding": {
14+
"type": "github",
15+
"url": "https://github.com/sponsors/tannerlinsley"
16+
},
17+
"scripts": {
18+
"test:types": "tsc",
19+
"test:eslint": "eslint ./bin ./src",
20+
"test:build": "publint --strict"
21+
},
22+
"type": "module",
23+
"exports": {
24+
"./eslint": {
25+
"import": {
26+
"default": "./src/eslint/index.js"
27+
}
28+
},
29+
"./publish": {
30+
"import": {
31+
"types": "./src/publish/index.d.ts",
32+
"default": "./src/publish/index.js"
33+
}
34+
},
35+
"./vite": {
36+
"import": {
37+
"types": "./src/vite/index.d.ts",
38+
"default": "./src/vite/index.js"
39+
}
40+
},
41+
"./package.json": "./package.json"
42+
},
43+
"bin": {
44+
"tanstack-config": "./bin/config.js"
45+
},
46+
"preferGlobal": false,
47+
"sideEffects": false,
48+
"files": [
49+
"bin",
50+
"src"
51+
],
52+
"engines": {
53+
"node": ">=18"
54+
},
55+
"dependencies": {
56+
"@commitlint/parse": "^19.0.3",
57+
"@eslint/js": "^8.57.0",
58+
"commander": "^12.1.0",
59+
"current-git-branch": "^1.1.0",
60+
"esbuild-register": "^3.5.0",
61+
"eslint-plugin-import-x": "^0.5.3",
62+
"eslint-plugin-n": "^17.9.0",
63+
"globals": "^15.8.0",
64+
"interpret": "^3.1.1",
65+
"jsonfile": "^6.1.0",
66+
"liftoff": "^5.0.0",
67+
"minimist": "^1.2.8",
68+
"rollup-plugin-preserve-directives": "^0.4.0",
69+
"semver": "^7.6.2",
70+
"simple-git": "^3.25.0",
71+
"typescript-eslint": "^7.15.0",
72+
"v8flags": "^4.0.1",
73+
"vite-plugin-dts": "^3.9.1",
74+
"vite-plugin-externalize-deps": "^0.8.0",
75+
"vite-tsconfig-paths": "^4.3.2"
76+
},
77+
"devDependencies": {
78+
"@types/current-git-branch": "^1.1.6",
79+
"@types/eslint": "^8.56.10",
80+
"@types/interpret": "^1.1.3",
81+
"@types/jsonfile": "^6.1.4",
82+
"@types/liftoff": "^4.0.3",
83+
"@types/minimist": "^1.2.5",
84+
"@types/semver": "^7.5.8",
85+
"@types/v8flags": "^3.1.3",
86+
"eslint": "^8.57.0",
87+
"type-fest": "^4.21.0"
88+
}
89+
}

0 commit comments

Comments
 (0)