Skip to content

Commit 4f1d84e

Browse files
committed
first commit
0 parents  commit 4f1d84e

26 files changed

+6270
-0
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/ci-packages.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build & Typecheck
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
13+
jobs:
14+
cache-and-install:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- uses: pnpm/action-setup@v4
22+
name: Install pnpm
23+
with:
24+
version: 10
25+
run_install: false
26+
27+
- name: Install Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 22
31+
cache: 'pnpm'
32+
33+
- name: Install dependencies
34+
run: pnpm install
35+
36+
- name: 🏗 Build
37+
run: pnpm build
38+
39+
- name: 🔍 Typecheck
40+
run: pnpm typecheck

.github/workflows/release.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: ReleaseOrVersionPR
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
release:
9+
# Basic security: the release job can only be executed from this repo and from the main branch (not a remote thing)
10+
if: ${{ github.repository == 'udecode/better-auth-convex' && contains('refs/heads/main',github.ref)}}
11+
name: Release and changelog
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Repo
15+
uses: actions/checkout@v4
16+
with:
17+
# To run comparison we need more than the latest commit.
18+
# @link https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
19+
fetch-depth: 0
20+
21+
- uses: pnpm/action-setup@v4
22+
name: Install pnpm
23+
with:
24+
version: 10
25+
run_install: false
26+
27+
- name: Install Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 22
31+
cache: 'pnpm'
32+
33+
- name: Install dependencies
34+
run: pnpm install
35+
36+
# @link https://github.com/changesets/action
37+
- name: 🦋 Create Release Pull Request or Publish to npm
38+
id: changesets
39+
uses: changesets/action@v1
40+
with:
41+
# publish: yarn g:release
42+
cwd: ${{ github.workspace }}
43+
title: '[Release] Version packages'
44+
publish: pnpm release
45+
# Optional, might be used in conjunction with GITHUB_TOKEN to
46+
# allow running the workflows on a Version package action.
47+
# Be aware of security implications.
48+
# setupGitUser: true
49+
env:
50+
# See https://github.com/changesets/action/issues/147
51+
HOME: ${{ github.workspace }}
52+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
!.*
2+
3+
.git
4+
**/tsconfig.tsbuildinfo
5+
CLAUDE.local.md
6+
7+
# dependencies
8+
src/generated
9+
node_modules
10+
/.pnp
11+
.pnp.js
12+
.contentlayer
13+
.source
14+
15+
# testing
16+
/coverage
17+
18+
# next.js
19+
/.next/
20+
/out/
21+
22+
# production
23+
dist
24+
/tmp
25+
/out-tsc
26+
**/build
27+
28+
# Runtime data
29+
pids
30+
*.pid
31+
*.seed
32+
*.pid.lock
33+
34+
# misc
35+
.DS_Store
36+
*.pem
37+
38+
# local env files
39+
.env*.local
40+
convex/.env
41+
42+
# vercel
43+
.vercel
44+
45+
# typescript
46+
*.tsbuildinfo
47+
next-env.d.ts
48+
49+
.vscode
50+
51+
# Sentry Auth Token
52+
.sentryclirc
53+
54+
# Directory for instrumented libs generated by jscoverage/JSCover
55+
lib-cov
56+
57+
# Coverage directory used by tools like istanbul
58+
coverage
59+
60+
# nyc test coverage
61+
.nyc_output
62+
63+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
64+
.grunt
65+
66+
# Bower dependency directory (https://bower.io/)
67+
bower_components
68+
69+
# node-waf configuration
70+
.lock-wscript
71+
72+
# IDEs and editors
73+
.idea
74+
.project
75+
.classpath
76+
.c9/
77+
*.launch
78+
.settings/
79+
*.sublime-workspace
80+
.vscode/*
81+
82+
# Logs
83+
logs
84+
*.log
85+
npm-debug.log*
86+
yarn-debug.log*
87+
yarn-error.log*
88+
*.cache
89+
90+
.turbo
91+
92+
# AI Cache
93+
.cache/
94+
.netrc

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
__tests__
2+
__test-utils__
3+
__mocks__

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
zbeyens
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Whitespace-only changes.

eslint.config.mjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import unusedImports from 'eslint-plugin-unused-imports';
2+
3+
import { configs, defineConfig } from './tooling/eslint/index.js';
4+
5+
export default defineConfig(
6+
{
7+
ignores: ['src/index.ts'],
8+
},
9+
...configs.base,
10+
...configs.typescript,
11+
{
12+
languageOptions: {
13+
parserOptions: {
14+
project: true,
15+
tsconfigRootDir: import.meta.dirname,
16+
},
17+
},
18+
},
19+
{
20+
plugins: {
21+
'unused-imports': unusedImports,
22+
},
23+
rules: {
24+
// No unused imports
25+
'unused-imports/no-unused-imports': 'error',
26+
},
27+
}
28+
);

package-cli.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"name": "brand",
3+
"version": "0.0.1",
4+
"description": "",
5+
"keywords": [],
6+
"bugs": {
7+
"url": "https://github.com/udecode/brand/issues"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/udecode/brand.git"
12+
},
13+
"license": "MIT",
14+
"sideEffects": false,
15+
"type": "module",
16+
"exports": {
17+
".": {
18+
"types": "./dist/index.d.ts",
19+
"default": "./dist/index.js"
20+
}
21+
},
22+
"bin": "./dist/index.js",
23+
"files": ["dist/**/*"],
24+
"scripts": {
25+
"brl": "sh tooling/scripts/brl.sh",
26+
"build": "tsup",
27+
"build:watch": "tsup:watch",
28+
"lint": "pnpm eslint",
29+
"lint:fix": "pnpm eslint --fix && pnpm prettier --write .",
30+
"release": "pnpm build && pnpm changeset publish",
31+
"typecheck": "pnpm tsc --noEmit",
32+
"typecheck:watch": "pnpm tsc --noEmit --watch"
33+
},
34+
"dependencies": {},
35+
"devDependencies": {
36+
"@changesets/cli": "2.27.11",
37+
"@changesets/get-github-info": "0.6.0",
38+
"@eslint/compat": "1.3.2",
39+
"@eslint/eslintrc": "3.3.1",
40+
"@eslint/js": "9.34.0",
41+
"@types/eslint": "9.6.1",
42+
"@types/node": "^24.5.2",
43+
"@typescript-eslint/utils": "8.42.0",
44+
"barrelsby": "^2.8.1",
45+
"eslint": "9.34.0",
46+
"eslint-config-prettier": "10.1.8",
47+
"eslint-import-resolver-typescript": "4.4.4",
48+
"eslint-plugin-import": "2.32.0",
49+
"eslint-plugin-perfectionist": "4.15.0",
50+
"eslint-plugin-unicorn": "60.0.0",
51+
"eslint-plugin-unused-imports": "4.2.0",
52+
"prettier": "3.6.2",
53+
"prettier-plugin-jsdoc": "1.3.3",
54+
"prettier-plugin-packagejson": "2.5.19",
55+
"tsup": "8.5.0",
56+
"typescript": "5.9.2",
57+
"typescript-eslint": "8.42.0"
58+
},
59+
"publishConfig": {
60+
"access": "public"
61+
}
62+
}

0 commit comments

Comments
 (0)