Skip to content

Commit

Permalink
fix(deps): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mkosir committed Nov 8, 2024
1 parent d236cf9 commit 268e442
Show file tree
Hide file tree
Showing 10 changed files with 285 additions and 290 deletions.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default tseslint.config(
},
settings: {
'import/resolver': {
typescript: { project: 'tsconfig.dev.json' },
typescript: { project: './tsconfig.dev.json' },
},
react: { version: 'detect' },
},
Expand Down
507 changes: 254 additions & 253 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"lint": "eslint --report-unused-disable-directives --max-warnings 0 .",
"lint-fix": "eslint --fix .",
"lint-staged-husky": "lint-staged",
"tsc": "tsc -p tsconfig.dev.json",
"tsc": "tsc -p scripts/tsconfig.dev.json",
"format-lint": "prettier --config .prettierrc --check --ignore-unknown .",
"format-fix": "prettier --config .prettierrc --write --ignore-unknown -l .",
"commit": "git-cz",
"storybook": "TS_NODE_PROJECT=tsconfig.dev.json storybook dev -p 9009 --quiet",
"storybook": "TS_NODE_PROJECT=scripts/tsconfig.dev.json storybook dev -p 9009 --quiet",
"storybook-build": "storybook build -o build-storybook-static",
"release": "semantic-release --branches main",
"clean": "rm -rf node_modules coverage dist compiled build-storybook-static"
Expand All @@ -35,10 +35,10 @@
"@rollup/plugin-typescript": "11.1.6",
"@storybook/addon-styling": "2.0.0",
"@storybook/addon-webpack5-compiler-swc": "1.0.5",
"@storybook/manager-api": "8.4.1",
"@storybook/react": "8.4.1",
"@storybook/react-webpack5": "8.4.1",
"@storybook/theming": "8.4.1",
"@storybook/manager-api": "8.4.2",
"@storybook/react": "8.4.2",
"@storybook/react-webpack5": "8.4.2",
"@storybook/theming": "8.4.2",
"@types/eslint": "9.6.1",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
Expand All @@ -63,9 +63,9 @@
"sass": "1.80.6",
"sass-loader": "16.0.3",
"semantic-release": "24.2.0",
"storybook": "8.4.1",
"storybook": "8.4.2",
"typescript": "5.6.3",
"typescript-eslint": "8.12.2"
"typescript-eslint": "8.13.0"
},
"peerDependencies": {
"react": ">=18.0.0",
Expand Down
7 changes: 4 additions & 3 deletions scripts/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import { defineConfig } from 'rollup';
import { dts } from 'rollup-plugin-dts';

import packageJson from '../package.json' assert { type: 'json' };
import tsConfig from '../tsconfig.base.json' assert { type: 'json' };

import tsConfig from './tsconfig.base.json' with { type: 'json' };

const isProduction = process.env.NODE_ENV === 'production';

const PATH_INPUT_FILE = 'src/index.ts';
const PATH_TSCONFIG = './tsconfig.prod.json';
const PATH_TSCONFIG_BUILD = 'scripts/tsconfig.build.json';

const rollupConfig = defineConfig([
{
Expand Down Expand Up @@ -39,7 +40,7 @@ const rollupConfig = defineConfig([
plugins: [
commonjs(),
typescript({
tsconfig: PATH_TSCONFIG,
tsconfig: PATH_TSCONFIG_BUILD,
sourceMap: !isProduction,
}),
terser({
Expand Down
10 changes: 5 additions & 5 deletions tsconfig.base.json → scripts/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"noEmit": true,
"outDir": "compiled",
"baseUrl": "src",
"outDir": "../compiled",
"baseUrl": "../src",
"paths": {
".": ["."]
},
Expand All @@ -11,6 +11,7 @@
"lib": ["ESNext", "dom"],
"module": "ESNext",
"moduleResolution": "Bundler",
"target": "ES6",
"allowSyntheticDefaultImports": true,
"noImplicitAny": true,
"noImplicitThis": true,
Expand All @@ -25,7 +26,6 @@
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"esModuleInterop": true,
"target": "ES6"
},
"exclude": ["dist"]
"allowJs": true
}
}
5 changes: 5 additions & 0 deletions scripts/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "./tsconfig.base.json",
"include": ["../src/**/*"],
"exclude": ["../src/**/*.test.ts", "../src/**/*.test.tsx"]
}
7 changes: 7 additions & 0 deletions scripts/tsconfig.dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.base.json",
// Type check and lint all files and folders.
// Explicitly include those starting with a dot (.) as they are ignored by default in glob patterns.
"include": ["../.", "../.storybook/**/*", "../.commitlintrc.ts"],
"exclude": ["../dist", "../node_modules"]
}
14 changes: 0 additions & 14 deletions tsconfig.dev.json

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "./tsconfig.dev.json"
"extends": "./scripts/tsconfig.dev.json"
}
5 changes: 0 additions & 5 deletions tsconfig.prod.json

This file was deleted.

0 comments on commit 268e442

Please sign in to comment.