Skip to content

Commit 4e1c740

Browse files
joshblackCopilot
andauthored
fix(styled-react): update types output (#6649)
Co-authored-by: Copilot <[email protected]>
1 parent 0ee59c6 commit 4e1c740

File tree

6 files changed

+57
-1
lines changed

6 files changed

+57
-1
lines changed

.changeset/salty-geese-own.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/styled-react': patch
3+
---
4+
5+
Update the types output for the `@primer/styled-react` package so that the paths resolve correctly

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050
run: npm run lint:css
5151
- name: Lint markdown
5252
run: npm run lint:md
53+
- name: Lint npm packages
54+
run: npx turbo lint:npm
5355

5456
test:
5557
runs-on: ubuntu-latest

package-lock.json

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/styled-react/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"scripts": {
2424
"build": "script/build",
2525
"clean": "rimraf dist",
26+
"lint:npm": "publint --types",
2627
"type-check": "tsc --noEmit"
2728
},
2829
"devDependencies": {
@@ -32,6 +33,7 @@
3233
"@types/react": "18.3.11",
3334
"@types/react-dom": "18.3.1",
3435
"@vitejs/plugin-react": "^4.3.3",
36+
"publint": "^0.3.12",
3537
"react": "18.3.1",
3638
"react-dom": "18.3.1",
3739
"rimraf": "^6.0.1",

packages/styled-react/tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"declaration": true,
66
"emitDeclarationOnly": true
77
},
8-
"exclude": ["vitest.config.ts", "vitest.config.browser.ts"]
8+
"exclude": ["vitest.config.ts", "vitest.config.browser.ts", "config", "**/*.test.ts", "**/*.test.tsx"]
99
}

turbo.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"dependsOn": [],
1010
"outputs": ["storybook-static/**"]
1111
},
12+
"lint:npm": {
13+
"dependsOn": ["^build", "build"],
14+
"outputs": []
15+
},
1216
"type-check": {
1317
"dependsOn": ["^build"],
1418
"outputs": []

0 commit comments

Comments
 (0)