@lenso/organization 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ CREATE TABLE organizations (
2
+ id TEXT PRIMARY KEY,
3
+ version INTEGER NOT NULL CHECK (version BETWEEN 1 AND 9007199254740991),
4
+ state TEXT NOT NULL CHECK (json_valid(state) AND json_type(state) = 'object')
5
+ );
package/package.json CHANGED
@@ -1,6 +1,75 @@
1
1
  {
2
2
  "name": "@lenso/organization",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "license": "MIT",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/LioRael/lenso.git",
8
+ "directory": "packages/organization"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "migrations",
13
+ "README.md"
14
+ ],
15
+ "type": "module",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js"
20
+ },
21
+ "./plugin": {
22
+ "types": "./dist/plugin.d.ts",
23
+ "import": "./dist/plugin.js"
24
+ },
25
+ "./auth": {
26
+ "types": "./dist/auth.d.ts",
27
+ "import": "./dist/auth.js"
28
+ },
29
+ "./drizzle/pg": {
30
+ "types": "./dist/drizzle/pg.d.ts",
31
+ "import": "./dist/drizzle/pg.js"
32
+ },
33
+ "./drizzle/d1": {
34
+ "types": "./dist/drizzle/d1.d.ts",
35
+ "import": "./dist/drizzle/d1.js"
36
+ },
37
+ "./drizzle/schema-pg": {
38
+ "types": "./dist/drizzle/schema-pg.d.ts",
39
+ "import": "./dist/drizzle/schema-pg.js"
40
+ },
41
+ "./drizzle/schema-sqlite": {
42
+ "types": "./dist/drizzle/schema-sqlite.d.ts",
43
+ "import": "./dist/drizzle/schema-sqlite.js"
44
+ },
45
+ "./migrations/*": "./migrations/*"
46
+ },
47
+ "scripts": {
48
+ "build": "bun -e \"await import('node:fs/promises').then(({rm}) => rm('dist', {recursive: true, force: true}))\" && tsc -p tsconfig.build.json && bun build src/index.ts src/plugin.ts src/auth.ts src/drizzle/pg.ts src/drizzle/d1.ts src/drizzle/schema-pg.ts src/drizzle/schema-sqlite.ts --root src --outdir dist --target browser --packages external --splitting",
49
+ "typecheck": "tsc --noEmit -p tsconfig.json",
50
+ "test": "bun test test"
51
+ },
52
+ "devDependencies": {
53
+ "@cloudflare/workers-types": "5.20261008.1",
54
+ "@lenso/auth": "^0.3.0",
55
+ "@lenso/core": "^0.2.1",
56
+ "drizzle-orm": "0.45.3",
57
+ "miniflare": "5.20261006.0-alpha"
58
+ },
59
+ "peerDependencies": {
60
+ "@lenso/auth": "^0.3.0",
61
+ "@lenso/core": "^0.2.1",
62
+ "drizzle-orm": "^0.45.3"
63
+ },
64
+ "peerDependenciesMeta": {
65
+ "@lenso/auth": {
66
+ "optional": true
67
+ },
68
+ "@lenso/core": {
69
+ "optional": true
70
+ },
71
+ "drizzle-orm": {
72
+ "optional": true
73
+ }
74
+ }
75
+ }