Skip to content

Commit

Permalink
Merge pull request #89 from mansona/pnpm
Browse files Browse the repository at this point in the history
swap to pnpm
  • Loading branch information
ef4 authored Apr 9, 2024
2 parents 81d1daf + 70abc6b commit ff930c4
Show file tree
Hide file tree
Showing 7 changed files with 7,179 additions and 6,183 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,16 @@ jobs:
node: ['16', '18']
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
node-version: ${{ matrix.node }}

- uses: actions/cache@v2
id: yarn-cache
version: 7
- uses: actions/setup-node@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: yarn --frozen-lockfile
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
- name: yarn prepare
if: steps.yarn-cache.outputs.cache-hit == 'true'
run: yarn prepare
- run: yarn lint
- run: yarn test
node-version: ${{ matrix.node }}
cache: pnpm
- run: pnpm i --frozen-lockfile
- run: pnpm prepare
- run: pnpm lint
- run: pnpm test
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers=false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ maintain and augment.
## Basic Usage

```sh
yarn add fixturify-project
npm install --save-dev fixturify-project
```

```js
Expand Down
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Once the prep work is completed, the actual release is straight forward:
* First, ensure that you have installed your projects dependencies:

```sh
yarn install
pnpm install
```

* Second, ensure that you have obtained a
Expand Down
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"scripts": {
"build": "tsup-node src/index.ts --format cjs,esm --external 'fs-extra' --dts --clean",
"docs:generate": "readme-api-generator src/index.ts --ts",
"lint": "yarn prettier --check *.ts",
"prepare": "yarn build",
"prepublishOnly": "yarn build",
"lint": "pnpm prettier --check *.ts",
"prepare": "pnpm build",
"prepublishOnly": "pnpm build",
"test": "vitest run"
},
"dependencies": {
Expand All @@ -48,6 +48,7 @@
"release-it-lerna-changelog": "^4.0.1",
"tsup": "^5.12.5",
"typescript": "^5.1.6",
"vite": "^5.2.7",
"vitest": "^0.9.3"
},
"engines": {
Expand All @@ -70,9 +71,5 @@
"release": true,
"tokenRef": "GITHUB_AUTH"
}
},
"volta": {
"node": "18.17.0",
"yarn": "1.22.4"
}
}
Loading

0 comments on commit ff930c4

Please sign in to comment.