Skip to content

Commit aae422e

Browse files
committed
refactor(ci): simplify GitLab config path
1 parent 60d9aeb commit aae422e

File tree

1 file changed

+2
-5
lines changed
  • packages/create-cli/src/lib/setup

1 file changed

+2
-5
lines changed

packages/create-cli/src/lib/setup/ci.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { select } from '@inquirer/prompts';
2-
import path from 'node:path';
32
import * as YAML from 'yaml';
4-
import { getGitDefaultBranch, logger, toUnixPath } from '@code-pushup/utils';
3+
import { getGitDefaultBranch, logger } from '@code-pushup/utils';
54
import {
65
CI_PROVIDERS,
76
type CiProvider,
@@ -12,9 +11,7 @@ import {
1211

1312
const GITHUB_WORKFLOW_PATH = '.github/workflows/code-pushup.yml';
1413
const GITLAB_CONFIG_PATH = '.gitlab-ci.yml';
15-
const GITLAB_CONFIG_SEPARATE_PATH = toUnixPath(
16-
path.join('.gitlab', 'ci', 'code-pushup.gitlab-ci.yml'),
17-
);
14+
const GITLAB_CONFIG_SEPARATE_PATH = '.gitlab/ci/code-pushup.gitlab-ci.yml';
1815

1916
export async function promptCiProvider(cliArgs: CliArgs): Promise<CiProvider> {
2017
if (isCiProvider(cliArgs.ci)) {

0 commit comments

Comments
 (0)