🐜 fix(zero): Fix zero throwing error about tables being undefined (#281)

## Description
<!-- Briefly describe the purpose and scope of your changes -->


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a new environment variable for improved configuration
options.

- **Chores**
  - Updated and locked dependency versions for enhanced stability.
- Marked certain packages as private to prevent accidental publication.
- Updated package metadata and trusted dependencies for better
dependency management.

- **Refactor**
- Adjusted provider structure in the app to wrap children components
with an additional context provider.
  - Simplified and cleaned up provider context code for maintainability.
  - Improved import statements for clarity and type safety.

- **Style**
  - Reorganized import order for consistency.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Wanjohi
2025-05-19 06:23:50 +03:00
committed by GitHub
parent 14e4176344
commit dd20c0049d
9 changed files with 397 additions and 40 deletions

View File

@@ -1,13 +1,17 @@
{
"name": "@nestri/zero",
"version": "0.0.0",
"private": true,
"type": "module",
"dependencies": {
"@rocicorp/zero": "*",
"@nestri/core": "*"
"@nestri/core": "*",
"@rocicorp/zero": "0.20.2025051800"
},
"scripts": {
"dev": "zero-deploy-permissions && zero-cache",
"generate": "zero-deploy-permissions --output-format=sql --output-file=permissions.sql"
}
},
"trustedDependencies": [
"@rocicorp/zero-sqlite3"
]
}

View File

@@ -1,6 +1,6 @@
import { Size } from "@nestri/core/src/base-game/base-game.sql";
import { type Limitations } from "@nestri/core/src/steam/steam.sql";
import { ImageColor, ImageDimensions } from "@nestri/core/src/images/images.sql";
import type { Size } from "@nestri/core/src/base-game/base-game.sql";
import type { Limitations } from "@nestri/core/src/steam/steam.sql";
import type { ImageColor, ImageDimensions } from "@nestri/core/src/images/images.sql";
import {
json,
table,