From 9dcb906636d2a4c6db8705614aa27411639a350b Mon Sep 17 00:00:00 2001 From: coreyphillips Date: Thu, 12 Sep 2024 21:04:16 -0400 Subject: [PATCH] docs: setup private npm Updated name field in package.json. Updated install instructions in README.md. --- README.md | 4 ++-- example/ios/Podfile.lock | 2 +- package-lock.json | 4 ++-- package.json | 3 ++- yarn.lock | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 68ab09f..a479bfb 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ React Native implementation of [pubky](https://github.com/pubky/pubky) ## Installation ```sh -npm install react-native-pubky +npm install @synonymdev/react-native-pubky ``` ## Local Installation @@ -23,7 +23,7 @@ yarn add path/to/react-native-pubky ## Usage ```js -import { auth } from 'react-native-pubky'; +import { auth } from '@synonymdev/react-native-pubky'; const authRes = await auth("pubkyAuthUrl", "secretKey"); if (authRes.isErr()) { diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 86c637d..cf7fe8a 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1757,7 +1757,7 @@ SPEC CHECKSUMS: React-logger: 8db32983d75dc2ad54f278f344ccb9b256e694fc React-Mapbuffer: 1c08607305558666fd16678b85ef135e455d5c96 React-microtasksnativemodule: 87b8de96f937faefece8afd2cb3a518321b2ef99 - react-native-pubky: 245e7fdcf4672621087a6c9f6a528c9e179b2a59 + react-native-pubky: 8378018c47c2106fb8fd641a4c9a94c809963b21 React-nativeconfig: 57781b79e11d5af7573e6f77cbf1143b71802a6d React-NativeModulesApple: 7ff2e2cfb2e5fa5bdedcecf28ce37e696c6ef1e1 React-perflogger: 8a360ccf603de6ddbe9ff8f54383146d26e6c936 diff --git a/package-lock.json b/package-lock.json index 24933e8..0e456d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "react-native-pubky", + "name": "@synonymdev/react-native-pubky", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "react-native-pubky", + "name": "@synonymdev/react-native-pubky", "version": "0.1.0", "license": "MIT", "workspaces": [ diff --git a/package.json b/package.json index dcac942..1f96fbc 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "react-native-pubky", + "name": "@synonymdev/react-native-pubky", "version": "0.1.0", "description": "React Native Implementation of Pubky", "source": "./src/index.tsx", @@ -67,6 +67,7 @@ }, "homepage": "https://github.com/pubky/react-native-pubky#readme", "publishConfig": { + "access": "restricted", "registry": "https://registry.npmjs.org/" }, "dependencies": { diff --git a/yarn.lock b/yarn.lock index 95618ac..09aefa7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5992,7 +5992,7 @@ react-native-builder-bob@^0.30.2: which "^2.0.2" yargs "^17.5.1" -"react-native-pubky-example@file:/Users/coreyphillips/Desktop/reat-native-pubky/quick/react-native-pubky/example": +"react-native-pubky-example@file:/Users/coreyphillips/Desktop/reat-native-pubky/npm-publish/react-native-pubky/example": version "0.0.1" resolved "file:example" dependencies: