Skip to content

fix(pnpm): add pnpm-workspace.yaml - #313

Merged
Samk13 merged 1 commit into
inveniosoftware:masterfrom
oarepo:mirekys/fix-pnpm-workspace
Nov 6, 2026
Merged

Samk13 merged 1 commit into
inveniosoftware:masterfrom
oarepo:mirekys/fix-pnpm-workspace

Conversation

@mirekys

@mirekys mirekys commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

❤️ Thank you for your contribution!

Description

  • add pnpm-workspace as after pnpm 11 its required to declare if the postscript should run.

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Frontend

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.

* add pnpm-workspace as after pnpm 11 its required to declare
  if the postscript should run.
@mirekys

mirekys commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

@utnapischtim here's one more PR needed to make react-search kit installable into current invenio rdm master branch

@utnapischtim

Copy link
Copy Markdown

@mirekys we have a pnpm-workspace.yaml file in invenio-assets. why do we need another one here? how is this in react-searchkit used?

@mirekys

mirekys commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

@mirekys we have a pnpm-workspace.yaml file in invenio-assets. why do we need another one here? how is this in react-searchkit used?

That one doesn't seem to apply when local-installing the JS package as:

invenio-cli assets install ../react-18-migration/react-searchkit
Installing React module...
Installing dependent packages...
✓ Lockfile passes supply-chain policies (verified 3h ago)
Lockfile is up to date, resolution step is skipped
Packages: +1458
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1458, reused 1458, downloaded 0, added 1458, done

dependencies:
+ @babel/runtime 7.29.10
+ @visx/responsive 3.12.0
+ @visx/scale 3.12.0
+ @visx/shape 3.12.0
+ i18next 20.6.1
+ luxon 1.28.1

devDependencies:
+ @babel/cli 7.29.7
+ @cfaester/enzyme-adapter-react-18 0.8.0
+ @inveniosoftware/eslint-config-invenio 2.1.0
+ @rollup/plugin-alias 3.1.9
+ @rollup/plugin-babel 5.3.1
+ @rollup/plugin-commonjs 15.1.0
+ @rollup/plugin-json 4.1.0
+ @rollup/plugin-node-resolve 9.0.0
+ axios 1.21.0
+ axios-mock-adapter 1.22.0
+ enzyme 3.11.0
+ i18next-browser-languagedetector 6.1.8
+ i18next-conv 10.2.0
+ i18next-scanner 3.3.0
+ json 10.0.0
+ lodash 4.18.1
+ qs 6.17.1
+ react 18.3.1
+ react-dom 18.3.1
+ react-i18next 11.18.6
+ react-overridable 1.1.0
+ react-redux 7.2.9
+ react-scripts 5.0.1
+ redux 4.2.1
+ redux-mock-store 1.5.5
+ redux-thunk 2.4.2
+ rimraf 3.0.2
+ rollup 2.80.0
+ rollup-plugin-local-resolve 1.0.7
+ rollup-plugin-peer-deps-external 2.2.4
+ rollup-plugin-postcss 4.0.2
+ sass 1.107.1
+ semantic-ui-css 2.5.0
+ semantic-ui-react 3.0.0-beta.2
+ util 0.12.5
Error: ERR_PNPM_IGNORED_BUILDS

  × installing dependencies
  ╰─▶ Ignored build scripts: @parcel/watcher@2.6.0, core-js-pure@3.51.0, core-js@3.51.0
  help: Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts.

Failed to install React module.
Errors: Unable to install dependent packages. Got error code {status_code}

@mirekys

mirekys commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

@mirekys we have a pnpm-workspace.yaml file in invenio-assets. why do we need another one here? how is this in react-searchkit used?

That one doesn't seem to apply when local-installing the JS package as:

invenio-cli assets install ../react-18-migration/react-searchkit
Installing React module...

...

  • util 0.12.5
    Error: ERR_PNPM_IGNORED_BUILDS

    × installing dependencies
    ╰─▶ Ignored build scripts: @parcel/watcher@2.6.0, core-js-pure@3.51.0, core-js@3.51.0
    help: Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts.

Failed to install React module.
Errors: Unable to install dependent packages. Got error code {status_code}

I noticed we did similar fix in react-invenio-forms: inveniosoftware/react-invenio-forms@234e7fd

@utnapischtim

Copy link
Copy Markdown

does this have to do with local installation over the linking feature of pnpm?

@utnapischtim

Copy link
Copy Markdown

this seems not of a problem when i install it from npm registry.

@mirekys

mirekys commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

does this have to do with local installation over the linking feature of pnpm?

Yes it fails whenever pnpm build runs, which is the case of local linking & publishing CI

Comment thread pnpm-workspace.yaml
@@ -0,0 +1,4 @@
allowBuilds:
"@parcel/watcher": false

@Samk13 Samk13 Nov 5, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we need this one?
and if this is needed, should we update this as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it comes from this error: #313 (comment), I suspect it is because sass dependency (not in RIF package) https://github.com/inveniosoftware/react-searchkit/blob/master/package.json#L88

@Samk13
Samk13 merged commit 8ad8d45 into inveniosoftware:master Nov 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants