Skip to content

Commit

Permalink
feat: (#591) creating @faustjs/next/config export
Browse files Browse the repository at this point in the history
  • Loading branch information
wjohnsto committed Oct 22, 2021
1 parent 664bb90 commit 9be7e1d
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/next/config.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/cjs/export/config';
4 changes: 4 additions & 0 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"import": "./dist/mjs/export/client.js",
"require": "./dist/cjs/export/client.js"
},
"./config": {
"import": "./dist/mjs/export/config.js",
"require": "./dist/cjs/export/config.js"
},
"./utils": {
"import": "./dist/mjs/export/utils.js",
"require": "./dist/cjs/export/utils.js"
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions packages/next/src/config/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './config';
export * from './withFaust';
File renamed without changes.
1 change: 1 addition & 0 deletions packages/next/src/export/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '../config';
4 changes: 2 additions & 2 deletions packages/next/src/export/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export * from '../gqty/client';
export * from '../config';
export * from '../config/config';
export * from '../getProps';
export * from '../HeadlessProvider';
export * from '../utils';
export * from '../withFaust';
export * from '../config/withFaust';
export * from '../log';
1 change: 1 addition & 0 deletions packages/next/src/export/utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '../utils';
2 changes: 1 addition & 1 deletion packages/next/src/getProps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { RouterContext } from 'next/dist/shared/lib/router-context';

import React, { FunctionComponent, ComponentClass } from 'react';
import { config } from './config';
import { config } from './config/config';
import { getClient, HeadlessContext } from './gqty/client';

import {
Expand Down
1 change: 1 addition & 0 deletions packages/next/utils.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/cjs/export/utils';

0 comments on commit 9be7e1d

Please sign in to comment.