Skip to content

Update package.json import paths for app files - #4101

Merged
jonrohan merged 2 commits into
mainfrom
jonrohan-patch-1
Jun 19, 2026
Merged

Update package.json import paths for app files#4101
jonrohan merged 2 commits into
mainfrom
jonrohan-patch-1

Conversation

@jonrohan

Copy link
Copy Markdown
Member

Sorry I still don't have this correct #4099 #4096

Sass is failing to import the css file at @import '@primer/view-components/app/assets/styles/primer_view_components';

@jonrohan
jonrohan requested a review from a team as a code owner June 19, 2026 02:40
@changeset-bot

changeset-bot Bot commented Jun 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6ab1ab6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Update import paths in package.json for application files.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 adjusts package.json subpath exports in @primer/view-components to address consumer import resolution issues (notably Sass failing to import the published stylesheet from an app/... path).

Changes:

  • Updates the exports mapping for ./app/* in package.json.
  • Adds a patch changeset for publishing the fix.
Show a summary per file
File Description
package.json Modifies the exports mapping intended to affect how app/* paths resolve for consumers (JS/TS tooling and Sass).
.changeset/sour-pets-flash.md Adds a patch changeset entry describing the release note for the import-path fix.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 1

Comment thread package.json
Comment on lines 19 to 22
"./app/*": {
"types": "./app/*.d.ts",
"import": "./app/*.js",
"default": "./app/*.js"
"default": "./app/*"
},
@jonrohan
jonrohan merged commit ad81c6d into main Jun 19, 2026
32 checks passed
@jonrohan
jonrohan deleted the jonrohan-patch-1 branch June 19, 2026 03:04
@primer primer Bot mentioned this pull request Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants