diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8c8041b9..22cc6438 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,21 +25,6 @@ jobs: npm run func-test npm run logger-test - Coverage: - if: "!contains(github.event.head_commit.message, '[skip ci]')" - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v5 - - name: Install Node - uses: actions/setup-node@v6 - with: - node-version: 'lts/*' - - name: Install Dependencies - run: npm ci - - name: Run Tests 👩🏽‍💻 - run: npm run cover - Lint: if: "!contains(github.event.head_commit.message, '[skip ci]')" runs-on: ubuntu-latest @@ -56,7 +41,7 @@ jobs: run: npm run lint Release: - needs: [Test, Coverage, Lint] + needs: [Test, Lint] if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: diff --git a/lib/defaults.js b/lib/defaults.js index 51b59b8e..1f7ea445 100644 --- a/lib/defaults.js +++ b/lib/defaults.js @@ -1,9 +1,6 @@ -import { createRequire } from 'module'; -const require = createRequire(import.meta.url); +import bem from '../presets/bem.json' with { type: 'json' }; -export const presets = { - bem: require('../presets/bem.json'), -}; +export const presets = { bem }; /** * Sets options