Skip to content

Commit 509448c

Browse files
chore: replace rollup build with tsdown (#102)
* chore: more repo reworking * Fix knip * Fix test:docs * Fix pr.yml * Add nx-set-shas
1 parent 841d691 commit 509448c

32 files changed

+2697
-4259
lines changed

.browserslistrc

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

.changeset/config.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.2/schema.json",
3+
"changelog": [
4+
"@svitejs/changesets-changelog-github-compact",
5+
{ "repo": "TanStack/ranger" }
6+
],
7+
"commit": false,
8+
"access": "public",
9+
"baseBranch": "main",
10+
"updateInternalDependencies": "patch",
11+
"fixed": [],
12+
"linked": [],
13+
"ignore": [],
14+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
15+
"onlyUpdatePeerDependentsWhenOutOfRange": true
16+
}
17+
}

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Tools
2525
uses: tanstack/config/.github/setup@main
2626
- name: Fix formatting
27-
run: pnpm run format
27+
run: pnpm prettier:write
2828
- name: Apply fixes
2929
uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
3030
with:

.github/workflows/pr.yml

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,35 @@ jobs:
2020
fetch-depth: 0
2121
- name: Setup Tools
2222
uses: tanstack/config/.github/setup@main
23-
- name: Run Build
24-
run: pnpm run build
25-
- name: Run Tests
26-
run: pnpm -r test:types && pnpm -r test:lib
23+
- name: Get base and head commits for `nx affected`
24+
uses: nrwl/nx-set-shas@v4.3.3
25+
with:
26+
main-branch-name: main
27+
- name: Run Checks
28+
run: pnpm test:pr
29+
preview:
30+
name: Preview
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v5.0.0
35+
with:
36+
fetch-depth: 0
37+
- name: Setup Tools
38+
uses: tanstack/config/.github/setup@main
39+
- name: Build Packages
40+
run: pnpm run build:all
41+
- name: Publish Previews
42+
run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --template './examples/*/*'
43+
provenance:
44+
name: Provenance
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Checkout
48+
uses: actions/checkout@v5.0.0
49+
with:
50+
fetch-depth: 0
51+
- name: Check Provenance
52+
uses: danielroe/provenance-action@v0.1.1
53+
with:
54+
fail-on-downgrade: true

.github/workflows/release.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,14 @@ jobs:
2828
- name: Run Build
2929
run: pnpm run build
3030
- name: Run Tests
31-
run: pnpm -r test:types && pnpm -r test:lib
32-
- name: Publish
33-
run: |
34-
pnpm install --no-frozen-lockfile
35-
git config --global user.name 'Tanner Linsley'
36-
git config --global user.email 'tannerlinsley@users.noreply.github.com'
37-
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
38-
pnpm run cipublish
31+
run: pnpm run test:ci
32+
- name: Run Changesets (version or publish)
33+
uses: changesets/action@v1.5.3
34+
with:
35+
version: pnpm run changeset:version
36+
publish: pnpm run changeset:publish
37+
commit: 'ci: Version Packages'
38+
title: 'ci: Version Packages'
3939
env:
40-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
41-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4241
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
43-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@ stats.html
3838
.DS_Store
3939
node_modules
4040
.cache
41+
.nx/cache
42+
.nx/workspace-data
4143
dist

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Tanner Linsley
3+
Copyright (c) 2021-present Tanner Linsley
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

babel.config.js

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

docs/concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ At the heart of every Ranger is the `Ranger` class. This class will provide ever
2323

2424
After reading about Ranger's concepts, you should:
2525

26-
- [Check Out Some Examples](./examples/react/basic)
26+
- [Check Out Some Examples](/ranger/latest/docs/framework/react/examples/basic)

docs/framework/react/api/basic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ menu: API
88

99
Want to skip to the implementation? Check out these examples:
1010

11-
- [basic](../examples/react/basic)
11+
- [basic](/ranger/latest/docs/framework/react/examples/basic)
1212

1313
The API below described how to use the **basic** features.
1414

0 commit comments

Comments
 (0)