diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c8ede2..46cbf9c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: test: timeout-minutes: 10 runs-on: ubuntu-latest - name: "Build&Test: node-lts, ubuntu-latest" + name: 'Build&Test: node-lts, ubuntu-latest' steps: - name: ⤵️ Checkout uses: actions/checkout@v4 @@ -65,7 +65,7 @@ jobs: lint: timeout-minutes: 10 runs-on: ubuntu-latest - name: "Lint: node-lts, ubuntu-latest" + name: 'Lint: node-lts, ubuntu-latest' steps: - name: ⤵️ Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c9827ae..2c8c0e9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: 🚀 Publish Package on: push: tags: - - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 jobs: publish: diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index bd8aec8..689a89a 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -3,7 +3,7 @@ name: 🚀 Add GitHub Release Tag on: push: tags: - - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 # $GITHUB_REF_NAME - https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables diff --git a/vite.config.ts b/vite.config.ts index bf22367..7bfd16b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,4 +1,4 @@ -import { basename, resolve } from 'path' +import { basename, resolve } from 'node:path' import { defineConfig } from 'vite' import { browser, name } from './package.json' @@ -8,12 +8,13 @@ export default defineConfig({ build: { lib: { formats: ['umd'], - fileName: format => { - if (format === 'umd') return basename(browser) - return `${ name }.${ format }` + fileName: (format) => { + if (format === 'umd') + return basename(browser) + return `${name}.${format}` }, entry: resolvePath('./src/index.ts'), - name: name.replace(/-(\w)/ig, (_, v) => v.toUpperCase()), + name: name.replace(/-(\w)/g, (_, v) => v.toUpperCase()), }, }, })