open-index/open-npm huggingface dataset:
npm package: @hansogj/utils-ws
Description: [![example workflow](https://github.com/hansogj/utils-ws/actions/workflows/build.yml/badge.svg)](https://github.com/hansogj/utils-ws/actions/workflows/build.yml/badge.svg)
Latest version: 0.1.12

[![example workflow](https://github.com/hansogj/utils-ws/actions/workflows/build.yml/badge.svg)](https://github.com/hansogj/utils-ws/actions/workflows/build.yml/badge.svg)

# Various frontend utils and polyfills

This libs are using [npm workspaces](https://docs.npmjs.com/cli/v7/using-npm/workspaces) to achieve mono-repo multi-packages

## Workspaces

- [immer-reduxer](./packages/immer-reduxer/README.md)
- [find-js](./packages/find-js/README.md)
- [abonnement-js](./packages/abonnement-js/README.md)
- [array.utils](./packages/array.utils/README.md)
- [git-prompt](./packages/git-prompt/README.md)

[//]: <> (package-list-placeholder-do-not-remove)

## Install

```bash
pnpm i --frozen-lockfile
```

## Add new package

```bash
pnpm run generate -- "<name-of-package>"
```

Dependencies & devDependencies are installed into your new package with

```bash
cd  packages/<target>
pnpm add some-package
cd -
```

To in make internal dependencies, go to target package and do:

```bash
cd packages/<target>
pnpm add --workspace <name-of-package>
cd -
```

## Test & Build

From root run

```bash
pnpm run test
pnpm run build
```

These commands will test and build all the packages respectively

## Versioning

The pnpm-script _ws:version:set:all_ will ensure all packages are updated with same strategy, and git tagging is done right

```bash
pnpm run ws:version:set:all <strategy: major|minor|patch....>

```

Changing version to a single workspace package, simply enter the package and do

```bash
cd packages/<target>
pnpm version <strategy: major|minor|patch....>
../../scripts/ws-scripts.sh gitCommitTagPush
cd -
```

## Publish

```bash
pnpm run build
cd packages/<target>
pnpm publish
cd -

```

or

```bash
pnpm run build
pnpm -r publish --access=public

```