Skip to content

Conversation

@eliangcs
Copy link
Member

@eliangcs eliangcs commented Dec 10, 2025

Following up on #1204, this PR further cleans up some unused stuff after switching to pnpm.

run: pnpm smoke-test
working-directory: packages/cli
- name: Test npx resolution
run: npx . --version
Copy link
Member Author

@eliangcs eliangcs Dec 10, 2025

Choose a reason for hiding this comment

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

The command was npx zapier-platform-cli --version originally. I removed it in #1204 because it was always running the latest package version on the npm registry, and I didn't know how to get it to run the version in the local repo—until now. It's actually easy to tell npx to run the local version in the repo. Just use npx ..

"bump": "./scripts/bump.js",
"prepare": "husky",
"generate-types": "cd schema-to-ts && pnpm generate-types",
"preinstall": "npx only-allow pnpm"
Copy link
Member Author

@eliangcs eliangcs Dec 10, 2025

Choose a reason for hiding this comment

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

This is replaced by the ignore-scripts option in .npmrc and .yarnrc.

@eliangcs eliangcs marked this pull request as ready for review December 10, 2025 09:25
@eliangcs eliangcs requested a review from a team as a code owner December 10, 2025 09:25
@@ -0,0 +1,3 @@
# This project uses pnpm, but just in case npm is used, we want to avoid running
# pre/post install scripts by accident.
ignore-scripts = true
Copy link
Member Author

Choose a reason for hiding this comment

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

This broke the should build with ssh2 with .node files test. Not sure if there's a way to allow scripts only for certain packages. 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Ended up using two npm install commands to solve this.

npm install --ignore-scripts false [email protected]
npm install --ignore-scripts

See e03159d for detail.

@eliangcs eliangcs merged commit f1dc75d into main Dec 18, 2025
15 checks passed
@eliangcs eliangcs deleted the PDE-6714-more-pnpm branch December 18, 2025 04:39
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.

2 participants