Skip to content

Commit

Permalink
chore: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
secundant committed May 23, 2024
1 parent 0b24d57 commit 2c73311
Show file tree
Hide file tree
Showing 16 changed files with 3,717 additions and 4,332 deletions.
15 changes: 11 additions & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh

if [ "$LEFTHOOK_VERBOSE" = "1" -o "$LEFTHOOK_VERBOSE" = "true" ]; then
set -x
fi

if [ "$LEFTHOOK" = "0" ]; then
exit 0
fi
Expand All @@ -10,7 +14,10 @@ call_lefthook()
osArch=$(uname | tr '[:upper:]' '[:lower:]')
cpuArch=$(uname -m | sed 's/aarch64/arm64/')

if lefthook -h >/dev/null 2>&1
if test -n "$LEFTHOOK_BIN"
then
"$LEFTHOOK_BIN" "$@"
elif lefthook -h >/dev/null 2>&1
then
lefthook "$@"
elif test -f "$dir/node_modules/lefthook/bin/index.js"
Expand All @@ -32,12 +39,12 @@ call_lefthook()
elif pnpm lefthook -h >/dev/null 2>&1
then
pnpm lefthook "$@"
elif command -v npx >/dev/null 2>&1
then
npx lefthook "$@"
elif swift package plugin lefthook >/dev/null 2>&1
then
swift package --disable-sandbox plugin lefthook "$@"
elif command -v npx >/dev/null 2>&1
then
npx lefthook "$@"
else
echo "Can't find lefthook in PATH"
fi
Expand Down
15 changes: 11 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh

if [ "$LEFTHOOK_VERBOSE" = "1" -o "$LEFTHOOK_VERBOSE" = "true" ]; then
set -x
fi

if [ "$LEFTHOOK" = "0" ]; then
exit 0
fi
Expand All @@ -10,7 +14,10 @@ call_lefthook()
osArch=$(uname | tr '[:upper:]' '[:lower:]')
cpuArch=$(uname -m | sed 's/aarch64/arm64/')

if lefthook -h >/dev/null 2>&1
if test -n "$LEFTHOOK_BIN"
then
"$LEFTHOOK_BIN" "$@"
elif lefthook -h >/dev/null 2>&1
then
lefthook "$@"
elif test -f "$dir/node_modules/lefthook/bin/index.js"
Expand All @@ -32,12 +39,12 @@ call_lefthook()
elif pnpm lefthook -h >/dev/null 2>&1
then
pnpm lefthook "$@"
elif command -v npx >/dev/null 2>&1
then
npx lefthook "$@"
elif swift package plugin lefthook >/dev/null 2>&1
then
swift package --disable-sandbox plugin lefthook "$@"
elif command -v npx >/dev/null 2>&1
then
npx lefthook "$@"
else
echo "Can't find lefthook in PATH"
fi
Expand Down
15 changes: 11 additions & 4 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh

if [ "$LEFTHOOK_VERBOSE" = "1" -o "$LEFTHOOK_VERBOSE" = "true" ]; then
set -x
fi

if [ "$LEFTHOOK" = "0" ]; then
exit 0
fi
Expand All @@ -10,7 +14,10 @@ call_lefthook()
osArch=$(uname | tr '[:upper:]' '[:lower:]')
cpuArch=$(uname -m | sed 's/aarch64/arm64/')

if lefthook -h >/dev/null 2>&1
if test -n "$LEFTHOOK_BIN"
then
"$LEFTHOOK_BIN" "$@"
elif lefthook -h >/dev/null 2>&1
then
lefthook "$@"
elif test -f "$dir/node_modules/lefthook/bin/index.js"
Expand All @@ -32,12 +39,12 @@ call_lefthook()
elif pnpm lefthook -h >/dev/null 2>&1
then
pnpm lefthook "$@"
elif command -v npx >/dev/null 2>&1
then
npx lefthook "$@"
elif swift package plugin lefthook >/dev/null 2>&1
then
swift package --disable-sandbox plugin lefthook "$@"
elif command -v npx >/dev/null 2>&1
then
npx lefthook "$@"
else
echo "Can't find lefthook in PATH"
fi
Expand Down
15 changes: 11 additions & 4 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh

