diff --git a/apps/storybook/package.json b/apps/storybook/package.json index bfe916e10..87e597135 100644 --- a/apps/storybook/package.json +++ b/apps/storybook/package.json @@ -8,8 +8,7 @@ "build": "storybook build", "check": "svelte-check --tsconfig ./tsconfig.json", "lint": "eslint . && prettier --check \"src/**/*.mdx\"", - "format": "eslint . --fix && prettier --write \"src/**/*.mdx\"", - "postinstall": "node scripts/patch-sb-csf.js" + "format": "eslint . --fix && prettier --write \"src/**/*.mdx\"" }, "dependencies": { "@repo/ui": "workspace:*" diff --git a/apps/storybook/scripts/patch-sb-csf.js b/apps/storybook/scripts/patch-sb-csf.js deleted file mode 100644 index 134858d2d..000000000 --- a/apps/storybook/scripts/patch-sb-csf.js +++ /dev/null @@ -1,15 +0,0 @@ -/* 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)) -}