mirror of
https://github.com/unraid/api.git
synced 2026-01-02 22:50:02 -06:00
- Introduced a new test script for shell detection logic in `verify_install.sh`. - Updated the `package.json` to include a new test command for shell detection. - Enhanced the `verify_install.sh` script to accurately check the current shell interpreter using `/proc` and fallback methods. This improves the testing framework and ensures better validation of shell detection functionality. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - Bug Fixes - Installer now detects the actual interpreter more robustly and strictly requires Bash; non-Bash environments produce clear error messages and abort installation. - Tests - Added automated shell-detection tests to validate behavior across environments. - Test suite expanded to run the new shell-detection checks as part of the standard test command. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
47 lines
1.6 KiB
JSON
47 lines
1.6 KiB
JSON
{
|
|
"name": "@unraid/connect-plugin",
|
|
"version": "4.22.1",
|
|
"private": true,
|
|
"dependencies": {
|
|
"commander": "14.0.0",
|
|
"conventional-changelog": "7.1.1",
|
|
"conventional-changelog-conventionalcommits": "9.1.0",
|
|
"date-fns": "4.1.0",
|
|
"glob": "11.0.3",
|
|
"html-sloppy-escaper": "0.1.0",
|
|
"semver": "7.7.2",
|
|
"tsx": "4.20.5",
|
|
"zod": "3.25.76",
|
|
"zx": "8.8.1"
|
|
},
|
|
"type": "module",
|
|
"license": "GPL-2.0-or-later",
|
|
"scripts": {
|
|
"// Build scripts": "",
|
|
"build": "pnpm run build:txz && pnpm run build:plugin && ./scripts/output-local-url.sh",
|
|
"build:txz": "tsx builder/build-txz.ts",
|
|
"build:plugin": "tsx builder/build-plugin.ts",
|
|
"build:validate": "npm run env:validate && npm run build",
|
|
"build:watcher": "./scripts/build-watcher.sh",
|
|
"// Docker commands": "",
|
|
"build:watch": "./scripts/dc.sh pnpm run build:watcher",
|
|
"docker:build": "docker compose build",
|
|
"docker:run": "./scripts/dc.sh /bin/bash",
|
|
"docker:build-and-run": "pnpm run docker:build && pnpm run docker:run",
|
|
"// Environment management": "",
|
|
"env:init": "cp .env.example .env",
|
|
"env:validate": "test -f .env || (echo 'Error: .env file missing. Run npm run env:init first' && exit 1)",
|
|
"env:clean": "rm -f .env",
|
|
"// Testing": "",
|
|
"test": "vitest && pnpm run test:extractor && pnpm run test:shell-detection",
|
|
"test:extractor": "bash ./tests/test-extractor.sh",
|
|
"test:shell-detection": "bash ./tests/test-shell-detection.sh"
|
|
},
|
|
"devDependencies": {
|
|
"http-server": "14.1.1",
|
|
"nodemon": "3.1.10",
|
|
"vitest": "3.2.4"
|
|
},
|
|
"packageManager": "pnpm@10.15.0"
|
|
}
|