Update names
This commit is contained in:
18
bin/cli.mjs
18
bin/cli.mjs
@@ -263,7 +263,7 @@ var setCcVersion = (v) => {
|
||||
};
|
||||
|
||||
var cypressPkg = require2("cypress/package.json");
|
||||
var pkg = require2("@krivega/cc/package.json");
|
||||
var pkg = require2("@bart/cc/package.json");
|
||||
initCapture();
|
||||
setCypressVersion(cypressPkg.version);
|
||||
setCcVersion(pkg.version);
|
||||
@@ -485,7 +485,7 @@ var bootCypress = async (params) => {
|
||||
try {
|
||||
const f = fs.readFileSync(tempFilePath, "utf-8");
|
||||
if (!f) {
|
||||
throw new Error("Is @krivega/cc/plugin installed?");
|
||||
throw new Error("Is @bart/cc/plugin installed?");
|
||||
}
|
||||
debug5("cypress config '%s': '%s'", tempFilePath, f);
|
||||
return JSON.parse(f);
|
||||
@@ -494,7 +494,7 @@ var bootCypress = async (params) => {
|
||||
info(bold("Cypress stdout:\n"), stdout2);
|
||||
info(bold("Cypress stderr:\n"), stderr);
|
||||
throw new ValidationError(`Unable to resolve cypress configuration
|
||||
- make sure that '@krivega/cc/plugin' is installed
|
||||
- make sure that '@bart/cc/plugin' is installed
|
||||
- report the issue together with cypress stdout and stderr
|
||||
`);
|
||||
}
|
||||
@@ -815,7 +815,7 @@ async function getClient() {
|
||||
"x-cypress-request-attempt": config["axios-retry"]?.retryCount ?? 0,
|
||||
"x-cypress-version": _cypressVersion ?? "0.0.0",
|
||||
"x-ccy-version": ccyVerson,
|
||||
"User-Agent": `@krivega/cc/${ccyVerson}`
|
||||
"User-Agent": `@bart/cc/${ccyVerson}`
|
||||
};
|
||||
if (_runId) {
|
||||
headers["x-cypress-run-id"] = _runId;
|
||||
@@ -1529,7 +1529,7 @@ var SpecAfterResult = class _SpecAfterResult {
|
||||
static getDummyTestAttemptError(attemptState) {
|
||||
return match4(attemptState).with("failed", () => ({
|
||||
name: "Error",
|
||||
message: "[@krivega/cc] Could not get cypress attempt error details",
|
||||
message: "[@bart/cc] Could not get cypress attempt error details",
|
||||
stack: "",
|
||||
codeFrame: null
|
||||
})).with("skipped", () => ({
|
||||
@@ -3287,7 +3287,7 @@ async function run(params = {}) {
|
||||
config,
|
||||
browser: validatedParams.browser
|
||||
});
|
||||
info(`@krivega/cc version: ${dim(_ccVersion)}`);
|
||||
info(`@bart/cc version: ${dim(_ccVersion)}`);
|
||||
info(`Cypress version: ${dim(_cypressVersion)}`);
|
||||
info("Discovered %d spec files", specs.length);
|
||||
info(
|
||||
@@ -3437,7 +3437,7 @@ var toBoolean = (value) => {
|
||||
|
||||
init_esm_shims();
|
||||
var import_extra_typings = __toESM(require_extra_typings());
|
||||
var createProgram = (command = new import_extra_typings.Command()) => command.name("@krivega/cc").description(
|
||||
var createProgram = (command = new import_extra_typings.Command()) => command.name("@bart/cc").description(
|
||||
`
|
||||
Run Cypress tests on CI using https://cc.dev or https://sorry-cypress.dev as an orchestration and reporting service
|
||||
|
||||
@@ -3509,12 +3509,12 @@ ${getLegalNotice()}
|
||||
).addOption(
|
||||
new import_extra_typings.Option(
|
||||
"--cloud-config-file <path>",
|
||||
"Specify the config file for @krivega/cc, defaults to 'cc.config.js' and will be searched in the project root, unless an aboslue path is provided"
|
||||
"Specify the config file for @bart/cc, defaults to 'cc.config.js' and will be searched in the project root, unless an aboslue path is provided"
|
||||
).default(void 0)
|
||||
).addOption(
|
||||
new import_extra_typings.Option(
|
||||
`--cloud-debug [true | string]`,
|
||||
`Enable debug mode for @krivega/cc, this will print out logs for troubleshooting. Values: [true | ${Object.values(
|
||||
`Enable debug mode for @bart/cc, this will print out logs for troubleshooting. Values: [true | ${Object.values(
|
||||
DebugMode
|
||||
).join(
|
||||
" | "
|
||||
|
||||
12
index.js
12
index.js
@@ -192,7 +192,7 @@ var setCcVersion = (v) => {
|
||||
};
|
||||
|
||||
var cypressPkg = require2("cypress/package.json");
|
||||
var pkg = require2("@krivega/cc/package.json");
|
||||
var pkg = require2("@bart/cc/package.json");
|
||||
initCapture();
|
||||
setCypressVersion(cypressPkg.version);
|
||||
setCcVersion(pkg.version);
|
||||
@@ -408,7 +408,7 @@ var bootCypress = async (params) => {
|
||||
try {
|
||||
const f = import_fs.default.readFileSync(tempFilePath, "utf-8");
|
||||
if (!f) {
|
||||
throw new Error("Is @krivega/cc/plugin installed?");
|
||||
throw new Error("Is @bart/cc/plugin installed?");
|
||||
}
|
||||
debug5("cypress config '%s': '%s'", tempFilePath, f);
|
||||
return JSON.parse(f);
|
||||
@@ -417,7 +417,7 @@ var bootCypress = async (params) => {
|
||||
info(bold("Cypress stdout:\n"), stdout2);
|
||||
info(bold("Cypress stderr:\n"), stderr);
|
||||
throw new ValidationError(`Unable to resolve cypress configuration
|
||||
- make sure that '@krivega/cc/plugin' is installed
|
||||
- make sure that '@bart/cc/plugin' is installed
|
||||
- report the issue together with cypress stdout and stderr
|
||||
`);
|
||||
}
|
||||
@@ -741,7 +741,7 @@ async function getClient() {
|
||||
"x-cypress-request-attempt": config["axios-retry"]?.retryCount ?? 0,
|
||||
"x-cypress-version": _cypressVersion ?? "0.0.0",
|
||||
"x-ccy-version": ccyVerson,
|
||||
"User-Agent": `@krivega/cc/${ccyVerson}`
|
||||
"User-Agent": `@bart/cc/${ccyVerson}`
|
||||
};
|
||||
if (_runId) {
|
||||
headers["x-cypress-run-id"] = _runId;
|
||||
@@ -1451,7 +1451,7 @@ var SpecAfterResult = class _SpecAfterResult {
|
||||
static getDummyTestAttemptError(attemptState) {
|
||||
return (0, import_ts_pattern4.match)(attemptState).with("failed", () => ({
|
||||
name: "Error",
|
||||
message: "[@krivega/cc] Could not get cypress attempt error details",
|
||||
message: "[@bart/cc] Could not get cypress attempt error details",
|
||||
stack: "",
|
||||
codeFrame: null
|
||||
})).with("skipped", () => ({
|
||||
@@ -3196,7 +3196,7 @@ async function run(params = {}) {
|
||||
config,
|
||||
browser: validatedParams.browser
|
||||
});
|
||||
info(`@krivega/cc version: ${dim(_ccVersion)}`);
|
||||
info(`@bart/cc version: ${dim(_ccVersion)}`);
|
||||
info(`Cypress version: ${dim(_cypressVersion)}`);
|
||||
info("Discovered %d spec files", specs.length);
|
||||
info(
|
||||
|
||||
12
index.mjs
12
index.mjs
@@ -158,7 +158,7 @@ var setCcVersion = (v) => {
|
||||
};
|
||||
|
||||
var cypressPkg = require2("cypress/package.json");
|
||||
var pkg = require2("@krivega/cc/package.json");
|
||||
var pkg = require2("@bart/cc/package.json");
|
||||
initCapture();
|
||||
setCypressVersion(cypressPkg.version);
|
||||
setCcVersion(pkg.version);
|
||||
@@ -374,7 +374,7 @@ var bootCypress = async (params) => {
|
||||
try {
|
||||
const f = fs.readFileSync(tempFilePath, "utf-8");
|
||||
if (!f) {
|
||||
throw new Error("Is @krivega/cc/plugin installed?");
|
||||
throw new Error("Is @bart/cc/plugin installed?");
|
||||
}
|
||||
debug5("cypress config '%s': '%s'", tempFilePath, f);
|
||||
return JSON.parse(f);
|
||||
@@ -383,7 +383,7 @@ var bootCypress = async (params) => {
|
||||
info(bold("Cypress stdout:\n"), stdout2);
|
||||
info(bold("Cypress stderr:\n"), stderr);
|
||||
throw new ValidationError(`Unable to resolve cypress configuration
|
||||
- make sure that '@krivega/cc/plugin' is installed
|
||||
- make sure that '@bart/cc/plugin' is installed
|
||||
- report the issue together with cypress stdout and stderr
|
||||
`);
|
||||
}
|
||||
@@ -707,7 +707,7 @@ async function getClient() {
|
||||
"x-cypress-request-attempt": config["axios-retry"]?.retryCount ?? 0,
|
||||
"x-cypress-version": _cypressVersion ?? "0.0.0",
|
||||
"x-ccy-version": ccyVerson,
|
||||
"User-Agent": `@krivega/cc/${ccyVerson}`
|
||||
"User-Agent": `@bart/cc/${ccyVerson}`
|
||||
};
|
||||
if (_runId) {
|
||||
headers["x-cypress-run-id"] = _runId;
|
||||
@@ -1417,7 +1417,7 @@ var SpecAfterResult = class _SpecAfterResult {
|
||||
static getDummyTestAttemptError(attemptState) {
|
||||
return match4(attemptState).with("failed", () => ({
|
||||
name: "Error",
|
||||
message: "[@krivega/cc] Could not get cypress attempt error details",
|
||||
message: "[@bart/cc] Could not get cypress attempt error details",
|
||||
stack: "",
|
||||
codeFrame: null
|
||||
})).with("skipped", () => ({
|
||||
@@ -3162,7 +3162,7 @@ async function run(params = {}) {
|
||||
config,
|
||||
browser: validatedParams.browser
|
||||
});
|
||||
info(`@krivega/cc version: ${dim(_ccVersion)}`);
|
||||
info(`@bart/cc version: ${dim(_ccVersion)}`);
|
||||
info(`Cypress version: ${dim(_cypressVersion)}`);
|
||||
info("Discovered %d spec files", specs.length);
|
||||
info(
|
||||
|
||||
Reference in New Issue
Block a user