Skip to content

Commit

Permalink
yarn up
Browse files Browse the repository at this point in the history
  • Loading branch information
quisido committed Jan 11, 2023
1 parent 258c726 commit c46cd27
Show file tree
Hide file tree
Showing 9 changed files with 2,201 additions and 1,407 deletions.
510 changes: 263 additions & 247 deletions .yarn/releases/yarn-3.3.0.cjs → .yarn/releases/yarn-3.3.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
yarnPath: .yarn/releases/yarn-3.3.0.cjs
yarnPath: .yarn/releases/yarn-3.3.1.cjs
65 changes: 34 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "MIT",
"main": "./dist/cjs/index.cjs",
"module": "./dist/esm/index.js",
"packageManager": "[email protected].0",
"packageManager": "[email protected].1",
"repository": "github:CharlesStover/use-force-update",
"type": "module",
"types": "./dist/types/index.d.ts",
Expand Down Expand Up @@ -37,53 +37,56 @@
"eslint:fix": "eslint '**/*' --fix",
"jest": "jest --runInBand",
"jest:watch": "jest --coverage=false --runInBand --watch",
"prepack": "yarn run rollup",
"prepublish": "yarn run eslint && yarn run jest",
"rollup": "rollup --config",
"rollup:watch": "rollup --config --watch"
},
"devDependencies": {
"@babel/core": "^7.18.9",
"@babel/preset-env": "^7.18.9",
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@monorepo-template/eslint-config-react-fixable": "^1.1.0",
"@monorepo-template/eslint-config-react-fixable": "^1.1.1",
"@monorepo-template/eslint-config-react-strict": "^1.1.0",
"@monorepo-template/eslint-config-react-typescript": "^1.0.0",
"@monorepo-template/eslint-config-typescript": "^1.1.1",
"@monorepo-template/eslint-config-typescript": "^1.1.2",
"@monorepo-template/eslint-config-typescript-fixable": "^1.1.0",
"@monorepo-template/eslint-config-typescript-strict": "^1.1.0",
"@monorepo-template/jest-module-preset": "^1.1.0",
"@monorepo-template/react-module-tsconfig": "^1.0.8",
"@monorepo-template/rollup-config": "^2.1.0",
"@rollup/plugin-commonjs": "^22.0.1",
"@rollup/plugin-node-resolve": "^13.3.0",
"@testing-library/react": "^13.3.0",
"@types/jest": "^28.1.6",
"@types/node": "^18.0.6",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
"@yarnpkg/sdks": "^3.0.0-rc.12",
"babel-jest": "^28.1.3",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jsx-a11y": "^6.6.0",
"@monorepo-template/jest-module-preset": "^1.1.2",
"@monorepo-template/rollup-config": "^2.4.1",
"@monorepo-template/tsconfig": "^1.1.2",
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@testing-library/react": "^13.4.0",
"@types/jest": "^29.2.5",
"@types/node": "^18.11.18",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"@yarnpkg/sdks": "^3.0.0-rc.35",
"babel-jest": "^29.3.1",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-jsx-a11y": "^6.7.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react": "^7.32.0",
"eslint-plugin-react-hooks": "^4.6.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
"prettier": "^2.7.1",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"prettier": "^2.8.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^2.77.0",
"rollup": "^3.9.1",
"rollup-plugin-insert": "^1.3.2",
"rollup-plugin-typescript2": "^0.32.1",
"tslib": "^2.4.0",
"typescript": "^4.7.4"
"rollup-plugin-typescript2": "^0.34.1",
"tslib": "^2.4.1",
"typescript": "^4.9.4"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
"react": ">=16.8.0"
}
}
6 changes: 5 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export { default } from '@monorepo-template/rollup-config';
import RollupConfig from '@monorepo-template/rollup-config/new';

export default new RollupConfig()
.setTSConfigPath('./tsconfig.rollup.json')
.toJSON();
1 change: 1 addition & 0 deletions src/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="jest" />
import { act, render } from '@testing-library/react';
import useForceUpdate from '.';

Expand Down
10 changes: 3 additions & 7 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"exclude": [],
"extends": "./tsconfig.json",
"include": ["**/*", "**/*.json", ".eslintrc.cjs"],

"compilerOptions": {
"types": ["jest", "node"]
}
"exclude": ["dist/", "jest/", "node_modules/"],
"extends": "@monorepo-template/tsconfig/react-module/eslint.json",
"include": ["**/*", "**/*.json", "**/.*", "**/.*.json"]
}
23 changes: 2 additions & 21 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
{
"extends": "@monorepo-template/react-module-tsconfig",
"include": ["**/*.ts", "**/*.tsx"],

"compilerOptions": {
"declaration": true,
"declarationDir": "./dist/types",
"jsx": "react"
},

"exclude": [
".git/",
".idea/",
".yarn/cache/",
".yarn/sdks/",
".yarn/unplugged/",
"dist/",
"jest/",
"node_modules/",
"**/*.test.ts",
"**/*.test.tsx"
]
"extends": "@monorepo-template/tsconfig/react-module.json",
"include": ["src/**/*.ts", "src/**/*.tsx"]
}
10 changes: 10 additions & 0 deletions tsconfig.rollup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"exclude": ["src/**/*.test.ts", "src/**/*.test.tsx", "src/**/test/"],
"extends": "@monorepo-template/tsconfig/react-module.json",
"include": ["src/**/*.ts", "src/**/*.tsx"],

"compilerOptions": {
"declaration": true,
"declarationDir": "./dist/types/"
}
}
Loading

0 comments on commit c46cd27

Please sign in to comment.