@shijiu/jsview 2.1.340-test.0 → 2.1.341-test.0

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": "2.1.340-test.0",
3
+ "version": "2.1.341-test.0",
4
4
  "bin": {
5
5
  "jsview-post-build": "./tools/jsview-post-build.js",
6
6
  "jsview-post-install": "./tools/jsview-post-install.js"
@@ -234,11 +234,11 @@ function getOptions(framework)
234
234
  return options;
235
235
  }
236
236
 
237
- function getPackageObject(modulePath)
237
+ function getPackageObject(modulePath, pkgName = 'package.json')
238
238
  {
239
- const pkgFullFile = path.resolve(modulePath, 'package.json');
239
+ const pkgFullFile = path.resolve(modulePath, pkgName);
240
240
  if (!fs.existsSync(pkgFullFile)) {
241
- Logger.ErrorAndExit('Failed to get ' + modulePath + ', file is not exists.');
241
+ Logger.ErrorAndExit('Failed to get ' + pkgFullFile + ', file is not exists.');
242
242
  }
243
243
  let pkgContent = fs.readFileSync(pkgFullFile, 'utf8');
244
244
  const pkgObj = JSON.parse(pkgContent);
@@ -322,7 +322,7 @@ function execCommand(cmdline, withOutput)
322
322
  }
323
323
  }
324
324
 
325
- function checkNodeVersion(minMajorVersion = 16)
325
+ function checkNodeVersion(minMajorVersion = 18)
326
326
  {
327
327
  const versions = process.version.replace('v', '').split('.');
328
328
  const [majorVersion, minorVersion, patchVersion] = versions;