Skip to content

Commit 02a6ac7

Browse files
switch to pnpm
1 parent 312302e commit 02a6ac7

File tree

40 files changed

+18250
-16261
lines changed

40 files changed

+18250
-16261
lines changed

.github/actions/install-deps/action.yml

+21-14
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,41 @@ runs:
99
with:
1010
node-version: 16.18
1111

12-
- name: restore workspace cache
13-
uses: actions/cache@v3
14-
id: node_modules
12+
- uses: pnpm/action-setup@v2
13+
with:
14+
version: 8.1.0
15+
run_install: false
16+
17+
- name: Get pnpm store directory
18+
shell: bash
19+
run: |
20+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
21+
22+
- uses: actions/cache@v3
23+
name: Setup pnpm cache
1524
with:
16-
path: |
17-
node_modules
18-
packages/*/node_modules
19-
key: node-modules-${{ runner.os }}-${{ hashFiles('yarn.lock', 'patches/*.patch') }}
25+
path: ${{ env.STORE_PATH }}
26+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
2027
restore-keys: |
21-
node-modules-${{ runner.os }}-
28+
${{ runner.os }}-pnpm-store-
2229
23-
- run: yarn install --frozen-lockfile --network-timeout 9000000
24-
if: steps.node_modules.outputs.cache-hit != 'true'
30+
- name: Install dependencies
2531
shell: bash
32+
run: pnpm install
2633

2734
- name: restore pkg cache
2835
uses: actions/cache@v3
2936
id: pkg
3037
with:
3138
path: ~/.pkg-cache
32-
key: pkg-cache-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
39+
key: pkg-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
3340
restore-keys: |
3441
pkg-cache-${{ runner.os }}-
3542
3643
- name: Install pkg node binaries
3744
if: steps.pkg.outputs.cache-hit != 'true'
3845
shell: bash
3946
run: |
40-
yarn pkg-fetch -n node16 -p macos -a x64
41-
yarn pkg-fetch -n node16 -p win -a x64
42-
yarn pkg-fetch -n node16 -p linux -a x64
47+
pnpm pkg-fetch -n node16 -p macos -a x64
48+
pnpm pkg-fetch -n node16 -p win -a x64
49+
pnpm pkg-fetch -n node16 -p linux -a x64

.npmrc

-2
This file was deleted.

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -82,29 +82,29 @@ Auto has an extensive plugin system and wide variety of official plugins. Make a
8282
To get set up, fork and clone the project then run the following command:
8383

8484
```bash
85-
yarn
85+
pnpm
8686
```
8787

8888
### Build/Typecheck
8989

9090
You must build at least once before running the tests or lint.
9191

9292
```bash
93-
yarn build
93+
pnpm build
9494
```
9595

9696
In watch mode:
9797

9898
```bash
99-
yarn start
99+
pnpm start
100100
```
101101

102102
### Installing the binary
103103

104104
Install the bundled binary onto your system. This requires the project to be built or in watch mode.
105105

106106
```bash
107-
yarn install-mac
107+
pnpm install-mac
108108
```
109109

110110
If running this for the first time you may also have to run the following command.
@@ -116,25 +116,25 @@ chmod +x /usr/local/bin/auto
116116
### Cleaning
117117

118118
```bash
119-
yarn clean
119+
pnpm clean
120120
```
121121

122122
### Linting
123123

124124
```bash
125-
yarn lint
125+
pnpm lint
126126
```
127127

128128
### Testing
129129

130130
```bash
131-
yarn test
131+
pnpm test
132132
```
133133

134134
### Run the docs
135135

136136
```bash
137-
yarn docs
137+
pnpm docs
138138
```
139139

140140
### Create a new plugin
@@ -147,7 +147,7 @@ The two arguments are:
147147
2. A description
148148

149149
```bash
150-
yarn create:plugin my-plugin "Do something really cool"
150+
pnpm create:plugin my-plugin "Do something really cool"
151151
```
152152

153153
### Create a new package
@@ -160,7 +160,7 @@ The two arguments are:
160160
2. A description
161161

162162
```bash
163-
yarn create:package my-package "Do something really cool"
163+
pnpm create:package my-package "Do something really cool"
164164
```
165165

166166
## :beers: Contributing :beers:
@@ -323,7 +323,7 @@ This project follows the [all-contributors](https://github.com/kentcdodds/all-co
323323

324324
### Adding a Contributor
325325

326-
To add a contributor run `yarn contributors:add`, choose "Add new contributor or edit contribution type" and follow the prompts.
326+
To add a contributor run `pnpm contributors:add`, choose "Add new contributor or edit contribution type" and follow the prompts.
327327

328328
## License
329329

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": "10.46.0",
3-
"npmClient": "yarn",
3+
"npmClient": "pnpm",
44
"packages": ["packages/*", "plugins/*"],
55
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
66
}

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
"auto": "chmod +x ./packages/cli/dist/bin/auto.js && ./packages/cli/dist/bin/auto.js",
3232
"contributors:add": "all-contributors",
3333
"contributors:generate": "all-contributors generate",
34-
"docs": "yarn docs:generate && ignite dev",
34+
"docs": "pnpm docs:generate && ignite dev",
3535
"docs:generate": "./docs/generate-command-docs.js",
36-
"docs:build": "yarn docs:generate && ignite build",
36+
"docs:build": "pnpm docs:generate && ignite build",
3737
"create:plugin": "./scripts/create-plugin.js",
3838
"create:package": "./scripts/create-package.js",
39-
"install-mac": "yarn lerna run bundle --scope=auto && gunzip -c ./packages/cli/binary/auto-macos.gz > /usr/local/bin/auto",
39+
"install-mac": "pnpm lerna run bundle --scope=auto && gunzip -c ./packages/cli/binary/auto-macos.gz > /usr/local/bin/auto",
4040
"postinstall": "patch-package"
4141
},
4242
"devDependencies": {
@@ -51,7 +51,7 @@
5151
"@typescript-eslint/eslint-plugin": "^4.1.1",
5252
"@typescript-eslint/parser": "^4.1.1",
5353
"all-contributors-cli": "^6.4.0",
54-
"change-case": "^4.0.0",
54+
"change-case": "^4.1.2",
5555
"command-line-docs": "^0.0.6",
5656
"copy-template-dir": "^1.4.0",
5757
"endent": "^2.1.0",
@@ -92,7 +92,7 @@
9292
],
9393
"*.{ts,tsx}": [
9494
"prettier --parser typescript --write",
95-
"yarn lint --fix"
95+
"pnpm lint --fix"
9696
]
9797
},
9898
"jest": {

packages/cli/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@
4343
"start": "npm run build -- -w",
4444
"lint": "eslint src --ext .ts",
4545
"test": "jest --maxWorkers=2",
46-
"bundle": "yarn inject-version && yarn package && yarn gzip",
46+
"bundle": "pnpm inject-version && pnpm package && pnpm gzip",
4747
"inject-version": "node scripts/inject-version.js",
4848
"package": "rimraf binary && pkg . --out-path binary",
4949
"gzip": "ls binary/auto* | xargs gzip"
5050
},
5151
"dependencies": {
52-
"@auto-it/core": "link:../core",
53-
"@auto-it/npm": "link:../../plugins/npm",
54-
"@auto-it/released": "link:../../plugins/released",
55-
"@auto-it/version-file": "link:../../plugins/version-file",
52+
"@auto-it/core": "workspace:*",
53+
"@auto-it/npm": "workspace:*",
54+
"@auto-it/released": "workspace:*",
55+
"@auto-it/version-file": "workspace:*",
5656
"await-to-js": "^3.0.0",
5757
"chalk": "^4.0.0",
5858
"command-line-application": "^0.10.1",

plugins/all-contributors/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"test": "jest --maxWorkers=2 --config ../../package.json"
3838
},
3939
"dependencies": {
40-
"@auto-it/bot-list": "link:../../packages/bot-list",
41-
"@auto-it/core": "link:../../packages/core",
40+
"@auto-it/bot-list": "workspace:*",
41+
"@auto-it/core": "workspace:*",
4242
"@octokit/rest": "^18.12.0",
4343
"all-contributors-cli": "6.19.0",
4444
"anymatch": "^3.1.1",

plugins/brew/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"test": "jest --maxWorkers=2 --config ../../package.json"
3737
},
3838
"dependencies": {
39-
"@auto-it/core": "link:../../packages/core",
39+
"@auto-it/core": "workspace:*",
4040
"fp-ts": "^2.5.3",
4141
"io-ts": "^2.1.2",
4242
"tslib": "2.1.0"

plugins/chrome/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"test": "jest --maxWorkers=2 --config ../../package.json"
3939
},
4040
"dependencies": {
41-
"@auto-it/core": "link:../../packages/core",
41+
"@auto-it/core": "workspace:*",
4242
"chrome-webstore-upload-cli": "^1.2.0",
4343
"fp-ts": "^2.5.3",
4444
"io-ts": "^2.1.2",

plugins/cocoapods/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"test": "jest --maxWorkers=2 --config ../../package.json"
3737
},
3838
"dependencies": {
39-
"@auto-it/core": "link:../../packages/core",
39+
"@auto-it/core": "workspace:*",
4040
"fp-ts": "^2.5.3",
4141
"io-ts": "^2.1.2",
4242
"semver": "^7.1.3",

plugins/conventional-commits/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"test": "jest --maxWorkers=2 --config ../../package.json"
3838
},
3939
"dependencies": {
40-
"@auto-it/core": "link:../../packages/core",
40+
"@auto-it/core": "workspace:*",
4141
"array.prototype.flatmap": "^1.2.2",
4242
"conventional-changelog-core": "^4.2.0",
4343
"conventional-changelog-preset-loader": "^2.3.4",

plugins/crates/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"test": "jest --maxWorkers=2 --config ../../package.json"
3939
},
4040
"dependencies": {
41-
"@auto-it/core": "link:../../packages/core",
41+
"@auto-it/core": "workspace:*",
4242
"env-ci": "^5.0.1",
4343
"semver": "^7.0.0",
4444
"toml": "^3.0.0",

plugins/docker/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"test": "jest --maxWorkers=2 --config ../../package.json"
3838
},
3939
"dependencies": {
40-
"@auto-it/core": "link:../../packages/core",
40+
"@auto-it/core": "workspace:*",
4141
"fp-ts": "^2.5.3",
4242
"io-ts": "^2.1.2",
4343
"semver": "^7.0.0",

plugins/exec/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"test": "jest --maxWorkers=2 --config ../../package.json"
3737
},
3838
"dependencies": {
39-
"@auto-it/core": "link:../../packages/core",
39+
"@auto-it/core": "workspace:*",
4040
"endent": "^2.1.0",
4141
"fp-ts": "^2.5.3",
4242
"fromentries": "^1.2.0",

plugins/first-time-contributor/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"test": "jest --maxWorkers=2 --config ../../package.json"
3737
},
3838
"dependencies": {
39-
"@auto-it/bot-list": "link:../../packages/bot-list",
40-
"@auto-it/core": "link:../../packages/core",
39+
"@auto-it/bot-list": "workspace:*",
40+
"@auto-it/core": "workspace:*",
4141
"array.prototype.flatmap": "^1.2.2",
4242
"endent": "^2.1.0",
4343
"tslib": "2.1.0",

plugins/gem/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"test": "jest --maxWorkers=2 --config ../../package.json"
3737
},
3838
"dependencies": {
39-
"@auto-it/core": "link:../../packages/core",
39+
"@auto-it/core": "workspace:*",
4040
"endent": "^2.1.0",
4141
"env-ci": "^5.0.1",
4242
"fast-glob": "^3.1.1",

plugins/gh-pages/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"test": "jest --maxWorkers=2 --config ../../package.json"
3737
},
3838
"dependencies": {
39-
"@auto-it/core": "link:../../packages/core",
39+
"@auto-it/core": "workspace:*",
4040
"endent": "^2.1.0",
4141
"fp-ts": "^2.5.3",
4242
"io-ts": "^2.1.2",

plugins/git-tag/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"test": "jest --maxWorkers=2 --config ../../package.json"
3737
},
3838
"dependencies": {
39-
"@auto-it/core": "link:../../packages/core",
39+
"@auto-it/core": "workspace:*",
4040
"semver": "^7.0.0",
4141
"tslib": "2.1.0"
4242
},

plugins/gradle/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"test": "jest --maxWorkers=2 --config ../../package.json"
3737
},
3838
"dependencies": {
39-
"@auto-it/core": "link:../../packages/core",
39+
"@auto-it/core": "workspace:*",
4040
"fp-ts": "^2.5.3",
4141
"io-ts": "^2.1.2",
4242
"semver": "^7.0.0",

plugins/jira/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"test": "jest --maxWorkers=2 --config ../../package.json"
3838
},
3939
"dependencies": {
40-
"@auto-it/core": "link:../../packages/core",
40+
"@auto-it/core": "workspace:*",
4141
"enquirer": "^2.3.4",
4242
"fp-ts": "^2.5.3",
4343
"io-ts": "^2.1.2",

plugins/magic-zero/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"test": "jest --maxWorkers=2 --config ../../package.json"
3737
},
3838
"dependencies": {
39-
"@auto-it/core": "link:../../packages/core",
39+
"@auto-it/core": "workspace:*",
4040
"fp-ts": "^2.5.3",
4141
"io-ts": "^2.1.2",
4242
"semver": "^7.0.0",

plugins/maven/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"test": "jest --maxWorkers=2 --config ../../package.json"
3939
},
4040
"dependencies": {
41-
"@auto-it/core": "link:../../packages/core",
41+
"@auto-it/core": "workspace:*",
4242
"fast-glob": "^3.1.1",
4343
"fp-ts": "^2.5.3",
4444
"io-ts": "^2.1.2",

plugins/microsoft-teams/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"test": "jest --maxWorkers=2 --config ../../package.json"
3838
},
3939
"dependencies": {
40-
"@auto-it/core": "link:../../packages/core",
40+
"@auto-it/core": "workspace:*",
4141
"fp-ts": "^2.5.3",
4242
"https-proxy-agent": "^5.0.0",
4343
"io-ts": "^2.1.2",

plugins/npm/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"test": "jest --maxWorkers=2 --config ../../package.json"
3939
},
4040
"dependencies": {
41-
"@auto-it/core": "link:../../packages/core",
42-
"@auto-it/package-json-utils": "link:../../packages/package-json-utils",
41+
"@auto-it/core": "workspace:*",
42+
"@auto-it/package-json-utils": "workspace:*",
4343
"await-to-js": "^3.0.0",
4444
"endent": "^2.1.0",
4545
"env-ci": "^5.0.1",

plugins/omit-commits/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"test": "jest --maxWorkers=2 --config ../../package.json"
3939
},
4040
"dependencies": {
41-
"@auto-it/core": "link:../../packages/core",
41+
"@auto-it/core": "workspace:*",
4242
"fp-ts": "^2.5.3",
4343
"io-ts": "^2.1.2",
4444
"tslib": "2.1.0"

0 commit comments

Comments
 (0)