UNPKG

workspaces-filter

Version:

A companion for filtering monorepo workspaces, by package name or package dir. Because all package manager's are weird. Useful for running scripts on a subset of workspaces. The primary reason is because Bun's "--filter" feature is buggy, but it's also us

94 lines (93 loc) 2.52 kB
{ "name": "workspaces-filter", "type": "module", "workspaces": [ "./*", "scripts/*" ], "version": "0.8.4", "description": "A companion for filtering monorepo workspaces, by package name or package dir. Because all package manager's are weird. Useful for running scripts on a subset of workspaces. The primary reason is because Bun's \"--filter\" feature is buggy, but it's also useful for other package manger, it also runs shell scripts using the `execa` package", "license": "MIT", "homepage": "https://github.com/tunnckoCore/workspaces-filter", "repository": { "type": "git", "url": "git+https://github.com/tunnckoCore/workspaces-filter.git" }, "keywords": [ "companion", "filtering", "monorepo", "workspaces", "pnpm", "packages", "scripts", "running", "utilities", "cli", "bun", "filter" ], "exports": { ".": { "types": { "import": "./dist/index.d.ts", "require": "./dist/index.d.cts" }, "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } } }, "bin": { "workspaces-filter": "dist/cli.js", "wsf": "dist/cli.js" }, "files": [ "dist", "src" ], "engines": { "node": ">=18.12.0" }, "scripts": { "apidocs": "bun ./scripts/docks.ts", "build": "tsdown", "postbuild": "npm run simple-dcts && npm run apidocs", "lint": "eslint --fix --cache --format codeframe './{src,test}/**/*.ts'", "prepublishOnly": "npm run build", "simple-dcts": "echo \"export type * from './index.d.ts';\" > ./dist/index.d.cts", "pretest": "bun run lint", "test": "bun test --coverage", "test:ci": "bun test --coverage --coverage-reporter=lcov", "test:vitest": "vitest run --coverage" }, "publishConfig": { "access": "public", "provenance": true, "registry": "https://registry.npmjs.org", "tag": "latest" }, "dependencies": { "@tunnckocore/execa": "^6.0.0", "cac": "^6.7.14", "dargs": "^8.1.0", "fast-glob": "^3.3.3", "picomatch": "^4.0.2", "yaml": "^2.8.0" }, "devDependencies": { "@types/bun": "^1.2.12", "@types/node": "^22.15.17", "eslint": "^9.27.0", "eslint-config-xaxa": "^28.0.10", "eslint-formatter-codeframe": "^7.32.1", "parse-comments": "^1.0.0", "tsdown": "^0.12.3", "typescript": "^5.8.3" } }