Files
qqq-cli/packages/ui-api-client/package.json
T
james.maesandClaude Fable 5.1 5dd5e2d7f1 test: run the package tests without shell globs, for the Windows lane
The cli-windows-x64 lane failed in every package with "Could not find
...\dist\test\*.test.js": npm runs scripts with cmd.exe there, which
does not expand globs, and Node 20 does not glob its own arguments.
Plain "node --test" is no fix on Node 20 either, because its default
patterns run every file under a test directory, helpers such as
harness.js and stub.js included.

scripts/run-tests.mjs lists the *.test.js files directly in dist/test and
spawns node --test with them, so all four packages run the same files on
every platform. Counts on macOS are unchanged: 18, 167, 3 and 100.

Two cheap Windows fixes in the CLI test harness: the sandbox sets
USERPROFILE as well as HOME (os.homedir() reads USERPROFILE on Windows,
so defaults would have escaped into the real profile) and QQQ_STATE_DIR,
and the golden-file normaliser turns backslashes in sandbox paths into /
so export-download-dir.txt matches there too.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-01 04:39:55 -06:00

65 lines
1.7 KiB
JSON

{
"name": "@qrun-io/qqq-ui-api-client",
"version": "1.8.0",
"description": "Typed TypeScript client for the QQQ UI API (/qqq/v1), generated from the merged OpenAPI document (core + extensions), with OAuth2 device-flow sign-in, token refresh and a realtime (SSE) reader.",
"keywords": [
"qqq",
"qrun",
"ui-api",
"openapi",
"typescript",
"client",
"oauth2",
"sse"
],
"license": "Apache-2.0",
"homepage": "https://github.com/QRun-IO/qqq-cli/tree/main/packages/ui-api-client#readme",
"bugs": {
"url": "https://github.com/QRun-IO/qqq-cli/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/QRun-IO/qqq-cli.git",
"directory": "packages/ui-api-client"
},
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./openapi/qqq-v1.json": "./openapi/qqq-v1.json",
"./openapi/extension-sources.json": "./openapi/extension-sources.json",
"./package.json": "./package.json"
},
"files": [
"dist",
"!dist/test",
"!dist/**/*.map",
"openapi",
"README.md",
"LICENSE"
],
"engines": {
"node": ">=20"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"scripts": {
"generate": "openapi-typescript openapi/qqq-v1.json --output src/schema.ts && node ../../scripts/fix-recursive-types.mjs src/schema.ts",
"build": "tsc -p tsconfig.json",
"test": "node ../../scripts/run-tests.mjs dist/test",
"prepack": "node ../../scripts/copy-license.mjs"
},
"dependencies": {
"openapi-fetch": "0.17.0"
},
"devDependencies": {
"openapi-typescript": "7.13.0"
}
}