File tree Expand file tree Collapse file tree 7 files changed +66
-21
lines changed
Expand file tree Collapse file tree 7 files changed +66
-21
lines changed Original file line number Diff line number Diff line change 1414 runs-on : ubuntu-latest
1515 steps :
1616 - uses : actions/checkout@v4
17+
18+ - uses : pnpm/action-setup@v4
19+ with :
20+ version : 9
21+
22+ - uses : actions/setup-node@v4
23+ with :
24+ node-version : ' 20'
25+ cache : ' pnpm'
26+ registry-url : ' https://registry.npmjs.org'
27+
28+ - name : Install dependencies
29+ run : pnpm install
30+
31+ - name : Build package
32+ run : pnpm build
33+
1734 - name : Publish to npm
18- run : npm publish
35+ run : cd src && npm publish --access public
36+ env :
37+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ //registry.npmjs.org/:_authToken = ${ NODE_AUTH_TOKEN }
2+ registry = https://registry.npmjs.org/
3+ always-auth = true
14link-workspace-packages = true
25prefer-workspace-packages = true
Original file line number Diff line number Diff line change 11"use client" ;
22
3- import { privateKeyToMokiAccount } from 'moki-sdk /accounts'
3+ import { privateKeyToMokiAccount } from '@ moki-chat/core /accounts'
44
5- import { createMessageClient } from 'moki-sdk /messaging'
6- import { createProvider } from 'moki-sdk /provider'
5+ import { createMessageClient } from '@ moki-chat/core /messaging'
6+ import { createProvider } from '@ moki-chat/core /provider'
77import styles from "./styles.module.css"
8- import { MokiMessage } from 'moki-sdk /types/message' ;
8+ import { MokiMessage } from '@ moki-chat/core /types/message' ;
99import { useEffect , useMemo , useState } from 'react' ;
1010import { MessageBubble } from '../../components/MessageBubble' ;
1111import { FaChevronLeft } from "react-icons/fa" ;
Original file line number Diff line number Diff line change 1616 "packageManager" : " pnpm@10.20.0" ,
1717 "dependencies" : {
1818 "date-fns" : " ^4.1.0" ,
19- "moki-sdk " : " latest" ,
19+ "@ moki-chat/core " : " latest" ,
2020 "next" : " ^16.0.1" ,
2121 "react" : " ^19.2.0" ,
2222 "react-dom" : " ^19.2.0" ,
Original file line number Diff line number Diff line change 11{
22 "scripts" : {
3- "dev:react-chat" : " pnpm --filter moki-sdk dev & pnpm --filter react-chat dev" ,
4- "dev" : " pnpm --filter moki-sdk dev" ,
5- "build" : " pnpm --filter moki-sdk build" ,
6- "build:bundle" : " pnpm --filter moki-sdk build:bundle" ,
7- "test" : " pnpm --filter moki-sdk test" ,
8- "test:cov" : " pnpm --filter moki-sdk test:cov" ,
3+ "dev:react-chat" : " pnpm --filter @ moki-chat/core dev & pnpm --filter react-chat dev" ,
4+ "dev" : " pnpm --filter @ moki-chat/core dev" ,
5+ "build" : " pnpm --filter @ moki-chat/core build" ,
6+ "build:bundle" : " pnpm --filter @ moki-chat/core build:bundle" ,
7+ "test" : " pnpm --filter @ moki-chat/core test" ,
8+ "test:cov" : " pnpm --filter @ moki-chat/core test:cov" ,
99 "size" : " pnpm build && pnpm build:bundle && size-limit"
1010 },
1111 "devDependencies" : {
Original file line number Diff line number Diff line change 11{
2- "name" : " moki-sdk " ,
3- "version" : " 0.0 .0" ,
4- "description" : " Moki SDK" ,
2+ "name" : " @ moki-chat/core " ,
3+ "version" : " 0.1 .0" ,
4+ "description" : " Core SDK for Moki Chat - Web3 messaging and chat protocol " ,
55 "type" : " module" ,
66 "module" : " ./_esm/index.js" ,
77 "types" : " ./_types/index.d.ts" ,
5858 "packageManager" : " pnpm@10.20.0" ,
5959 "keywords" : [
6060 " moki" ,
61- " sdk"
61+ " moki-chat" ,
62+ " sdk" ,
63+ " web3" ,
64+ " chat" ,
65+ " messaging" ,
66+ " ethereum" ,
67+ " blockchain"
6268 ],
63- "author" : " " ,
64- "license" : " ISC" ,
69+ "author" : {
70+ "name" : " Web3Daveloper" ,
71+ "url" : " https://github.com/Web3Dave"
72+ },
73+ "contributors" : [
74+ {
75+ "name" : " Web3Daveloper" ,
76+ "url" : " https://github.com/Web3Dave"
77+ }
78+ ],
79+ "license" : " MIT" ,
80+ "homepage" : " https://github.com/Web3Dave/moki-sdk#readme" ,
81+ "bugs" : {
82+ "url" : " https://github.com/Web3Dave/moki-sdk/issues"
83+ },
6584 "dependencies" : {
6685 "@noble/curves" : " ~1.9.0" ,
6786 "@vitest/coverage-v8" : " ^4.0.6" ,
7190 "devDependencies" : {
7291 "tsup" : " ^8.5.0" ,
7392 "vitest" : " ^4.0.6"
93+ },
94+ "repository" : {
95+ "type" : " git" ,
96+ "url" : " https://github.com/Web3Dave/moki-sdk"
7497 }
7598}
You can’t perform that action at this time.
0 commit comments