@bayoudhi/moose-lib-serverless 0.4.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.
- package/README.md +21 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/moose-tspc.js +339 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -153,6 +153,27 @@ These native/C++ dependencies are **not** bundled and will never be loaded:
|
|
|
153
153
|
| `@temporalio/client` | Native Rust bridge; not available in serverless |
|
|
154
154
|
| `redis` | TCP connection pooling incompatible with short-lived functions |
|
|
155
155
|
|
|
156
|
+
|
|
157
|
+
## Moose CLI Compatibility
|
|
158
|
+
|
|
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
|
+
|
|
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`.
|
|
174
|
+
|
|
175
|
+
No extra configuration is needed beyond the standard [Compiler Plugin Setup](#compiler-plugin-setup) above.
|
|
176
|
+
|
|
156
177
|
## Origin
|
|
157
178
|
|
|
158
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.
|