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