AllInOneYT / react-native-thermal-printer

MIT License
102 stars 52 forks source link

Publishing error #28

Closed AllInOneYT closed 2 years ago

AllInOneYT commented 2 years ago

I am publishing this package using np, and still working on it.


Command failed with exit code 1: yarn publish
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
error Couldn't publish package: "https://registry.npmjs.org/react-native-thermal-printer: ESOCKETTIMEDOUT"
yarn publish v1.22.10
[1/4] Bumping version...
info Current version: 2.3.0
[2/4] Logging in...
[3/4] Publishing...
$ bob build
ℹ Building target commonjs
ℹ Cleaning up previous build at lib\commonjs
ℹ Compiling 1 files in src with babel
✔ Wrote files to lib\commonjs
ℹ Building target module
ℹ Cleaning up previous build at lib\module
ℹ Compiling 1 files in src with babel
✔ Wrote files to lib\module
ℹ Building target typescript
ℹ Cleaning up previous build at lib\typescript
ℹ Generating type definitions with tsc
✔ Wrote definition files to lib\typescript
info Visit https://yarnpkg.com/en/docs/cli/publish for documentation about this command.```
AllInOneYT commented 2 years ago

had to update the np version. but the versioning is a little bit messed up because of that error. the version now is 2.3.1 instead of 2.3.0

AllInOneYT commented 2 years ago

I accidentally submit the package with example folder included in the npm directory. I delete the folder temporary and release a new version 2.3.1 to overwrite it. I have added the .npmignore file for future publish