@picked/vite-plugin-picked 0.0.107-next.3 → 0.0.107-next.5

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 CHANGED
@@ -24,15 +24,25 @@ export default defineConfig({
24
24
  })
25
25
  ```
26
26
 
27
- The plugin reads the project from `picked.config.ts`. To type `virtual:picked/data`, add
28
- `"@picked/vite-plugin-picked/client"` to `compilerOptions.types` in `tsconfig.json`.
29
-
30
- | Option | Default | Description |
31
- | ----------------- | -------------------- | -------------------------------------------------------------------------------- |
32
- | `mode` | `'bundle'` | `'api'` skips the build-time fetch and reads everything from the API at runtime. |
33
- | `generateTypes` | `true` | Generate types from the workspace schema on dev and build. |
34
- | `disableLauncher` | `false` | Leave out the launcher page. |
35
- | `telemetry` | from `picked.config` | Send anonymous build-time telemetry. |
27
+ The plugin reads the project from `picked.config.ts`. The `data` field there sets where the
28
+ build gets its data:
29
+
30
+ | `data` | Build and dev server |
31
+ | ------------ | ---------------------------------------------------------------------------------------- |
32
+ | `'bundle'` | Default. Fetch the configuration and content from the API and embed them. |
33
+ | `'api'` | Embed nothing. The SDK reads everything from the API at runtime. |
34
+ | `'snapshot'` | Embed the committed `picked.snapshot.json`. No request. Write it with `npx picked pull`. |
35
+
36
+ The `mode` plugin option is deprecated; set `data` in `picked.config.ts` instead.
37
+
38
+ To type `virtual:picked/data`, add `"@picked/vite-plugin-picked/client"` to
39
+ `compilerOptions.types` in `tsconfig.json`.
40
+
41
+ | Option | Default | Description |
42
+ | ----------------- | -------------------- | ---------------------------------------------------------- |
43
+ | `generateTypes` | `true` | Generate types from the workspace schema on dev and build. |
44
+ | `disableLauncher` | `false` | Leave out the launcher page. |
45
+ | `telemetry` | from `picked.config` | Send anonymous build-time telemetry. |
36
46
 
37
47
  ## Docs
38
48