Skip to content

Commit

Permalink
fix: fixed build docs error
Browse files Browse the repository at this point in the history
  • Loading branch information
vtrbo committed Nov 21, 2023
1 parent e2ed56d commit 5ca47fb
Show file tree
Hide file tree
Showing 13 changed files with 109 additions and 205 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/head.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export const head: HeadConfig[] = [
['meta', { property: 'og:url', content: 'https://github.com/vtrbo/utils' }],
['meta', { name: 'referrer', content: 'no-referrer' }],
['link', { rel: 'icon', href: '/logo.svg', type: 'image/svg+xml' }],
['script', { src: 'https://cdnjs.cloudflare.com/ajax/libs/typescript/5.2.2/typescript.min.js' }],
['script', { src: 'https://cdnjs.cloudflare.com/ajax/libs/typescript/5.3.2/typescript.min.js' }],
]
3 changes: 1 addition & 2 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import theme from 'vitepress/theme'
import { h } from 'vue'
import './style.css'
import 'uno.css'

// import './install'
import './install'
import RunCodeEditor from '../components/run-code-editor'

export default {
Expand Down
8 changes: 0 additions & 8 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@
"devDependencies": {
"@iconify/json": "^2.2.144",
"@vitejs/plugin-vue": "^4.5.0",
"@vtrbo/utils-arr": "workspace:*",
"@vtrbo/utils-color": "workspace:*",
"@vtrbo/utils-is": "workspace:*",
"@vtrbo/utils-log": "workspace:*",
"@vtrbo/utils-obj": "workspace:*",
"@vtrbo/utils-str": "workspace:*",
"@vtrbo/utils-tool": "workspace:*",
"@vtrbo/utils-tree": "workspace:*",
"@vueuse/core": "^10.6.1",
"pretty-format": "^29.7.0",
"sass": "^1.69.5",
Expand Down
17 changes: 5 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,9 @@
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/index.d.ts"
]
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
Expand Down Expand Up @@ -73,7 +66,7 @@
},
"devDependencies": {
"@antfu/eslint-config": "2.0.0",
"@types/node": "^20.9.2",
"@types/node": "^20.9.3",
"@types/shelljs": "^0.8.15",
"bumpp": "^9.2.0",
"eslint": "^8.54.0",
Expand All @@ -84,7 +77,7 @@
"shelljs": "^0.8.5",
"simple-git-hooks": "^2.9.0",
"tsup": "^8.0.0",
"typescript": "^5.2.2",
"typescript": "^5.3.2",
"vitest": "^0.34.6"
},
"pnpm": {
Expand Down
13 changes: 3 additions & 10 deletions packages/arr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,9 @@
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/index.d.ts"
]
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
Expand Down
13 changes: 3 additions & 10 deletions packages/color/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,9 @@
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/index.d.ts"
]
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
Expand Down
13 changes: 3 additions & 10 deletions packages/is/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,9 @@
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/index.d.ts"
]
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
Expand Down
13 changes: 3 additions & 10 deletions packages/log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,9 @@
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/index.d.ts"
]
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
Expand Down
13 changes: 3 additions & 10 deletions packages/obj/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,9 @@
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/index.d.ts"
]
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
Expand Down
13 changes: 3 additions & 10 deletions packages/str/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,9 @@
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/index.d.ts"
]
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
Expand Down
13 changes: 3 additions & 10 deletions packages/tool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,9 @@
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/index.d.ts"
]
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
Expand Down
13 changes: 3 additions & 10 deletions packages/tree/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,9 @@
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/index.d.ts"
]
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
Expand Down
Loading

0 comments on commit 5ca47fb

Please sign in to comment.