chore: Update all imports to zod/v3
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
This commit is contained in:
committed by
Fredrik Adelöw
parent
5d8b4cddb9
commit
49171c9de4
@@ -56,7 +56,7 @@ its generated unit test. We will replace the existing placeholder code with our
|
||||
import { resolveSafeChildPath } from '@backstage/backend-plugin-api';
|
||||
import { createTemplateAction } from '@backstage/plugin-scaffolder-node';
|
||||
import fs from 'fs-extra';
|
||||
import { type z } from 'zod';
|
||||
import { type z } from 'zod/v3';
|
||||
|
||||
export const createNewFileAction = () => {
|
||||
return createTemplateAction({
|
||||
|
||||
@@ -290,7 +290,7 @@ and type for your field props to preventing having to duplicate the definitions:
|
||||
```tsx
|
||||
//packages/app/src/scaffolder/MyCustomExtensionWithOptions/MyCustomExtensionWithOptions.tsx
|
||||
...
|
||||
import { z } from 'zod';
|
||||
import { z } from 'zod/v3';
|
||||
import { makeFieldSchemaFromZod } from '@backstage/plugin-scaffolder';
|
||||
|
||||
const MyCustomExtensionWithOptionsFieldSchema = makeFieldSchemaFromZod(
|
||||
|
||||
Reference in New Issue
Block a user