Skip to content

Commit

Permalink
feat: json to ts type
Browse files Browse the repository at this point in the history
  • Loading branch information
vtrbo committed Feb 20, 2024
1 parent 8f961e9 commit afbeeec
Show file tree
Hide file tree
Showing 12 changed files with 1,960 additions and 1,347 deletions.
2 changes: 2 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"singleQuote": true,
"semi": false,
"plugins": ["prettier-plugin-svelte"],
"overrides": [
{
Expand Down
8 changes: 8 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,16 @@ export default eslintConfig(
'@typescript-eslint/nk-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'svelte/no-at-html-tags': 'off',
'style/brace-style': 'off',
'prefer-const': 'off',
'style/arrow-parens': 'off',
},
},
],
}),
{
rules: {
'no-console': 'off',
},
},
)
49 changes: 27 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "xparcai-tools",
"type": "module",
"version": "0.0.0",
"packageManager": "pnpm@8.12.1",
"packageManager": "pnpm@8.15.3",
"description": "🍒 Some tools in dev.",
"author": {
"name": "VictorBo",
Expand Down Expand Up @@ -32,39 +32,44 @@
"format": "prettier --write \"./**/*.svelte\" && eslint . --fix"
},
"dependencies": {
"@ikun-ui/core": "^0.0.16",
"@ikun-ui/core": "^0.1.5",
"@vtrbo/utils": "^0.4.1"
},
"devDependencies": {
"@antfu/eslint-config": "^2.4.5",
"@antfu/eslint-config": "^2.6.4",
"@antfu/ni": "^0.21.12",
"@eslint/eslintrc": "^2.1.4",
"@iconify/json": "^2.2.157",
"@ikun-ui/preset": "^0.0.16",
"@sveltejs/adapter-auto": "^2.1.1",
"@sveltejs/kit": "^1.30.3",
"@types/node": "^20.10.4",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@unocss/extractor-svelte": "^0.58.0",
"@unocss/reset": "^0.58.0",
"eslint": "^8.55.0",
"@eslint/eslintrc": "^3.0.1",
"@iconify/json": "^2.2.184",
"@ikun-ui/preset": "^0.1.5",
"@sveltejs/adapter-auto": "^3.1.1",
"@sveltejs/kit": "^1.30.4",
"@types/node": "^20.11.19",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@unocss/extractor-svelte": "^0.58.5",
"@unocss/reset": "^0.58.5",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-format": "^0.1.0",
"eslint-plugin-svelte": "^2.35.1",
"esno": "^4.0.0",
"lint-staged": "^15.2.0",
"lint-staged": "^15.2.2",
"only-allow": "^1.2.1",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.1",
"simple-git-hooks": "^2.9.0",
"svelte": "^4.2.8",
"svelte-check": "^3.6.2",
"svelte": "^4.2.11",
"svelte-check": "^3.6.4",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"unocss": "^0.57.7",
"unplugin-icons": "^0.18.1",
"vite": "^4.4.2"
"unocss": "^0.58.5",
"unplugin-icons": "^0.18.5",
"vite": "^5.1.3"
},
"pnpm": {
"patchedDependencies": {
"@ikun-ui/[email protected]": "patches/@[email protected]"
}
},
"simple-git-hooks": {
"pre-commit": "pnpm dlx lint-staged",
Expand Down
16 changes: 16 additions & 0 deletions patches/@[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/dist/index.svelte b/dist/index.svelte
index a412dbae73bec3c4bb06761649c6adf3f55e79ce..092b4d5cd7cac2b314a0d77d9dc710f9280c6b8a 100644
--- a/dist/index.svelte
+++ b/dist/index.svelte
@@ -2,7 +2,7 @@
import { clsx } from 'clsx';
import { KPopover } from '@ikun-ui/popover';
import { createEventDispatcher, setContext } from 'svelte';
-import { KScrollbar } from '@ikun-ui/scrollbar/src/index.js';
+import { KScrollbar } from '@ikun-ui/scrollbar';
export let placement = 'bottom';
// hover click manual
export let trigger = 'hover';
diff --git a/src/index.ts b/src/index.ts
deleted file mode 100644
index c936909325948ff96eae9ef297b3ab5fa2b62e0e..0000000000000000000000000000000000000000
Loading

0 comments on commit afbeeec

Please sign in to comment.