Skip to content

Commit 4bd74b8

Browse files
committed
add turbo format
1 parent 8f91377 commit 4bd74b8

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dev": "turbo run dev --filter @storyprotocol/storykit",
66
"lint": "turbo run lint --filter @storyprotocol/storykit",
77
"lint-all": "turbo run lint",
8-
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
8+
"format": "turbo run format --filter @storyprotocol/storykit",
99
"prepare": "husky"
1010
},
1111
"devDependencies": {

packages/storykit/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"scripts": {
2424
"test": "react-scripts test",
2525
"lint": "eslint . --ext .ts,.tsx --ignore-path ../../.prettierignore --fix",
26+
"format": "prettier --write --parser typescript '**/*.{ts,tsx}'",
2627
"dev": "storybook dev -p 6006",
2728
"build-tailwind": "pnpm exec tailwindcss -o dist/build.css --minify",
2829
"build": "rollup -c --bundleConfigAsCjs && pnpm build-tailwind"

packages/storykit/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from "./components";
2-
export * from "./providers";
1+
export * from "./components"
2+
export * from "./providers"

turbo.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"dev": {
1212
"cache": false,
1313
"persistent": true
14+
},
15+
"format": {
16+
"cache": false
1417
}
1518
}
1619
}

0 commit comments

Comments
 (0)