Skip to content

Commit

Permalink
chore: next-merge + trpc bump (#494)
Browse files Browse the repository at this point in the history
* fix: typo in T3 axiom #3

* chore: update ci stuff

* docs: write some docs (#323)

* docs: change description and add nexxel's website in package.json

* docs: add faq page

* docs: add tutorials to generated readme

* docs: rename getting started to t3 axioms and add advanced usage

* docs: add me3 in t3 collection

* docs: make p capital

* docs: update contributing guide

* docs: update link to t3 axiom in faq

* docs: fix link to docs in navbar

* docs: update contributing guide, can't add dev script for cli

* docs: dark theme by default

* chore: add some scripts

* docs: add scripts to contributing guide

Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>

* feat: wrap createContext in helperfunc to make it independent of req/res (#324)

* feat: make createContext independent of req/res

* chore: add changeset

* fix: typo

* fix: missing async

* fix: typo in auth-context.ts (#328)

* chore(release): version packages (#326)

* fix: build fails on trpc, trpc+prisma (#334)

* fix: build fails on trpc, trpc+next

* chore: add changeset

* fix: invalid typeof window comparison to undefined (#335)

* chore(release): version packages (#336)

* feat: make links in docs a contrasting color (#339)

* fix: use auth instead of question while merging the router (#330)

* chore(release): version packages (#341)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore(docs): migrate docs to astro (#340)

* fix: tsconfig include + clean script (#345)

* chore(release): version packages (#347)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: add eol to eslint prettier (#351)

* chore: update ci

* docs: add new landing page (#350)

* docs: write tailwind section in Why page (#349)

* docs: write why tailwind

Based on their landing page, theo's stream & this tweet from the creator
https://twitter.com/adamwathan/status/1560749403131895808

* docs: break tw Why in paragraphs, add zen-mode

* docs: typos

* docs: add "and unique" to the building blocks section of tailwind's why

Just a bit of a banter for all who thinks it compares to finished design systems

Co-authored-by: Julius Marminge <julius0216@outlook.com>

Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>

* chore: update ci

* feat: updated docker instructions (#333)

* docs: Begin migration to Tailwind (#359)

* feat: add loggers during dev (#353)

* feat: more updated docker instructions (#354)

* feat: add links to next.config.mjs

* fix: whitespace

* feat: relative path links in readme

* fix: link in readme

Co-authored-by: Julius Marminge <julius0216@outlook.com>

* chore(release): version packages (#360)

* chore: Sort `package.json` when in `noInstallMode` (#357)

* docs: Fix Mobile Menu, Light Mode Updated, Copy to Clipboard Fixed (#363)

* fix: revert prisma client teardown (#365)

* chore(release): version packages (#361)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: add wrapper for `unstable_getServerSession` (#366)

* fix(www): build errors and CI improvements (#367)

* fix(www): build errors and CI improvements

* chore: add  dep

* chore: add  dep

* fix: deps

* chore: deps

* chore: deps & ts

* fix: interface props and rip preact

* chore: revamp

* chore: more icons

* chore: rip preact

* chore: lock

* chore: esm?

* fix: typedefs for env

* chore: fixes?

* fix: silence ts-errors for now

* fix: version and env + refactor file structure (#370)

* chore(release): version packages (#369)

* fix: throw error on missing snowpack github token (#373)

* fix: throw error on missing snowpack github token

* feat: don't use default value for snowpack github token

* fix: astro build (#372)

* fix: astro build

* chore: rename components (part 1)

* chore: rename components (part 2)

* chore: update component import filenames

* feat: allow pascalCase in .eslintrc

Co-authored-by: Julius Marminge <julius0216@outlook.com>

* feat: add continue and overwrite option on existing dir (#375)

* feat: add abort/clear/overwrite options on existing dir

* chore: add changeset

* feat: add 'recommended' to 'Abort installation'

* feat: add confirmation before overwriting existing dir

* docs: update styling + add environment variables page (#376)

* docs: fix styling on footer, contributions, features, update nextauth image, add env var page

* fix: format

* fix: styling on markdown to be flex

* fix: right sidebar alignment

Co-authored-by: Julius Marminge <julius0216@outlook.com>

* chore: ci caching etc (#374)

* feat: all technology cards in all templates (#381)

* feat: include all cards on all index.tsx files

* chore: add changeset

Co-authored-by: Julius Marminge <julius0216@outlook.com>

* docs: improve docker instuctions (#384)

* feat: updated UI design of landing page (#385)

* feat: landing page design update

- Added workspaces to package.json & updated design of the landing page

* fix: fixed UI updates

- removed workspaces from package.json
- updated Astro version to 1.1.2
- fixed margins on stack blocks

* fix: fixed pnpm lock

* feat: safeguards for git repos (#383)

* chore: fix scripts

* feat: add safeguards for git repos

* fix: logging name

* fix: spinner

* chore: changeset

* docs: add tailwind, prisma, nextauth (#382)

* feat: styling on index.tsx without tailwind (#388)

* feat: non-tw index.tsx with styling

* chore: add changeset

* feat: remove index.module.css in tailwind installer

* fix: remove unused import

* refactor: move stuff around (#391)

* chore(ci): matrix e2e test (#392)

* chore(ci): fix typo in index.ts (#393)

seperated -> separated

* refactor: easier to understand client env warning (#394)

* chore(release): version packages (#377)

* chore: git script

* feat: forward pass trpc headers during ssr (#396)

* docs: update tRPC v10 docs link again (#403)

# Update tRPC v10 docs link again

- [x] I reviewed linter warnings + errors, resolved formatting, types and other issues related to my work
- [x] The PR title follows the convention we established [conventional-commit](https://www.conventionalcommits.org/en/v1.0.0/)
- [ ] I performed a functional test on my final commit

---

The `alpha.` site now redirects to the main site, which by default is the 9.x docs (try in incognito/private window), this change makes it go to the v10 docs

---

💯

* refactor: move createProtectedRouter to auth-context.ts (#395)

* fix: docker guide doesn't work with prisma (#399)

* chore(release): version packages (#400)

* feat: add basic i18n configuration in next.config (#387)

* chore(release): version packages (#408)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: gitignore

* docs: add typescript, nextjs, remove old style tags (#411)

* docs: remove all remaining style tags

* docs: fix more menu, add nextjs

* docs: add typescript

* docs: style algolia search, add powered by vercel

* docs: custom scrollbar, text selection

* docs: update typescript

* docs: fix algolia styling on landing page

* fix: typo, move quote up

* docs: move quote above what is typescript

* fix: quote light mode styling

* fix: remove unnecessary singlequote in tailwind classname (#419)

* fix: Remove unnecessary singlequote

* Create strong-spoons-obey.md

Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>

* docs: minor improvements (#420)

* docs: added spacing to headers in left sidebar

* fix: "On this page" text style in light mode

* docs: fixed inconsistency with "More" text styling

* fix: removed scroll behavior when theme was toggled

* docs: added sticky sidebars

Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>

* chore(release): version packages (#421)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix(template): missing ctx when using ssr with trpc (#416)

* feat: error handler for trpc (#413)

* docs: Flesh out learning resource section of FAQ (#425)

* feat: direct developer to add schema from .env to schema.mjs for zod validation (#430)

* chore(release): version packages (#423)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: contributor avatar layout (#433)

* feat: add prettier-plugin-astro to .prettierrc (#434)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

* fix(ui): copy btn + lighthouse ci (#437)

* fix(ui): copy btn

* chore(ci): adds lighthouse to ci

* fix: script

* fix: ci

* fix: script

* fix: hardcode url?

* fix: script

* fix: script

* chore: update installation.md

* fix: regex matcher

* fix: get preview url (#438)

* fix: get preview url

* chore: v3

* fix: get url script

* fix: invalid script

* fix: script

* fix: script

* Update lighthouse.yml

* Update lighthouse.yml

* chore(www): ui contrasts + disable lightmode (#439)

* chore(www): ui contrasts

* chore: seo

* chore: seo

* chore: disable lightmode

* chore: rip theme

* feat: cursor-pointer on theme toggle button (#435)

* feat: cursor-pointer on theme toggle button

* feat: use clsx for button classes

Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>

* don't make lighthouse comment if vercel_url not found

* docs: clear helper types description (#441)

* feat: added light mode back (#443)

* feat: better cli text when scaffolding in '.' (#446)

* feat: better cli text when scaffolding in '.'

* chore: add changeset

* feat(docs): refined instructions for contributing (#452)

* chore(release): version packages (#451)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* refactor(docs): major refactor and configure theme (#447)

* refactor: themetogglebutton

* chore: prepare design system color scheme

* refactor: default theme and dont shadow

* chore: add some colors atleast

* fix: linter

* chore: swap base

* chore: delete index.css

* refactor: simplify

* chore: remove unused

* chore: more unused removed

* fix: use correct button text color on website banner (#450)

* chore: remove comment

* chore: that's no longer needed

* refactor: using path instead of passing prop

* fix: bug

* chore: version bumps

* chore: apply #449

* fix: css fixes and brought back the SidebarToggle functionality (#453)

* fix: remove unnecessary underlines in components on landing page (#455)

* chore: styling changes on docs (#448)

* fix: round t3 logo on website and docs (#456)

* fix: fix theme flashing

* chore: force light

* chore: might as well inline that

Co-authored-by: Tim <61044138+Coyenn@users.noreply.github.com>
Co-authored-by: Gabriel De Andrade <30420087+gabrielelpidio@users.noreply.github.com>

* fix: astro build (#458)

* fix: some ui (#459)

* fix: ui improvements (#460)

* fix: add astro formatting to .lintstagedrc (#463) (#464)

* docs: write Prisma section in Why page (#402)

* refactor(blog): rework blog ui and improve scrolling behavior (#465)

* refactor: rename layout and use mdx (#466)

* refactor: rename layout and use mdx

* refactor: revert mdx, why no work astro???

* refactor(format): astro config

* fix: docs right sidebar overlaying content (#467)

* feat(docs): minor tweaks and improvements (#469)

* feat(docs): add heading in env variables

* feat(docs): add usage with prisma section (unfinished)

* feat(docs): add nextjs discord link

* feat(docs): add tailwind usage sections and discord link

* feat(docs): fix video layout and add link to handbook

* feat(footer): remove t3 logo and navigations links from footer

* feat(docs): add next auth content in why page

* feat(docs): add command to install next version

* fix: trpc v10 docs link

* fix(t3-collection): add s after julius'

* feat(docs): make docker guide consistent with the rest of the docs

* feat(docs): add missing fullstop in vercel guide

* feat(sidebar): vercel first, docker second

* feat(footer): add vercel logo, remove ct3a logo

* fix: apply and use theme colors on landing page and algolia (#462)

* fix: apply and use theme colors on landing page and algolia

* fix: use correct color in algolia search box

* fix: faq link in footer

* feat: switch primary font to Inter

* feat: improve theme test page

* feat: improve docs sidebar

* feat: make algolia search respect theme preferences

* fix: visually improve quote from Theo

* fix: change color-base to color-default to prevent overlap with tailwind

* feat: make footer background transparent on landing page

* fix: contrast of left nav links in light mode

* feat: add documentation button animation

* fix: make footer always transparent

* fix: sidebar

* fix: left sidebar z-index

Co-authored-by: Julius Marminge <julius0216@outlook.com>

* fix(ci): graceful cancel?

* fix(ci): graceful cancel 2?

* fix(ci): graceful cancel 3?

* fix(ci): graceful cancel 4?

* fix(ci): graceful cancel 5?

* refactor: docs and landing page layouts (#475)

* refactor: docs and landing page layouts

* fix: docs page heading links

* refactor: docs table of contents

* feat: add gitpod support (#471)

* feat: add gitpod.yml

* refactor: remove gitpod prebuilds for now

Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>

* create CODEOWNERS

* Update CODEOWNERS

* Update CODEOWNERS

* docs: added portfolio to OSS links (#478)

* refactor: de-react-ify (#476)

* refactor: de-react-ify sidebarToggle

* fix: resolve import

* refactor: de-react-ify themetoggler

* fix: satisfy linter

* fix: delete the old one

* fix: remove unused

* refactor: port toc to astro pt1

* refactor: port toc to astro pt1.5

* chore: push for help

* refactor: remove immediate h2

* chore: test agaibn

* chore: log tocItem

* fix: toc astro port done

* refactor: dont observe mobile toc

* fix: that didn't work

* chore: update astro

* fix(template): bump next to 12.3.1 and fix AppType (#485)

* chore: nuke commitlint (#479)

* nuke commitlint

* nuke husky

* nuke husky 2

Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>

* chore(release): version packages (#486)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: update docs to trpc beta

* chore: move it down

* refactor: various landing page components (#477)

* refactor: landing page typography

* refactor: landing page typography and layout

* feat: add swiper to show tweets

* refactor: add page section component to landing page

* fix: tweet swiper by switching to react

* fix: tweet swiper pagination

* refactor: terminal styling

* refactor: increase page section padding

* fix: responsiveness of community card

* fix: responsiveness of cli

* fix: center content of community card

* fix: responsiveness of tweet slider

* refactor: borders of sidebars

* fix: theme toggle button colors

* feat: add border to all cards

Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>

* feat(docs): pull tweets (#488)

* pull tweets

* prettier

* log over error

* move handle below name

* prettier

* add 2 tweets

* simplify

* dummy

* change trpc svg

* make buttons larger

* remove hydration directive

* chore(docs): add tweet

* chore(docs): some improvements to landing (#489)

* some improvements

* fix

* make section linkable

* prettier

* fix(docs): footer overflow (#491)

* fix(docs): footer overflow

* style: fix formatting

* fix alignment

* fix spacing

Co-authored-by: Mateusz Aliyev <82393815+mateuszaliyev@users.noreply.github.com>

* fix lint

* update to beta.2 and next 12.3.1

* update lock

* remove unused from bad merge

* more unused

Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>
Co-authored-by: Omer Shahar <38870042+Omer-Shahar@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Christopher Ehrlich <ehrlich.christopher@gmail.com>
Co-authored-by: Julian Read <julianread@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Kroucher <99768034+kroucher@users.noreply.github.com>
Co-authored-by: Igor Bedesqui <igorbedesqui@gmail.com>
Co-authored-by: Gejsi <vgejsi@gmail.com>
Co-authored-by: Peter Colapietro <petercolapietro+github@gmail.com>
Co-authored-by: Kyuu <62506556+kyuuaria@users.noreply.github.com>
Co-authored-by: Piotr <53144702+PiotrekPKP@users.noreply.github.com>
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Co-authored-by: nadilas <janosveres@me.com>
Co-authored-by: Roy Henriquez <roy.henriquez@gmail.com>
Co-authored-by: Samuel Gunter <samathingamajig@gmail.com>
Co-authored-by: Pearcekieser <5055971+Pearcekieser@users.noreply.github.com>
Co-authored-by: Manuel Amaro Valle <manuelvalle@vallerem.com>
Co-authored-by: Sor4chi <80559385+sor4chi@users.noreply.github.com>
Co-authored-by: Mike Fitzgerald <mike@xpressivecode.com>
Co-authored-by: ted-pulsen <109650792+ted-pulsen@users.noreply.github.com>
Co-authored-by: Anthony Campolo <12433465+ajcwebdev@users.noreply.github.com>
Co-authored-by: Benjamin Margolius <benjaminmargolius@gmail.com>
Co-authored-by: Gabriel De Andrade <30420087+gabrielelpidio@users.noreply.github.com>
Co-authored-by: Tim <61044138+Coyenn@users.noreply.github.com>
Co-authored-by: Hans Gabriel B. Daduya <hansdaduya@yahoo.com>
Co-authored-by: Josh Hyde <40751087+JoshHyde9@users.noreply.github.com>
Co-authored-by: Mateusz Aliyev <82393815+mateuszaliyev@users.noreply.github.com>
  • Loading branch information
1 parent 1d84e9f commit 2dd37e1
Show file tree
Hide file tree
Showing 62 changed files with 1,040 additions and 2,557 deletions.
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

12 changes: 0 additions & 12 deletions .lintstagedrc

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pnpm install

### Implement your changes

This project is a [Turborepo](https://turborepo.org/) monorepo. The code for the CLI is in the `cli` directory, and the docs is in the `www` directory. This project is a [Turborepo](https://turborepo.org/) monorepo. The code for the CLI is in the `cli` directory, and the docs is in the `www` directory. Now you're all setup and can start implementing your changes.
This project is a [Turborepo](https://turborepo.org/) monorepo. The code for the CLI is in the `cli` directory, and the docs is in the `www` directory. Now you're all setup and can start implementing your changes.

Here are some useful scripts for when you are developing:

Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ yarn create t3-app
pnpm dlx create-t3-app@latest
```

If you prefer using the [experimental v10 version of tRPC](https://trpc.io/docs/v10/), use `create-t3-app@next`. Note that the alpha versions of tRPC that it uses may contain API changes. We will try our best to keep on top of these, please file an issue if we have missed something.

An ongoing development branch, `create-t3-app@beta`, can be downloaded for the most recent changes. Expect bugs when using the `beta` branch and please open issues with reproductions when they occur.

<h2 id="community">Community</h2>

For help, discussion about best practices, or any other conversation that would benefit create-t3-app:
Expand All @@ -106,13 +102,13 @@ The following CLI options and flags can configure the create command with custom
| `-y`, `--default` | Bypass the CLI and use all default options to bootstrap a new t3-app |
| `--noInstall` | Generate project without installing dependencies |

To use the beta version of `create-t3-app`:
To use the beta version of `create-t3-app` (published continuously after merged PRs):

```bash
npx create-t3-app@beta
```

To scaffold the project using tRPC v10 (experimental):
If you prefer using the [v10 beta version of tRPC](https://trpc.io/docs/v10/), use `create-t3-app@next`:

```bash
npx create-t3-app@next
Expand Down
6 changes: 6 additions & 0 deletions cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 5.13.0

### Minor Changes

- [#485](https://github.com/t3-oss/create-t3-app/pull/485) [`ecc7642`](https://github.com/t3-oss/create-t3-app/commit/ecc764264eff0cf5062fee4f7e4bd9f75975ef41) Thanks [@nexxeln](https://github.com/nexxeln)! - bump next to 12.3.1 and fix AppType

## 5.12.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-t3-app",
"version": "5.12.0",
"version": "5.13.0",
"description": "Create web application with the t3 stack",
"license": "MIT",
"repository": {
Expand Down
12 changes: 6 additions & 6 deletions cli/src/installers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ export const dependencyVersionMap = {
postcss: "^8.4.14",

// tRPC
"@trpc/client": "10.0.0-proxy-beta.0",
"@trpc/server": "10.0.0-proxy-beta.0",
"@trpc/react": "10.0.0-proxy-beta.0",
"@trpc/next": "10.0.0-proxy-beta.0",
"@tanstack/react-query": "^4.2.3",
superjson: "^1.9.1",
"@trpc/client": "10.0.0-proxy-beta.2",
"@trpc/server": "10.0.0-proxy-beta.2",
"@trpc/react": "10.0.0-proxy-beta.2",
"@trpc/next": "10.0.0-proxy-beta.2",
"@tanstack/react-query": "^4.3.9",
superjson: "1.9.1",
} as const;
export type AvailableDependencies = keyof typeof dependencyVersionMap;

Expand Down
7 changes: 0 additions & 7 deletions cli/template/base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ Also checkout these awesome tutorials on `create-t3-app`.
- [Build a full stack app with create-t3-app](https://www.nexxel.dev/blog/ct3a-guestbook)
- [A first look at create-t3-app](https://dev.to/ajcwebdev/a-first-look-at-create-t3-app-1i8f)

Also checkout these awesome tutorials on `create-t3-app`.

- [Build a Blog With the T3 Stack - tRPC, TypeScript, Next.js, Prisma & Zod](https://www.youtube.com/watch?v=syEWlxVFUrY)
- [Build a Live Chat Application with the T3 Stack - TypeScript, Tailwind, tRPC](https://www.youtube.com/watch?v=dXRRY37MPuk)
- [Build a full stack app with create-t3-app](https://www.nexxel.dev/blog/ct3a-guestbook)
- [A first look at create-t3-app](https://dev.to/ajcwebdev/a-first-look-at-create-t3-app-1i8f)

## How do I deploy this?

### Vercel
Expand Down
4 changes: 2 additions & 2 deletions cli/template/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"next": "12.2.5",
"next": "12.3.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"zod": "^3.18.0"
Expand All @@ -21,7 +21,7 @@
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"eslint": "8.22.0",
"eslint-config-next": "12.2.5",
"eslint-config-next": "12.3.1",
"typescript": "4.7.4"
}
}
10 changes: 7 additions & 3 deletions cli/template/page-studs/_app/with-auth-trpc.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
// src/pages/_app.tsx
import "../styles/globals.css";
import { SessionProvider } from "next-auth/react";
import type { AppType } from "next/dist/shared/lib/utils";
import type { Session } from "next-auth";
import type { AppType } from "next/app";
import { trpc } from "../utils/trpc";

const MyApp: AppType = ({ Component, pageProps }) => {
const MyApp: AppType<{ session: Session | null }> = ({
Component,
pageProps: { session, ...pageProps },
}) => {
return (
<SessionProvider session={pageProps.session}>
<SessionProvider session={session}>
<Component {...pageProps} />
</SessionProvider>
);
Expand Down
5 changes: 3 additions & 2 deletions cli/template/page-studs/_app/with-auth.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import "../styles/globals.css";
import type { AppType } from "next/dist/shared/lib/utils";
import type { AppType } from "next/app";
import type { Session } from "next-auth";
import { SessionProvider } from "next-auth/react";

const MyApp: AppType = ({
const MyApp: AppType<{ session: Session | null }> = ({
Component,
pageProps: { session, ...pageProps },
}) => {
Expand Down
2 changes: 1 addition & 1 deletion cli/template/page-studs/_app/with-trpc.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// src/pages/_app.tsx
import "../styles/globals.css";
import type { AppType } from "next/dist/shared/lib/utils";
import type { AppType } from "next/app";
import { trpc } from "../utils/trpc";

const MyApp: AppType = ({ Component, pageProps }) => {
Expand Down
21 changes: 0 additions & 21 deletions commitlint.config.cjs

This file was deleted.

5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"format": "prettier --write --plugin-search-dir=. \"**/*.{ts,tsx,md,mdx,json,js,mjs,cjs,astro}\" --ignore-path .gitignore",
"format:check": "prettier --check --plugin-search-dir=. \"**/*.{ts,tsx,md,mdx,json,js,mjs,cjs,astro}\" --ignore-path .gitignore",
"check": "pnpm lint && pnpm format:check && pnpm typecheck",
"prepare": "husky install",
"release": "changeset version",
"pub:beta": "cd cli && pnpm pub:beta",
"pub:next": "cd cli && pnpm pub:next",
Expand All @@ -48,8 +47,6 @@
"devDependencies": {
"@changesets/changelog-github": "^0.4.6",
"@changesets/cli": "^2.24.3",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@types/node": "^18.7.13",
"@typescript-eslint/eslint-plugin": "^5.35.1",
"@typescript-eslint/parser": "^5.35.1",
Expand All @@ -62,8 +59,6 @@
"eslint-plugin-react": "^7.31.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unicorn": "40.1.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"prettier-plugin-astro": "^0.5.3",
"ts-node": "^10.9.1",
Expand Down

0 comments on commit 2dd37e1

Please sign in to comment.