UNPKG

@yarn-tool/resolve-package

Version:

解析 Node.js 套件的根目錄與 package.json 路徑的工具庫 / A utility for resolving package root and package.json paths

77 lines (76 loc) 2.19 kB
{ "name": "@yarn-tool/resolve-package", "version": "3.0.9", "description": "解析 Node.js 套件的根目錄與 package.json 路徑的工具庫 / A utility for resolving package root and package.json paths", "keywords": [ "yarn-tool", "pkg-dir", "upath2", "resolve", "package", "json", "root", "npm", "entry", "find", "up", "find-up", "findup", "look-up", "look", "file", "search", "match", "parent", "parents", "folder", "directory", "walk", "walking", "path" ], "homepage": "https://github.com/bluelovers/ws-yarn-workspaces/tree/master/packages/@yarn-tool/resolve-package#readme", "bugs": { "url": "https://github.com/bluelovers/ws-yarn-workspaces/issues" }, "repository": { "type": "git", "url": "git+https://github.com/bluelovers/ws-yarn-workspaces.git", "directory": "packages/@yarn-tool/resolve-package" }, "license": "ISC", "author": "", "main": "index.js", "scripts": { "coverage": "npx nyc yarn run test", "lint": "npx eslint **/*.ts", "test": "node --run test:jest --", "test:jest": "jest --passWithNoTests", "test:jest:coverage": "yarn run test:jest -- --coverage", "test:jest:snapshot": "yarn run test:jest -- -u", "test:mocha": "npx mocha --require ts-node/register \"!(node_modules)/**/*.{test,spec}.{ts,tsx}\"", "test:snapshot": "yarn run test -- -u", "test:tsd": "ynpx tsd", "npm:publish": "npm publish", "preversion": "yarn run test", "prepublish:lockfile": "npx sync-lockfile .", "prepublishOnly": "echo prepublishOnly", "postpublish_": "git commit -m \"chore(release): publish\" .", "ncu": "npx yarn-tool ncu -u", "sort-package-json": "npx yarn-tool sort", "tsc:default": "tsc -p tsconfig.json", "tsc:esm": "tsc -p tsconfig.esm.json", "tsc:showConfig": "ynpx get-current-tsconfig -p" }, "dependencies": { "@yarn-tool/require-resolve": "^4.0.8", "tslib": ">=2.8.1" }, "devDependencies": { "@ts-type/package-dts": "^3.0.9" }, "publishConfig": { "access": "public" }, "gitHead": "8c939a673ef0f088d4a3aa8a240ed6c28d390f98" }