Skip to content

Commit 655deda

Browse files
committed
pnpm -> bun
1 parent d265749 commit 655deda

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+127
-135
lines changed

.gitpod.yml

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

CONTRIBUTING.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ then, clone it to your local machine:
3232
gh repo clone <your-github-name>/create-t3-app
3333
```
3434

35-
This project uses [pnpm](https://pnpm.io) as its package manager. Install it if you haven't already:
35+
This project uses [bun](https://bun.io) as its package manager. Install it if you haven't already:
3636

3737
```bash
38-
npm install -g pnpm
38+
npm install -g bun
3939
```
4040

4141
Then, install the project's dependencies:
4242

4343
```bash
44-
pnpm install
44+
bun install
4545
```
4646

4747
### Implement your changes
@@ -52,15 +52,15 @@ Here are some useful scripts for when you are developing:
5252

5353
| Command | Description |
5454
| ---------------- | ------------------------------------------------------- |
55-
| `pnpm dev:cli` | Builds and starts the CLI in watch-mode |
56-
| `pnpm dev:www` | Starts the development server for the docs with HMR |
57-
| `pnpm build:cli` | Builds the CLI |
58-
| `pnpm build:www` | Builds the docs |
59-
| `pnpm build` | Builds CLI and docs |
60-
| `pnpm format` | Formats the code |
61-
| `pnpm lint` | Lints the code |
62-
| `pnpm lint:fix` | Lints the code and fixes any errors |
63-
| `pnpm check` | Checks your code for typeerrors, formatting and linting |
55+
| `bun dev:cli` | Builds and starts the CLI in watch-mode |
56+
| `bun dev:www` | Starts the development server for the docs with HMR |
57+
| `bun build:cli` | Builds the CLI |
58+
| `bun build:www` | Builds the docs |
59+
| `bun build` | Builds CLI and docs |
60+
| `bun format` | Formats the code |
61+
| `bun lint` | Lints the code |
62+
| `bun lint:fix` | Lints the code and fixes any errors |
63+
| `bun check` | Checks your code for typeerrors, formatting and linting |
6464

6565
When making commits, make sure to follow the [conventional commit](https://www.conventionalcommits.org/en/v1.0.0/) guidelines, i.e. prepending the message with `feat:`, `fix:`, `chore:`, `docs:`, etc... You can use `git status` to double check which files have not yet been staged for commit:
6666

@@ -73,15 +73,15 @@ git add <file> && git commit -m "feat/fix/chore/docs: commit message"
7373
Check that your code follows the project's style guidelines by running:
7474

7575
```bash
76-
pnpm check
76+
bun check
7777
```
7878

7979
Please also make a manual, functional test of your changes.
8080

8181
If your change should appear in the changelog, i.e. it changes some behavior of either the CLI or the outputted application, it must be captured by `changeset` which is done by running
8282

8383
```bash
84-
pnpm changeset
84+
bun changeset
8585
```
8686

8787
and filling out the form with the appropriate information. Then, add the generated changeset to git:

cli/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@
10311031
- added JSDoc type to clientEnv in all env-schema ([#240](https://github.com/t3-oss/create-t3-app/issues/240)) ([9cb5ebb](https://github.com/t3-oss/create-t3-app/commit/9cb5ebbb2a0147ce15726c7e1a6c6be4065bc2dc))
10321032
- clarify some comments and rename some files in env ([#245](https://github.com/t3-oss/create-t3-app/issues/245)) ([2048783](https://github.com/t3-oss/create-t3-app/commit/2048783bd26f7f0522357a3ab1e74e6f560a221c))
10331033
- remove semicolon in \_app.tsx with next-auth to avoid early return ([1be7713](https://github.com/t3-oss/create-t3-app/commit/1be771393628631b818b46d3f3bf1ca41ad99dce))
1034-
- title being offset when using yarn/pnpm ([c881f00](https://github.com/t3-oss/create-t3-app/commit/c881f00430f606040a448eecc41e779ab0c728a7))
1034+
- title being offset when using yarn/bun ([c881f00](https://github.com/t3-oss/create-t3-app/commit/c881f00430f606040a448eecc41e779ab0c728a7))
10351035

10361036
### [5.2.1](https://github.com/t3-oss/create-t3-app/compare/v5.2.0...v5.2.1) (2022-07-19)
10371037

@@ -1109,7 +1109,7 @@
11091109
- format contributing.md ([4111476](https://github.com/t3-oss/create-t3-app/commit/41114766582ca33fb2a3fd0b566e609a6dd3e861))
11101110
- handle git projects correctly ([3ed897f](https://github.com/t3-oss/create-t3-app/commit/3ed897ff49c06f6d70d49aee31d5c3741fced96e))
11111111
- incompatible git version ([#127](https://github.com/t3-oss/create-t3-app/issues/127)) ([34f44f8](https://github.com/t3-oss/create-t3-app/commit/34f44f817df52b317afea5b8d55c87eea487833f))
1112-
- invalid pnpm action version ([2a1f6e3](https://github.com/t3-oss/create-t3-app/commit/2a1f6e32aedb8f86ee7ca403e481be8e474b76b2))
1112+
- invalid bun action version ([2a1f6e3](https://github.com/t3-oss/create-t3-app/commit/2a1f6e32aedb8f86ee7ca403e481be8e474b76b2))
11131113
- language prompt short answer should both be ts ([#142](https://github.com/t3-oss/create-t3-app/issues/142)) ([5e4f80d](https://github.com/t3-oss/create-t3-app/commit/5e4f80d7aa930f16add3bb2273a23f5829548f49))
11141114
- **markup:** multiple h1 replaced to h2 ([6bf9040](https://github.com/t3-oss/create-t3-app/commit/6bf90407b9a9774348a77927d37c47f3ded5552a))
11151115
- **prompts:** show correct package manager in prompts ([#153](https://github.com/t3-oss/create-t3-app/issues/153)) ([fe66ae9](https://github.com/t3-oss/create-t3-app/commit/fe66ae9f60cbe6a2e429be406a1cd548c51e7bbd))

cli/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ npm create t3-app@latest
9494
yarn create t3-app
9595
```
9696

