Skip to content

Commit

Permalink
Merge pull request #363 from nginformatica/chore/move-date-fns-to-dev…
Browse files Browse the repository at this point in the history
…-deps

chore/move date fns to dev deps
  • Loading branch information
KarineBrandelli authored Nov 21, 2024
2 parents 543784f + ec665c3 commit 74dbc75
Show file tree
Hide file tree
Showing 6 changed files with 355 additions and 369 deletions.
10 changes: 1 addition & 9 deletions .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,13 @@ module.exports = {
[
'import',
{
// remove when ramda is moved to the devDependencies
libraryName: 'ramda',
libraryDirectory: 'es',
camel2DashComponentName: false
},
'ramda'
],
[
'import',
{
libraryName: 'date-fns',
libraryDirectory: '',
camel2DashComponentName: false
},
'date-fns'
],
[
'import',
{
Expand Down
3 changes: 2 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StorybookConfig } from '@storybook/react-webpack5'
import path from 'path'
import type { StorybookConfig } from '@storybook/react-webpack5'

const config: StorybookConfig = {
framework: '@storybook/react-webpack5',
Expand All @@ -21,6 +21,7 @@ const config: StorybookConfig = {
'@': path.resolve(__dirname, '../src')
}
}

return config
}
}
Expand Down
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ module.exports = tseslint.config(
ignores: [
'dist/*',
'docs/*',
'coverage/*',
'node_modules/*',
'pre-publish.js',
'eslint.config.js'
Expand Down
39 changes: 20 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flipper-ui",
"version": "0.35.0",
"version": "0.35.1",
"description": "React UI based on the @mui/material toolkit for the web",
"main": "dist/index.js",
"author": "NG",
Expand All @@ -14,7 +14,7 @@
"start": "storybook dev -p 6006",
"build": "yarn clean && yarn build:ts && yarn build:babel",
"build:ts": "tsc --emitDeclarationOnly",
"build:babel": "babel src --out-dir dist --extensions \".ts,.tsx\" --ignore \"**/*.spec.tsx\" --ignore \"**/*.stories.tsx\"",
"build:babel": "babel src --out-dir dist --extensions '.ts,.tsx' --ignore '**/*.stories.tsx' --ignore '**/*.spec.tsx' --ignore 'src/test/**'",
"build:link": "yarn build && yarn copy:package && yarn publish:yalc",
"docs:build": "storybook build -o docs",
"copy:package": "cp package.json dist/",
Expand All @@ -30,13 +30,12 @@
"test": "jest --verbose --silent --passWithNoTests --noStackTrace --runInBand --updateSnapshot"
},
"dependencies": {
"@emotion/react": "11.13.3",
"@emotion/styled": "11.13.0",
"@mui/icons-material": "6.1.6",
"@mui/material": "6.1.6",
"@mui/system": "6.1.6",
"@emotion/react": "11.13.5",
"@emotion/styled": "11.13.5",
"@mui/icons-material": "6.1.8",
"@mui/material": "6.1.8",
"@mui/system": "6.1.8",
"@mui/x-date-pickers": "7.22.2",
"date-fns": "4.1.0",
"ramda": "0.30.1",
"react-loading-skeleton": "3.5.0",
"react-number-format": "5.4.2"
Expand All @@ -49,27 +48,28 @@
"@babel/preset-react": "7.25.9",
"@babel/preset-typescript": "7.26.0",
"@faker-js/faker": "9.2.0",
"@storybook/addon-essentials": "8.4.2",
"@storybook/addon-essentials": "8.4.5",
"@storybook/addon-webpack5-compiler-babel": "3.0.3",
"@storybook/blocks": "8.4.2",
"@storybook/react": "8.4.2",
"@storybook/react-webpack5": "8.4.2",
"@stylistic/eslint-plugin": "2.10.1",
"@storybook/blocks": "8.4.5",
"@storybook/react": "8.4.5",
"@storybook/react-webpack5": "8.4.5",
"@stylistic/eslint-plugin": "2.11.0",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "16.0.1",
"@testing-library/user-event": "14.5.2",
"@types/jest": "29.5.14",
"@types/node": "22.9.0",
"@types/node": "22.9.1",
"@types/ramda": "0.30.2",
"@types/react": "18.3.12",
"@types/uuid": "10.0.0",
"@typescript-eslint/eslint-plugin": "8.14.0",
"@typescript-eslint/parser": "8.14.0",
"@typescript-eslint/eslint-plugin": "8.15.0",
"@typescript-eslint/parser": "8.15.0",
"babel-loader": "9.2.1",
"babel-plugin-import": "1.13.8",
"babel-plugin-module-resolver": "5.0.2",
"eslint": "9.14.0",
"date-fns": "4.1.0",
"eslint": "9.15.0",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.6.3",
"eslint-plugin-import": "2.31.0",
Expand All @@ -83,16 +83,17 @@
"prettier": "3.3.3",
"react": "18.3.1",
"react-dom": "18.3.1",
"storybook": "8.4.2",
"storybook": "8.4.5",
"styled-components": "6.1.13",
"ts-jest": "29.2.5",
"ts-loader": "9.5.1",
"typescript": "5.6.3",
"typescript-eslint": "8.14.0",
"typescript-eslint": "8.15.0",
"uuid": "11.0.3",
"webpack": "5.96.1"
},
"peerDependencies": {
"date-fns": "^4.0.0",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0",
"styled-components": "^6.0.0"
Expand Down
9 changes: 3 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
"compilerOptions": {
"outDir": "./dist/",
"sourceMap": true,
"module": "esnext",
"jsx": "react",
"module": "esnext",
"target": "esnext",
"types": [
"node",
"jest"
],
"types": ["node", "jest"],
"moduleResolution": "node",
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
Expand Down Expand Up @@ -38,4 +35,4 @@
"./src/*.d.ts",
"./src/lib/**/*"
]
}
}
Loading

0 comments on commit 74dbc75

Please sign in to comment.