Skip to content

Commit

Permalink
pls work
Browse files Browse the repository at this point in the history
  • Loading branch information
leomotors committed Dec 23, 2024
1 parent a3e2e76 commit 4928c71
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:

steps:
- name: Checkout with tags
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ matrix.packages.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Checkout

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
id: pnpm-install
with:
run_install: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-without-versioning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
node-version-file: .nvmrc

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
id: pnpm-install
with:
run_install: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
node-version-file: .nvmrc

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
id: pnpm-install
with:
run_install: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
id: pnpm-install
with:
run_install: false
Expand Down
3 changes: 2 additions & 1 deletion apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "storybook build",
"check": "svelte-check --tsconfig ./tsconfig.json",
"lint": "eslint . && prettier --check \"src/**/*.mdx\"",
"format": "eslint . --fix && prettier --write \"src/**/*.mdx\""
"format": "eslint . --fix && prettier --write \"src/**/*.mdx\"",
"postinstall": "node scripts/patch-sb-csf.js"
},
"dependencies": {
"@repo/ui": "workspace:*"
Expand Down
15 changes: 15 additions & 0 deletions apps/storybook/scripts/patch-sb-csf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* eslint-disable no-undef */

import fs from 'node:fs/promises'

const patchLocation = './node_modules/@storybook/addon-svelte-csf/package.json'

const pkgJson = await fs.readFile(patchLocation, 'utf8')
const pkg = JSON.parse(pkgJson)

if (!pkg.main || !pkg.types) {
console.log('Patching Storybook Svelte CSF package.json')
pkg.main = './dist/index.js'
pkg.types = './dist/index.d.ts'
await fs.writeFile(patchLocation, JSON.stringify(pkg, null, 2))
}

0 comments on commit 4928c71

Please sign in to comment.