Skip to content

Commit

Permalink
chore: refactor scripts to reduce dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jul 5, 2024
1 parent ae97e50 commit 93324b2
Show file tree
Hide file tree
Showing 9 changed files with 189 additions and 163 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
"@rollup/plugin-replace": "5.0.4",
"@swc/core": "^1.6.5",
"@types/hash-sum": "^1.0.2",
"@types/minimist": "^1.2.5",
"@types/node": "^20.14.8",
"@types/semver": "^7.5.8",
"@vitest/coverage-istanbul": "^1.6.0",
Expand All @@ -82,14 +81,12 @@
"eslint-plugin-import-x": "^0.5.1",
"eslint-plugin-vitest": "^0.5.4",
"estree-walker": "^2.0.2",
"execa": "^9.3.0",
"jsdom": "^24.1.0",
"lint-staged": "^15.2.7",
"lodash": "^4.17.21",
"magic-string": "^0.30.10",
"markdown-table": "^3.0.3",
"marked": "^12.0.2",
"minimist": "^1.2.8",
"npm-run-all2": "^6.2.0",
"picocolors": "^1.0.1",
"prettier": "^3.3.2",
Expand Down
6 changes: 4 additions & 2 deletions packages/sfc-playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import fs from 'node:fs'
import path from 'node:path'
import { type Plugin, defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { execaSync } from 'execa'
import { spawnSync } from 'node:child_process'

const commit = execaSync('git', ['rev-parse', '--short=7', 'HEAD']).stdout
const commit = spawnSync('git', ['rev-parse', '--short=7', 'HEAD'])
.stdout.toString()
.trim()

export default defineConfig({
plugins: [
Expand Down
111 changes: 0 additions & 111 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 93324b2

Please sign in to comment.