UNPKG

@sapphire/type

Version:

A type detection utility for JavaScript

131 lines 3.81 kB
{ "name": "@sapphire/type", "version": "2.6.0", "description": "A type detection utility for JavaScript", "author": "@sapphire", "license": "MIT", "main": "dist/cjs/index.cjs", "module": "dist/esm/index.mjs", "types": "dist/cjs/index.d.cts", "exports": { "import": { "types": "./dist/esm/index.d.mts", "default": "./dist/esm/index.mjs" }, "require": { "types": "./dist/cjs/index.d.cts", "default": "./dist/cjs/index.cjs" } }, "sideEffects": false, "homepage": "https://github.com/sapphiredev/type", "scripts": { "install": "node-pre-gyp install --fallback-to-build", "build": "yarn gyp:configure && yarn gyp:build && yarn gyp:package && yarn ts:build && yarn ts:build:rename-cjs-index", "clean": "node scripts/clean.mjs", "docs": "typedoc-json-parser", "test": "yarn gyp:configure && yarn gyp:build && vitest run", "lint": "eslint src tests --ext ts --fix", "prettier": "prettier --ignore-path=.prettierignore", "prepack": "yarn build", "ts:build": "tsup", "ts:build:rename-cjs-index": "node scripts/rename-cjs-index.mjs", "gyp:build-from-source": "node-pre-gyp install --fallback-to-build --build-from-source", "gyp:configure": "node-pre-gyp configure", "gyp:build": "node-pre-gyp build", "gyp:package": "node-pre-gyp package", "bump": "cliff-jumper", "check-update": "cliff-jumper --dry-run" }, "binary": { "module_name": "type", "module_path": "./prebuild/{module_name}-{node_abi}-{platform}-{arch}-{libc}-{libc_version}/", "host": "https://github.com/sapphiredev/type/releases/download/", "remote_path": "v{version}", "package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}-{libc}-{libc_version}.tar.gz", "pkg_path": "." }, "dependencies": { "@discordjs/node-pre-gyp": "^0.4.5", "nan": "^2.22.0", "tslib": "^2.8.1" }, "devDependencies": { "@actions/core": "^1.11.1", "@actions/github": "^6.0.0", "@actions/glob": "^0.5.0", "@commitlint/cli": "^19.6.0", "@commitlint/config-conventional": "^19.6.0", "@favware/cliff-jumper": "^5.0.0", "@favware/npm-deprecate": "^2.0.0", "@sapphire/eslint-config": "^5.0.5", "@sapphire/prettier-config": "^2.0.0", "@sapphire/ts-config": "^5.0.1", "@types/node": "^22.10.2", "@typescript-eslint/eslint-plugin": "^7.16.1", "@typescript-eslint/parser": "^7.16.1", "@vitest/coverage-v8": "^2.1.8", "cz-conventional-changelog": "^3.3.0", "discord.js": "^14.16.3", "eslint": "^8.57.1", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.1", "lint-staged": "^15.2.11", "prettier": "^3.4.2", "tsup": "^8.3.5", "typedoc": "^0.26.11", "typedoc-json-parser": "^10.2.0", "typescript": "^5.5.3", "vite": "^6.0.3", "vitest": "^2.1.8" }, "files": [ "lib", "dist", "!dist/*.tsbuildinfo", "binding.gyp" ], "repository": { "type": "git", "url": "git+https://github.com/sapphiredev/type.git" }, "engines": { "node": ">=v12", "npm": ">=7" }, "keywords": [ "@sapphire/type", "bot", "typescript", "ts", "discord", "sapphire", "standalone" ], "bugs": { "url": "https://github.com/sapphiredev/type/issues" }, "publishConfig": { "access": "public" }, "resolutions": { "ansi-regex": "^5.0.1", "minimist": "^1.2.8" }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "lint-staged": { "*": "prettier --ignore-unknown --write", "*.{mjs,js,ts}": "eslint --fix --ext mjs,js,ts" }, "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } }, "gypfile": true, "packageManager": "yarn@4.5.3" }