@svadmin/create 0.39.1 → 0.40.1

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
@@ -241,6 +241,13 @@ bunx @svadmin/create lite init . --write
241
241
  ```
242
242
 
243
243
  The generator creates one `[resource]` route for all resources plus the shared
244
- `src/lib/svadmin-lite.ts` adapter. Your existing `$lib/admin` module only needs
244
+ `src/lib/svadmin-lite.ts` adapter. Your existing `#lib/admin.js` module only needs
245
245
  to export `resources` and `dataProvider`; resources are resolved dynamically at
246
246
  request time. Existing files are preserved, so rerunning the command is safe.
247
+
248
+ SvelteKit 3 replaced `$lib` with the `#lib` subpath imports, so `package.json`
249
+ must declare them (SvelteKit 2 projects can run `npx sv migrate sveltekit-3`):
250
+
251
+ ```json
252
+ { "imports": { "#lib": "./src/lib/index.js", "#lib/*": "./src/lib/*" } }
253
+ ```
@@ -1,4 +1,4 @@
1
- import { Type, type Static } from '@sinclair/typebox';
1
+ import { Type, type Static } from 'typebox';
2
2
  import { defineResource } from '@svadmin/core/resource-contract';
3
3
 
4
4
  export const customerInput = Type.Object({