uview-ultra-plus 1.10.4 → 1.11.1

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uview-ultra-plus",
3
- "version": "1.10.4",
3
+ "version": "1.11.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -60,11 +60,34 @@ function patchImports() {
60
60
  require('./patch-imports.js');
61
61
  }
62
62
 
63
+ /**
64
+ * Synchronize source to examples for local testing
65
+ */
66
+ function syncExamples() {
67
+ console.log('[Build] Syncing source to examples...');
68
+ const uviewSrc = path.join(projectRoot, 'src/uview-ultra');
69
+ const exampleTargets = [
70
+ path.join(projectRoot, 'examples/uniapp/src/uni_modules/uview-ultra'),
71
+ path.join(projectRoot, 'examples/uniapp-x/uni_modules/uview-ultra')
72
+ ];
73
+
74
+ exampleTargets.forEach(target => {
75
+ if (fs.existsSync(path.dirname(target))) {
76
+ console.log(`[Build] Syncing to ${path.relative(projectRoot, target)}...`);
77
+ if (fs.existsSync(target)) {
78
+ fs.rmSync(target, { recursive: true, force: true });
79
+ }
80
+ execSync(`rsync -aq --exclude='node_modules' "${uviewSrc}/" "${target}/"`);
81
+ }
82
+ });
83
+ }
84
+
63
85
  try {
64
86
  clean();
65
87
  copySource();
66
88
  runRollup();
67
89
  patchImports();
90
+ syncExamples();
68
91
  console.log('[Build] Successfully completed!');
69
92
  } catch (err) {
70
93
  console.error('[Build] Failed:', err.message);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "uview-ultra",
3
- "version": "1.10.4",
3
+ "version": "1.11.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "uview-ultra",
9
- "version": "1.10.4",
9
+ "version": "1.11.1",
10
10
  "dependencies": {
11
11
  "clipboard": "^2.0.11",
12
12
  "dayjs": "^1.11.3"
@@ -2,7 +2,7 @@
2
2
  "id": "uview-ultra",
3
3
  "name": "uview-ultra",
4
4
  "displayName": "uview-ultra全面兼容uniapp-x、uniapp鸿蒙组件库。",
5
- "version": "1.10.4",
5
+ "version": "1.11.1",
6
6
  "description": "uview-ultra全面兼容uni-app/uni-app-x/鸿蒙/nvue,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uview-ultra-plus",
3
- "version": "1.10.4",
3
+ "version": "1.11.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },