diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c241b4..a5f135c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,11 +13,16 @@ jobs: lint: runs-on: ubuntu-latest steps: + - name: Set git to use LF + run: | + git config --global core.autocrlf false + git config --global core.eol lf + - uses: actions/checkout@v3 - name: Set node uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.x - name: Setup run: npm i -g @antfu/ni @@ -35,7 +40,7 @@ jobs: - name: Set node uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 20.x - name: Setup run: npm i -g @antfu/ni @@ -51,7 +56,7 @@ jobs: strategy: matrix: - node: [14.x, 16.x] + node: [16.x, 20.x] os: [ubuntu-latest, windows-latest, macos-latest] fail-fast: false diff --git a/bench/index.bench.ts b/bench/index.bench.ts index 18013eb..b93b8bf 100644 --- a/bench/index.bench.ts +++ b/bench/index.bench.ts @@ -1,4 +1,4 @@ -import { readFile } from 'fs/promises' +import { readFile } from 'node:fs/promises' import { bench, describe } from 'vitest' import { createIsLiteralPositionAcorn, stripLiteralAcorn, stripLiteralRegex } from '../src' diff --git a/package.json b/package.json index d9f690a..97c98c2 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,8 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "require": "./dist/index.cjs", - "import": "./dist/index.mjs" + "import": "./dist/index.mjs", + "require": "./dist/index.cjs" } }, "main": "./dist/index.cjs",