Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#6]Remove dist directory and Improve build process #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions dist/furo-react.cjs

This file was deleted.

1 change: 0 additions & 1 deletion dist/furo-react.cjs.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/furo-react.esm.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/furo-react.esm.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/furo-react.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/furo-react.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/furo-react.modern.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/furo-react.modern.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/furo-react.umd.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/furo-react.umd.js.map

This file was deleted.

18 changes: 0 additions & 18 deletions dist/index.d.ts

This file was deleted.

20 changes: 18 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
export { default as FuroProvider } from './furo-provider.jsx';
export { default as useFuro } from './use-furo';
export declare interface FuroProviderOptions {
domain: string;
clientId: string;
redirectUri: string;
apiUrl?: string;
children?: React.ReactNode;
}

export declare function FuroProvider(options: FuroProviderOptions): JSX.Element;

export declare function useFuro(): {
getAccessTokenSilently: () => void;
loginWithRedirect: () => void;
logout: () => void;
isAuthenticated: boolean;
isLoading: boolean;
user: any;
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"scripts": {
"build": "microbundle --jsx React.createElement --jsxFragment React.Fragment --jsxImportSource react",
"postbuild": "cp ./index.d.ts ./dist/index.d.ts",
"rollup": "rollup -c",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down