@trylight/app 0.1.6 → 0.1.7

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.
package/bin/light-db.mjs CHANGED
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env node
2
- // The app's schema files are TypeScript; tsx lets the CLI import them.
3
- import { register } from "tsx/esm/api";
2
+ import "./tsx.mjs";
4
3
 
5
- register();
6
4
  await import("../dist/db/cli.js");
package/bin/tsx.mjs ADDED
@@ -0,0 +1,9 @@
1
+ // The app's schema files are TypeScript; tsx lets the CLI import them. Both
2
+ // hooks: in an app whose package.json has no "type": "module" (Next.js), Node
3
+ // loads db/schema as CommonJS, and its extensionless imports resolve only
4
+ // through tsx's require hook.
5
+ import { register as registerCjs } from "tsx/cjs/api";
6
+ import { register } from "tsx/esm/api";
7
+
8
+ registerCjs();
9
+ register();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trylight/app",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "The Light SDK every v2 org app depends on: entities (Drizzle tables with a typed client), sign-in, contracts and in-app chat.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -12,6 +12,7 @@
12
12
  "url": "https://github.com/shubh9/mii.git",
13
13
  "directory": "packages/light-app"
14
14
  },
15
+ "packageManager": "pnpm@11.0.9",
15
16
  "files": [
16
17
  "dist",
17
18
  "bin"
@@ -41,6 +42,14 @@
41
42
  "default": "./dist/vite.js"
42
43
  }
43
44
  },
45
+ "scripts": {
46
+ "build": "rm -rf dist && tsc -p tsconfig.build.json",
47
+ "typecheck": "tsc --noEmit",
48
+ "lint": "eslint src test --max-warnings 0",
49
+ "test": "node --test --import tsx \"test/**/*.test.ts\"",
50
+ "check": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run build",
51
+ "prepack": "pnpm run build"
52
+ },
44
53
  "peerDependencies": {
45
54
  "@tanstack/react-query": ">=5.69",
46
55
  "drizzle-orm": ">=0.45",
@@ -73,12 +82,5 @@
73
82
  "typescript-eslint": "^8.70.1",
74
83
  "vite": "^8.2.0",
75
84
  "zod": "^4.6.5"
76
- },
77
- "scripts": {
78
- "build": "rm -rf dist && tsc -p tsconfig.build.json",
79
- "typecheck": "tsc --noEmit",
80
- "lint": "eslint src test --max-warnings 0",
81
- "test": "node --test --import tsx \"test/**/*.test.ts\"",
82
- "check": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run build"
83
85
  }
84
- }
86
+ }