build: update deps to fix yarn audit (#270)
This commit is contained in:
Родитель
9900fe9e99
Коммит
14a578b809
|
@ -268,7 +268,7 @@ The project's configured to run automated tests on CircleCI.
|
|||
|
||||
If you wish to manually test the module, first comment out `opts.identity` in `test/basic.js` to enable auto discovery. Then run the command `npm test` from the dev directory.
|
||||
|
||||
When this command is run for the first time: `electron-download` will download macOS Electron releases defined in `test/config.json`, and save to `~/.electron/`, which might take up less than 1GB of disk space.
|
||||
When this command is run for the first time: `@electron/get` will download macOS Electron releases defined in `test/config.json`, and save to `~/.electron/`, which might take up less than 1GB of disk space.
|
||||
|
||||
A successful testing should look something like:
|
||||
|
||||
|
@ -281,7 +281,7 @@ $ npm test
|
|||
> electron-osx-sign@0.4.17 test electron-osx-sign
|
||||
> standard && tape test
|
||||
|
||||
Calling electron-download before running tests...
|
||||
Calling @electron/get before running tests...
|
||||
Running tests...
|
||||
TAP version 13
|
||||
# setup
|
||||
|
|
18
package.json
18
package.json
|
@ -34,28 +34,28 @@
|
|||
"plist": "^3.0.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@electron/get": "^2.0.2",
|
||||
"@types/compare-version": "^0.1.31",
|
||||
"@types/debug": "^4.1.7",
|
||||
"@types/fs-extra": "^9.0.13",
|
||||
"@types/node": "^16.11.6",
|
||||
"@types/plist": "^3.0.2",
|
||||
"@typescript-eslint/eslint-plugin": "^5.3.0",
|
||||
"@typescript-eslint/parser": "^5.3.0",
|
||||
"electron-download": "^4.1.0",
|
||||
"eslint": "^8.1.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
||||
"@typescript-eslint/parser": "^5.45.0",
|
||||
"eslint": "^8.29.0",
|
||||
"eslint-config-eslint": "^7.0.0",
|
||||
"eslint-config-standard": "^16.0.3",
|
||||
"eslint-plugin-import": "^2.25.2",
|
||||
"eslint-config-standard": "^17.0.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-promise": "^5.1.1",
|
||||
"eslint-plugin-promise": "^6.1.1",
|
||||
"extract-zip": "^2.0.1",
|
||||
"mkdirp": "^1.0.4",
|
||||
"rimraf": "^3.0.2",
|
||||
"run-series": "^1.1.9",
|
||||
"run-waterfall": "^1.1.7",
|
||||
"standard": "^16.0.4",
|
||||
"standard": "^17.0.0",
|
||||
"tape": "^4.7.1",
|
||||
"typescript": "^4.4.4"
|
||||
"typescript": "^4.9.3"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc && tsc -p tsconfig.esm.json",
|
||||
|
|
|
@ -9,7 +9,7 @@ series([
|
|||
child.exec('which codesign', cb);
|
||||
},
|
||||
function (cb) {
|
||||
console.log('Calling electron-download before running tests...');
|
||||
console.log('Calling @electron/get before running tests...');
|
||||
util.downloadElectrons(cb);
|
||||
}
|
||||
], function (err) {
|
||||
|
|
14
test/util.js
14
test/util.js
|
@ -1,7 +1,7 @@
|
|||
const path = require('path');
|
||||
const test = require('tape');
|
||||
|
||||
const download = require('electron-download');
|
||||
const { downloadArtifact } = require('@electron/get');
|
||||
const mkdirp = require('mkdirp');
|
||||
const rimraf = require('rimraf');
|
||||
const series = require('run-series');
|
||||
|
@ -25,9 +25,9 @@ versions.forEach(function (version) {
|
|||
// Only versions later than 0.34.0 offer mas builds
|
||||
if (platform !== 'mas' || compareVersion(version, '0.34.0') >= 0) {
|
||||
releases.push({
|
||||
arch: arch,
|
||||
platform: platform,
|
||||
version: version
|
||||
arch,
|
||||
platform,
|
||||
version
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -47,12 +47,10 @@ exports.downloadElectrons = function downloadElectrons (callback) {
|
|||
series(
|
||||
releases.map(function (release) {
|
||||
return function (cb) {
|
||||
download(release, function (err, zipPath) {
|
||||
if (err) return callback(err);
|
||||
extract(zipPath, { dir: path.join(WORK_CWD, exports.generateReleaseName(release)) })
|
||||
downloadArtifact({ ...release, artifactName: 'electron' })
|
||||
.then((zipPath) => extract(zipPath, { dir: path.join(WORK_CWD, exports.generateReleaseName(release)) }))
|
||||
.then(() => cb())
|
||||
.catch(cb);
|
||||
});
|
||||
};
|
||||
}),
|
||||
callback
|
||||
|
|
2293
yarn.lock
2293
yarn.lock
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче