Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
### Create a New App

```bash
pnpm create @farm.js/app@beta my-app --template basic --typescript
pnpm --config.minimumReleaseAge=0 create @farm.js/app@beta my-app --template basic --typescript
cd my-app
pnpm dev
```
Expand Down
4 changes: 3 additions & 1 deletion docs/src/app/docs/getting-started/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ Farm keeps the first project small: an app directory, a config file, package met
**Terminal**

```bash
pnpm create @farm.js/app@beta my-app --template basic --typescript
pnpm --config.minimumReleaseAge=0 create @farm.js/app@beta my-app --template basic --typescript
cd my-app
pnpm dev
```

This command follows the current `beta` dist-tag and explicitly selects the minimal Basic starter.
The scoped `minimumReleaseAge=0` setting lets pnpm 11 use a beta published within the last 24 hours
without changing your global supply-chain policy.
Use `pnpm create`, not `pnpm add`: pnpm resolves the `@farm.js/app` initializer name to the
published `@farm.js/create-app` package. The scaffolder installs React and all other starter
dependencies automatically. Use `--skip-install` if you only want it to generate the project
Expand Down
3 changes: 2 additions & 1 deletion docs/src/components/home/install-command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ const commands: readonly CommandOption[] = [
},
{
label: "pnpm",
command: "pnpm create @farm.js/app@beta my-app --template basic --typescript",
command:
"pnpm --config.minimumReleaseAge=0 create @farm.js/app@beta my-app --template basic --typescript",
brand: pnpmIconUrl,
kind: "install",
},
Expand Down
5 changes: 3 additions & 2 deletions packages/create-farm-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ Create a new FARMJS application
FARMJS is currently in beta.

```bash
pnpm create @farm.js/app@beta my-app --template basic --typescript
pnpm --config.minimumReleaseAge=0 create @farm.js/app@beta my-app --template basic --typescript
cd my-app
pnpm dev
```

The scaffolder installs React, React DOM, FARMJS, TypeScript, and the other starter dependencies
automatically. The command explicitly selects the minimal Basic starter. Use `pnpm create`, not
`pnpm add`; pnpm resolves this initializer command to the published `@farm.js/create-app` package.
Pass `--skip-install` when you only want to generate the project files.
The command scopes `minimumReleaseAge=0` to the initializer so pnpm 11 can resolve a beta published
within the last 24 hours. Pass `--skip-install` when you only want to generate the project files.

See the [FARMJS repository](https://github.com/farming-labs/farm.js) for documentation, examples, and support.
2 changes: 1 addition & 1 deletion packages/create-farm-app/templates/auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This project was generated from the FARMJS Auth template included with `@farm.js
## Quick start

```bash
pnpm create @farm.js/app@beta my-app --template auth --typescript
pnpm --config.minimumReleaseAge=0 create @farm.js/app@beta my-app --template auth --typescript
cd my-app
pnpm dev
```
Expand Down
2 changes: 1 addition & 1 deletion packages/create-farm-app/templates/better-auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This project was generated from the Better Auth template included with `@farm.js
## Quick start

```bash
pnpm create @farm.js/app@beta my-app --template better-auth --typescript
pnpm --config.minimumReleaseAge=0 create @farm.js/app@beta my-app --template better-auth --typescript
cd my-app
cp .env.example .env.local
```
Expand Down
2 changes: 1 addition & 1 deletion playground/src/app/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function BlogPostPage({ params, searchParams }: PageProps) {
<p>Ready to build your first Farm.js application? Let's get started!</p>

<h2>Installation</h2>
<pre><code>pnpm create @farm.js/app@beta my-app
<pre><code>pnpm --config.minimumReleaseAge=0 create @farm.js/app@beta my-app
cd my-app
pnpm dev</code></pre>

Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-docs-og.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ try {
</div>

<footer class="footer">
<div class="command"><span class="prompt">$</span><strong>pnpm create @farm.js/app@beta</strong> my-app</div>
<div class="command"><span class="prompt">$</span><strong>pnpm --config.minimumReleaseAge=0 create @farm.js/app@beta</strong> my-app</div>
<div class="url">farmjs.dev</div>
</footer>
</section>
Expand Down
Loading