diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 090bc7b8..ff1e2a38 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -12,6 +12,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: + cache: 'npm' node-version: 23 - name: Install dependencies env: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index aa3d9b63..f6595f3d 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -8,6 +8,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: + cache: 'npm' node-version: 23 - name: Install dependencies env: diff --git a/vite.config.js b/vite.config.js index 20e73694..fa786dff 100644 --- a/vite.config.js +++ b/vite.config.js @@ -44,8 +44,8 @@ const libConfig = { lib: { entry: 'src/lib/js/index.js', name: 'Formeo', - fileName: format => `formeo.${format}.min.js`, - formats: ['es', 'cjs', 'umd', 'iife'], + fileName: () => 'formeo.min.js', + formats: ['umd'], outDir: resolve(__dirname, 'dist'), }, minify: 'terser', @@ -70,6 +70,7 @@ const libConfig = { const demoConfig = { ...sharedConfig, root: 'src/demo', + base: '', resolve: { alias: { 'formeo': resolve(__dirname, 'src/lib/js/index.js'),