97-
### pnpm
97+
### bun
9898

9999
```bash
100-
pnpm create t3-app@latest
100+
bun create t3-app@latest
101101
```
102102

103103
### bun

cli/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
"clean": "rm -rf dist .turbo node_modules",
4242
"start": "node dist/index.js",
4343
"lint": "eslint . --ext .ts,.tsx",
44-
"lint:fix": "pnpm lint --fix",
44+
"lint:fix": "bun lint --fix",
4545
"format": "prettier '**/*.{cjs,mjs,ts,tsx,md,json}' --ignore-path ../.gitignore --ignore-unknown --no-error-on-unmatched-pattern --write",
4646
"format:check": "prettier '**/*.{cjs,mjs,ts,tsx,md,json}' --ignore-path ../.gitignore --ignore-unknown --no-error-on-unmatched-pattern --check",
4747
"release": "changeset version",
48-
"pub:beta": "pnpm build && npm publish --tag beta",
49-
"pub:next": "pnpm build && npm publish --tag next",
50-
"pub:release": "pnpm build && npm publish"
48+
"pub:beta": "bun build && npm publish --tag beta",
49+
"pub:next": "bun build && npm publish --tag next",
50+
"pub:release": "bun build && npm publish"
5151
},
5252
"dependencies": {
5353
"@clack/core": "^0.3.4",

cli/src/cli/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export const runCli = async (): Promise<CliResults> => {
163163
if (process.env.npm_config_user_agent?.startsWith("yarn/3")) {
164164
logger.warn(` WARNING: It looks like you are using Yarn 3. This is currently not supported,
165165
and likely to result in a crash. Please run create-t3-app with another
166-
package manager such as pnpm, npm, or Yarn Classic.
166+
package manager such as bun, npm, or Yarn Classic.
167167
See: https://github.com/t3-oss/create-t3-app/issues/57`);
168168
}
169169

cli/src/helpers/installDependencies.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ const runInstallCommand = async (
4747
});
4848

4949
return null;
50-
// When using yarn or pnpm, use the stdout stream and ora spinner to show the progress
51-
case "pnpm":
50+
// When using yarn or bun, use the stdout stream and ora spinner to show the progress
51+
case "bun":
5252
return execWithSpinner(projectDir, pkgManager, {
5353
onDataHandle: (spinner) => (data) => {
5454
const text = data.toString();

cli/src/utils/getUserPkgManager.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
export type PackageManager = "npm" | "pnpm" | "yarn" | "bun";
1+
export type PackageManager = "npm" | "bun" | "yarn" | "bun";
22

33
export const getUserPkgManager: () => PackageManager = () => {
4-
// This environment variable is set by npm and yarn but pnpm seems less consistent
4+
// This environment variable is set by npm and yarn but bun seems less consistent
55
const userAgent = process.env.npm_config_user_agent;
66

77
if (userAgent) {
88
if (userAgent.startsWith("yarn")) {
99
return "yarn";
10-
} else if (userAgent.startsWith("pnpm")) {
11-
return "pnpm";
10+
} else if (userAgent.startsWith("bun")) {
11+
return "bun";
1212
} else if (userAgent.startsWith("bun")) {
1313
return "bun";
1414
} else {

cli/src/utils/renderTitle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const renderTitle = () => {
1818

1919
// resolves weird behavior where the ascii is offset
2020
const pkgManager = getUserPkgManager();
21-
if (pkgManager === "yarn" || pkgManager === "pnpm") {
21+
if (pkgManager === "yarn" || pkgManager === "bun") {
2222
console.log("");
2323
}
2424
console.log(t3Gradient.multiline(TITLE_TEXT));

cli/template/base/_gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ next-env.d.ts
2929
npm-debug.log*
3030
yarn-debug.log*
3131
yarn-error.log*
32-
.pnpm-debug.log*
32+
.bun-debug.log*
3333

3434
# local env files
3535
# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables

0 commit comments

Comments
 (0)