Skip to content

Commit

Permalink
hoist jest and storybook packages
Browse files Browse the repository at this point in the history
Change-Id: Ibcc7ad746bd83cfa99cd368c1e58f90b15cacd22
GitOrigin-RevId: 415566affdf39fcca58b9b3acd2f36c4f631b872
  • Loading branch information
jaslong authored and actions-user committed Feb 14, 2025
1 parent a6974ec commit 2eb7812
Show file tree
Hide file tree
Showing 6 changed files with 879 additions and 5,329 deletions.
18 changes: 16 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@
"upgrade-internal": "bash scripts/upgrade-internal.bash"
},
"resolutions": {
"eslint": "^8.55.0"
"eslint": "^8.55.0",
"jest": "29.7.0"
},
"packageManager": "yarn@1.22.21",
"devDependencies": {
"@microsoft/api-extractor": "7.38.2",
"@testing-library/react": "16.2.0",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"esbuild": "0.17.18",
Expand All @@ -51,12 +53,24 @@
"eslint-plugin-react": "^7.33.2",
"if-env": "^1.0.4",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"lerna": "^7.4.2",
"nx": "^16",
"prettier": "2.8.8",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "5.2.2"
"typescript": "5.2.2",
"storybook": "8.5.5",
"storybook-addon-mock": "5.0.0",
"@storybook/addon-essentials": "8.5.5",
"@storybook/addon-interactions": "8.5.5",
"@storybook/addon-links": "8.5.5",
"@storybook/addon-webpack5-compiler-swc": "2.1.0",
"@storybook/react": "8.5.5",
"@storybook/react-webpack5": "8.5.5",
"@storybook/test": "8.5.5",
"@storybook/test-runner": "0.21.0",
"@storybook/testing-library": "0.2.2"
},
"workspaces": [
"packages/auth-api",
Expand Down
14 changes: 3 additions & 11 deletions packages/create-plasmic-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
"create-plasmic-app": "./dist/index.js"
},
"scripts": {
"wtest": "jest --colors --watchAll",
"test": "jest --colors",
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand --watch",
"test": "TEST_CWD=`pwd` yarn --cwd=../.. test --passWithNoTests",
"coverage": "TEST_CWD=`pwd` yarn --cwd=../.. test --coverage --passWithNoTests",
"build": "eslint 'src/**' && tsc",
"run-cpa": "yarn build && ts-node run-cpa.ts",
"create-plasmic-app": "ts-node src/index.ts",
Expand All @@ -30,14 +29,7 @@
"@types/semver": "^7.3.5",
"@types/update-notifier": "^5.0.0",
"@types/validate-npm-package-name": "^3.0.2",
"@types/yargs": "^16.0.0",
"@typescript-eslint/eslint-plugin": "5.59.0",
"@typescript-eslint/parser": "5.59.0",
"eslint": "^8.50.0",
"jest": "^26.6.3",
"jest-circus": "^26.6.3",
"ts-jest": "^26.5.3",
"ts-node": "^10.9.1"
"@types/yargs": "^16.0.0"
},
"dependencies": {
"@plasmicapp/cli": "0.1.187",
Expand Down
15 changes: 2 additions & 13 deletions packages/react-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"prepublishOnly": "npm run build",
"size": "size-limit",
"analyze": "size-limit --why",
"storybook": "storybook dev -p 6006",
"storybook": "storybook dev -p 6006 --no-open",
"build-storybook": "storybook build",
"test-storybook": "test-storybook"
},
Expand Down Expand Up @@ -140,16 +140,6 @@
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.1.0",
"@size-limit/preset-small-lib": "^4.10.2",
"@storybook/addon-actions": "^8.5.3",
"@storybook/addon-essentials": "^8.5.3",
"@storybook/addon-info": "^5.3.21",
"@storybook/addon-interactions": "^8.5.3",
"@storybook/addon-links": "^8.5.3",
"@storybook/jest": "^0.0.10",
"@storybook/react": "^8.5.3",
"@storybook/react-webpack5": "^8.5.3",
"@storybook/test-runner": "^0.13.0",
"@storybook/testing-library": "^0.0.13",
"@types/classnames": "^2.3.1",
"@types/clone": "^2.1.1",
"@types/dlv": "^1.1.2",
Expand All @@ -160,8 +150,7 @@
"rollup": "^3.26.1",
"rollup-plugin-dts": "^5.3.0",
"rollup-plugin-typescript2": "^0.35.0",
"size-limit": "^4.10.2",
"storybook": "^8.5.3"
"size-limit": "^4.10.2"
},
"peerDependencies": {
"react": ">=16.8.0",
Expand Down
24 changes: 6 additions & 18 deletions plasmicpkgs/antd5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/antd.esm.js",
"types": "./dist/index.d.ts"
"import": "./dist/antd.esm.js"
},
"./skinny/*": {
"types": "./skinny/*.d.ts",
"require": "./skinny/*.cjs.js",
"import": "./skinny/*.esm.js",
"types": "./skinny/*.d.ts"
"import": "./skinny/*.esm.js"
}
},
"files": [
Expand All @@ -50,7 +50,7 @@
"build": "rollup -c rollup.config.mjs && yarn tsc --emitDeclarationOnly --declaration src/index.ts --incremental --tsBuildInfoFile ./dist/.tsbuildinfo --skipLibCheck --jsx react --lib dom,esnext --esModuleInterop --strict --outDir ./dist/ && cp ./dist/*.d.ts skinny/ && rm skinny/index.d.ts",
"prepublishOnly": "npm run build",
"clean": "rm -rf dist/ skinny/*.ts skinny/*.map skinny/*.js",
"storybook": "storybook dev -p 6006",
"storybook": "storybook dev -p 6006 --no-open",
"build-storybook": "storybook build",
"test-storybook": "test-storybook",
"test": "TEST_CWD=`pwd` yarn --cwd=../.. test"
Expand All @@ -73,16 +73,6 @@
"@rollup/plugin-commonjs": "^11.0.0",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@storybook/addon-actions": "^8.5.3",
"@storybook/addon-essentials": "^8.5.3",
"@storybook/addon-info": "^5.3.21",
"@storybook/addon-interactions": "^8.5.3",
"@storybook/addon-links": "^8.5.3",
"@storybook/jest": "^0.0.10",
"@storybook/react": "^8.5.3",
"@storybook/react-webpack5": "^8.5.3",
"@storybook/test-runner": "^0.13.0",
"@storybook/testing-library": "^0.0.13",
"@types/lodash": "^4.14.200",
"@types/node": "^14.0.26",
"@types/react": "^18.0.27",
Expand All @@ -95,9 +85,7 @@
"rollup": "^3.10.1",
"rollup-plugin-dts": "^5.0.0",
"rollup-plugin-esbuild": "^5.0.0",
"rollup-plugin-replace-imports": "^1.0.0",
"storybook": "^8.5.3",
"storybook-addon-mock": "^4.2.1"
"rollup-plugin-replace-imports": "^1.0.0"
},
"peerDependencies": {
"@plasmicapp/data-sources": ">=0.1.0",
Expand Down
18 changes: 5 additions & 13 deletions plasmicpkgs/react-aria/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/react-aria.esm.js",
"types": "./dist/index.d.ts"
"import": "./dist/react-aria.esm.js"
},
"./skinny/*": {
"types": "./skinny/*.d.ts",
"require": "./skinny/*.cjs.js",
"import": "./skinny/*.esm.js",
"types": "./skinny/*.d.ts"
"import": "./skinny/*.esm.js"
}
},
"files": [
Expand All @@ -40,7 +40,7 @@
"build": "rollup -c rollup.config.mjs && yarn tsc --emitDeclarationOnly --declaration src/index.tsx --incremental --tsBuildInfoFile ./dist/.tsbuildinfo --skipLibCheck --lib esnext,dom,dom.iterable --jsx react --esModuleInterop --strict --outDir ./dist/ && cp ./dist/*.d.ts skinny/ && rm skinny/index.d.ts",
"prepare": "if-env PREPARE_NO_BUILD=true || yarn build",
"clean": "rm -rf dist/ skinny/*.ts skinny/*.map skinny/*.js",
"storybook": "storybook dev -p 6006",
"storybook": "storybook dev -p 6006 --no-open",
"build-storybook": "storybook build",
"test-storybook": "test-storybook",
"upgrade-aria": "yarn upgrade --latest --scope @react-stately && yarn upgrade --latest --scope @react-aria && yarn upgrade --latest --scope react-aria-components"
Expand All @@ -59,13 +59,6 @@
"@rollup/plugin-commonjs": "^11.0.0",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@storybook/addon-actions": "^8.5.3",
"@storybook/addon-interactions": "^8.5.3",
"@storybook/addon-webpack5-compiler-swc": "^2.0.0",
"@storybook/react": "^8.5.3",
"@storybook/react-webpack5": "^8.5.3",
"@storybook/test": "^8.5.3",
"@storybook/test-runner": "^0.21.0",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@types/react-is": "^19.0.0",
Expand All @@ -74,7 +67,6 @@
"react-dom": "^18.2.0",
"rollup": "^3.10.1",
"rollup-plugin-esbuild": "^5.0.0",
"storybook": "^8.5.3",
"typescript": "^5"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 2eb7812

Please sign in to comment.