{ "name": "zx", "version": "8.1.9", "description": "A tool for writing better scripts", "type": "module", "main": "./build/index.cjs", "types": "./build/index.d.ts", "typesVersions": { "*": { ".": [ "./build/index.d.ts" ], "globals": [ "./build/globals.d.ts" ], "cli": [ "./build/cli.d.ts" ], "core": [ "./build/core.d.ts" ] } }, "exports": { ".": { "types": "./build/index.d.ts", "import": "./build/index.js", "require": "./build/index.cjs", "default": "./build/index.js" }, "./globals": { "types": "./build/globals.d.ts", "import": "./build/globals.js", "require": "./build/globals.cjs", "default": "./build/globals.js" }, "./cli": { "types": "./build/cli.d.ts", "import": "./build/cli.js", "require": "./build/cli.cjs", "default": "./build/cli.js" }, "./core": { "types": "./build/core.d.ts", "import": "./build/core.js", "require": "./build/core.cjs", "default": "./build/core.js" }, "./package.json": "./package.json" }, "bin": { "zx": "build/cli.js" }, "man": "./man/zx.1", "files": [ "build", "man" ], "engines": { "node": ">= 12.17.0" }, "scripts": { "fmt": "prettier --write .", "fmt:check": "prettier --check .", "build": "npm run build:js && npm run build:dts", "build:js": "node scripts/build-js.mjs --format=cjs --hybrid --entry=src/*.ts && npm run build:vendor", "build:vendor": "node scripts/build-js.mjs --format=cjs --entry=src/vendor-*.ts --bundle=all", "build:dts": "tsc --project tsconfig.prod.json && node scripts/build-dts.mjs", "pretest": "npm run build", "test": "npm run test:size && npm run fmt:check && npm run test:unit && npm run test:types && npm run test:license", "test:it": "node ./test/it/build.test.js", "test:unit": "node ./test/all.test.js", "test:coverage": "c8 -x build/deno.js -x build/vendor-extra.cjs -x build/vendor-core.cjs -x build/esblib.cjs -x 'test/**' -x scripts --check-coverage npm run test:unit", "test:circular": "madge --circular src/*", "test:types": "tsd", "test:license": "node ./test/extra.test.js", "test:audit": "npm audit fix", "test:size": "size-limit", "test:smoke:tsx": "tsx test/smoke/ts.test.ts", "test:smoke:tsc": "cd test/smoke && mkdir -p node_modules && ln -s ../../../ ./node_modules/zx; ../../node_modules/typescript/bin/tsc -v && ../../node_modules/typescript/bin/tsc --esModuleInterop --module node16 --rootDir . --outdir ./temp ts.test.ts && node ./temp/ts.test.js", "test:smoke:ts-node": "node --loader ts-node/esm test/smoke/ts.test.ts", "test:smoke:bun": "bun test ./test/smoke/bun.test.js", "test:smoke:win32": "node ./test/smoke/win32.test.js", "test:smoke:cjs": "node ./test/smoke/node.test.cjs", "test:smoke:mjs": "node ./test/smoke/node.test.mjs", "test:smoke:deno": "deno test ./test/smoke/deno.test.js --allow-read --allow-sys --allow-env --allow-run", "version": "cat package.json | fx .version" }, "optionalDependencies": { "@types/fs-extra": ">=11", "@types/node": ">=20" }, "devDependencies": { "@size-limit/file": "^11.1.5", "@types/fs-extra": "^11.0.4", "@types/minimist": "^1.2.5", "@types/node": ">=20.11.30", "@types/which": "^3.0.4", "@webpod/ingrid": "^0.0.0-beta.3", "@webpod/ps": "^0.0.0-beta.8", "c8": "^10.1.2", "chalk": "^5.3.0", "create-require": "^1.1.1", "depseek": "^0.4.1", "dts-bundle-generator": "^9.5.1", "esbuild": "^0.23.1", "esbuild-node-externals": "^1.14.0", "esbuild-plugin-entry-chunks": "^0.1.15", "esbuild-plugin-extract-helpers": "^0.0.6", "esbuild-plugin-hybrid-export": "^0.2.5", "esbuild-plugin-resolve": "^2.0.0", "esbuild-plugin-transform-hook": "^0.1.1", "esbuild-plugin-utils": "^0.1.0", "fs-extra": "^11.2.0", "fx": "*", "globby": "^14.0.2", "madge": "^8.0.0", "minimist": "^1.2.8", "node-fetch-native": "^1.6.4", "prettier": "^3.3.3", "size-limit": "^11.1.5", "ts-node": "^10.9.2", "tsd": "^0.31.2", "tsx": "^4.19.1", "typescript": "^5.6.2", "which": "^4.0.0", "yaml": "^2.5.1", "zurk": "^0.4.4" }, "publishConfig": { "registry": "https://wombat-dressing-room.appspot.com" }, "keywords": [ "shell", "script", "bash", "bin", "binary", "child", "process", "exec", "execute", "invoke", "call", "spawn" ], "prettier": { "semi": false, "singleQuote": true, "endOfLine": "lf", "trailingComma": "es5" }, "repository": { "type": "git", "url": "git+https://github.com/google/zx.git" }, "homepage": "https://google.github.io/zx/", "author": "Anton Medvedev ", "license": "Apache-2.0" }