Skip to content

Commit 43aae6e

Browse files
Release @tanstack/publish-config and @tanstack/vite-config (#222)
1 parent 83d5dbc commit 43aae6e

26 files changed

+882
-722
lines changed

.changeset/beige-animals-attack.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/publish-config': minor
3+
---
4+
5+
Release @tanstack/publish-config

.changeset/plain-jars-hope.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/vite-config': minor
3+
---
4+
5+
Release @tanstack/vite-config

packages/config/package.json

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@tanstack/config",
33
"version": "0.16.3",
4-
"description": "Configuration and tools for publishing and maintaining TanStack projects.",
4+
"description": "All-in-one config used by TanStack projects.",
55
"author": "tannerlinsley",
66
"license": "MIT",
77
"repository": {
@@ -59,32 +59,23 @@
5959
"node": ">=18"
6060
},
6161
"dependencies": {
62-
"@commitlint/parse": "catalog:",
6362
"@tanstack/eslint-config": "workspace:*",
63+
"@tanstack/publish-config": "workspace:*",
6464
"@tanstack/typedoc-config": "workspace:*",
65+
"@tanstack/vite-config": "workspace:*",
6566
"commander": "catalog:",
6667
"esbuild-register": "catalog:",
6768
"interpret": "catalog:",
68-
"jsonfile": "catalog:",
6969
"liftoff": "catalog:",
7070
"minimist": "catalog:",
71-
"rollup-plugin-preserve-directives": "catalog:",
72-
"semver": "catalog:",
73-
"simple-git": "catalog:",
74-
"v8flags": "catalog:",
75-
"vite-plugin-dts": "catalog:",
76-
"vite-plugin-externalize-deps": "catalog:",
77-
"vite-tsconfig-paths": "catalog:"
71+
"v8flags": "catalog:"
7872
},
7973
"devDependencies": {
8074
"@types/interpret": "catalog:",
81-
"@types/jsonfile": "catalog:",
8275
"@types/liftoff": "catalog:",
8376
"@types/minimist": "catalog:",
84-
"@types/semver": "catalog:",
8577
"@types/v8flags": "catalog:",
8678
"eslint": "catalog:",
87-
"type-fest": "catalog:",
8879
"vite": "catalog:"
8980
}
9081
}

packages/config/src/eslint/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
// @ts-check
2+
13
export { tanstackConfig } from '@tanstack/eslint-config'
+7-37
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,7 @@
1-
export type Commit = {
2-
hash: string
3-
body: string
4-
subject: string
5-
author_name: string
6-
author_email: string
7-
type: string
8-
scope: string | null | undefined
9-
}
10-
11-
export type Package = {
12-
name: string
13-
packageDir: string
14-
}
15-
16-
export type BranchConfig = {
17-
prerelease: boolean
18-
previousVersion?: boolean
19-
}
20-
21-
export type Options = {
22-
/** Contains config for publishable branches. */
23-
branchConfigs: Record<string, BranchConfig>
24-
/** List your npm packages here. The first package will be used as the versioner. */
25-
packages: Array<Package>
26-
/** Path to root directory of your project. */
27-
rootDir: string
28-
/** The branch to publish. Defaults to the current branch if none supplied. */
29-
branch?: string
30-
/** A manual tag to force release. Must start with `v` */
31-
tag?: string
32-
/** The GitHub token used to search for user metadata and make a GitHub release. */
33-
ghToken?: string
34-
}
35-
36-
/** https://tanstack.com/config/latest/docs/publish */
37-
export function publish(options: Options): Promise<void>
1+
export { publish } from '@tanstack/publish-config'
2+
export type {
3+
Commit,
4+
Package,
5+
BranchConfig,
6+
Options,
7+
} from '@tanstack/publish-config'

0 commit comments

Comments
 (0)