File tree Expand file tree Collapse file tree 2 files changed +72
-2
lines changed Expand file tree Collapse file tree 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(
1414 packageJsons . flatMap ( ( pj ) => Object . entries ( pj ?. peerDependencies ?? { } ) ) ,
1515) ;
1616
17+ const peerDependenciesMeta = Object . fromEntries (
18+ Object . entries ( peerDependencies ) . map ( ( [ pName ] ) => [
19+ pName ,
20+ { optional : true } ,
21+ ] ) ,
22+ ) ;
23+
1724const packageJson = {
1825 ...JSON . parse ( await fs . readFile ( 'package.json' ) ) ,
1926 peerDependencies,
27+ peerDependenciesMeta,
2028} ;
2129
2230await fs . writeFile (
Original file line number Diff line number Diff line change 340340 "vest" : " >=3.0.0" ,
341341 "@vinejs/vine" : " ^2.0.0"
342342 },
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+ }
345407 }
346408}
You can’t perform that action at this time.
0 commit comments