From d6ef59ac9457360cc0678f08704783a35bbfd9a3 Mon Sep 17 00:00:00 2001 From: zhanghao <774378400@qq.com> Date: Thu, 10 Sep 2026 11:01:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E9=A1=B9=E8=B7=AF=E5=BE=84=EF=BC=8C=E6=B7=BB=E5=8A=A0npm?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E4=BB=A5=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .npmrc | 1 + package.json | 2 +- pnpm-lock.yaml | 13 ++++++++----- vite.config.js | 3 ++- 4 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..57429e5 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +@cmvr:registry=http://192.168.28.10:4873/ \ No newline at end of file diff --git a/package.json b/package.json index 4df9cdd..77fd922 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "preview": "vite preview" }, "dependencies": { - "@cmvr/iot-common": "1.0.0", + "@cmvr/iot-common": "file:../cmvr-iot-common", "@element-plus/icons-vue": "2.3.2", "@vue-flow/background": "^1.3.2", "@vue-flow/controls": "^1.1.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 50ca951..c305975 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: .: dependencies: '@cmvr/iot-common': - specifier: 1.0.0 - version: 1.0.0(@element-plus/icons-vue@2.3.2(vue@3.5.26))(core-js@3.49.0)(element-plus@2.13.1(vue@3.5.26))(pinia@3.0.4(vue@3.5.26))(vue-router@4.6.4(vue@3.5.26))(vue@3.5.26) + specifier: file:../cmvr-iot-common + version: file:../cmvr-iot-common(@element-plus/icons-vue@2.3.2(vue@3.5.26))(core-js@3.49.0)(element-plus@2.13.1(vue@3.5.26))(pinia@3.0.4(vue@3.5.26))(vue-router@4.6.4(vue@3.5.26))(vue@3.5.26) '@element-plus/icons-vue': specifier: 2.3.2 version: 2.3.2(vue@3.5.26) @@ -185,8 +185,8 @@ packages: '@bufbuild/protobuf@2.13.0': resolution: {integrity: sha512-acq7c49vxfm1ggJ95P70TX7ABDM0vxr1SYD3BB0o0jnBLB4OAqeHyKuN+cD3w80gXEDQ2zxHpR6CUeA+O/aU9g==} - '@cmvr/iot-common@1.0.0': - resolution: {integrity: sha512-EIdZdRRgyhb4FfclQ6SoDT3NwIAY/7uI2re+zcwwcnc0a0ELKizTn4POFZt/O4mhr5Ikeg8J98cRB/cchV3E9g==} + '@cmvr/iot-common@file:../cmvr-iot-common': + resolution: {directory: ../cmvr-iot-common, type: directory} peerDependencies: '@element-plus/icons-vue': ^2.3.2 element-plus: ^2.13.1 @@ -1548,6 +1548,7 @@ packages: glob@10.4.5: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true globalthis@1.0.4: @@ -2978,7 +2979,7 @@ snapshots: '@bufbuild/protobuf@2.13.0': {} - '@cmvr/iot-common@1.0.0(@element-plus/icons-vue@2.3.2(vue@3.5.26))(core-js@3.49.0)(element-plus@2.13.1(vue@3.5.26))(pinia@3.0.4(vue@3.5.26))(vue-router@4.6.4(vue@3.5.26))(vue@3.5.26)': + '@cmvr/iot-common@file:../cmvr-iot-common(@element-plus/icons-vue@2.3.2(vue@3.5.26))(core-js@3.49.0)(element-plus@2.13.1(vue@3.5.26))(pinia@3.0.4(vue@3.5.26))(vue-router@4.6.4(vue@3.5.26))(vue@3.5.26)': dependencies: '@element-plus/icons-vue': 2.3.2(vue@3.5.26) '@vue-flow/background': 1.3.2(@vue-flow/core@1.48.2(vue@3.5.26))(vue@3.5.26) @@ -3006,6 +3007,8 @@ snapshots: pinia: 3.0.4(vue@3.5.26) sortablejs: 1.15.7 splitpanes: 3.1.5 + three: 0.181.2 + urdf-loader: 0.12.7(three@0.181.2) uuid: 11.1.1 vue: 3.5.26 vue-cropper: 1.1.1 diff --git a/vite.config.js b/vite.config.js index 6377465..528e793 100644 --- a/vite.config.js +++ b/vite.config.js @@ -39,7 +39,8 @@ export default defineConfig(({ mode, command }) => { // 设置路径 '~': path.resolve(__dirname, './'), // 设置别名 - '@': path.resolve(__dirname, './src') + '@': path.resolve(__dirname, './src'), + '@cmvr/iot-common': path.resolve(__dirname, '../cmvr-iot-common/dist') }, dedupe: ['vue', 'vue-router', 'pinia', 'element-plus', '@element-plus/icons-vue'], // https://cn.vitejs.dev/config/#resolve-extensions