@shijiu/jsview 1.9.721 → 1.9.724

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsview-dom",
3
- "version": "1.9.721",
3
+ "version": "1.9.724",
4
4
  "description": "JsView DOM wrapper library used to get jsview support",
5
5
  "scripts": {
6
6
  "build-dom": "rollup -c rollup/dom.rollup.config.js -o dist/jsview-dom.min.js",
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "./dom/*.js",
8
8
  "./loader/*.js"
9
9
  ],
10
- "version": "1.9.721",
10
+ "version": "1.9.724",
11
11
  "bin": {
12
12
  "jsview-post-build": "./tools/jsview-post-build.js",
13
13
  "jsview-post-install": "./tools/jsview-post-install.js"
@@ -8,6 +8,10 @@ function main() {
8
8
  { name: 'postcss-js', version: '4.0.0' },
9
9
  { name: 'vite', version: '3.0.9' }
10
10
  ];
11
- doPostInstall('react', pkgNeedPatch);
11
+ doPostInstall('react', pkgNeedPatch, argv.skipCheckVersion);
12
12
  }
13
- main();
13
+
14
+ const argv = {
15
+ skipCheckVersion: process.argv.includes('--skip-check-version'),
16
+ }
17
+ main(argv);
@@ -2,7 +2,7 @@
2
2
 
3
3
  const { doPostInstall } = require('./jsview-post-install');
4
4
 
5
- function main() {
5
+ function main(argv) {
6
6
  const pkgNeedPatch = [
7
7
  { name: '@vue/compiler-sfc', version: '3.2.37' },
8
8
  { name: '@vue/runtime-core', version: '3.2.37' },
@@ -11,6 +11,10 @@ function main() {
11
11
  { name: 'vite', version: '3.0.9' },
12
12
  { name: 'vue-router', version: '4.1.4' }
13
13
  ];
14
- doPostInstall('vue', pkgNeedPatch);
14
+ doPostInstall('vue', pkgNeedPatch, argv.skipCheckVersion);
15
15
  }
16
- main();
16
+
17
+ const argv = {
18
+ skipCheckVersion: process.argv.includes('--skip-check-version'),
19
+ }
20
+ main(argv);
@@ -34,11 +34,15 @@ function checkPackageVersion(options, name, version)
34
34
  }
35
35
  }
36
36
 
37
- function checkPatches(options, pkgNeedPatch) {
37
+ function checkPatches(options, pkgNeedPatch, skipCheckVersion) {
38
38
  console.info("Checking package:");
39
39
  for (pkg of pkgNeedPatch) {
40
- console.info(" ", pkg);
41
- checkPackageVersion(options, pkg.name, pkg.version);
40
+ if (skipCheckVersion == false) {
41
+ console.info(" ", pkg);
42
+ checkPackageVersion(options, pkg.name, pkg.version);
43
+ } else {
44
+ console.info(" Skip ", pkg);
45
+ }
42
46
  }
43
47
  }
44
48
 
@@ -93,7 +97,7 @@ async function printRevision(options) {
93
97
  console.log('**************************************************');
94
98
  }
95
99
 
96
- function doPostInstall(framework, pkgNeedPatch) {
100
+ function doPostInstall(framework, pkgNeedPatch, skipCheckVersion) {
97
101
  const options = {};
98
102
  options.projectDir = process.cwd();
99
103
  options.modulesDir = path.resolve(options.projectDir, 'node_modules');
@@ -104,7 +108,7 @@ function doPostInstall(framework, pkgNeedPatch) {
104
108
 
105
109
  checkNpmCommand();
106
110
 
107
- checkPatches(options, pkgNeedPatch);
111
+ checkPatches(options, pkgNeedPatch, skipCheckVersion);
108
112
 
109
113
  installPatches(options, pkgNeedPatch);
110
114