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

⚙️Migrate from yarn to pnpm #59

Merged
merged 5 commits into from
Jan 2, 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
11 changes: 8 additions & 3 deletions .github/workflows/build-status-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ jobs:
with:
deno-version: ${{ vars.DENO_VERSION }}

- name: Setup PNPM (${{ vars.PNPM_VERSION }})
uses: pnpm/action-setup@v2
with:
version: ${{ vars.PNPM_VERSION }}

- name: Setup Docusaurus
run: yarn install
run: pnpm install

- name: "Build"
run: yarn build
- name: Build
run: pnpm build
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,21 @@ jobs:
with:
node-version: ${{ vars.NODE_VERSION }}

- name: Setup YARN
run: npm install --global yarn
- name: Setup PNPM (${{ vars.PNPM_VERSION }})
uses: pnpm/action-setup@v2
with:
version: ${{ vars.PNPM_VERSION }}

- name: Setup Docusaurus
run: yarn install
run: pnpm install

- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: ${{ vars.DENO_VERSION }}

- name: Build Site
run: yarn build
run: pnpm build

- name: Setup Pages
uses: actions/configure-pages@v4 # https://github.com/marketplace/actions/configure-github-pages
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"cSpell.words": [
"CICD",
"clsx",
"Kinson",
"preinstall",
"typecheck",
"Velaptor"
],
"files.exclude": {
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
"private": true,
"scripts": {
"docusaurus": "docusaurus",
"start": "yarn install && docusaurus start",
"build": "yarn install && docusaurus build",
"start": "pnpm i && docusaurus start",
"build": "pnpm i && docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc",
"clean": "@powershell Remove-Item .\\node_modules -Force -Recurse",
"reinstall-deps": "yarn run clean && yarn"
"clean": "node -e \"var fs = require('fs'); fs.rmdirSync('./node_modules', { recursive: true });\"",
"reinstall-deps": "pnpm run clean && pnpm i",
"preinstall": "npx only-allow pnpm"
},
"dependencies": {
"@docusaurus/core": "3.0.1",
Expand Down
Loading