Skip to content

Commit

Permalink
fix: replace all instances of yarn with pnpm (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
wopian committed Apr 25, 2023
1 parent 124adfc commit 9f76d28
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 33 deletions.
5 changes: 0 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
* text=auto eol=lf

.yarn/ export-ignore

/.yarn/releases/** binary
/.yarn/plugins/** binary
9 changes: 2 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,15 @@ jobs:
run: pnpm install --no-frozen-lockfile # For some reason, pnpm install fails with a frozen lockfile

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

- name: Copy Files
run: |
cp package.json dist/package.json
cp yarn.lock dist/yarn.lock
cp .yarnrc.yml dist/.yarnrc.yml
cp pnpm-lock.yaml dist/pnpm-lock.yaml
cp knexfile.js dist/knexfile.js
mkdir -p dist/migrations
cp -r migrations/ dist/
mkdir -p dist/.yarn/releases
cp -r .yarn/releases/ dist/.yarn/
mkdir -p dist/.yarn/plugins
cp -r .yarn/plugins/ dist/.yarn/
- name: Deploy Changes
uses: wopian/git-publish-subdir-action@develop
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
run: pnpm install --no-frozen-lockfile # For some reason, pnpm install fails with a frozen lockfile

- name: Run Linter
run: yarn lint
run: pnpm lint

- name: Run Tests
run: yarn coverage
run: pnpm coverage

- name: Create Release
if: success() && github.ref == 'refs/heads/develop'
run: yarn semantic-release
run: pnpm semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
11 changes: 0 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
Expand Down Expand Up @@ -65,9 +63,6 @@ typings/
# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test
Expand Down Expand Up @@ -106,9 +101,3 @@ typings/
dist/
*.pub
*.pem
.yarn/cache
.yarn/unplugged
.yarn/sdks
.yarn/*.gz
.pnp.cjs
.pnp.loader.mjs
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,35 @@ A records and leaderboard bot for the [Zeepkist Discord server](https://discord.
## First-time Project Setup

```sh
yarn
yarn dlx @yarnpkg/sdks vscode
pnpm install
```

### Compile and Hot-Reload for Development

```sh
yarn dev
pnpm dev
```

### Type-Check, Compile and Minify for Production

```sh
yarn build
pnpm build
```

### Lint with [ESLint](https://eslint.org/)

```sh
yarn lint
pnpm lint
```

### Run Tests

```sh
yarn test
pnpm test
```

### Run Tests with Coverage

```sh
yarn coverage
pnpm coverage
```

0 comments on commit 9f76d28

Please sign in to comment.