Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn prisma generate is running on install, even if I'm not using prisma #32

Closed
floydspace opened this issue Feb 9, 2024 · 2 comments · Fixed by #33
Closed

yarn prisma generate is running on install, even if I'm not using prisma #32

floydspace opened this issue Feb 9, 2024 · 2 comments · Fixed by #33

Comments

@floydspace
Copy link

pothos-plugin-effect@1.0.0 is broken, I cannot install it, it fails with:

👾 install | pnpm i --no-frozen-lockfile
Scope: all 10 workspace projects
 WARN  7 deprecated subdependencies found: @sinonjs/fake-timers@10.2.0, querystring@0.2.0, resolve-url@0.2.1, sane@4.1.0, source-map-resolve@0.5.3, source-map-url@0.4.1, urix@0.1.0
Packages: +34
++++++++++++++++++++++++++++++++++
Progress: resolved 1455, reused 1425, downloaded 0, added 0, done
node_modules/.pnpm/pothos-plugin-effect@1.0.0_@pothos+core@3.41.0_effect@2.3.1_graphql@16.8.1/node_modules/pothos-plugin-effect: Running postinstall script, failed in 283ms
.../node_modules/pothos-plugin-effect postinstall$ yarn prisma generate
│ yarn run v1.22.19
│ error Could not open cafile: EISDIR: illegal operation on a directory, read
│ error Command "prisma" not found.
│ info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
└─ Failed in 283ms at /Users/victor/Projects/PMS/pms-core/node_modules/.pnpm/pothos-plugin-effect@1.0.0_@pothos+core@3.41.0_effect@2.3.1_graphql@16.8.1/node_modules/pothos-plugin-effect
 ELIFECYCLE  Command failed with exit code 1.
/Users/victor/Projects/PMS/pms-core/node_modules/.pnpm/projen@0.79.7_constructs@10.3.0/node_modules/projen/src/task-runtime.ts:204
          throw new Error(
                ^

installing prisma as a dependency does not help either

imo postintall script should not be part of this package.

@iamchanii
Copy link
Owner

Thank you for report an issue. I just published snapshot version which removed postinstalll script on package.json. Let me know it resolved:

pnpm i pothos-plugin-effect@0.0.0-20240209215520

@floydspace
Copy link
Author

works, thanks

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 a pull request may close this issue.

2 participants