Files
qqq-cli/packages/cli/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

67 lines
1.5 KiB
JSON

{
"name": "@qrun-io/qqq-cli",
"version": "1.0.0",
"description": "Reference command-line client for QQQ applications, built only on the QQQ UI API (/qqq/v1).",
"keywords": [
"qqq",
"qrun",
"ui-api",
"cli",
"command-line",
"low-code"
],
"license": "Apache-2.0",
"homepage": "https://github.com/QRun-IO/qqq-cli/tree/main/packages/cli#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/cli"
},
"type": "module",
"bin": {
"qqq": "dist/main.js"
},
"exports": {
".": {
"types": "./dist/main.d.ts",
"default": "./dist/main.js"
},
"./program": {
"types": "./dist/program.d.ts",
"default": "./dist/program.js"
},
"./browser-login": {
"types": "./dist/browser-login.d.ts",
"default": "./dist/browser-login.js"
},
"./package.json": "./package.json"
},
"files": [
"dist",
"!dist/test",
"!dist/**/*.map",
"README.md",
"LICENSE"
],
"engines": {
"node": ">=20"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"scripts": {
"build": "tsc -p tsconfig.json",
"test": "node ../../scripts/run-tests.mjs dist/test",
"prepack": "node ../../scripts/copy-license.mjs"
},
"dependencies": {
"@qrun-io/qqq-core": "1.0.0",
"@qrun-io/qqq-ui-api-client": "1.8.0",
"@qrun-io/qqq-ui-api-conformance": "1.6.0",
"commander": "15.0.0"
}
}