f0e3e5b4a6
* use `act` from `react` instead of `@testing-library/react` * bump dependencies * bump `@testing-library/react` * bump `@react-aria/interactions` * bump "@tanstack/react-virtual" * add `ResizeObserver` polyfill, and enable it by default for tests * mock `getBoundingClientRect` Otherwise the virtualization tests don't work as expected because they rely on the client rect which is not supported (or not correctly measured) in JSDOM.
70 lines
2.1 KiB
JSON
70 lines
2.1 KiB
JSON
{
|
|
"name": "headlessui",
|
|
"version": "0.0.0",
|
|
"description": "Headless UI components for various libraries like React and Vue",
|
|
"main": "index.js",
|
|
"repository": "https://github.com/tailwindlabs/headlessui",
|
|
"license": "MIT",
|
|
"private": true,
|
|
"workspaces": [
|
|
"packages/*",
|
|
"playgrounds/*"
|
|
],
|
|
"scripts": {
|
|
"react": "npm run --workspace=@headlessui/react",
|
|
"react-playground": "npm run --workspace=playground-react dev",
|
|
"playground-react": "npm run --workspace=playground-react dev",
|
|
"vue": "npm run --workspace=@headlessui/vue",
|
|
"playground-vue": "npm run --workspace=playground-vue dev",
|
|
"vue-playground": "npm run --workspace=playground-vue dev",
|
|
"clean": "npm run clean --workspaces --if-present",
|
|
"build": "npm-run-all -p 'react build' 'vue build'",
|
|
"test": "./scripts/test.sh",
|
|
"lint": "./scripts/lint.sh",
|
|
"lint-check": "CI=true ./scripts/lint.sh",
|
|
"lint-types": "CI=true npm run lint-types --workspaces --if-present",
|
|
"release-channel": "node ./scripts/release-channel.js",
|
|
"release-notes": "node ./scripts/release-notes.js",
|
|
"package-path": "node ./scripts/package-path.js"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*": "npm run lint"
|
|
},
|
|
"prettier": {
|
|
"printWidth": 100,
|
|
"semi": false,
|
|
"singleQuote": true,
|
|
"trailingComma": "es5",
|
|
"plugins": [
|
|
"prettier-plugin-organize-imports",
|
|
"prettier-plugin-tailwindcss"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@arethetypeswrong/cli": "^0.13.3",
|
|
"@swc-node/register": "^1.6.8",
|
|
"@swc/core": "^1.2.131",
|
|
"@swc/jest": "^0.2.17",
|
|
"@testing-library/jest-dom": "^5.16.4",
|
|
"@types/node": "^14.14.22",
|
|
"esbuild": "^0.17.8",
|
|
"fast-glob": "^3.2.11",
|
|
"husky": "^4.3.8",
|
|
"jest": "26",
|
|
"lint-staged": "^12.2.1",
|
|
"npm-run-all": "^4.1.5",
|
|
"prettier": "^3.1.0",
|
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
"prettier-plugin-tailwindcss": "^0.5.7",
|
|
"resize-observer-polyfill": "^1.5.1",
|
|
"rimraf": "^3.0.2",
|
|
"tslib": "^2.3.1",
|
|
"typescript": "^5.4.3"
|
|
}
|
|
}
|