Skip to content

Commit

Permalink
ci: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
xsjcTony committed Sep 21, 2024
1 parent 861be4b commit d92b179
Show file tree
Hide file tree
Showing 3 changed files with 316 additions and 612 deletions.
11 changes: 8 additions & 3 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { rm } from 'node:fs/promises'
import { fileURLToPath } from 'node:url'
import { defineBuildConfig } from 'unbuild'

Expand All @@ -13,8 +14,12 @@ export default defineBuildConfig({
alias: {
'@': fileURLToPath(new URL('src', import.meta.url)),
},
rollup: {
inlineDependencies: true,
},
failOnWarn: false,
hooks: {
'build:before': async () => {
// eslint-disable-next-line no-console
console.log('ℹ Cleaning styles: "./style.css"')
await rm(new URL('style.css', import.meta.url), { force: true })
},
},
})
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
},
"devDependencies": {
"@aelita-dev/eslint-config": "3.2.5",
"@iconify/json": "^2.2.250",
"@iconify/json": "^2.2.251",
"@nolebase/vitepress-plugin-enhanced-readabilities": "^2.5.0",
"@nolebase/vitepress-plugin-highlight-targeted-heading": "^2.5.0",
"@shikijs/vitepress-twoslash": "^1.18.0",
Expand All @@ -80,7 +80,7 @@
"bumpp": "^9.5.2",
"bundle-require": "^5.0.0",
"changelogithub": "^0.13.10",
"eslint": "^9.10.0",
"eslint": "^9.11.0",
"eslint-plugin-vue": "^9.28.0",
"eslint-plugin-vuejs-accessibility": "^2.4.1",
"eslint-processor-vue-blocks": "^0.1.2",
Expand All @@ -94,19 +94,19 @@
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.1",
"remark-stringify": "^11.0.0",
"sass": "^1.79.2",
"sass": "^1.79.3",
"simple-git-hooks": "^2.11.1",
"to-vfile": "^8.0.0",
"tsx": "^4.19.1",
"typescript": "^5.6.2",
"unbuild": "^2.0.0",
"unbuild": "^3.0.0-rc.7",
"unified": "^11.0.5",
"unocss": "^0.62.4",
"vfile": "^6.0.3",
"vitepress": "^1.3.4",
"vitepress-plugin-group-icons": "^1.2.4",
"vitest": "^2.1.1",
"vue": "^3.5.6",
"vue": "^3.5.7",
"vue-tsc": "^2.1.6",
"zx": "^8.1.8"
}
Expand Down
Loading

0 comments on commit d92b179

Please sign in to comment.