nw 0.89.0-sdk → 0.90.0-sdk
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/README.md +1 -1
- package/package.json +11 -11
- package/src/postinstall.js +9 -0
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ npm install --save-dev nw@0.85.0-1
|
|
|
36
36
|
npm install --save-dev nw@sdk
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
Or set `nwjs_build_type=sdk` in `.npmrc` or `NWJS_BUILD_TYPE=sdk` environment variable.
|
|
40
40
|
|
|
41
41
|
### Specify platform:
|
|
42
42
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nw",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "An installer for
|
|
3
|
+
"version": "0.90.0-sdk",
|
|
4
|
+
"description": "An installer for NW.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git://github.com/nwjs/npm-installer.git"
|
|
@@ -14,12 +14,10 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"postinstall": "node src/postinstall.js",
|
|
16
16
|
"test": "vitest run",
|
|
17
|
-
"test:
|
|
18
|
-
"
|
|
17
|
+
"test:coverage": "vitest --coverage.enabled true",
|
|
18
|
+
"license-check": "jsgl -l ."
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
|
-
"bin",
|
|
22
|
-
"lib",
|
|
23
21
|
"src"
|
|
24
22
|
],
|
|
25
23
|
"author": {
|
|
@@ -36,8 +34,8 @@
|
|
|
36
34
|
"dependencies": {
|
|
37
35
|
"axios": "^1.7.2",
|
|
38
36
|
"commander": "^12.1.0",
|
|
39
|
-
"semver": "^7.6.
|
|
40
|
-
"tar": "^7.4.
|
|
37
|
+
"semver": "^7.6.3",
|
|
38
|
+
"tar": "^7.4.3",
|
|
41
39
|
"yauzl-promise": "^4.0.0"
|
|
42
40
|
},
|
|
43
41
|
"keywords": [
|
|
@@ -53,8 +51,10 @@
|
|
|
53
51
|
"application"
|
|
54
52
|
],
|
|
55
53
|
"devDependencies": {
|
|
56
|
-
"@vitest/coverage-v8": "^
|
|
57
|
-
"
|
|
58
|
-
"
|
|
54
|
+
"@vitest/coverage-v8": "^2.0.4",
|
|
55
|
+
"js-green-licenses": "^4.0.0",
|
|
56
|
+
"patch-package": "^8.0.0",
|
|
57
|
+
"selenium-webdriver": "^4.23.0",
|
|
58
|
+
"vitest": "^2.0.2"
|
|
59
59
|
}
|
|
60
60
|
}
|
package/src/postinstall.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import child_process from 'node:child_process';
|
|
1
2
|
import fs from 'node:fs';
|
|
2
3
|
import process from 'node:process';
|
|
3
4
|
import path from 'node:path';
|
|
@@ -8,6 +9,14 @@ import semver from 'semver';
|
|
|
8
9
|
import get from './get.js';
|
|
9
10
|
import util from './util.js';
|
|
10
11
|
|
|
12
|
+
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
|
13
|
+
|
|
14
|
+
const patchPackagePath = path.resolve(path.join(__dirname, '..', 'node_modules', 'patch-package'));
|
|
15
|
+
|
|
16
|
+
if (fs.existsSync(patchPackagePath)) {
|
|
17
|
+
child_process.execSync('node ' + patchPackagePath);
|
|
18
|
+
}
|
|
19
|
+
|
|
11
20
|
await postinstall()
|
|
12
21
|
.catch((error) => {
|
|
13
22
|
if (error.code === 'EPERM') {
|