File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -67,12 +67,15 @@ gen_enforced_field(WorkspaceCwd, 'license').
67
67
68
68
% The entrypoint for the package must be `./dist/cjs/index.js`.
69
69
gen_enforced_field (WorkspaceCwd , 'main' , './dist/cjs/index.js' ).
70
+ gen_enforced_field (WorkspaceCwd , 'exports["."].require' , './dist/cjs/index.js' ).
70
71
71
72
% The module entrypoint for the package must be `./dist/esm/index.js`.
72
73
gen_enforced_field (WorkspaceCwd , 'module' , './dist/esm/index.js' ).
74
+ gen_enforced_field (WorkspaceCwd , 'exports["."].import' , './dist/esm/index.js' ).
73
75
74
76
% The type definitions entrypoint the package must be `./dist/types/index.d.ts`.
75
77
gen_enforced_field (WorkspaceCwd , 'types' , './dist/types/index.d.ts' ).
78
+ gen_enforced_field (WorkspaceCwd , 'exports["."].types' , './dist/types/index.d.ts' ).
76
79
77
80
% The list of files included in the package must only include files generated
78
81
% during the build step.
You can’t perform that action at this time.
0 commit comments