@shijiu/jsview 1.9.872 → 1.9.873

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": "@shijiu/jsview",
3
- "version": "1.9.872",
3
+ "version": "1.9.873",
4
4
  "bin": {
5
5
  "jsview-post-build": "./tools/jsview-post-build.js",
6
6
  "jsview-post-install": "./tools/jsview-post-install.js"
@@ -146,9 +146,10 @@ async function printRevision(options)
146
146
  for(const fileName of pluginFileNames) {
147
147
  var pathname = path.resolve(pluginDirPath, fileName);
148
148
  if (fs.statSync(pathname).isDirectory()) {
149
- let versionFilePath = path.resolve(pathname, 'version.js');
149
+ let versionFilePath = path.resolve(pathname, 'version.mjs');
150
150
  if (fs.existsSync(versionFilePath)) {
151
- const targetVersion = require(versionFilePath);
151
+ const versionFileURL = url.pathToFileURL(versionFilePath);
152
+ const { default: targetVersion } = await import(versionFileURL);
152
153
  console.log(`* [${path.basename
153
154
  (pathname)}] : ${targetVersion.packageName
154
155
  } : ${targetVersion.version}`);