Skip to content

Commit

Permalink
chore: upgrade dependencies (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
prazdevs committed Sep 25, 2024
1 parent 0c52619 commit bfb7863
Show file tree
Hide file tree
Showing 15 changed files with 1,021 additions and 699 deletions.
25 changes: 12 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"version": "1.16.0",
"private": true,
"packageManager": "pnpm@9.10.0",
"packageManager": "pnpm@9.11.0",
"description": "🦊 Soothing pastel icon theme for VSCode",
"author": "prazdevs",
"license": "MIT",
Expand Down Expand Up @@ -132,24 +132,23 @@
"vscode:prepublish": "pnpm build"
},
"devDependencies": {
"@antfu/eslint-config": "^2.21.1",
"@catppuccin/palette": "^1.2.0",
"@iconify/tools": "^4.0.4",
"@types/node": "^20.14.9",
"@antfu/eslint-config": "^3.7.1",
"@catppuccin/palette": "^1.4.0",
"@iconify/tools": "^4.0.6",
"@types/node": "^22.7.0",
"@types/vscode": "1.83.0",
"@vscode/vsce": "^2.29.0",
"changelogen": "^0.5.5",
"cleye": "^1.3.2",
"@vscode/vsce": "^3.1.0",
"changelogen": "^0.5.7",
"consola": "^3.2.3",
"defu": "^6.1.4",
"eslint": "^9.5.0",
"lint-staged": "^15.2.7",
"eslint": "^9.11.1",
"lint-staged": "^15.2.10",
"lookpath": "^1.2.2",
"puppeteer": "^22.12.1",
"simple-git-hooks": "^2.11.1",
"tsup": "^8.1.0",
"tsx": "^4.15.7",
"typescript": "^5.5.2"
"tsup": "^8.3.0",
"tsx": "^4.19.1",
"typescript": "^5.6.2"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
Expand Down
1,651 changes: 987 additions & 664 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
* Build themes and extension.
*/

import { cp, readdir, rm, writeFile } from 'node:fs/promises'
import { existsSync } from 'node:fs'
import { cp, readdir, rm, writeFile } from 'node:fs/promises'
import { basename, join } from 'node:path'
import { exit } from 'node:process'
import { flavorEntries } from '@catppuccin/palette'
import { build } from 'tsup'
import { consola } from 'consola'
import { build } from 'tsup'
import { compileTheme } from '~/utils/themes'

const DIST = 'dist'
Expand Down
4 changes: 2 additions & 2 deletions scripts/catwalk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { tmpdir } from 'node:os'
import { join, resolve, sep } from 'node:path'
import { exit } from 'node:process'
import { promisify } from 'node:util'
import { type FlavorName, flavorEntries, flavors } from '@catppuccin/palette'
import { flavorEntries, type FlavorName, flavors } from '@catppuccin/palette'
import { consola } from 'consola'
import { lookpath } from 'lookpath'
import { launch } from 'puppeteer'
Expand All @@ -26,7 +26,7 @@ const fileIcons = allIcons
.toSorted(() => 0.5 - Math.random())

function generateIcons(flavor: FlavorName) {
return Array(6)
return Array.from({ length: 6 })
.fill(fileIcons.map(i => `${resolve(join('icons', flavor, i))}`))
.flat()
}
Expand Down
4 changes: 2 additions & 2 deletions scripts/icons/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* If an icon exists in `icons/latte`, it will create its counterparts for other palettes.
*/

import { readFileSync, readdirSync, writeFileSync } from 'node:fs'
import { readdirSync, readFileSync, writeFileSync } from 'node:fs'
import { readdir } from 'node:fs/promises'
import { resolve } from 'node:path'
import { exit } from 'node:process'
import { SVG, parseColors } from '@iconify/tools'
import { parseColors, SVG } from '@iconify/tools'
import { consola } from 'consola'
import { palettes } from '~/utils/palettes'

Expand Down
4 changes: 2 additions & 2 deletions scripts/icons/optimize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* Optimizes SVGs by running them through SVGO + Iconify cleanup.
*/

import { readFile, readdir, writeFile } from 'node:fs/promises'
import { readdir, readFile, writeFile } from 'node:fs/promises'
import { resolve } from 'node:path'
import { exit } from 'node:process'
import { flavorEntries } from '@catppuccin/palette'
import { SVG, cleanupSVG, runSVGO } from '@iconify/tools'
import { cleanupSVG, runSVGO, SVG } from '@iconify/tools'
import { consola } from 'consola'

try {
Expand Down
2 changes: 1 addition & 1 deletion scripts/icons/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { mkdtemp, readdir, rm, writeFile } from 'node:fs/promises'
import { tmpdir } from 'node:os'
import { join, resolve, sep } from 'node:path'
import { exit } from 'node:process'
import { type FlavorName, flavorEntries, flavors } from '@catppuccin/palette'
import { flavorEntries, type FlavorName, flavors } from '@catppuccin/palette'
import { consola } from 'consola'
import { launch } from 'puppeteer'

Expand Down
2 changes: 1 addition & 1 deletion src/defaults/fileIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2865,4 +2865,4 @@ const { languageIds, fileExtensions, fileNames } = Object.entries(fileIcons).red
},
)

export { languageIds, fileExtensions, fileNames, fileIcons }
export { fileExtensions, fileIcons, fileNames, languageIds }
2 changes: 1 addition & 1 deletion src/defaults/folderIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -696,4 +696,4 @@ const { folderNames } = Object.entries(folderIcons).reduce(
},
)

export { folderNames, folderIcons }
export { folderIcons, folderNames }
2 changes: 1 addition & 1 deletion src/defaults/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Config } from '~/types'
import { fileExtensions, fileNames, languageIds } from './fileIcons'
import { folderNames } from './folderIcons'
import type { Config } from '~/types'

export const defaultConfig: Config = {
hidesExplorerArrows: false,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import defu from 'defu'
import { ConfigurationTarget, workspace } from 'vscode'
import { defaultConfig } from '~/defaults'
import { CONFIG_KEYS, CONFIG_ROOT } from '~/constants'
import { defaultConfig } from '~/defaults'
import type { Config } from '~/types'

/**
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/interactions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Buffer } from 'node:buffer'
import { type ExtensionContext, Uri, commands, window, workspace } from 'vscode'
import { commands, type ExtensionContext, Uri, window, workspace } from 'vscode'

/**
* Inform the user changes happened and reload is required
Expand Down
6 changes: 3 additions & 3 deletions src/hooks/updateThemes.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { type ExtensionContext, Uri, window, workspace } from 'vscode'
import { flavorEntries } from '@catppuccin/palette'
import { readFile, writeFile, writeJsonFile } from '~/hooks/interactions'
import { type ExtensionContext, Uri, window, workspace } from 'vscode'
import { getConfig } from '~/hooks/configuration'
import { getIconDefinitions } from '~/hooks/iconDefinitions'
import { compileTheme } from '~/utils/themes'
import { readFile, writeFile, writeJsonFile } from '~/hooks/interactions'
import { getThemePaths, getUnflavoredPath } from '~/hooks/paths'
import { compileIcon, hashedSvgPath, iconHash } from '~/utils/icons'
import { compileTheme } from '~/utils/themes'

/**
* Update themes and icons according to configuration
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { type ExtensionContext, commands, workspace } from 'vscode'
import { commands, type ExtensionContext, workspace } from 'vscode'
import { COMMANDS, CONFIG_KEYS, CONFIG_ROOT } from '~/constants'
import { updateThemes } from '~/hooks/updateThemes'
import { isFreshInstall, promptToReload } from '~/hooks/interactions'
import { isDefaultConfig, resetConfig } from '~/hooks/configuration'
import { isFreshInstall, promptToReload } from '~/hooks/interactions'
import { updateThemes } from '~/hooks/updateThemes'

/**
* Desktop extension entrypoint
Expand Down
4 changes: 2 additions & 2 deletions src/utils/palettes.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
type AccentName,
type FlavorName,
type MonochromaticName,
flavorEntries,
type FlavorName,
flavors,
type MonochromaticName,
} from '@catppuccin/palette'

export type ColorName = AccentName | Extract<MonochromaticName, 'text' | 'overlay1'>
Expand Down

0 comments on commit bfb7863

Please sign in to comment.