From df636d01f1af2d680e214534235e0e1c67394c56 Mon Sep 17 00:00:00 2001 From: RoBorg Date: Wed, 6 Sep 2023 11:15:04 +0100 Subject: [PATCH] Rename master to main --- .github/workflows/main.yml | 2 +- dist/index.js | 2 +- src/index.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4ae8514..d074b17 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,7 +2,7 @@ name: Release on: push: branches: - - master + - main jobs: release: name: Release diff --git a/dist/index.js b/dist/index.js index f3c1631..2cbc9fe 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31,7 +31,7 @@ var argv = require('yargs') }) .argv; var ESLINT_CONFIG_FILE_NAME = '.eslintrc.json'; -var ESLINT_CONFIG_URL = "https://raw.githubusercontent.com/stickeeuk/javascript-code-style/master/" + ESLINT_CONFIG_FILE_NAME; +var ESLINT_CONFIG_URL = "https://raw.githubusercontent.com/stickeeuk/javascript-code-style/main/" + ESLINT_CONFIG_FILE_NAME; var ENCODING = 'utf8'; var YARN_LOCK_EXISTS = fs_1.default.existsSync('yarn.lock'); var YARN = argv.yarn || YARN_LOCK_EXISTS; diff --git a/src/index.ts b/src/index.ts index 7e2e796..6afc629 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,7 +17,7 @@ const argv = require('yargs') .argv; const ESLINT_CONFIG_FILE_NAME = '.eslintrc.json'; -const ESLINT_CONFIG_URL = `https://raw.githubusercontent.com/stickeeuk/javascript-code-style/master/${ESLINT_CONFIG_FILE_NAME}`; +const ESLINT_CONFIG_URL = `https://raw.githubusercontent.com/stickeeuk/javascript-code-style/main/${ESLINT_CONFIG_FILE_NAME}`; const ENCODING = 'utf8'; @@ -96,7 +96,7 @@ const mergeEslintConfigs = () => { } const installPeerDependencies = () => { - const command = `npx install-peerdeps eslint-config-stickee --only-peers ${YARN ? '--yarn' : ''}`; + const command = `npx install-peerdeps eslint-config-stickee --only-peers ${YARN ? '--yarn' : ''}`; const spinner = ora('installing peer dependencies...').start() return new Promise((resolve, reject) => { exec(command, (error) => {