Skip to content

Commit

Permalink
chore: Exclude Storybook stories from the build of `@rocket.chat/ui-c…
Browse files Browse the repository at this point in the history
…omposer` (#32944)
  • Loading branch information
tassoevan authored Aug 1, 2024
1 parent cf43537 commit a663078
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
31 changes: 18 additions & 13 deletions packages/ui-composer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
"name": "@rocket.chat/ui-composer",
"version": "0.2.0",
"private": true,
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"files": [
"/dist"
],
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx . --fix",
"test": "jest",
"build": "rm -rf dist && tsc -p tsconfig.build.json",
"typecheck": "tsc --noEmit",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput",
"storybook": "start-storybook -p 6006"
},
"devDependencies": {
"@babel/core": "~7.22.20",
"@react-aria/toolbar": "^3.0.0-beta.1",
Expand All @@ -17,12 +31,16 @@
"@storybook/testing-library": "~0.0.13",
"@types/babel__core": "~7.20.3",
"@types/jest": "~29.5.12",
"@types/react": "~17.0.69",
"@types/react-dom": "~17.0.22",
"eslint": "~8.45.0",
"eslint-plugin-react": "~7.32.2",
"eslint-plugin-react-hooks": "~4.6.0",
"eslint-plugin-storybook": "~0.6.15",
"jest": "~29.7.0",
"react": "~17.0.2",
"react-docgen-typescript-plugin": "~1.0.5",
"react-dom": "~17.0.2",
"ts-jest": "~29.1.1",
"typescript": "~5.3.3"
},
Expand All @@ -33,19 +51,6 @@
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"scripts": {
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx . --fix",
"test": "jest",
"build": "rm -rf dist && tsc -p tsconfig.json",
"dev": "tsc -p tsconfig.json --watch --preserveWatchOutput",
"storybook": "start-storybook -p 6006"
},
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"files": [
"/dist"
],
"volta": {
"extends": "../../package.json"
}
Expand Down
4 changes: 4 additions & 0 deletions packages/ui-composer/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["./src/**/*.stories.tsx"]
}

0 comments on commit a663078

Please sign in to comment.