Skip to content

Conversation

@seijikohara
Copy link
Owner

Summary

  • Bump version from 1.1.1 to 1.1.2
  • Fix CSS output filename to match package.json exports field
  • Migrate from deprecated assetInfo.name to assetInfo.names array

Changes

  • vite.config.ts: Update assetFileNames function to correctly output style.css instead of index.css
  • package.json: Bump version to 1.1.2

Problem Solved

The package.json exports field specifies "./style.css": "./dist/style.css", but the actual build was generating dist/index.css. This caused import errors when users tried to import the CSS:

import 'json-tree-view-vue3/style.css' // This was failing

Test Plan

  • ✅ Build completes successfully
  • ✅ Type check passes
  • dist/style.css is generated (not index.css)
  • ✅ CSS file matches package.json exports configuration

Copilot AI review requested due to automatic review settings November 21, 2025 17:49
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a mismatch between the package's exported CSS filename and the actual build output. The version is bumped to 1.1.2, and the Vite configuration is updated to ensure the CSS file is correctly output as style.css to match the package.json exports field, while also migrating from the deprecated assetInfo.name to assetInfo.names array.

Key Changes:

  • Updated Vite config to use assetInfo.names[0] instead of deprecated assetInfo.name
  • Modified CSS output logic to ensure all CSS files are named style.css
  • Bumped package version to 1.1.2

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
vite.config.ts Updated asset file naming logic to use non-deprecated API and ensure CSS outputs as style.css
package.json Version bumped from 1.1.0 to 1.1.2

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Use assetInfo.names instead of deprecated assetInfo.name
- Ensure CSS files are output as style.css to match ./style.css export
- Fix incorrect CSS filename (was index.css, now style.css)
- Bump version to 1.1.2
@seijikohara seijikohara force-pushed the chore/bump-version-to-1.1.2 branch from f05351b to 2ac9bf8 Compare November 21, 2025 17:51
@seijikohara seijikohara merged commit 07ed951 into main Nov 21, 2025
13 checks passed
@seijikohara seijikohara deleted the chore/bump-version-to-1.1.2 branch November 21, 2025 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants