Skip to content

Commit ad6f3e5

Browse files
committed
Update to pnpm v10 and add workspace injection
Upgraded pnpm version requirement and installation instructions from v9 to v10 in workflow, README, and package.json. Added 'injectWorkspacePackages: true' to pnpm config files for improved workspace package management.
1 parent b5c3f31 commit ad6f3e5

File tree

6 files changed

+12
-3
lines changed

6 files changed

+12
-3
lines changed

.github/workflows/unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
node-version: '20.x'
2121

2222
- name: Install PNPM
23-
run: npm install -g pnpm@9
23+
run: npm install -g pnpm@10
2424
timeout-minutes: 5
2525

2626
- name: Install Dependencies

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,11 @@ A plugin is a directory in this repo of the form `plugins/`_plugin-name_`/v1` co
7777
Ensure `pnpm` is installed by running `pnpm -version`. If its not installed it can be installed by running the following command:
7878

7979
```bash
80-
npm install --location=global pnpm@9
80+
npm install --location=global pnpm@10
8181
```
8282

83+
If older version of `pnpm` is installed it can be upgraded by following `pnpm` update [documentation](https://pnpm.io/cli/self-update)
84+
8385
| **Description** | **Command** | **Notes** |
8486
| ------------------------------- | --------------------------- | -------------------------------------- |
8587
| Install all packages | `pnpm i` | e.g. after merging main |

examplePlugins/hybrid/v1/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"type": "module",
55
"author": "someone",
66
"license": "ISC",
7+
"scripts": {
8+
"test": "echo \"Error: no test specified\" && exit 1",
9+
"unitTest": "pnpm -w run test --ci --path=plugins/ExamplePlugin/v1"
10+
},
711
"dependencies": {
812
"lodash": "^4.17.21"
913
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"engines": {
1919
"node": ">=20",
20-
"pnpm": ">=8"
20+
"pnpm": ">=10"
2121
},
2222
"homepage": "https://github.com/squaredup/squaredup-plugin-public#readme",
2323
"devDependencies": {

pnpm-lock.yaml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ packages:
33
- 'scripts/**'
44
- 'examplePlugins/**'
55
- 'packages/**'
6+
7+
injectWorkspacePackages: true

0 commit comments

Comments
 (0)