Update package dependencies and configurations

This commit is contained in:
codecalm 2025-12-26 16:58:47 +01:00
parent c6a429a3be
commit ff9f1f4bd1
11 changed files with 828 additions and 428 deletions

View File

@ -119,8 +119,8 @@ export const getAllIcons = (withContent = false, withObject = false) => {
types.forEach((type) => {
icons[type] = globSync(slash(path.join(ICONS_SRC_DIR, `${type}/*.svg`)))
.sort((a, b) => a.localeCompare(b))
.slice(0, limit)
.sort()
.map((i) => {
const { data, content } = parseMatter(i),
name = basename(i, '.svg');

View File

@ -2,7 +2,6 @@ import { visualizer } from 'rollup-plugin-visualizer'
import license from 'rollup-plugin-license'
import esbuild from 'rollup-plugin-esbuild'
import { nodeResolve } from '@rollup/plugin-node-resolve';
import bundleSize from '@atomico/rollup-plugin-sizes';
const getRollupPlugins = (pkg, minify) => {
return [
@ -19,7 +18,6 @@ const getRollupPlugins = (pkg, minify) => {
This source code is licensed under the ${pkg.license} license.
See the LICENSE file in the root directory of this source tree.`
}),
bundleSize(),
visualizer({
sourcemap: false,
filename: `stats/${pkg.name}${minify ? '-min' : ''}.html`

44
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,44 @@
name: Build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10.12.1
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build
env:
ICONS_LIMIT: 100
run: turbo build

View File

@ -49,7 +49,7 @@ jobs:
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10.26.1
version: 10.12.1
- name: Get pnpm store directory
shell: bash

View File

@ -54,10 +54,9 @@
},
"devDependencies": {
"@11ty/eleventy": "^2.0.1",
"@atomico/rollup-plugin-sizes": "^1.1.4",
"@release-it-plugins/workspaces": "^4.2.1",
"@rollup/plugin-node-resolve": "^16.0.1",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/jest-dom": "catalog:",
"adm-zip": "^0.5.16",
"cheerio": "^1.0.0",
"csv-parser": "^3.0.0",
@ -68,30 +67,30 @@
"glob": "10.3.16",
"gray-matter": "^4.0.3",
"html-minifier": "^4.0.0",
"jest-serializer-html": "^7.1.0",
"jsdom": "^24.0.0",
"jest-serializer-html": "catalog:",
"jsdom": "catalog:",
"minimist": "1.2.8",
"openai": "^4.73.1",
"parse-svg-path": "^0.1.2",
"prettier": "^3.2.5",
"release-it": "17.1.1",
"rollup": "^4.12.1",
"rollup": "catalog:",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-esbuild": "^6.1.1",
"rollup-plugin-filesize": "10.0.0",
"rollup-plugin-license": "^3.2.0",
"rollup-plugin-peer-deps-external": "2.2.4",
"rollup-plugin-visualizer": "^5.12.0",
"rollup-plugin-visualizer": "^6.0.5",
"sass": "^1.71.1",
"slash": "^5.1.0",
"svg-outline-stroke": "1.3.1",
"svgo": "^3.2.0",
"svgo": "^4.0.0",
"svgpath": "^2.6.0",
"svgson": "^5.3.1",
"turbo": "^2.6.3",
"typescript": "^5.3.3",
"vite": "^7.3.0",
"vitest": "^4.0.16"
"turbo": "^2.7.2",
"typescript": "catalog:",
"vite": "catalog:",
"vitest": "catalog:"
},
"release-it": {
"plugins": {
@ -114,6 +113,7 @@
"release": true
}
},
"packageManager": "pnpm@10.12.1",
"pnpm": {
"ignoredBuiltDependencies": [
"@parcel/watcher",

View File

@ -65,17 +65,12 @@
},
"devDependencies": {
"@sveltejs/package": "^2.3.7",
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"@testing-library/jest-dom": "^6.6.3",
"@sveltejs/vite-plugin-svelte": "^5.1.1",
"@testing-library/svelte": "^5.2.9",
"@tsconfig/svelte": "^5.0.4",
"jest-serializer-html": "^7.1.0",
"jsdom": "^25.0.1",
"svelte": "^5.0.0",
"svelte-check": "^4.3.4",
"typescript": "^5.7.3",
"vite": "^7.2.7",
"vitest": "^3.0.8"
"vite": "^6.0.0"
},
"peerDependencies": {
"svelte": "^5.0.0"

View File

@ -54,12 +54,13 @@
},
"devDependencies": {
"@sveltejs/package": "^2.2.7",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@testing-library/svelte": "^4.2.1",
"@tsconfig/svelte": "^5.0.2",
"svelte": "^4.2.12",
"svelte-check": "^3.6.5",
"svelte-preprocess": "^5.1.3"
"svelte-preprocess": "^5.1.3",
"vite": "^5.4.0"
},
"peerDependencies": {
"svelte": ">=3 <6 || >=5.0.0-next.0"

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,16 @@
packages:
- 'packages/*'
- 'test/*'
catalog:
typescript: ^5.3.3
vite: ^7.3.0
vitest: ^4.0.16
jest-serializer-html: ^7.1.0
jsdom: ^25.0.1
"@testing-library/jest-dom": ^6.6.3
rollup: ^4.12.1
"@types/react": 18.2.60
"@testing-library/react": ^14.2.1
react: 18.2.0
"@vitejs/plugin-react": ^4.2.1

View File

@ -14,10 +14,11 @@
"@tabler/icons-svelte": "workspace:*"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@tsconfig/svelte": "^5.0.2",
"svelte": "^4.2.12",
"svelte-check": "^3.6.5",
"tslib": "^2.6.2"
"tslib": "^2.6.2",
"vite": "^5.4.0"
}
}

View File

@ -1,5 +1,6 @@
{
"$schema": "https://turbo.build/schema.json",
"globalEnv": ["ICONS_LIMIT"],
"tasks": {
"build": {
"outputs": ["dist/**", "src/icons/**", "icons/**", "icons.json", "tabler-nodes-*.json", "categories/**", "docs/**"],