Parcel would delete some random file like identity because it though it was not used, vite is smarter. Also remove unused imports
100 lines
3.7 KiB
JSON
100 lines
3.7 KiB
JSON
{
|
|
"name": "@docsearch/monorepo",
|
|
"private": true,
|
|
"workspaces": {
|
|
"packages": [
|
|
"packages/docsearch-css",
|
|
"packages/docsearch-js",
|
|
"packages/docsearch-react",
|
|
"examples/*"
|
|
],
|
|
"nohoist": [
|
|
"**/html-minifier-terser"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"build:clean": "lerna run build:clean --scope @docsearch/*",
|
|
"build:esm": "lerna run build:esm --scope @docsearch/*",
|
|
"build:types": "lerna run build:types --scope @docsearch/*",
|
|
"build:umd": "lerna run build:umd --scope @docsearch/*",
|
|
"build": "lerna run build --scope @docsearch/*",
|
|
"cy:clean": "rm -rf cypress/screenshots",
|
|
"cy:info": "cypress info",
|
|
"cy:run:chrome": "yarn run cy:run --browser chrome",
|
|
"cy:run:edge": "yarn run cy:run --browser edge",
|
|
"cy:run:firefox": "yarn run cy:run --browser firefox",
|
|
"cy:run": "start-server-and-test 'yarn website:test' http://localhost:3000 'cypress run --spec 'cypress/integration/**/*' --headless'",
|
|
"cy:verify": "cypress verify",
|
|
"lint:css": "stylelint **/src/**/*.css",
|
|
"lint": "eslint --ext .js,.ts,.tsx .",
|
|
"playground:build": "yarn workspace @docsearch/react-example build",
|
|
"playground:start": "yarn workspace @docsearch/react-example dev",
|
|
"playground-js:start": "yarn workspace @docsearch/js-example dev",
|
|
"release": "shipjs prepare",
|
|
"start": "yarn run watch",
|
|
"test:size": "bundlesize",
|
|
"test:types": "tsc --noEmit",
|
|
"test": "jest",
|
|
"watch": "lerna run watch --parallel --scope @docsearch/*",
|
|
"website:build": "cd packages/website && yarn install && yarn build",
|
|
"website:start": "cd packages/website && yarn install && yarn start --host 0.0.0.0",
|
|
"website:test": "cd packages/website && yarn install && yarn start --no-open"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/plugin-transform-react-jsx": "7.23.4",
|
|
"@babel/preset-env": "7.23.5",
|
|
"@babel/preset-typescript": "7.23.3",
|
|
"@rollup/plugin-babel": "^6.0.4",
|
|
"@rollup/plugin-json": "4.1.0",
|
|
"@rollup/plugin-node-resolve": "11.2.1",
|
|
"@rollup/plugin-replace": "2.3.3",
|
|
"@testing-library/dom": "9.3.1",
|
|
"@testing-library/jest-dom": "5.16.5",
|
|
"@testing-library/react": "14.1.2",
|
|
"@types/jest": "^29.0.0",
|
|
"@types/react": "^18.0.0",
|
|
"@types/react-dom": "^18.0.0",
|
|
"@typescript-eslint/eslint-plugin": "5.41.0",
|
|
"@typescript-eslint/parser": "5.41.0",
|
|
"babel-plugin-inline-replace-variables": "1.3.1",
|
|
"babel-plugin-module-resolver": "4.0.0",
|
|
"bundlesize2": "0.0.31",
|
|
"cssnano": "4.1.10",
|
|
"cypress": "9.6.1",
|
|
"eslint": "8.55.0",
|
|
"eslint-config-algolia": "20.0.0",
|
|
"eslint-config-prettier": "8.10.0",
|
|
"eslint-plugin-cypress": "2.14.0",
|
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
"eslint-plugin-import": "2.29.0",
|
|
"eslint-plugin-jest": "27.6.0",
|
|
"eslint-plugin-jsdoc": "39.4.0",
|
|
"eslint-plugin-jsx-a11y": "6.6.1",
|
|
"eslint-plugin-prettier": "4.2.1",
|
|
"eslint-plugin-react": "7.31.10",
|
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
"jest": "29.6.1",
|
|
"jest-environment-jsdom": "29.6.1",
|
|
"lerna": "8.1.9",
|
|
"postcss": "8.4.25",
|
|
"prettier": "2.7.1",
|
|
"react": "18.2.0",
|
|
"react-dom": "18.2.0",
|
|
"rollup": "1.32.1",
|
|
"rollup-plugin-dts": "^6.1.1",
|
|
"rollup-plugin-filesize": "9.1.2",
|
|
"rollup-plugin-terser": "7.0.2",
|
|
"shipjs": "0.26.4",
|
|
"start-server-and-test": "1.15.5",
|
|
"stylelint": "14.16.1",
|
|
"stylelint-a11y": "1.2.3",
|
|
"stylelint-config-sass-guidelines": "9.0.1",
|
|
"stylelint-config-standard": "28.0.0",
|
|
"stylelint-no-unsupported-browser-features": "5.0.4",
|
|
"stylelint-order": "5.0.0",
|
|
"stylelint-prettier": "3.0.0",
|
|
"ts-jest": "28.0.8",
|
|
"typescript": "5.6.3",
|
|
"watch": "1.0.2"
|
|
}
|
|
}
|