File tree 2 files changed +72
-2
lines changed
2 files changed +72
-2
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,17 @@ const peerDependencies = Object.fromEntries(
14
14
packageJsons . flatMap ( ( pj ) => Object . entries ( pj ?. peerDependencies ?? { } ) ) ,
15
15
) ;
16
16
17
+ const peerDependenciesMeta = Object . fromEntries (
18
+ Object . entries ( peerDependencies ) . map ( ( [ pName ] ) => [
19
+ pName ,
20
+ { optional : true } ,
21
+ ] ) ,
22
+ ) ;
23
+
17
24
const packageJson = {
18
25
...JSON . parse ( await fs . readFile ( 'package.json' ) ) ,
19
26
peerDependencies,
27
+ peerDependenciesMeta,
20
28
} ;
21
29
22
30
await fs . writeFile (
Original file line number Diff line number Diff line change 340
340
"vest" : " >=3.0.0" ,
341
341
"@vinejs/vine" : " ^2.0.0"
342
342
},
343
- "dependencies" : {
344
- "@standard-schema/utils" : " ^0.3.0"
343
+ "peerDependenciesMeta" : {
344
+ "react-hook-form" : {
345
+ "optional" : true
346
+ },
347
+ "@hookform/resolvers" : {
348
+ "optional" : true
349
+ },
350
+ "ajv" : {
351
+ "optional" : true
352
+ },
353
+ "ajv-errors" : {
354
+ "optional" : true
355
+ },
356
+ "arktype" : {
357
+ "optional" : true
358
+ },
359
+ "class-transformer" : {
360
+ "optional" : true
361
+ },
362
+ "class-validator" : {
363
+ "optional" : true
364
+ },
365
+ "effect" : {
366
+ "optional" : true
367
+ },
368
+ "fluentvalidation-ts" : {
369
+ "optional" : true
370
+ },
371
+ "io-ts" : {
372
+ "optional" : true
373
+ },
374
+ "fp-ts" : {
375
+ "optional" : true
376
+ },
377
+ "nope-validator" : {
378
+ "optional" : true
379
+ },
380
+ "@standard-schema/spec" : {
381
+ "optional" : true
382
+ },
383
+ "@standard-schema/utils" : {
384
+ "optional" : true
385
+ },
386
+ "superstruct" : {
387
+ "optional" : true
388
+ },
389
+ "typanion" : {
390
+ "optional" : true
391
+ },
392
+ "@sinclair/typebox" : {
393
+ "optional" : true
394
+ },
395
+ "@typeschema/main" : {
396
+ "optional" : true
397
+ },
398
+ "valibot" : {
399
+ "optional" : true
400
+ },
401
+ "vest" : {
402
+ "optional" : true
403
+ },
404
+ "@vinejs/vine" : {
405
+ "optional" : true
406
+ }
345
407
}
346
408
}
You can’t perform that action at this time.
0 commit comments