Skip to content

Commit 7bcac90

Browse files
committed
refactor: rename package and update configuration
- Renamed package from "libsql-memory" to "mcp-memory-libsql" in package.json. - Added repository, bugs, and homepage fields to package.json. - Introduced new scripts for changeset management in package.json. - Added pnpm-lock.yaml for dependency management. - Created .changeset directory with configuration and initial changelog. - Added GitHub Actions workflow for automated publishing on main branch.
1 parent 0f543f6 commit 7bcac90

6 files changed

Lines changed: 3665 additions & 3 deletions

File tree

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.5/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"mcp-memory-libsql": patch
3+
---
4+
5+
init from personal project

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
concurrency: ${{ github.workflow }}-${{ github.ref }}
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: pnpm/action-setup@v2
16+
with:
17+
version: 8
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 18
22+
cache: 'pnpm'
23+
24+
- run: pnpm install --frozen-lockfile
25+
26+
- name: Create Release Pull Request or Publish
27+
id: changesets
28+
uses: changesets/action@v1
29+
with:
30+
publish: pnpm run release
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
11
{
2-
"name": "libsql-memory",
2+
"name": "mcp-memory-libsql",
33
"version": "0.0.1",
44
"description": "LibSQL-based persistent memory tool for MCP",
55
"type": "module",
66
"main": "dist/index.js",
77
"types": "dist/index.d.ts",
88
"bin": {
9-
"libsql-memory": "./dist/index.js"
9+
"mcp-memory-libsql": "./dist/index.js"
1010
},
11+
"repository": {
12+
"type": "git",
13+
"url": "https://github.com/spences10/mcp-memory-libsql"
14+
},
15+
"bugs": {
16+
"url": "https://github.com/spences10/mcp-memory-libsql/issues"
17+
},
18+
"homepage": "https://github.com/spences10/mcp-memory-libsql#readme",
1119
"scripts": {
1220
"build": "tsc && chmod +x dist/index.js",
1321
"start": "node dist/index.js",
1422
"dev": "node --loader ts-node/esm src/index.ts",
1523
"test": "jest",
1624
"migrate": "node --loader ts-node/esm src/db/migrations/run.ts",
17-
"prepare": "pnpm run build"
25+
"prepare": "pnpm run build",
26+
"changeset": "changeset",
27+
"version": "changeset version",
28+
"release": "pnpm run build && changeset publish"
1829
},
1930
"dependencies": {
2031
"@libsql/client": "^0.14.0",
@@ -23,6 +34,7 @@
2334
"dotenv": "^16.4.7"
2435
},
2536
"devDependencies": {
37+
"@changesets/cli": "^2.27.11",
2638
"@types/jest": "^29.5.14",
2739
"jest": "^29.7.0",
2840
"ts-jest": "^29.2.5",

0 commit comments

Comments
 (0)