UNPKG

react-iammolina-cache-buster

Version:

This package allows clients to automatically check the new version when a new version is released in the production environment, and if a new version is published, clearing the cache and reload the page.

65 lines (64 loc) 2.12 kB
{ "name": "react-iammolina-cache-buster", "version": "0.1.16", "description": "This package allows clients to automatically check the new version when a new version is released in the production environment, and if a new version is published, clearing the cache and reload the page.", "author": "iammolinaDev", "license": "MIT", "repository": "iammolinadev/react-cache-buster", "keywords": [ "react", "cache-busting", "production", "clean-build" ], "main": "dist/index.js", "module": "dist/index.modern.js", "source": "src/*.js", "engines": { "node": ">=10" }, "scripts": { "build": "yarn buildTypes && microbundle-crl --no-compress --no-sourcemap --format modern,cjs", "start": "microbundle-crl watch --no-compress --no-sourcemap --format modern,cjs", "prepare": "run-s build", "test": "run-s test:unit test:lint test:build", "test:build": "run-s build", "test:lint": "eslint .", "test:unit": "cross-env CI=1 react-scripts test --env=jsdom", "test:watch": "react-scripts test --env=jsdom", "predeploy": "cd example && yarn install && yarn run build", "deploy": "gh-pages -d example/build", "buildTypes": "tsc ./src/*.js --declaration --allowJs --emitDeclarationOnly --outDir dist" }, "peerDependencies": { "react": "^17.0.2" }, "devDependencies": { "babel-eslint": "^10.1.0", "cross-env": "^7.0.2", "eslint": "^7.26.0", "eslint-config-prettier": "^8.3.0", "eslint-config-standard": "^16.0.2", "eslint-config-standard-react": "^11.0.1", "eslint-plugin-import": "^2.23.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^3.4.0", "eslint-plugin-promise": "^5.1.0", "eslint-plugin-react": "^7.23.2", "eslint-plugin-standard": "^5.0.0", "gh-pages": "^2.2.0", "microbundle-crl": "^0.13.10", "npm-run-all": "^4.1.5", "prettier": "^2.0.4", "react": "^17.0.2", "react-dom": "^17.0.2", "react-scripts": "^4.0.3" }, "files": [ "dist" ], "dependencies": { "compare-versions": "^4.1.2", "prop-types": "^15.7.2" } }