-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
np hangs while publishing #725
Comments
I also see it hang, on the "Publishing package using Yarn Berry" step. I just started using np today, so it never worked for me previously. Also, I do not see the published package in npm. np - 9.2.0 |
@aoifelee, @holdenmatt I had the same problem and just now I was able to solve it. The problem was that in my Make sure that you haven't made the same mistake. "scripts": {
"eslint:fix": "eslint **/*.ts --fix --color",
"build:prod": "rimraf dist & cross-env rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
"build:test": "rimraf dist & cross-env MODE=test rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
"test:modules": "jest --verbose --roots test/cases/modules",
"test:integration": "jest --verbose --roots test/cases/integration",
"test:perfomance": "jest --verbose --roots test/cases/perfomance",
"test": "npm run build:test && npm run test:modules && npm run test:integration && npm run test:perfomance && rimraf dist",
- "publish": "npm run test && npm run build:prod && np --no-tests"
+ "release": "npm run test && npm run build:prod && np --no-tests"
}, |
@Deemoguse Thanks, that solved it for me! |
For me, the - "test": "vitest",
+ "test": "vitest run",
+ "test:dev": "vitest", Adjusting the This adjustment may help others experiencing similar issues with |
Description
np
was working for me previously, but now when I publish a package the CLI hangs indefinitely on:"Publishing package using npm"
When I check npm, the package is actually published, the CLI just never finished and needs to be aborted.
https://status.npmjs.org/ shows no issues.
Is there any workaround or way to see what it's stuck on?
Steps to reproduce
np
Expected behavior
The CLI finishes publishing and doesn't hang.
Environment
np - 9.2.0
Node.js - 20.9.0
npm - 10.1.0
OS - macOS 12.3.1
The text was updated successfully, but these errors were encountered: