UNPKG

react-compact-toast

Version:

A tiny, compact, and fully customizable toast notification library.

113 lines 3.15 kB
{ "name": "react-compact-toast", "version": "0.2.3", "private": false, "repository": "https://github.com/m2na7/react-compact-toast.git", "license": "MIT", "author": "m2na7", "description": "A tiny, compact, and fully customizable toast notification library.", "keywords": [ "react", "toast", "notification", "react-compact-toast", "compact", "customizable", "react-toast", "snackbar", "message", "alert" ], "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" }, "./styles.css": "./dist/styles.css" }, "files": [ "dist" ], "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }, "prettier": { "printWidth": 80, "tabWidth": 2, "semi": true, "trailingComma": "es5", "useTabs": false, "singleQuote": true }, "devDependencies": { "@cypress/code-coverage": "^3.14.5", "@istanbuljs/nyc-config-typescript": "^1.0.2", "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.2.0", "@testing-library/react-hooks": "^8.0.1", "@testing-library/user-event": "^13.5.0", "@types/node": "^24.0.13", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", "@vitejs/plugin-react": "^4.6.0", "@vitest/coverage-v8": "3.2.4", "@vitest/ui": "^3.2.4", "cypress": "^14.5.1", "jsdom": "^26.1.0", "lefthook": "^1.12.1", "lint-staged": "^16.1.2", "next": "^15.3.5", "nyc": "^17.1.0", "prettier": "^3.6.2", "react-scripts": "5.0.1", "tsdown": "^0.12.9", "typescript": "^5.8.2", "vite": "^6.0.3", "vite-plugin-istanbul": "^6.0.2", "vitest": "^3.2.4" }, "peerDependencies": { "react": "^18 || ^19", "react-dom": "^18 || ^19" }, "engines": { "node": ">=20" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "cypress run --component", "test:open": "cypress open", "test:headless": "cypress run --component --headless", "test:coverage": "cypress run --component --headless && nyc report --reporter=lcov", "test:unit": "vitest", "test:unit:ui": "vitest --ui", "test:unit:run": "vitest run", "test:unit:coverage": "vitest run --coverage", "coverage:open": "open coverage/lcov-report/index.html", "coverage:reset": "rm -rf coverage .nyc_output", "eject": "react-scripts eject", "build:lib": "tsdown", "dev:lib": "tsdown --watch", "playground": "cd playground && pnpm run dev", "playground:build": "cd playground && pnpm run build", "playground:preview": "cd playground && pnpm run preview", "format": "prettier --write \"src/**/*.{ts,tsx}\"", "format:check": "prettier --check \"src/**/*.{ts,tsx}\"", "type-check": "tsc --noEmit" } }