vite vue3项目打包如何跳过ts检查并进行打包

发布时间:2024年01月17日

vite vue3项目打包如何跳过ts检查并进行打包

将vue-tsc 打包检查命令干掉

{
  "name": "data-service2.0",
  "type": "module",
  "version": "1.0.0-beta.3",
  "packageManager": "pnpm@8.10.0",
  "author": "aibayanyu <aibayanyu@qq.com>",
  "repository": "antdv-pro/antdv-pro",
  "scripts": {
    "dev": "mist",
    "start": "mist",
    "build": "mist build",
    "clear:vercel": "rm -rf ./vercel.json",
    "build:vercel": "run-s clear:vercel build:nitro",
    "build:nitro": "mist build nitro",
    "start:nirto": "node .output/server/index.mjs",
    "preview": "mist preview",
    "lint": "eslint src --fix",
    "typecheck": "vue-tsc --noEmit",
    "bump:patch": "changelogen --bump --output CHANGELOG.md --release --prerelease",
    "bump:minor": "changelogen --bump --output CHANGELOG.md --release --minor",
    "bump:major": "changelogen --bump --output CHANGELOG.md --release --major",
    "prepare": "husky install",
    "dir-tree": "esno ./scripts/dir-tree",
    "gen:uno": "esno ./scripts/gen-unocss",
    "toJS": "esno scripts/to-js"
  },
  "dependencies": {
    "@ant-design/icons-vue": "^7.0.1",
    "@antv/g2plot": "^2.4.31",
    "@antv/l7": "^2.20.5",
    "@ctrl/tinycolor": "^4.0.2",
    "@surely-vue/table": "^4.2.8",
    "@v-c/utils": "^0.0.26",
    "@vueuse/core": "^10.7.0",
    "ant-design-vue": "^4.0.7",
    "axios": "^1.6.2",
    "dayjs": "^1.11.10",
    "echarts": "^5.4.3",
    "lodash-es": "^4.17.21",
    "mitt": "^3.0.1",
    "nprogress": "^0.2.0",
    "pinia": "^2.1.7",
    "vite-plugin-qiankun": "^1.0.15",
    "vue": "^3.3.11",
    "vue-clipboard3": "^2.0.0",
    "vue-i18n": "^9.8.0",
    "vue-router": "^4.2.5",
    "vuedraggable": "^4.1.0",
    "vxe-table": "^4.5.17",
    "xe-utils": "^3.5.14"
  },
  "devDependencies": {
    "@commitlint/cli": "^18.4.3",
    "@commitlint/config-conventional": "^18.4.3",
    "@mistjs/cli": "0.0.1-beta.6",
    "@mistjs/eslint-config": "^1.0.0",
    "@mistjs/vite-plugin-preload": "^0.0.1",
    "@types/fs-extra": "^11.0.4",
    "@types/lodash": "^4.14.202",
    "@types/lodash-es": "^4.17.12",
    "@types/node": "^20.10.4",
    "@types/nprogress": "^0.2.3",
    "@types/treeify": "^1.0.3",
    "@vitejs/plugin-vue": "^4.5.2",
    "@vitejs/plugin-vue-jsx": "^3.1.0",
    "@vue/test-utils": "^2.4.3",
    "antdv-component-resolver": "^1.0.5",
    "antdv-style": "0.0.1-beta.2",
    "changelogen": "^0.5.5",
    "cross-env": "^7.0.3",
    "directory-tree": "^3.5.1",
    "esbuild": "^0.19.9",
    "eslint": "^8.55.0",
    "esno": "^0.17.0",
    "execa": "^8.0.1",
    "fs-extra": "^11.2.0",
    "husky": "^8.0.3",
    "jsdom": "^22.1.0",
    "less": "^4.2.0",
    "lint-staged": "^14.0.1",
    "lodash": "^4.17.21",
    "nitropack": "^2.8.1",
    "npm-run-all": "^4.1.5",
    "picocolors": "^1.0.0",
    "treeify": "^1.1.0",
    "ts-node": "^10.9.2",
    "typescript": "^5.3.3",
    "unocss": "^0.57.7",
    "unocss-preset-chinese": "^0.3.0",
    "unocss-preset-ease": "^0.0.3",
    "unplugin-auto-import": "^0.16.7",
    "unplugin-config": "^0.1.3",
    "unplugin-vue-components": "^0.25.2",
    "vite": "^5.0.8",
    "vitest": "^0.34.6",
    "vue-tsc": "^1.8.25"
  },
  "lint-staged": {
    "**/*.{vue,ts,js,jsx,tsx}": "eslint src --fix"
  }
}

文章来源:https://blog.csdn.net/weixin_47000834/article/details/135646621
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。