uview-ultra-plus 1.11.0 → 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.11.0",
3
+ "version": "1.11.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -14,7 +14,6 @@
14
14
  "scripts": {
15
15
  "release": "release-it",
16
16
  "build": "node scripts/build.js",
17
- "build:example": "npm run build && node scripts/build-example.js",
18
17
  "rollup": "rollup -c rollup.config.mjs",
19
18
  "test": "echo \"No test specified\""
20
19
  },
@@ -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.11.0",
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.11.0",
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.11.0",
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.11.0",
3
+ "version": "1.11.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -14,7 +14,6 @@
14
14
  "scripts": {
15
15
  "release": "release-it",
16
16
  "build": "node scripts/build.js",
17
- "build:example": "npm run build && node scripts/build-example.js",
18
17
  "rollup": "rollup -c rollup.config.mjs",
19
18
  "test": "echo \"No test specified\""
20
19
  },
@@ -1,37 +0,0 @@
1
- const fs = require('fs');
2
- const path = require('path');
3
- const { execSync } = require('child_process');
4
-
5
- const projectRoot = path.resolve(__dirname, '..');
6
- const uviewSrc = path.join(projectRoot, 'src/uview-ultra');
7
-
8
- const exampleTargets = [
9
- path.join(projectRoot, 'examples/uniapp/src/uni_modules/uview-ultra'),
10
- path.join(projectRoot, 'examples/uniapp-x/uni_modules/uview-ultra')
11
- ];
12
-
13
- function syncExamples() {
14
- console.log('[Build:Example] Syncing source to examples...');
15
-
16
- exampleTargets.forEach(target => {
17
- if (fs.existsSync(path.dirname(target))) {
18
- console.log(`[Build:Example] Syncing to ${path.relative(projectRoot, target)}...`);
19
- if (fs.existsSync(target)) {
20
- fs.rmSync(target, { recursive: true, force: true });
21
- }
22
- // Use rsync for efficient copying and exclusion of node_modules
23
- execSync(`rsync -aq --exclude='node_modules' "${uviewSrc}/" "${target}/"`);
24
- } else {
25
- console.warn(`[Build:Example] Target directory not found: ${path.dirname(target)}`);
26
- }
27
- });
28
-
29
- console.log('[Build:Example] Sync complete!');
30
- }
31
-
32
- try {
33
- syncExamples();
34
- } catch (err) {
35
- console.error('[Build:Example] Failed:', err.message);
36
- process.exit(1);
37
- }