Skip to content

Commit

Permalink
Chore(deps): add react & react-dom to peer deps
Browse files Browse the repository at this point in the history
  • Loading branch information
noahehall committed May 29, 2023
1 parent 5ab3239 commit 16f07c0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
Binary file modified bun.lockb
Binary file not shown.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,32 @@
"main": "dist/index.js",
"module": "src/index.ts",
"scripts": {
"barrels": "barrelsby --config ./barrels.json",
"barrels": "bunx barrelsby --config ./barrels.json",
"build": "rm -rf ./dist/* && bun build src/index.tsx --outdir ./dist",
"lint": "bunx eslint src -- --fix",
"pretty": "bunx prettier --write 'src/**/*.(ts|tsx)'",
"upgrade:deps": "bunx ncu -u && bun install"
},
"peerDependencies": {
"react": "18.x",
"react-dom": "18.x"
},
"devDependencies": {
"@types/react": "18.2.7",
"@types/react-dom": "18.2.4",
"@types/react-router-dom": "5.3.3",
"@typescript-eslint/eslint-plugin": "5.59.7",
"@typescript-eslint/parser": "5.59.7",
"barrels": "^1.6.6",
"bun-types": "0.6.3",
"bun-types": "0.6.4",
"eslint": "8.41.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"npm-check-updates": "^16.10.12",
"prettier": "^2.8.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "beta"
},
"files": [
Expand Down
6 changes: 3 additions & 3 deletions src/FPContext.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { createContext, type RefObject } from "react";
import { createContext } from "react";

import { FPItemRef } from ".";
const observeFn = (el) => el;

export const FPContext = createContext({
getIndex: (el: any) => 0 as number,
ReactFPRef: null as RefObject<HTMLDivElement>,
slides: [] as RefObject<HTMLDivElement>[],
ReactFPRef: null as FPItemRef,
slides: [] as FPItemRef[],
subscribe: observeFn,
unsubscribe: observeFn,
});
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* @file Automatically generated by barrelsby.
*/

export * from "./FSButton";
export * from "./FPContainer";
export * from "./FPContext";
export * from "./FPItem";
export * from "./FPTypes";
export * from "./FSButton";
export * from "./ReactFP";

0 comments on commit 16f07c0

Please sign in to comment.