@supercheck/cli 0.1.1-rc.1 → 0.1.1-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -10
- package/dist/bin/supercheck.js +5 -5
- package/dist/bin/supercheck.js.map +1 -1
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -36,16 +36,6 @@ Upgrade the CLI to the latest release:
|
|
|
36
36
|
supercheck upgrade
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
## Release Channels
|
|
40
|
-
|
|
41
|
-
The npm package page defaults to the `latest` dist-tag. Prerelease versions (for example, `-rc.x`) are still visible when published with the `latest` tag.
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
npm view @supercheck/cli dist-tags
|
|
45
|
-
npm publish --tag latest --access public
|
|
46
|
-
npm dist-tag add @supercheck/cli@<version> rc
|
|
47
|
-
```
|
|
48
|
-
|
|
49
39
|
## Quick Start
|
|
50
40
|
|
|
51
41
|
1. **Initialize a new project**:
|
package/dist/bin/supercheck.js
CHANGED
|
@@ -222,7 +222,7 @@ function requireTriggerKey() {
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
// src/version.ts
|
|
225
|
-
var CLI_VERSION = true ? "0.1.1-rc.
|
|
225
|
+
var CLI_VERSION = true ? "0.1.1-rc.3" : "0.0.0-dev";
|
|
226
226
|
|
|
227
227
|
// src/utils/proxy.ts
|
|
228
228
|
import { ProxyAgent } from "undici";
|
|
@@ -5079,7 +5079,7 @@ var doctorCommand = new Command19("doctor").description("Check that all dependen
|
|
|
5079
5079
|
import { Command as Command20 } from "commander";
|
|
5080
5080
|
import { spawn as spawn2 } from "child_process";
|
|
5081
5081
|
var PACKAGE_NAME = "@supercheck/cli";
|
|
5082
|
-
var
|
|
5082
|
+
var RELEASE_TARGET_PATTERN = /^(latest|v?\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?)$/;
|
|
5083
5083
|
function normalizeTag(tag) {
|
|
5084
5084
|
const trimmed = tag.trim();
|
|
5085
5085
|
if (trimmed.startsWith("v") && trimmed.length > 1 && /\d/.test(trimmed[1])) {
|
|
@@ -5125,12 +5125,12 @@ function runInstallCommand(command, args) {
|
|
|
5125
5125
|
child.on("close", (code) => resolve10(code ?? 0));
|
|
5126
5126
|
});
|
|
5127
5127
|
}
|
|
5128
|
-
var upgradeCommand = new Command20("upgrade").description("Upgrade the Supercheck CLI to the latest version").option("--tag <tag>", "
|
|
5128
|
+
var upgradeCommand = new Command20("upgrade").description("Upgrade the Supercheck CLI to the latest version").option("--tag <tag>", "Release target to install (latest or explicit version)").option("--package-manager <pm>", "Package manager to use (npm, yarn, pnpm, bun)").option("-y, --yes", "Skip confirmation prompt").option("--dry-run", "Print the upgrade command without running it").action(async (options) => {
|
|
5129
5129
|
const format = getOutputFormat();
|
|
5130
5130
|
const tag = normalizeTag(options.tag ?? getDefaultTag());
|
|
5131
|
-
if (!
|
|
5131
|
+
if (!RELEASE_TARGET_PATTERN.test(tag)) {
|
|
5132
5132
|
throw new CLIError(
|
|
5133
|
-
`Invalid
|
|
5133
|
+
`Invalid target "${tag}". Use "latest" or an explicit version (for example 0.1.1-rc.2).`,
|
|
5134
5134
|
3 /* ConfigError */
|
|
5135
5135
|
);
|
|
5136
5136
|
}
|