UNPKG

github-url-detection

Version:

Which GitHub page are you on? Is it an issue? Is it a list? Perfect for your WebExtension or userscript.

81 lines (80 loc) 2.17 kB
{ "name": "github-url-detection", "version": "10.2.2", "description": "Which GitHub page are you on? Is it an issue? Is it a list? Perfect for your WebExtension or userscript.", "keywords": [ "github", "page", "routes", "detect", "test", "extension" ], "repository": "refined-github/github-url-detection", "funding": "https://github.com/sponsors/fregante", "license": "MIT", "author": "Federico Brigante <me@fregante.com> (https://fregante.com)", "sideEffects": false, "type": "module", "exports": "./distribution/index.js", "main": "./distribution/index.js", "types": "./distribution/index.d.ts", "files": [ "distribution/index.js", "distribution/index.d.ts" ], "scripts": { "build": "run-p build:*", "build:esbuild": "esbuild index.ts --bundle --external:github-reserved-names --outdir=distribution --format=esm --drop-labels=TEST", "build:typescript": "tsc --declaration --emitDeclarationOnly", "build:demo": "vite build demo", "try": "esbuild index.ts --bundle --global-name=x --format=iife | pbcopy && echo 'Copied to clipboard'", "fix": "xo --fix", "prepack": "npm run build", "test": "run-p build test:* xo", "test:unit": "vitest", "test:demo": "svelte-check", "watch": "run-p watch:*", "watch:typescript": "tsc --watch --noEmit", "watch:test:unit": "npm run test:unit -- --watch", "watch:demo": "vite preview demo & npm run build:demo -- --watch # vite serve isn't real", "xo": "xo" }, "xo": { "envs": [ "browser" ], "overrides": [ { "files": [ "*.ts" ], "rules": { "@typescript-eslint/triple-slash-reference": "off", "@typescript-eslint/naming-convention": "off", "no-unused-labels": "off", "no-labels": "off" } } ] }, "dependencies": { "github-reserved-names": "^2.0.7" }, "devDependencies": { "@sindresorhus/tsconfig": "^6.0.0", "@sveltejs/vite-plugin-svelte": "^3.1.1", "esbuild": "^0.23.1", "npm-run-all": "^4.1.5", "strip-indent": "^4.0.0", "svelte": "^4.2.18", "svelte-check": "^3.8.5", "typescript": "^5.5.4", "vite": "^5.4.2", "vitest": "^2.0.5", "xo": "^0.59.3" }, "engines": { "node": ">=20.10" } }