Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dev deps; add better 'clear' command #392

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"packages/*"
],
"scripts": {
"clear": "npm run clear:parcel-cache & npm run clear:builds & npm run clear:node_modules",
"clear:builds": "rm -rf ./packages/*/dist",
"clear:parcel-cache": "rm -rf ./.parcel-cache",
"clear:node_modules": "rm -rf ./node_modules && rm -rf ./packages/*/node_modules",
"clear": "pnpm run clear:git & pnpm run clear:library & pnpm run clear:node_modules & pnpm run clear:website",
"clear:git": "git clean -dfx",
"clear:library": "cd packages/react-resizable-panels && pnpm run clear",
"clear:node_modules": "rm -rf ./node_modules",
"clear:website": "cd packages/react-resizable-panels-website && pnpm run clear",
"dev": "pnpm run /^dev:.*/",
"dev:core": "cd packages/react-resizable-panels && pnpm watch",
"dev:website": "cd packages/react-resizable-panels-website && pnpm watch",
Expand All @@ -21,7 +22,8 @@
"typescript:watch": "tsc --noEmit --watch"
},
"devDependencies": {
"@babel/preset-typescript": "^7.22.5",
"@babel/core": "^7",
"@babel/preset-typescript": "^7",
"@playwright/test": "^1.37.0",
"@types/jest": "^29.5.3",
"@types/node": "^18.17.5",
Expand All @@ -31,19 +33,19 @@
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/type-utils": "^5.62.0",
"eslint": "^8.47.0",
"parcel": "^2.9.3",
"parcel": "^2",
"prettier": "latest",
"process": "^0.11.10",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
},
"dependencies": {
"@parcel/config-default": "^2.9.3",
"@parcel/core": "^2.9.3",
"@parcel/packager-ts": "^2.9.3",
"@parcel/transformer-js": "^2.9.3",
"@parcel/transformer-react-refresh-wrap": "^2.9.3",
"@parcel/transformer-typescript-types": "^2.9.3",
"@parcel/config-default": "^2",
"@parcel/core": "^2.12.0",
"@parcel/packager-ts": "^2",
"@parcel/transformer-js": "^2",
"@parcel/transformer-react-refresh-wrap": "^2",
"@parcel/transformer-typescript-types": "^2.12.0",
"@preconstruct/cli": "^2.8.1"
},
"preconstruct": {
Expand Down
5 changes: 4 additions & 1 deletion packages/react-resizable-panels-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
"private": true,
"scripts": {
"build": "parcel build \"index.html\"",
"clear": "pnpm run clear:parcel-cache & pnpm run clear:node_modules",
"clear:node_modules": "rm -rf ./node_modules",
"clear:parcel-cache": "rm -rf ./.parcel-cache",
"kill-port": "kill-port ${PORT:-1234}",
"test:e2e": "playwright test",
"test:e2e:debug": "DEBUG=true playwright test",
"watch": "parcel \"index.html\""
"watch": "parcel \"index.html\" --watch-dir=../.."
},
"dependencies": {
"@codemirror/lang-css": "latest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export default function withAutoSizer<ComponentProps>(
width: number;
}
>,
autoSizerProps?: Partial<AutoSizerProps>
autoSizerProps?: Partial<
Omit<AutoSizerProps, "disableHeight" | "disableWidth">
>
): FunctionComponent<Omit<ComponentProps, "height" | "width">> {
const AutoSizerWrapper = (
props: Omit<ComponentProps, "height" | "width">
Expand Down
3 changes: 3 additions & 0 deletions packages/react-resizable-panels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
},
"types": "dist/react-resizable-panels.cjs.d.ts",
"scripts": {
"clear": "pnpm run clear:builds & pnpm run clear:node_modules",
"clear:builds": "rm -rf ./packages/*/dist",
"clear:node_modules": "rm -rf ./node_modules",
"lint": "eslint \"src/**/*.{ts,tsx}\"",
"test": "jest --config=jest.config.js",
"test:watch": "jest --config=jest.config.js --watch",
Expand Down
Loading
Loading