@alanwang-merit/meritdata-platform-skill-package 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alanwang-merit/meritdata-platform-skill-package",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -1,6 +1,7 @@
1
1
  const fs = require('fs');
2
2
  const path = require('path');
3
- const getTopPackagePath = require('top-package');
3
+ // 修复:使用解构赋值引入 getTopPackagePath
4
+ const { getTopPackagePath } = require('top-package');
4
5
 
5
6
  // 1. 获取当前 npm 包所在的目录 (node_modules/@alanwang-merit/meritdata-platform-skill-package)
6
7
  const currentPackagePath = path.resolve(__dirname, '..');