feat: migrate from npm to pnpm

This commit is contained in:
杨帆 2024-08-30 10:33:31 +08:00
parent 6821b2ca81
commit 4c781758eb
6 changed files with 2931 additions and 4021 deletions

4016
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
{ {
"name": "test", "name": "test",
"version": "0.0.0", "version": "0.0.0",
"type":"module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build:old": "run-p type-check build-only", "build:old": "run-p type-check build-only",
@ -16,6 +16,7 @@
"dayjs": "^1.11.10", "dayjs": "^1.11.10",
"echarts": "^5.5.0", "echarts": "^5.5.0",
"element-plus": "^2.6.2", "element-plus": "^2.6.2",
"lodash-es": "^4.17.21",
"mockjs": "^1.1.0", "mockjs": "^1.1.0",
"pinia": "^2.1.7", "pinia": "^2.1.7",
"vue": "^3.4.21", "vue": "^3.4.21",
@ -23,6 +24,7 @@
"vue-router": "^4.3.0" "vue-router": "^4.3.0"
}, },
"devDependencies": { "devDependencies": {
"@types/lodash-es": "^4.17.12",
"@types/mockjs": "^1.0.10", "@types/mockjs": "^1.0.10",
"@types/node": "^20.11.30", "@types/node": "^20.11.30",
"@vitejs/plugin-vue": "^5.0.4", "@vitejs/plugin-vue": "^5.0.4",

2924
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { computed, ref ,onBeforeUpdate, nextTick} from "vue"; import { computed, ref ,onBeforeUpdate, nextTick} from "vue";
import merge from "lodash/merge"; import { merge } from "lodash-es";
import { useElementSize } from "@vueuse/core"; import { useElementSize } from "@vueuse/core";
import type { PropType } from "vue"; import type { PropType } from "vue";

View File

@ -1,8 +1,8 @@
<script setup lang="ts"> <script setup lang="ts">
import { onMounted, reactive, ref, watch } from "vue"; import { onMounted, reactive, ref, watch } from "vue";
import type { DefaultConfigType } from "./index.d"; import type { DefaultConfigType } from "./index.d";
import cloneDeep from "lodash/cloneDeep"; import { cloneDeep } from "lodash-es";
import merge from "lodash/merge"; import { merge } from "lodash-es";
const mergedConfig = ref<any>(null); const mergedConfig = ref<any>(null);
const capsuleLength = ref<any>([]); const capsuleLength = ref<any>([]);
const capsuleValue = ref<any>([]); const capsuleValue = ref<any>([]);

View File

@ -9,7 +9,7 @@ import {
nextTick, nextTick,
} from "vue"; } from "vue";
import type { CSSProperties } from "vue"; import type { CSSProperties } from "vue";
import throttle from "lodash/throttle"; import { throttle } from "lodash-es";
type propsType = { type propsType = {
modelValue?: boolean; modelValue?: boolean;
list: Array<any>; list: Array<any>;