Skip to content

Commit

Permalink
ignore browserslist warnings (#1494)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdalonzo committed May 30, 2024
1 parent 206c29c commit c4129de
Show file tree
Hide file tree
Showing 17 changed files with 760 additions and 225 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/chromatic-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Chromatic CI
on:
push:

env:
BROWSERSLIST_IGNORE_OLD_DATA: 1

jobs:
chromatic-ci:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
workflow_dispatch:

env:
BROWSERSLIST_IGNORE_OLD_DATA: 1

jobs:
design-system-ci:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/npm-publish-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
required: true
description: Tag to append to version of each package

env:
BROWSERSLIST_IGNORE_OLD_DATA: 1

jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Rush publish to NPM

on: workflow_dispatch

env:
BROWSERSLIST_IGNORE_OLD_DATA: 1

jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/on-main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: On Main Merge - Build Storybook

env:
BROWSERSLIST_IGNORE_OLD_DATA: 1

on:
push:
branches: [main]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release-branch.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Create a new GitHub release for a package

env:
BROWSERSLIST_IGNORE_OLD_DATA: 1

on:
workflow_dispatch:
inputs:
Expand Down
15 changes: 15 additions & 0 deletions apps/storybook/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import type { StorybookConfig } from '@storybook/react-vite'
import turbosnap from 'vite-plugin-turbosnap'
import { mergeConfig } from 'vite'

const packagesWithStories = [
'carousel',
Expand Down Expand Up @@ -32,6 +34,19 @@ const config: StorybookConfig = {
typescript: {
check: false,
},
async viteFinal(config, { configType }) {
return mergeConfig(config, {
plugins:
configType === 'PRODUCTION'
? [
turbosnap({
// This should be the base path of your storybook. In monorepos, you may only need process.cwd().
rootDir: config.root ?? process.cwd(),
}),
]
: [],
})
},
}

export default config
38 changes: 20 additions & 18 deletions apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,37 @@
"@babel/core": "^7.23.5",
"@priceline/eslint-config": "workspace:*",
"@rushstack/eslint-patch": "^1.6.0",
"@storybook/addon-a11y": "^7.6.4",
"@storybook/addon-actions": "^7.6.4",
"@storybook/addon-coverage": "^1.0.0",
"@storybook/addon-designs": "^7.0.7",
"@storybook/addon-docs": "^7.6.4",
"@storybook/addon-essentials": "^7.6.4",
"@storybook/addon-interactions": "^7.6.4",
"@storybook/addon-viewport": "^7.6.4",
"@storybook/addons": "^7.6.4",
"@storybook/components": "^7.6.4",
"@storybook/addon-a11y": "^7.6.19",
"@storybook/addon-actions": "^7.6.19",
"@storybook/addon-coverage": "^1.0.4",
"@storybook/addon-designs": "^7.0.9",
"@storybook/addon-docs": "^7.6.19",
"@storybook/addon-essentials": "^7.6.19",
"@storybook/addon-interactions": "^7.6.19",
"@storybook/addon-viewport": "^7.6.19",
"@storybook/addons": "^7.6.17",
"@storybook/components": "^7.6.19",
"@storybook/jest": "^0.2.3",
"@storybook/manager-api": "^7.6.4",
"@storybook/preview-api": "^7.6.4",
"@storybook/react": "^7.6.4",
"@storybook/react-vite": "^7.6.4",
"@storybook/manager-api": "^7.6.19",
"@storybook/preview-api": "^7.6.19",
"@storybook/react": "^7.6.19",
"@storybook/react-vite": "^7.6.19",
"@storybook/testing-library": "^0.2.2",
"@storybook/theming": "^7.6.4",
"@storybook/theming": "^7.6.19",
"babel-plugin-react-docgen": "^4.2.1",
"chromatic": "^10.1.0",
"chromatic": "^10.9.6",
"core-js": "^3.37.1",
"eslint": "^8.55.0",
"npm-run-all": "^4.1.5",
"pcln-design-system": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"require-from-string": "2.0.2",
"storybook": "^7.6.4",
"storybook": "^7.6.19",
"styled-components": "^5.3.11",
"typescript": "^5.3.3",
"vite": "^4.5.1"
"vite": "^4.5.3",
"vite-plugin-turbosnap": "^1.0.3"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "pcln-icons",
"comment": "that silly line break",
"type": "none"
}
],
"packageName": "pcln-icons"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "pcln-menu",
"comment": "add core-js dev depedency to fix storybook",
"type": "patch"
}
],
"packageName": "pcln-menu"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "pcln-popover",
"comment": "add core-js dev dep to fix storybook",
"type": "patch"
}
],
"packageName": "pcln-popover"
}
4 changes: 3 additions & 1 deletion common/config/rush/pnpm-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@
*
* PNPM documentation: https://pnpm.io/package_json#pnpmoverrides
*/
"globalOverrides": {
"globalOverrides": {
"browserslist": "latest",
"caniuse-lite": "latest"
// "example1": "^1.0.0",
// "example2": "npm:@company/example2@^1.0.0"
},
Expand Down
Loading

0 comments on commit c4129de

Please sign in to comment.