Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tbantle22 committed Dec 5, 2023
1 parent ed2321d commit 587dc42
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
node_modules

# build
lib/
types/
cjs/
dist/
esm/
Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@
"lint": "yarn workspace @dolthub/react-hooks lint",
"prettier": "yarn workspace @dolthub/react-hooks prettier"
},
"dependencies": {
"react": "^18.2.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.5",
"@types/eslint": "^8",
"@types/react": "^18.2.40",
"@types/rollup-plugin-peer-deps-external": "^2",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
"scripts": {
"compile": "tsc -b",
"build": "rollup -c --bundleConfigAsCjs",
"build:watch": "rollup -c --bundleConfigAsCjs --watch",
"lint": "eslint --cache --ext .ts,.js,.tsx,.jsx src",
"prettier": "prettier --check 'src/**/*.{js,ts}'",
"prettier-fix": "prettier --write 'src/**/*.{js,ts}'"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
"@types/react": ">=18.2",
"react": ">=18.2"
},
"devDependencies": {
"@babel/preset-react": "^7.23.3",
Expand All @@ -28,7 +29,6 @@
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.5",
"@types/eslint": "^8",
"@types/react": "^18.2.40",
"@types/react-dom": "^18",
"@types/rollup-plugin-peer-deps-external": "^2",
"@typescript-eslint/eslint-plugin": "^6.13.2",
Expand Down
5 changes: 2 additions & 3 deletions packages/hooks/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ const packageJson = require("./package.json");
export default [
{
input: "src/index.ts",
external: ["react", "react-dom"],
external: ["react"],
output: [
{
file: packageJson.main,
format: "cjs",
sourcemap: true,
name: "react-ts-lib",
},
{
file: packageJson.module,
Expand All @@ -40,7 +39,7 @@ export default [
],
},
{
input: "dist/esm/types/index.d.ts",
input: "types/index.d.ts",
output: [{ file: "dist/index.d.ts", format: "esm" }],
external: [/\.css$/],
plugins: [dts()],
Expand Down
2 changes: 1 addition & 1 deletion packages/hooks/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"include": ["./src"],
"exclude": ["./lib", "./esm", "./cjs"],
"exclude": ["./types", "./esm", "./cjs"],
"compilerOptions": {
"rootDir": "src",
"baseUrl": ".",
Expand Down
18 changes: 2 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1484,7 +1484,6 @@ __metadata:
"@rollup/plugin-node-resolve": "npm:^15.2.3"
"@rollup/plugin-typescript": "npm:^11.1.5"
"@types/eslint": "npm:^8"
"@types/react": "npm:^18.2.40"
"@types/react-dom": "npm:^18"
"@types/rollup-plugin-peer-deps-external": "npm:^2"
"@typescript-eslint/eslint-plugin": "npm:^6.13.2"
Expand All @@ -1501,8 +1500,8 @@ __metadata:
tslib: "npm:^2.6.2"
typescript: "npm:^5.3.2"
peerDependencies:
react: "*"
react-dom: "*"
"@types/react": ">=18.2"
react: ">=18.2"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -2326,17 +2325,6 @@ __metadata:
languageName: node
linkType: hard

"@types/react@npm:^18.2.40":
version: 18.2.41
resolution: "@types/react@npm:18.2.41"
dependencies:
"@types/prop-types": "npm:*"
"@types/scheduler": "npm:*"
csstype: "npm:^3.0.2"
checksum: 5cc72491ce8be95e7bbedd8bf039ca971772ecd22d989feb045af7e73247c7e6cff25a2f1c2200be461fb2f6b5aacef739e1ba9fd83c744209dfd3ce8aa75afe
languageName: node
linkType: hard

"@types/resolve@npm:1.20.2":
version: 1.20.2
resolution: "@types/resolve@npm:1.20.2"
Expand Down Expand Up @@ -7084,7 +7072,6 @@ __metadata:
"@rollup/plugin-node-resolve": "npm:^15.2.3"
"@rollup/plugin-typescript": "npm:^11.1.5"
"@types/eslint": "npm:^8"
"@types/react": "npm:^18.2.40"
"@types/rollup-plugin-peer-deps-external": "npm:^2"
"@typescript-eslint/eslint-plugin": "npm:^6.13.2"
"@typescript-eslint/parser": "npm:^6.13.2"
Expand All @@ -7097,7 +7084,6 @@ __metadata:
eslint-plugin-react: "npm:^7.33.2"
eslint-plugin-react-hooks: "npm:^4.6.0"
prettier: "npm:^3.1.0"
react: "npm:^18.2.0"
rollup: "npm:^4.6.1"
rollup-plugin-peer-deps-external: "npm:^2.2.4"
rollup-plugin-postcss: "npm:^4.0.2"
Expand Down

0 comments on commit 587dc42

Please sign in to comment.