pnpm-plugin-alex-857 1.0.31 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -41,13 +41,13 @@ This updates your `pnpm-workspace.yaml` with a `configDependencies` entry and in
41
41
 
42
42
  ```json
43
43
  "scripts": {
44
- "preinstall": "pnpm add --config pnpm-plugin-alex-857@latest && node node_modules/.pnpm-config/pnpm-plugin-alex-857/install-workspace.js",
44
+ "pnpm:devPreinstall": "pnpm add --config pnpm-plugin-alex-857@latest && node node_modules/.pnpm-config/pnpm-plugin-alex-857/install-workspace.js",
45
45
  "postinstall": "pnpm run install:catalog",
46
46
  "install:catalog": "node node_modules/.pnpm-config/pnpm-plugin-alex-857/install-catalog.js"
47
47
  }
48
48
  ```
49
49
 
50
- - **preinstall**: Ensures the latest plugin version is used and runs the workspace setup script.
50
+ - **pnpm:devPreinstall**: Runs **before** dependency resolution. Installs the plugin and runs install-workspace.js so `pnpm-workspace.yaml` has the catalog and packages **before** `catalog:` is resolved. This avoids `ERR_PNPM_CATALOG_ENTRY_NOT_FOUND_FOR_SPEC`.
51
51
  - **postinstall**: Runs after `pnpm install` and adds all catalog packages to the root (if not already present).
52
52
  - **install:catalog**: Manual script to add all catalog packages at once.
53
53
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pnpm-plugin-alex-857",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "A plugin for pnpm to use alex as a linter",
5
5
  "bin": {
6
6
  "install-catalog": "./install-catalog.js",