File tree Expand file tree Collapse file tree 5 files changed +18
-3
lines changed
Expand file tree Collapse file tree 5 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @labdigital/federated-token-apollo " : patch
3+ " @labdigital/federated-token " : patch
4+ ---
5+
6+ Create CommonJS exports
Original file line number Diff line number Diff line change 33 "version" : " 0.13.1" ,
44 "description" : " Federate JWT tokens between Apollo servers" ,
55 "module" : " ./dist/index.js" ,
6+ "main" : " ./dist/index.cjs" ,
67 "types" : " ./dist/index.d.ts" ,
78 "type" : " module" ,
9+ "exports" : {
10+ "." : {
11+ "import" : " ./dist/index.js" ,
12+ "require" : " ./dist/index.cjs"
13+ }
14+ },
815 "keywords" : [
916 " graphql" ,
1017 " authentication" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export default defineConfig([
77 splitting : false ,
88 dts : true ,
99 sourcemap : true ,
10- format : [ "esm" ] ,
10+ format : [ "esm" , "cjs" ] ,
1111 outDir : "dist" ,
1212 } ,
1313] ) ;
Original file line number Diff line number Diff line change 33 "version" : " 0.13.0" ,
44 "description" : " Federate JWT tokens between Apollo servers" ,
55 "module" : " ./dist/index.js" ,
6+ "main" : " ./dist/index.cjs" ,
67 "types" : " ./dist/index.d.ts" ,
78 "exports" : {
89 "./package.json" : " ./package.json" ,
910 "." : {
10- "import" : " ./dist/index.js"
11+ "import" : " ./dist/index.js" ,
12+ "require" : " ./dist/index.cjs"
1113 }
1214 },
1315 "type" : " module" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export default defineConfig([
77 splitting : false ,
88 dts : true ,
99 sourcemap : true ,
10- format : [ "esm" ] ,
10+ format : [ "esm" , "cjs" ] ,
1111 outDir : "dist" ,
1212 } ,
1313] ) ;
You can’t perform that action at this time.
0 commit comments