Skip to content

Commit 7f9b0b9

Browse files
committed
move to monorepo
1 parent c27a4c7 commit 7f9b0b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+773
-190
lines changed

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ coverage
55
dist
66
out
77
build
8-
.DS_Store
8+
e
99
*.pem
1010
.idea
1111
npm-debug.log*
@@ -20,6 +20,3 @@ yarn-error.log*
2020
.turbo
2121
todo.md
2222
plan.md
23-
eval/cache
24-
eval/results
25-
eval/data

biome.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.10/schema.json",
33
"assist": {
44
"enabled": true,
55
"actions": {
@@ -31,7 +31,7 @@
3131
},
3232
"overrides": [
3333
{
34-
"includes": ["test/**/*.ts"],
34+
"includes": ["**/test/**/*.ts", "packages/astchunk/test/**/*.ts"],
3535
"linter": {
3636
"rules": {
3737
"style": {

bun.lock

Lines changed: 133 additions & 38 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 11 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,23 @@
11
{
2-
"name": "@supermemory/astchunk",
3-
"version": "0.1.0",
4-
"description": "Type-safe components for scalable applications",
5-
"homepage": "https://github.com/supermemoryai/astchunk#readme",
6-
"bugs": {
7-
"url": "https://github.com/supermemoryai/astchunk/issues"
8-
},
9-
"license": "MIT",
10-
"files": [
11-
"dist"
2+
"name": "astchunk-monorepo",
3+
"private": true,
4+
"workspaces": [
5+
"packages/*"
126
],
13-
"repository": {
14-
"type": "git",
15-
"url": "git+https://github.com/supermemoryai/astchunk.git"
16-
},
177
"scripts": {
18-
"build": "bunup",
19-
"dev": "bunup --watch",
8+
"build": "bun run --filter '@supermemory/astchunk' build",
9+
"dev": "bun run --filter '@supermemory/astchunk' dev",
2010
"lint": "biome check .",
2111
"lint:fix": "biome check --write .",
2212
"format": "biome format --write .",
23-
"release": "bumpp --commit --push --tag",
24-
"test": "bun test",
25-
"test:coverage": "bun test --coverage",
26-
"test:watch": "bun test --watch",
27-
"type-check": "tsc --noEmit"
13+
"test": "bun run --filter '@supermemory/astchunk' test",
14+
"test:coverage": "bun run --filter '@supermemory/astchunk' test:coverage",
15+
"test:watch": "bun run --filter '@supermemory/astchunk' test:watch",
16+
"type-check": "bun run --filter '*' type-check",
17+
"eval": "bun run --filter '@supermemory/eval' start"
2818
},
2919
"devDependencies": {
3020
"@biomejs/biome": "^2.3.8",
31-
"@types/bun": "^1.3.4",
32-
"bumpp": "^10.3.2",
33-
"bunup": "^0.16.10",
3421
"typescript": "^5.9.3"
35-
},
36-
"peerDependencies": {
37-
"typescript": ">=4.5.0"
38-
},
39-
"peerDependenciesMeta": {
40-
"typescript": {
41-
"optional": true
42-
}
43-
},
44-
"type": "module",
45-
"exports": {
46-
".": {
47-
"import": {
48-
"types": "./dist/index.d.ts",
49-
"default": "./dist/index.js"
50-
}
51-
},
52-
"./package.json": "./package.json"
53-
},
54-
"module": "./dist/index.js",
55-
"types": "./dist/index.d.ts",
56-
"dependencies": {
57-
"effect": "^3.19.12",
58-
"tree-sitter-go": "^0.25.0",
59-
"tree-sitter-java": "^0.23.5",
60-
"tree-sitter-javascript": "^0.25.0",
61-
"tree-sitter-python": "^0.25.0",
62-
"tree-sitter-rust": "^0.24.0",
63-
"tree-sitter-typescript": "^0.23.2",
64-
"web-tree-sitter": "^0.26.3"
6522
}
6623
}

packages/astchunk/package.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"name": "@supermemory/astchunk",
3+
"version": "0.1.0",
4+
"description": "AST-aware code chunking for semantic search and RAG",
5+
"homepage": "https://github.com/supermemoryai/astchunk#readme",
6+
"bugs": {
7+
"url": "https://github.com/supermemoryai/astchunk/issues"
8+
},
9+
"license": "MIT",
10+
"files": [
11+
"dist"
12+
],
13+
"repository": {
14+
"type": "git",
15+
"url": "git+https://github.com/supermemoryai/astchunk.git"
16+
},
17+
"scripts": {
18+
"build": "bunup",
19+
"dev": "bunup --watch",
20+
"release": "bumpp --commit --push --tag",
21+
"test": "bun test",
22+
"test:coverage": "bun test --coverage",
23+
"test:watch": "bun test --watch",
24+
"type-check": "tsc --noEmit"
25+
},
26+
"devDependencies": {
27+
"@types/bun": "^1.3.4",
28+
"bumpp": "^10.3.2",
29+
"bunup": "^0.16.10"
30+
},
31+
"peerDependencies": {
32+
"typescript": ">=4.5.0"
33+
},
34+
"peerDependenciesMeta": {
35+
"typescript": {
36+
"optional": true
37+
}
38+
},
39+
"type": "module",
40+
"exports": {
41+
".": {
42+
"bun": "./src/index.ts",
43+
"import": {
44+
"types": "./dist/index.d.ts",
45+
"default": "./dist/index.js"
46+
}
47+
},
48+
"./package.json": "./package.json"
49+
},
50+
"module": "./dist/index.js",
51+
"types": "./dist/index.d.ts",
52+
"dependencies": {
53+
"effect": "^3.19.12",
54+
"tree-sitter-go": "^0.25.0",
55+
"tree-sitter-java": "^0.23.5",
56+
"tree-sitter-javascript": "^0.25.0",
57+
"tree-sitter-python": "^0.25.0",
58+
"tree-sitter-rust": "^0.24.0",
59+
"tree-sitter-typescript": "^0.23.2",
60+
"web-tree-sitter": "^0.26.3"
61+
}
62+
}

0 commit comments

Comments
 (0)