UNPKG

nano-slots

Version:

A super lightweight modern alternative to [`react-slot-fill`](https://github.com/camwest/react-slot-fill) with familiar API.

72 lines (71 loc) 1.68 kB
{ "name": "nano-slots", "version": "1.4.0", "main": "cjs/index.js", "module": "esm/index.js", "types": "types/index.d.ts", "sideEffects": false, "repository": "git@github.com:exah/nano-slots.git", "author": "Ivan Grishin <r@exah.me>", "license": "MIT", "files": [ "cjs", "esm", "types" ], "keywords": [ "react", "slot", "fill", "composition", "portal", "lightweight" ], "scripts": { "build": "run-s build:*", "build:esm": "tsc -p tsconfig.esm.json", "build:cjs": "tsc -p tsconfig.cjs.json", "build:types": "tsc -p tsconfig.types.json", "test": "jest", "size": "size-limit", "release": "np", "preversion": "npm run build", "prebuild": "rm -rf cjs esm types" }, "size-limit": [ { "path": "./esm/index.js", "limit": "500 B" } ], "jest": { "preset": "ts-jest", "testEnvironment": "jsdom", "setupFilesAfterEnv": [ "./test-setup.js" ] }, "peerDependencies": { "react": "^16.0.0 || ^17.0.0 || ^18.0.0" }, "devDependencies": { "@size-limit/preset-small-lib": "^8.1.0", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^14.4.3", "@types/jest": "^29.2.0", "@types/react": "^18.0.21", "@types/react-dom": "^18.0.6", "@types/testing-library__jest-dom": "^5.14.5", "csstype": "^3.1.1", "jest": "^29.2.1", "jest-environment-jsdom": "^29.2.1", "np": "^7.6.2", "npm-run-all": "^4.1.5", "react": "^18.2.0", "react-dom": "^18.2.0", "size-limit": "^8.1.0", "ts-jest": "^29.0.3", "typescript": "^4.8.4" } }