UNPKG

relative-import-path

Version:

path.relative for generating short require'able paths.

75 lines (74 loc) 2.35 kB
{ "name": "relative-import-path", "description": "path.relative for generating short require'able paths.", "version": "1.0.0", "author": "Dylan Piercey <dpiercey@ebay.com>", "bugs": "https://github.com/marko-js/relative-import-path/issues", "devDependencies": { "@commitlint/cli": "^16.2.1", "@commitlint/config-conventional": "^16.2.1", "@types/mocha": "^9.1.0", "@types/node": "^17.0.21", "@typescript-eslint/eslint-plugin": "^5.14.0", "@typescript-eslint/parser": "^5.14.0", "cross-env": "^7.0.3", "esbuild": "^0.14.25", "esbuild-register": "^3.3.2", "eslint": "^8.10.0", "eslint-config-prettier": "^8.5.0", "fast-glob": "^3.2.11", "fixpack": "^4.0.0", "husky": "^7.0.4", "lint-staged": "^12.3.5", "mocha": "^9.2.1", "mocha-snap": "^4.3.0", "nyc": "^15.1.0", "prettier": "^2.5.1", "semantic-release": "^19.0.2", "typescript": "^4.6.2" }, "exports": { ".": { "import": "./dist/index.mjs", "default": "./dist/index.js" } }, "files": [ "dist", "!**/__tests__", "!**/*.tsbuildinfo" ], "homepage": "https://github.com/marko-js/relative-import-path", "keywords": [ "node_modules", "path", "relative", "require", "resolve", "shorten" ], "license": "MIT", "main": "./dist/index.js", "module": "./dist/index.mjs", "repository": { "type": "git", "url": "https://github.com/marko-js/relative-import-path" }, "scripts": { "build": "tsc -b && node -r esbuild-register build", "ci:test": "nyc npm run mocha -- --forbid-pending --forbid-only", "format": "npm run lint:eslint -- --fix && npm run lint:prettier -- --write && (fixpack || true)", "lint": "tsc -b && npm run lint:eslint && npm run lint:prettier -- -l && fixpack", "lint:eslint": "eslint -f visualstudio .", "lint:prettier": "prettier \"./**/*{.ts,.js,.json,.md,.yml,rc}\"", "mocha": "cross-env NODE_ENV=test mocha \"./src/**/__tests__/*.test.ts\"", "prepare": "husky install", "prepublishOnly": "npm run build", "release": "semantic-release", "report": "open ./coverage/lcov-report/index.html", "test": "npm run mocha -- --watch", "test:inspect": "npm test -- --inspect", "test:update": "npm run mocha -- --update" }, "types": "dist/index.d.ts" }