Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #292

Merged
merged 9 commits into from
Mar 9, 2024
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- uses: pnpm/[email protected]
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: 8

- name: Install Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
node-version: 18
cache: 'pnpm'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
token: ${{ secrets.UPDATE_TEMPLATE_SSH_KEY }}

- uses: pnpm/[email protected]
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: 8

- name: Install Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
node-version: 18
cache: 'pnpm'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
node-version: [18]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- uses: pnpm/[email protected]
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: 8

- name: Install Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
node-version: 18
cache: 'pnpm'
Expand Down
8 changes: 4 additions & 4 deletions examples/contentlayer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
},
"dependencies": {
"contentlayer": "0.3.4",
"fumadocs-contentlayer": "1.1.4",
"fumadocs-core": "10.0.3",
"fumadocs-ui": "10.0.3",
"fumadocs-contentlayer": "1.1.5",
"fumadocs-core": "10.0.4",
"fumadocs-ui": "10.0.4",
"next": "14.1.2",
"next-contentlayer": "0.3.4",
"react": "18.2.0",
Expand All @@ -23,7 +23,7 @@
"autoprefixer": "10.4.16",
"postcss": "8.4.32",
"tailwindcss": "^3.4.1",
"typescript": "5.3.3"
"typescript": "^5.4.2"
},
"overrides": {
"unified": "^11.0.4",
Expand Down
8 changes: 4 additions & 4 deletions examples/next-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"start": "next start"
},
"dependencies": {
"fumadocs-core": "10.0.3",
"fumadocs-mdx": "8.2.2",
"fumadocs-ui": "10.0.3",
"fumadocs-core": "10.0.4",
"fumadocs-mdx": "8.2.3",
"fumadocs-ui": "10.0.4",
"next": "14.1.2",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand All @@ -19,6 +19,6 @@
"@types/mdx": "^2.0.11",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.1",
"typescript": "5.3.3"
"typescript": "^5.4.2"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"rimraf": "^5.0.5",
"tsup": "8.0.2",
"turbo": "1.12.5",
"typescript": "5.3.3",
"typescript": "^5.4.2",
"vitest": "^1.3.1"
},
"pnpm": {
Expand Down
6 changes: 6 additions & 0 deletions packages/contentlayer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# fumadocs-contentlayer

## 1.1.5

### Patch Changes

- [email protected]

## 1.1.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/contentlayer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fumadocs-contentlayer",
"version": "1.1.4",
"version": "1.1.5",
"description": "The Contentlayer adapter for Fumadocs",
"keywords": [
"NextJs",
Expand Down
2 changes: 2 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# next-docs-zeta

## 10.0.4

## 10.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fumadocs-core",
"version": "10.0.3",
"version": "10.0.4",
"description": "The library for building a documentation website in Next.js",
"keywords": [
"NextJs",
Expand Down
29 changes: 29 additions & 0 deletions packages/create-app-versions/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "example-versions",
"version": "0.0.0",
"private": true,
"description": "Used to track dependency versions in create-fumadocs-app",
"license": "MIT",
"dependencies": {
"@types/mdx": "^2.0.11",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.1",
"autoprefixer": "^10.4.16",
"contentlayer": "^0.3.4",
"fumadocs-contentlayer": "^1.1.5",
"fumadocs-core": "^10.0.4",
"fumadocs-mdx": "^8.2.3",
"fumadocs-ui": "^10.0.4",
"next": "^14.1.2",
"next-contentlayer": "^0.3.4",
"postcss": "^8.4.32",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwindcss": "^3.4.1",
"typescript": "^5.4.2"
},
"overrides": {
"unified": "^11.0.4",
"mdx-bundler": "^10.0.1"
}
}
6 changes: 6 additions & 0 deletions packages/create-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# create-next-docs-app

## 10.0.4

### Patch Changes

- c28c80f: Bump dependencies in templates

## 10.0.3

## 10.0.2
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-fumadocs-app",
"version": "10.0.3",
"version": "10.0.4",
"description": "Create a new documentation site with Fumadocs",
"keywords": [
"NextJs",
Expand Down
42 changes: 18 additions & 24 deletions packages/create-app/src/create-app.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/* eslint-disable import/no-relative-packages -- read package versions */
import path from 'node:path';
import fs from 'node:fs/promises';
import corePkg from '../../core/package.json';
import uiPkg from '../../ui/package.json';
import mdxPkg from '../../mdx/package.json';
import contentlayerPkg from '../../contentlayer/package.json';
import versionPkg from '../../create-app-versions/package.json';
import type { PackageManager } from './auto-install';
import { autoInstall } from './auto-install';
import { sourceDir, cwd } from './constants';
Expand Down Expand Up @@ -90,50 +87,47 @@ function createPackageJson(
start: 'next start',
},
dependencies: {
next: '14.0.4',
'fumadocs-ui': uiPkg.version,
'fumadocs-core': corePkg.version,
react: '18.2.0',
'react-dom': '18.2.0',
next: versionPkg.dependencies.next,
'fumadocs-ui': versionPkg.dependencies['fumadocs-ui'],
'fumadocs-core': versionPkg.dependencies['fumadocs-core'],
react: versionPkg.dependencies.react,
'react-dom': versionPkg.dependencies['react-dom'],
},
devDependencies: {
'@types/react': '18.2.0',
'@types/react-dom': '18.2.1',
typescript: '5.3.3',
'@types/react': versionPkg.dependencies['@types/react'],
'@types/react-dom': versionPkg.dependencies['@types/react-dom'],
typescript: versionPkg.dependencies.typescript,
},
};

if (template === 'contentlayer') {
Object.assign(packageJson.dependencies, {
'fumadocs-contentlayer': contentlayerPkg.version,
contentlayer: '0.3.4',
'next-contentlayer': '0.3.4',
'fumadocs-contentlayer': versionPkg.dependencies['fumadocs-contentlayer'],
contentlayer: versionPkg.dependencies.contentlayer,
'next-contentlayer': versionPkg.dependencies['next-contentlayer'],
});

// TODO: Remove this after Contentlayer supports unified 11
Object.assign(packageJson, {
overrides: {
unified: '^11.0.4',
'mdx-bundler': '^10.0.1',
},
overrides: versionPkg.overrides,
});
}

if (template === 'fuma-docs-mdx') {
Object.assign(packageJson.dependencies, {
'fumadocs-mdx': mdxPkg.version,
'fumadocs-mdx': versionPkg.dependencies['fumadocs-mdx'],
});

Object.assign(packageJson.devDependencies, {
'@types/mdx': '2.0.10',
'@types/mdx': versionPkg.dependencies['@types/mdx'],
});
}

if (tailwindcss) {
Object.assign(packageJson.devDependencies, {
autoprefixer: '10.4.16',
postcss: '8.4.32',
tailwindcss: '3.4.1',
autoprefixer: versionPkg.dependencies.autoprefixer,
postcss: versionPkg.dependencies.postcss,
tailwindcss: versionPkg.dependencies.tailwindcss,
});
}

Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"@vercel/style-guide": "^6.0.0",
"eslint-config-turbo": "^1.12.4",
"eslint-plugin-tailwindcss": "^3.14.3",
"typescript": "^5.3.3"
"typescript": "^5.4.2"
}
}
6 changes: 6 additions & 0 deletions packages/mdx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# next-docs-mdx

## 8.2.3

### Patch Changes

- [email protected]

## 8.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fumadocs-mdx",
"version": "8.2.2",
"version": "8.2.3",
"description": "The built-in source for Fumadocs",
"keywords": [
"NextJs",
Expand Down
6 changes: 6 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# next-docs-ui

## 10.0.4

### Patch Changes

- [email protected]

## 10.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fumadocs-ui",
"version": "10.0.3",
"version": "10.0.4",
"description": "The framework for building a documentation website in Next.js",
"keywords": [
"NextJs",
Expand Down
Loading
Loading