Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

chore: scaffold @alook/shared

Genere4979784cdde
diff --git a/src/shared/package.json b/src/shared/package.json
index c31277fe0..588ab79aa 100644
--- a/src/shared/package.json
+++ b/src/shared/package.json
@@ -1,10 +1,13 @@
{
"name": "@alook/shared",
+ "version": "0.0.1",
"private": true,
- "version": "0.1.0",
- "type": "module",
- "exports": { ".": "./index.ts" },
+ "exports": { ".": "./src/index.ts" },
+ "scripts": { "test": "vitest run", "typecheck": "tsc --noEmit" },
"dependencies": {
- "zod": "^3.24"
- }
+ "drizzle-orm": "^0.39.0",
+ "zod": "^3.24",
+ "nanoid": "^5.1.7"
+ },
+ "devDependencies": { "typescript": "latest", "vitest": "^4.1.3", "@types/node": "latest" }
}
diff --git a/src/shared/src/index.ts b/src/shared/src/index.ts
new file mode 100644
index 000000000..225c4b457
--- /dev/null
+++ b/src/shared/src/index.ts
@@ -0,0 +1,2 @@
+// @alook/shared — populated in Phase 1
+export {}
diff --git a/src/shared/tsconfig.json b/src/shared/tsconfig.json
index 39a942720..776e1ef3b 100644
--- a/src/shared/tsconfig.json
+++ b/src/shared/tsconfig.json
@@ -1,16 +1,7 @@
{
"compilerOptions": {
- "target": "ES2022",
- "module": "esnext",
- "moduleResolution": "bundler",
- "strict": true,
- "esModuleInterop": true,
- "skipLibCheck": true,
- "declaration": true,
- "composite": true,
- "outDir": "dist"
+ "target": "ES2022", "module": "ESNext", "moduleResolution": "bundler",
+ "declaration": true, "outDir": "./dist", "rootDir": "./src", "strict": true
},
- "include": [
- "*.ts"
- ]
-}
\ No newline at end of file
+ "include": ["src"]
+}
diff --git a/src/shared/vitest.config.ts b/src/shared/vitest.config.ts
new file mode 100644
index 000000000..1066d80b4
--- /dev/null
+++ b/src/shared/vitest.config.ts
@@ -0,0 +1,8 @@
+import { defineConfig, mergeConfig } from "vitest/config"
+import shared from "../../vitest.shared"
+
+export default mergeConfig(shared, defineConfig({
+ test: {
+ include: ["test/**/*.test.ts"],
+ },
+}))