Skip to content

Commit

Permalink
build: upgrade deps and add publint
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdyman committed Oct 21, 2023
1 parent 3441c4f commit 81357a6
Show file tree
Hide file tree
Showing 7 changed files with 2,051 additions and 1,426 deletions.
14 changes: 7 additions & 7 deletions docs/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"@vitejs/plugin-react": "^4.0.3",
"eslint": "^8.49.0",
"@types/react": "^18.2.31",
"@types/react-dom": "^18.2.14",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"@vitejs/plugin-react": "^4.1.0",
"eslint": "^8.52.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"typescript": "^5.0.2",
"vite": "^4.4.5"
"vite": "^4.5.0"
}
}
2 changes: 1 addition & 1 deletion docs/ssr-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test-legacy": "node --test"
},
"devDependencies": {
"@types/node": "^20.6.2",
"@types/node": "^20.8.7",
"react": "^18.2.0",
"react-compare-slider": "latest",
"react-dom": "^18.2.0",
Expand Down
34 changes: 18 additions & 16 deletions docs/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,34 @@
},
"dependencies": {
"@react-google-maps/api": "^2.19.2",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@types/react": "^18.2.31",
"@types/react-dom": "^18.2.14",
"react": "^18.2.0",
"react-compare-slider": "workspace:^2.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@mdx-js/react": "^2.3.0",
"@storybook/addon-console": "^2.0.0",
"@storybook/addon-coverage": "^0.0.9",
"@storybook/addon-docs": "^7.4.0",
"@storybook/addon-essentials": "^7.4.0",
"@storybook/addon-interactions": "^7.4.0",
"@storybook/addon-links": "^7.4.0",
"@storybook/addon-storysource": "^7.4.0",
"@storybook/blocks": "^7.4.0",
"@storybook/builder-vite": "^7.4.0",
"@storybook/jest": "^0.2.2",
"@storybook/addon-docs": "^7.5.1",
"@storybook/addon-essentials": "^7.5.1",
"@storybook/addon-interactions": "^7.5.1",
"@storybook/addon-links": "^7.5.1",
"@storybook/addon-storysource": "^7.5.1",
"@storybook/blocks": "^7.5.1",
"@storybook/builder-vite": "^7.5.1",
"@storybook/jest": "^0.2.3",
"@storybook/preset-typescript": "^3.0.0",
"@storybook/react": "^7.4.0",
"@storybook/react-vite": "^7.4.0",
"@storybook/react": "^7.5.1",
"@storybook/react-vite": "^7.5.1",
"@storybook/test-runner": "^0.13.0",
"@storybook/testing-library": "^0.2.1",
"@storybook/theming": "^7.4.0",
"@storybook/testing-library": "^0.2.2",
"@storybook/theming": "^7.5.1",
"remark-gfm": "^3.0.1",
"storybook": "^7.4.0",
"storybook": "^7.5.1",
"tslib": "~2.6.2",
"typescript": "^5.2.2",
"vite": "^4.4.9"
"vite": "^4.5.0"
}
}
19 changes: 10 additions & 9 deletions lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/index.mjs",
"types": "./dist/index.d.mts"
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs"
}
},
"files": [
Expand All @@ -49,7 +49,7 @@
"build": "pnpm run check:types && NODE_ENV=production tsup",
"release": "cp ../README.md ../LICENSE . && pnpm run -w lint && pnpm run -w test && pnpm run build && pnpm run check && np --no-tests --no-cleanup",
"check": "concurrently -n \"package,types\" -c \"blue,magenta\" \"pnpm run check:package\" \"pnpm run check:types\"",
"check:package": "attw -P . --ignore-rules cjs-resolves-to-esm",
"check:package": "attw -P . --ignore-rules cjs-resolves-to-esm && publint",
"check:types": "tsc --noEmit"
},
"browserslist": {
Expand Down Expand Up @@ -77,13 +77,14 @@
"react-dom": ">=16.8"
},
"devDependencies": {
"@types/node": "^20.6.2",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"browserslist": "^4.21.10",
"concurrently": "^8.2.1",
"esbuild-plugin-browserslist": "^0.9.0",
"@types/node": "^20.8.7",
"@types/react": "^18.2.31",
"@types/react-dom": "^18.2.14",
"browserslist": "^4.22.1",
"concurrently": "^8.2.2",
"esbuild-plugin-browserslist": "^0.9.1",
"np": "^8.0.4",
"publint": "^0.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tslib": "~2.6.2",
Expand Down
1 change: 1 addition & 0 deletions lib/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"sourceMap": true,
"rootDir": "./src",
"strict": true,
"noUncheckedIndexedAccess": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@
]
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.10.2",
"@arethetypeswrong/cli": "^0.12.2",
"@ianvs/prettier-plugin-sort-imports": "^3.7.2",
"@types/node": "^20.6.2",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"@types/node": "^20.8.7",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"c8": "^8.0.1",
"concurrently": "^8.2.1",
"eslint": "^8.49.0",
"concurrently": "^8.2.2",
"eslint": "^8.52.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"lint-staged": "^15.0.2",
"np": "^8.0.4",
"nyc": "^15.1.0",
"prettier": "^2.8.8",
"pretty-quick": "^3.1.3",
"sirv-cli": "^2.0.2",
"wait-port": "^1.0.4"
"wait-port": "^1.1.0"
}
}

0 comments on commit 81357a6

Please sign in to comment.