UNPKG

@oddbird/popover-polyfill

Version:
117 lines (116 loc) 3.79 kB
{ "name": "@oddbird/popover-polyfill", "version": "0.5.2", "description": "Popover Attribute Polyfill", "license": "BSD-3-Clause", "publishConfig": { "access": "public" }, "author": "OddBird <birds@oddbird.net> (oddbird.net)", "repository": { "type": "git", "url": "https://github.com/oddbird/popover-polyfill.git" }, "bugs": "https://github.com/oddbird/popover-polyfill/issues", "homepage": "https://popover.oddbird.net/", "keywords": [ "css", "polyfill", "popover" ], "type": "module", "main": "./dist/popover.js", "module": "./dist/popover.js", "browser": "./dist/popover.iife.min.js", "unpkg": "./dist/popover.min.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/popover.js", "browser": "./dist/popover.iife.min.js", "require": "./dist/popover.js" }, "./fn": { "types": "./dist/index-fn.d.ts", "import": "./dist/popover-fn.js", "require": "./dist/popover-fn.cjs.js" } }, "typesVersions": { "*": { "fn": [ "./dist/index-fn.d.ts" ] } }, "files": [ "README.md", "src/**/*.ts", "dist/**/*.{ts,js,map}", "package.json" ], "sideEffects": [ "./src/index.ts", "./dist/popover.js", "./dist/popover.min.js", "./dist/popover.iife.min.js" ], "scripts": { "build:iife": "esbuild --bundle src/index.ts --outfile=dist/popover.iife.min.js --format=iife --minify --sourcemap", "build:esm": "esbuild --bundle src/index.ts --outfile=dist/popover.js --format=esm --sourcemap", "build:esm-min": "esbuild --bundle src/index.ts --outfile=dist/popover.min.js --format=esm --minify --sourcemap", "build:esm-fn": "esbuild --bundle src/index-fn.ts --outfile=dist/popover-fn.js --format=esm --sourcemap", "build:cjs-fn": "esbuild --bundle src/index-fn.ts --outfile=dist/popover-fn.cjs.js --format=cjs --sourcemap", "clean": "rm -rf dist", "build": "run-s clean build:* types", "server:start": "esbuild --bundle src/index.ts --format=esm --servedir=. --outdir=dist --sourcemap --serve=\"${PORT:-3000}\" --log-level=\"${LEVEL:-info}\"", "serve": "run-s build server:start", "tsc": "tsc --noEmit", "types": "tsc --emitDeclarationOnly", "prettier:check": "prettier --check .", "prettier:fix": "prettier --write .", "eslint:check": "eslint .", "eslint:fix": "npm run eslint:check -- --fix", "format:js": "run-s prettier:fix eslint:fix tsc", "format": "run-p format:*", "lint:js": "run-s prettier:check eslint:check tsc", "lint": "run-p lint:*", "test:unit": "echo No unit tests yet", "test:e2e": "playwright test", "test:e2e:ci": "run-s test:e2e \"test:e2e -- --browser=firefox\"", "test": "run-p test:unit test:e2e", "test:ci": "run-p test:unit test:e2e:ci", "test:ui": "npm run test:e2e -- --ui", "prepare": "husky", "prepack": "npm run build" }, "devDependencies": { "@eslint/js": "^9.15.0", "@playwright/test": "1.33.0", "@types/eslint__js": "^8.42.3", "@types/eslint-config-prettier": "^6.11.3", "@types/node": "*", "esbuild": "^0.24.0", "eslint": "^9.15.0", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.3", "eslint-plugin-import": "^2.31.0", "eslint-plugin-simple-import-sort": "^12.1.1", "husky": "^9.1.7", "lint-staged": "^15.2.10", "npm-run-all": "^4.1.5", "prettier": "3.3.3", "typescript": "^5.6.3", "typescript-eslint": "^8.15.0" }, "lint-staged": { "*.{js,ts}": [ "eslint --cache --fix", "prettier --write --ignore-unknown" ], "*.{json,yml,md,html}": [ "prettier --write --ignore-unknown" ] } }