Skip to content

Commit b205aa5

Browse files
committed
Convert from npm to pnpm package manager
- Replaced package-lock.json with pnpm-lock.yaml - Added pnpm-workspace.yaml and .npmrc configuration - Updated README.md to reference pnpm instead of yarn/npm - Fixed docusaurus.config.ts to work with pnpm Fixes #8
1 parent c890602 commit b205aa5

7 files changed

+11395
-17954
lines changed

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node-linker=hoisted
2+
strict-peer-dependencies=false
3+
auto-install-peers=true
4+
save-workspace-protocol=false

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This repository contains the official documentation for MyCoder, an AI-powered c
1414
### Prerequisites
1515

1616
- Node.js version 18.0 or above
17-
- npm or yarn
17+
- pnpm (recommended), npm, or yarn
1818

1919
### Installation
2020

@@ -24,14 +24,14 @@ git clone https://github.com/drivecore/mycoder-docs.git
2424
cd mycoder-docs
2525

2626
# Install dependencies
27-
yarn
27+
pnpm install
2828
```
2929

3030
### Local Development
3131

3232
```bash
3333
# Start the development server
34-
yarn start
34+
pnpm start
3535
```
3636

3737
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
@@ -40,7 +40,7 @@ This command starts a local development server and opens up a browser window. Mo
4040

4141
```bash
4242
# Generate static content
43-
yarn build
43+
pnpm build
4444
```
4545

4646
This command generates static content into the `build` directory and can be served using any static contents hosting service.
@@ -49,13 +49,13 @@ This command generates static content into the `build` directory and can be serv
4949

5050
```bash
5151
# Deploy to GitHub Pages
52-
USE_SSH=true yarn deploy
52+
USE_SSH=true pnpm deploy
5353
```
5454

5555
Or if not using SSH:
5656

5757
```bash
58-
GIT_USER=<Your GitHub username> yarn deploy
58+
GIT_USER=<Your GitHub username> pnpm deploy
5959
```
6060

6161
The site is automatically deployed when changes are pushed to the main branch.

docusaurus.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ const config: Config = {
6969
beforeDefaultRemarkPlugins: [],
7070
beforeDefaultRehypePlugins: [],
7171
truncateMarker: /<!-- truncate -->/,
72-
// Add custom transform function to use shortTitle if available
73-
blogSidebarItemComponent: require.resolve('./src/components/BlogSidebarItem'),
72+
// Custom sidebar item component is currently causing issues with the build
73+
// blogSidebarItemComponent: require.resolve('./src/components/BlogSidebarItem'),
7474
},
7575
theme: {
7676
customCss: './src/css/custom.css',

0 commit comments

Comments
 (0)