diff --git a/.github/workflows/release-cli.yaml b/.github/workflows/release-cli.yaml index 5dd5c6e..36a596a 100644 --- a/.github/workflows/release-cli.yaml +++ b/.github/workflows/release-cli.yaml @@ -55,6 +55,6 @@ jobs: with: node-version: "20.x" registry-url: "https://registry.npmjs.com" - + # Sanity check to ensure that the package is published and runnable - - run: npx rmoa --help + - run: npx ramoa --help diff --git a/package-lock.json b/package-lock.json index bfad49f..829dfb0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10172,6 +10172,10 @@ "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" }, + "node_modules/ramoa": { + "resolved": "packages/cli", + "link": true + }, "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -10542,10 +10546,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/rmoa": { - "resolved": "packages/cli", - "link": true - }, "node_modules/rollup": { "version": "2.79.1", "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz", @@ -12440,7 +12440,7 @@ } }, "packages/cli": { - "name": "rmoa", + "name": "ramoa", "version": "0.0.0", "license": "See LICENSE in LICENSE.txt", "dependencies": { @@ -12451,10 +12451,11 @@ "ora": "^8.0.1", "pino": "^9.3.1", "pino-pretty": "^11.2.1", + "semver": "^7.5.2", "yargs": "^17.7.2" }, "bin": { - "rmoa": "cli.js" + "ramoa": "cli.js" }, "devDependencies": { "@types/mime-types": "^2.1.4", diff --git a/packages/cli/README.md b/packages/cli/README.md index f8ebfc8..376eb0e 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -15,7 +15,7 @@ should. ## Installation ```bash -npm install -g rmoa +npm install -g ramoa ``` ## Usage @@ -27,16 +27,16 @@ need to create your api key on the To start using the CLI, run: ```bash -rmoa --help +ramoa --help ``` ### Commands ``` -rmoa +ramoa Commands: -rmoa lint +ramoa lint Lint & get a score for your OpenAPI definition using the Rate My OpenAPI ruleset diff --git a/packages/cli/package.json b/packages/cli/package.json index 23ec2c2..0f97d54 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,5 +1,5 @@ { - "name": "rmoa", + "name": "ramoa", "version": "0.0.0", "type": "module", "description": "The command-line interface for Rate My Open API", @@ -21,7 +21,7 @@ "node": ">=20.0.0" }, "bin": { - "rmoa": "cli.js" + "ramoa": "cli.js" }, "devDependencies": { "@types/mime-types": "^2.1.4", diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts index 0bd0e21..a37da2c 100644 --- a/packages/cli/src/index.ts +++ b/packages/cli/src/index.ts @@ -29,7 +29,7 @@ try { ); } catch (e) { await printCriticalFailureToConsoleAndExit( - `Unable to load rmoa. The package.json is missing or malformed.`, + `Unable to load ramoa. The package.json is missing or malformed.`, ); }