@lunora/vite 1.0.0-alpha.38 → 1.0.0-alpha.381
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/LICENSE.md +6 -0
- package/README.md +11 -2
- package/dist/index.d.mts +440 -322
- package/dist/index.d.ts +440 -322
- package/dist/index.mjs +4 -163
- package/dist/packem_shared/CLASS_A_WIRING-qeJbUuf3.mjs +28 -0
- package/dist/packem_shared/LUNORA_API_UPDATED_EVENT-CO2Rv2re.mjs +1 -0
- package/dist/packem_shared/WORKER_STARTUP_HINT-COlRTY32.mjs +5 -0
- package/dist/packem_shared/buildStudioUrl-B9K0wAjC.mjs +1 -0
- package/dist/packem_shared/checkLunoraProxy-BNPgNWtV.mjs +1 -0
- package/dist/packem_shared/codegenPlugin-C1aM7GMx.mjs +3 -0
- package/dist/packem_shared/containerLogsPlugin-BCqWF6EU.mjs +1 -0
- package/dist/packem_shared/devStatePlugin-CF4GDvBn.mjs +1 -0
- package/dist/packem_shared/devVariablesPlugin-DbD6cSF0.mjs +1 -0
- package/dist/packem_shared/logStreamPlugin-EMXiy6pI.mjs +3 -0
- package/dist/packem_shared/lunoraSolutionFinder--J0x2mAM.mjs +1 -0
- package/dist/packem_shared/planViteRemoteBindings-DYUUW67d.mjs +1 -0
- package/dist/packem_shared/server-close-DWiO4Vxb.mjs +1 -0
- package/dist/packem_shared/wranglerValidatorPlugin-BlGHjTXZ.mjs +1 -0
- package/package.json +8 -9
- package/dist/packem_shared/CLASS_A_WIRING-DpX_WcOK.mjs +0 -112
- package/dist/packem_shared/DEV_WORKER_ENV_VALUE-Coo6bgVz.mjs +0 -36
- package/dist/packem_shared/STUDIO_PATH-yREc3Bbm.mjs +0 -221
- package/dist/packem_shared/WORKER_STARTUP_HINT-DhsXUW8k.mjs +0 -81
- package/dist/packem_shared/codegenPlugin-B_ayaObq.mjs +0 -207
- package/dist/packem_shared/containerLogsPlugin-DMssU3wb.mjs +0 -50
- package/dist/packem_shared/devVariablesPlugin-CDNSnvOP.mjs +0 -19
- package/dist/packem_shared/log-BjO9EWah.mjs +0 -8
- package/dist/packem_shared/logStreamPlugin-CqvZ17kd.mjs +0 -61
- package/dist/packem_shared/lunoraSolutionFinder-BKEAiUJP.mjs +0 -17
- package/dist/packem_shared/planViteRemoteBindings-QN5ncUS1.mjs +0 -50
- package/dist/packem_shared/reconcileWranglerCrons-PxGwfCp_.mjs +0 -29
- package/dist/packem_shared/wranglerValidatorPlugin-CEoJEghS.mjs +0 -66
package/LICENSE.md
CHANGED
|
@@ -103,3 +103,9 @@ Unless required by applicable law or agreed to in writing, software distributed
|
|
|
103
103
|
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
104
104
|
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
105
105
|
specific language governing permissions and limitations under the License.
|
|
106
|
+
|
|
107
|
+
<!-- DEPENDENCIES -->
|
|
108
|
+
<!-- /DEPENDENCIES -->
|
|
109
|
+
|
|
110
|
+
<!-- TYPE_DEPENDENCIES -->
|
|
111
|
+
<!-- /TYPE_DEPENDENCIES -->
|
package/README.md
CHANGED
|
@@ -68,9 +68,12 @@ With no options, `lunora()` runs codegen on save, validates `wrangler.jsonc`, in
|
|
|
68
68
|
|
|
69
69
|
```ts
|
|
70
70
|
lunora({
|
|
71
|
-
schemaDir: "lunora", // dir with schema.ts + function files
|
|
72
|
-
generatedDir: "lunora/_generated", // where api.ts/server.ts/dataModel.ts land
|
|
71
|
+
schemaDir: "lunora", // dir with schema.ts + function files (generated output lands in <schemaDir>/_generated)
|
|
73
72
|
apiSpec: "openapi", // "openapi" | "openrpc" | "both" | "none"
|
|
73
|
+
lazyFunctions: true, // optional per-module lazy function imports; lunora prepare/build/deploy regenerate with their own --lazy-functions flag
|
|
74
|
+
target: "cloudflare", // deploy target the emitted ctx.* surface is tailored to
|
|
75
|
+
allowUnauthenticatedShardAccess: false, // composed class-A worker: allow a client-named shard / fan-out with no authorizeShard
|
|
76
|
+
shard: { cdc: true, reactiveCache: true }, // class-A only: shard DO config for the composed entry (class B/C set this in their own worker entry)
|
|
74
77
|
studio: false, // disable the /__lunora studio
|
|
75
78
|
overlay: false, // disable the runtime error overlay
|
|
76
79
|
validateWrangler: false, // skip the wrangler.jsonc binding check
|
|
@@ -78,6 +81,12 @@ lunora({
|
|
|
78
81
|
});
|
|
79
82
|
```
|
|
80
83
|
|
|
84
|
+
`target` must match the target the CLI resolved for the run. `lunora build` and `lunora deploy` set `LUNORA_BUILD_TARGET`, and a plugin whose target differs fails the build rather than emit an artifact for another host. Set the same target in the plugin options and `lunora.config.*`, or leave it unset to use the project's.
|
|
85
|
+
|
|
86
|
+
`LUNORA_LAZY_FUNCTIONS=1` or `true` enables lazy imports even when
|
|
87
|
+
`lazyFunctions` is `false`, for both dev and production builds.
|
|
88
|
+
`lunora dev --lazy-functions` sets this variable for its bundler child process.
|
|
89
|
+
|
|
81
90
|
`lunora()` returns a flat `Plugin[]`; Vite flattens nested plugin arrays, so `plugins: [lunora()]` works without spreading.
|
|
82
91
|
|
|
83
92
|
### Error overlay
|