Skip to content

Commit

Permalink
Update lit labs imports (#5321)
Browse files Browse the repository at this point in the history
* promote lit-labs to lit

* changeset

* changeset

* changeset

* changeset
  • Loading branch information
mattcosta7 authored Nov 21, 2024
1 parent e9e4d1c commit 424d4a7
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-crabs-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

update version of lit-labs/react to latest lit/react.
15 changes: 10 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/react/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ module.exports = {
setupFiles: ['<rootDir>/src/utils/test-helpers.tsx'],
setupFilesAfterEnv: ['<rootDir>/src/utils/test-matchers.tsx', '<rootDir>/src/utils/test-deprecations.tsx'],
testMatch: ['<rootDir>/**/*.test.[jt]s?(x)', '!**/*.types.test.[jt]s?(x)'],
transformIgnorePatterns: ['node_modules/(?!@github/[a-z-]+-element|@lit-labs/react|@oddbird/popover-polyfill)'],
transformIgnorePatterns: ['node_modules/(?!@github/[a-z-]+-element|@lit/react|@oddbird/popover-polyfill)'],
}
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"dependencies": {
"@github/relative-time-element": "^4.4.3",
"@github/tab-container-element": "^4.8.0",
"@lit-labs/react": "1.2.1",
"@lit/react": "^1.0.6",
"@oddbird/popover-polyfill": "^0.4.4",
"@primer/behaviors": "^1.7.2",
"@primer/live-region-element": "^0.7.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'node:path'
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import babel from '@rollup/plugin-babel'
import {babel} from '@rollup/plugin-babel'
import replace from '@rollup/plugin-replace'
import terser from '@rollup/plugin-terser'
import {visualizer} from 'rollup-plugin-visualizer'
Expand Down Expand Up @@ -42,7 +42,7 @@ const ESM_ONLY = new Set([
'@github/paste-markdown',
'@github/relative-time-element',
'@github/tab-container-element',
'@lit-labs/react',
'@lit/react',
'@oddbird/popover-polyfill',
])
const dependencies = [
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/utils/create-component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import styled from 'styled-components'
import type {EventName} from '@lit-labs/react'
import {createComponent as create} from '@lit-labs/react'
import type {EventName} from '@lit/react'
import {createComponent as create} from '@lit/react'
import sx from '../sx'

type EventNames = Record<string, EventName | string>
Expand Down

0 comments on commit 424d4a7

Please sign in to comment.