UNPKG

@mathigon/euclid

Version:

Euclidean geometry classes and tools for JavaScript

52 lines (51 loc) 1.64 kB
{ "name": "@mathigon/euclid", "version": "1.2.4", "license": "MIT", "homepage": "https://mathigon.io/euclid", "repository": "mathigon/euclid.js", "description": "Euclidean geometry classes and tools for JavaScript", "keywords": [ "geometry", "intersections", "mathematics", "svg", "canvas" ], "engines": { "node": ">=16" }, "main": "dist/index.cjs.js", "module": "dist/index.esm.js", "types": "dist/index.d.ts", "exports": { "types": "./dist/index.d.ts", "import": "./dist/index.esm.js", "require": "./dist/index.cjs.js" }, "scripts": { "test": "ts-node node_modules/tape/bin/tape test/**/*.ts", "prepublishOnly": "npm test && npm run lint && npm run build", "cjs": "esbuild src/index.ts --outfile=dist/index.cjs.js --format=cjs --bundle --target=es2016 --sourcemap --external:@mathigon/core --external:@mathigon/fermat", "esm": "esbuild src/index.ts --outfile=dist/index.esm.js --format=esm --bundle --target=es2016 --sourcemap --external:@mathigon/core --external:@mathigon/fermat", "types": "tsc --project tsconfig-types.json", "build": "npm run cjs && npm run esm && npm run types", "lint": "eslint . --ext .ts" }, "dependencies": { "@mathigon/core": "1.1.23", "@mathigon/fermat": "1.1.24" }, "devDependencies": { "@types/tape": "5.8.1", "@typescript-eslint/eslint-plugin": "8.23.0", "@typescript-eslint/parser": "8.23.0", "esbuild": "0.24.2", "eslint": "8.57.1", "eslint-plugin-import": "2.31.0", "tape": "5.9.0", "ts-node": "10.9.2", "tslib": "2.8.1", "typescript": "5.7.3" } }