@bayoudhi/moose-lib-serverless 0.5.0 → 0.6.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.
Files changed (2) hide show
  1. package/README.md +15 -2
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -156,11 +156,24 @@ These native/C++ dependencies are **not** bundled and will never be loaded:
156
156
 
157
157
  ## Moose CLI Compatibility
158
158
 
159
- This package ships a patched `moose-tspc` binary, so Moose CLI commands like `moose generate migration` and `moose migrate` work without needing `@514labs/moose-lib` installed.
159
+ This package includes the full **Moose CLI** (`@514labs/moose-cli`) as a dependency, so commands like `moose generate migration` and `moose migrate` work out of the box — no separate CLI installation needed.
160
160
 
161
- When you install `@bayoudhi/moose-lib-serverless`, `moose-tspc` is automatically placed in `node_modules/.bin/`. The Moose CLI finds it there and uses it to compile your TypeScript models with the correct compiler plugins.
161
+ It also ships a patched `moose-tspc` binary that rewires the compiler plugin path to `@bayoudhi/moose-lib-serverless`, so the Moose CLI can compile your TypeScript models without `@514labs/moose-lib` installed.
162
+
163
+ ### CI/CD Usage
164
+
165
+ ```yaml
166
+ # GitHub Actions example
167
+ steps:
168
+ - run: npm install
169
+ - run: npx moose generate migration
170
+ - run: npx moose migrate
171
+ ```
172
+
173
+ Both `moose` and `moose-tspc` are automatically available in `node_modules/.bin/` after `npm install`.
162
174
 
163
175
  No extra configuration is needed beyond the standard [Compiler Plugin Setup](#compiler-plugin-setup) above.
176
+
164
177
  ## Origin
165
178
 
166
179
  This package is derived from [MooseStack](https://github.com/514-labs/moosestack) by [Fiveonefour Labs](https://www.fiveonefour.com/), published under the MIT license.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bayoudhi/moose-lib-serverless",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Serverless-compatible subset of @514labs/moose-lib for AWS Lambda and edge runtimes. Provides OlapTable, Stream, Workflow, View, and other Moose SDK classes without native C++ dependencies (Kafka, Temporal). Includes a patched compiler plugin for type-driven schema injection.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -47,6 +47,7 @@
47
47
  "compiler-plugin"
48
48
  ],
49
49
  "dependencies": {
50
+ "@514labs/moose-cli": "0.6.416",
50
51
  "@clickhouse/client": "1.8.1",
51
52
  "csv-parse": "^5.5.5",
52
53
  "jose": "5.9.2",