@nocobase/utils 1.9.35 → 1.9.37

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": "@nocobase/utils",
3
- "version": "1.9.35",
3
+ "version": "1.9.37",
4
4
  "main": "lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "license": "AGPL-3.0",
@@ -17,5 +17,5 @@
17
17
  "multer": "^1.4.5-lts.2",
18
18
  "object-path": "^0.11.8"
19
19
  },
20
- "gitHead": "091cab14c88a8d41f42b45c48621c07137518d26"
20
+ "gitHead": "6a2bcae5326fd67737611a10e69ac2737dd46749"
21
21
  }
package/plugin-symlink.js CHANGED
@@ -93,6 +93,14 @@ async function createPluginSymLink(pluginName, sourcePath, nodeModulesPath, plug
93
93
  return;
94
94
  }
95
95
 
96
+ const distClientIndexPath = resolve(sourcePath, pluginName, 'dist', 'client', 'index.js');
97
+
98
+ if (await fs.pathExists(distClientIndexPath)) {
99
+ // Update the mtime of distClientIndexPath
100
+ const now = new Date();
101
+ await fs.utimes(distClientIndexPath, now, now);
102
+ }
103
+
96
104
  try {
97
105
  const targetPath = resolve(sourcePath, pluginName);
98
106