if [ "$LEFTHOOK_VERBOSE" = "1" -o "$LEFTHOOK_VERBOSE" = "true" ]; then
set -x
fi

if [ "$LEFTHOOK" = "0" ]; then
exit 0
fi
Expand All @@ -10,7 +14,10 @@ call_lefthook()
osArch=$(uname | tr '[:upper:]' '[:lower:]')
cpuArch=$(uname -m | sed 's/aarch64/arm64/')

if lefthook -h >/dev/null 2>&1
if test -n "$LEFTHOOK_BIN"
then
"$LEFTHOOK_BIN" "$@"
elif lefthook -h >/dev/null 2>&1
then
lefthook "$@"
elif test -f "$dir/node_modules/lefthook/bin/index.js"
Expand All @@ -32,12 +39,12 @@ call_lefthook()
elif pnpm lefthook -h >/dev/null 2>&1
then
pnpm lefthook "$@"
elif command -v npx >/dev/null 2>&1
then
npx lefthook "$@"
elif swift package plugin lefthook >/dev/null 2>&1
then
swift package --disable-sandbox plugin lefthook "$@"
elif command -v npx >/dev/null 2>&1
then
npx lefthook "$@"
else
echo "Can't find lefthook in PATH"
fi
Expand Down
File renamed without changes.
8 changes: 3 additions & 5 deletions apps/docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
// https://vitepress.dev/guide/custom-theme
import { h } from 'vue';
import Theme from 'vitepress/theme';
import './style.css';
import Theme from 'vitepress/theme';
import { h } from 'vue';

// eslint-disable-next-line import/no-anonymous-default-export
export default {
...Theme,
Layout: () => {
return h(Theme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
});
},
enhanceApp({ app, router, siteData }) {
// ...
},
};
10 changes: 10 additions & 0 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@
"packageManager": "[email protected]",
"scripts": {
"dev": "vitepress dev",
"lint": "eslint {.vitepress,libs,apps,repo}/**/*.{ts,tsx}",
"build": "vitepress build",
"preview": "vitepress preview"
},
"nx": {
"targets": {
"lint": {
"inputs": [
"{projectRoot}/.vitepress/**/*.{ts,tsx}"
]
}
}
}
}
3 changes: 1 addition & 2 deletions apps/docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
// This file is not used in compilation. It is here just for a nice editor experience.
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"types": ["node", "@docusaurus/module-type-aliases", "@docusaurus/theme-classic"],
"allowJs": true,
"allowSyntheticDefaultImports": true,
"noPropertyAccessFromIndexSignature": false
},
"include": ["src", "docs", "blog"]
"include": [".vitepress/**/*.ts"]
}
3 changes: 0 additions & 3 deletions apps/vite-react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ import { defineConfig } from 'vite';
export default defineConfig({
cacheDir: '../../node_modules/.vite/vite-react',
test: {
globals: true,
cache: {
dir: '../../node_modules/.vitest',
},
environment: 'jsdom',
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
},
plugins: [react(), nxViteTsPaths()],
});
3 changes: 1 addition & 2 deletions libs/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
"name": "@my-org/config",
"type": "commonjs",
"version": "0.0.1",
"description": "Shared configuration",
"packageManager": "[email protected]"
"description": "Shared configuration"
}
9 changes: 8 additions & 1 deletion libs/react-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@
"name": "@my-org/react-ui",
"type": "commonjs",
"description": "My organization design system",
"packageManager": "[email protected]"
"exports": {
"./package.json": "./package.json",
"./*": {
"types": "./src/*/index.ts",
"import": "./src/*/index.ts",
"default": "./src/*/index.ts"
}
}
}
3 changes: 1 addition & 2 deletions libs/react-ui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"types": ["vitest/globals", "vitest/importMeta", "vite/client"]
"lib": ["DOM", "DOM.Iterable", "ESNext"]
},
"include": ["src", "vite.config.ts", ".storybook/**/*.ts"]
}
1 change: 0 additions & 1 deletion libs/std/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@my-org/std",
"description": "Standard JS enhancements library",
"packageManager": "[email protected]",
"version": "0.0.1",
"sideEffects": false
}
6 changes: 2 additions & 4 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"parallel": 3,
"affected": {
"defaultBase": "origin/main"
},
"workspaceLayout": {
"libsDir": "libs",
"appsDir": "apps"
Expand Down Expand Up @@ -162,5 +159,6 @@
"default": {
"options": {}
}
}
},
"defaultBase": "origin/main"
}
86 changes: 42 additions & 44 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"yarn": ">=4.0.0",
"npm": "please-use-yarn"
},
"packageManager": "yarn@4.1.0",
"packageManager": "yarn@4.2.2",
"workspaces": [
"apps/*",
"libs/*",
Expand All @@ -36,60 +36,58 @@
"release-publish": "yarn nx affected:build && yarn changeset publish"
},
"devDependencies": {
"@babel/core": "^7.24.0",
"@babel/preset-react": "^7.23.3",
"@babel/core": "^7.24.5",
"@babel/preset-react": "^7.24.1",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.1",
"@commitlint/cli": "19.0.3",
"@commitlint/config-conventional": "19.0.3",
"@nx/eslint": "18.0.6",
"@nx/js": "18.0.6",
"@nx/react": "18.0.6",
"@nx/storybook": "18.0.6",
"@nx/vite": "18.0.6",
"@shikijs/vitepress-twoslash": "1.1.7",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-interactions": "^7.6.17",
"@storybook/core-server": "^7.6.17",
"@storybook/react-vite": "7.6.17",
"@storybook/test-runner": "^0.16.0",
"@changesets/cli": "2.27.3",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@nx/eslint": "18.3.5",
"@nx/js": "19.0.6",
"@nx/react": "19.0.6",
"@nx/storybook": "19.0.6",
"@nx/vite": "19.0.6",
"@storybook/addon-essentials": "^8.1.3",
"@storybook/addon-interactions": "^8.1.3",
"@storybook/core-server": "^8.1.3",
"@storybook/react-vite": "8.1.3",
"@storybook/test-runner": "^0.18.1",
"@storybook/testing-library": "^0.2.2",
"@testing-library/react": "14.2.1",
"@types/node": "20.11.24",
"@types/react": "18.2.61",
"@types/react-dom": "18.2.19",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "~1.3.1",
"@vitest/ui": "~1.3.1",
"autoprefixer": "10.4.18",
"@testing-library/react": "15.0.7",
"@types/node": "20.12.12",
"@types/react": "18.3.2",
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react": "^4.3.0",
"@vitest/coverage-v8": "~1.6.0",
"@vitest/ui": "~1.6.0",
"autoprefixer": "10.4.19",
"eslint": "8.57.0",
"eslint-kit": "10.18.0",
"eslint-kit": "10.31.0",
"is-ci": "3.0.1",
"jsdom": "~24.0.0",
"lefthook": "1.6.5",
"nx": "18.0.6",
"postcss": "8.4.35",
"lefthook": "1.6.12",
"nx": "19.0.6",
"postcss": "8.4.38",
"prettier": "3.2.5",
"prettier-plugin-tailwindcss": "0.5.11",
"tailwindcss": "3.4.1",
"typescript": "5.3.3",
"vite": "5.1.4",
"vite-plugin-dts": "~3.7.3",
"vite-tsconfig-paths": "4.3.1",
"vitepress": "^1.0.0-rc.44",
"vitest": "1.3.1"
"prettier-plugin-tailwindcss": "0.5.14",
"tailwindcss": "3.4.3",
"typescript": "5.4.5",
"vite": "5.2.11",
"vite-plugin-dts": "~3.9.1",
"vite-tsconfig-paths": "4.3.2",
"vitepress": "^1.2.2",
"vitest": "1.6.0"
},
"dependencies": {
"@farfetched/core": "0.11.4",
"@react-aria/utils": "3.23.2",
"@farfetched/core": "0.12.4",
"@react-aria/utils": "3.24.1",
"atomic-router": "0.10.1",
"atomic-router-react": "0.10.0",
"class-variance-authority": "0.7.0",
"effector": "23.2.0",
"effector": "23.2.1",
"effector-react": "23.2.0",
"history": "5.3.0",
"react": "18.2.0",
"react-aria": "3.32.1",
"react-dom": "18.2.0"
"react": "18.3.1",
"react-aria": "3.33.1",
"react-dom": "18.3.1"
}
}
Loading

0 comments on commit 2c73311

Please sign in to comment.