From 0c554305f06358ef8f7757beef8a29ee687803e1 Mon Sep 17 00:00:00 2001 From: yuki0410-dev Date: Mon, 17 Jun 2024 23:28:06 +0900 Subject: [PATCH] remove unused package --- package-lock.json | 14 +++++++++----- package.json | 29 +++++------------------------ rollup.config.mjs | 1 - 3 files changed, 14 insertions(+), 30 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7aafc20b2..8cea1c44a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,6 @@ "@floating-ui/react": "^0.26.2", "clsx": "^2.1.0", "date-fns": "^3.3.1", - "prop-types": "^15.7.2", "react-onclickoutside": "^6.13.0" }, "devDependencies": { @@ -38,7 +37,6 @@ "@typescript-eslint/eslint-plugin": "^7.9.0", "@typescript-eslint/parser": "^7.9.0", "axe-core": "^4.4.1", - "babel-jest": "^29.6.4", "babel-plugin-transform-react-remove-prop-types": "^0.4.24", "core-js": "^3.29.1", "eslint": "^8.56.0", @@ -12797,6 +12795,7 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -13449,6 +13448,7 @@ "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dev": true, "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", @@ -13458,7 +13458,8 @@ "node_modules/prop-types/node_modules/react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "dev": true }, "node_modules/psl": { "version": "1.9.0", @@ -25686,7 +25687,8 @@ "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true }, "object-inspect": { "version": "1.13.2", @@ -26121,6 +26123,7 @@ "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dev": true, "requires": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", @@ -26130,7 +26133,8 @@ "react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "dev": true } } }, diff --git a/package.json b/package.json index d448c435b..b49cc34be 100644 --- a/package.json +++ b/package.json @@ -11,23 +11,9 @@ "module": "dist/es/index.js", "unpkg": "dist/react-datepicker.min.js", "style": "dist/react-datepicker.min.css", - "files": [ - "*.md", - "dist", - "lib", - "es", - "src/stylesheets" - ], - "sideEffects": [ - "**/*.css" - ], - "keywords": [ - "react", - "datepicker", - "calendar", - "date", - "react-component" - ], + "files": ["*.md", "dist", "lib", "es", "src/stylesheets"], + "sideEffects": ["**/*.css"], + "keywords": ["react", "datepicker", "calendar", "date", "react-component"], "repository": { "type": "git", "url": "git://github.com/Hacker0x01/react-datepicker.git" @@ -58,7 +44,6 @@ "@typescript-eslint/eslint-plugin": "^7.9.0", "@typescript-eslint/parser": "^7.9.0", "axe-core": "^4.4.1", - "babel-jest": "^29.6.4", "babel-plugin-transform-react-remove-prop-types": "^0.4.24", "core-js": "^3.29.1", "eslint": "^8.56.0", @@ -97,7 +82,6 @@ "@floating-ui/react": "^0.26.2", "clsx": "^2.1.0", "date-fns": "^3.3.1", - "prop-types": "^15.7.2", "react-onclickoutside": "^6.13.0" }, "scripts": { @@ -124,9 +108,6 @@ "prepare": "husky install" }, "lint-staged": { - "*.{js,jsx,ts,tsx,json,css,scss,md}": [ - "prettier --write", - "git add" - ] + "*.{js,jsx,ts,tsx,json,css,scss,md}": ["prettier --write", "git add"] } -} \ No newline at end of file +} diff --git a/rollup.config.mjs b/rollup.config.mjs index 872cb7888..e231a5285 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -45,7 +45,6 @@ const dateFnsSubpackages = Object.keys(dateFnsPackageJson.exports) const globals = { react: "React", - "prop-types": "PropTypes", "react-onclickoutside": "onClickOutside", };