Skip to content

Commit fcf83e6

Browse files
committed
add further fixes
1 parent 6d078d1 commit fcf83e6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
node-version: 20
2929
registry-url: https://registry.npmjs.org/
3030
- run: npm ci
31-
- run: npm publish
31+
- run: npm publish --access=public
3232
env:
3333
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
3434

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
},
1010
"license": "MIT",
1111
"module": "./dist/index.mjs",
12+
"main": "./dist/index.js",
1213
"types": "./dist/index.d.ts",
1314
"exports": {
1415
".": {

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ export const LoadingBarContainer = ({
397397
);
398398
};
399399

400-
export const useLoadingBar = (props: IProps): Omit<IContext, "setProps"> => {
400+
export const useLoadingBar = (props?: IProps): Omit<IContext, "setProps"> => {
401401
const context = React.useContext(LoaderContext);
402402

403403
if (!context) {

0 commit comments

Comments
 (0)