diff --git a/README.md b/README.md index 0f83eb6..5cd73ce 100644 --- a/README.md +++ b/README.md @@ -16,16 +16,14 @@ It's a monorepo with npm packages, all installable independently - [storagefy](./packages/storagefy/): LocalStorage helper - [example](https://github.com/tassioFront/frontend-pattern/blob/main/src/helpers/useInfo.ts#L6); - [http-front-cache](./packages/http-front-cache): Provide a simple and efficient way to cache the results of service functions in the browser; - ## Installing utility packages -- create the GITHUB_TOKEN in [personal-access-tokens-classic](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic) -- create a `.npmrc` file in the root of the project with the following content: -``` -//npm.pkg.github.com/:_authToken=GITHUB_TOKEN -@open-ish:registry=https://npm.pkg.github.com -``` -- install any package you want +NPM packages are available on npmjs.com, so you can install them using npm or yarn and following the anatomy `utility-PACKAGE_NAME`. Ex: -more info in [github docs](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry) +```bash +npm i utility-http-front-cache +``` +```bash +yarn add utility-storagefy +``` diff --git a/packages/storagefy/package.json b/packages/storagefy/package.json index eb1fa40..cd5c093 100644 --- a/packages/storagefy/package.json +++ b/packages/storagefy/package.json @@ -1,5 +1,5 @@ { - "name": "@open-ish/utility-storagefy", + "name": "utility-storagefy", "version": "0.0.0-semantic-release", "type": "commonjs", "repository": { @@ -7,9 +7,6 @@ "url": "https://github.com/open-ish/utility.git", "directory": "packages/storagefy" }, - "publishConfig": { - "registry": "https://npm.pkg.github.com" - }, "main": "src/index.js", "types": "src/index.d.ts", "license": "MIT" diff --git a/packages/trycatchfy/package.json b/packages/trycatchfy/package.json index c01fef2..3ada925 100644 --- a/packages/trycatchfy/package.json +++ b/packages/trycatchfy/package.json @@ -1,5 +1,5 @@ { - "name": "@open-ish/utility-trycatchfy", + "name": "utility-trycatchfy", "version": "0.0.0-semantic-release", "type": "commonjs", "repository": { @@ -7,9 +7,6 @@ "url": "https://github.com/open-ish/utility.git", "directory": "packages/trycatchfy" }, - "publishConfig": { - "registry": "https://npm.pkg.github.com" - }, "main": "src/index.js", "types": "src/index.d.ts", "license": "MIT"