@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
|
@@ -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.
|
|
149
|
+
let versionFilePath = path.resolve(pathname, 'version.mjs');
|
|
150
150
|
if (fs.existsSync(versionFilePath)) {
|
|
151
|
-
const
|
|
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}`);
|