diff --git a/.eslintrc.js b/.eslintrc.js index 590b8f0..3f3fcac 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,6 +18,7 @@ module.exports = { jest: true }, globals: { + nw: true, vi: true }, extends: [ diff --git a/nw-testing/manual-testing.js b/nw-testing/manual-testing.js index 0e8e535..1a85a19 100644 --- a/nw-testing/manual-testing.js +++ b/nw-testing/manual-testing.js @@ -8,6 +8,9 @@ const semver = require('semver'); const library = require('../index.js'); +/** + * Manual testing. + */ function manualTesting () { let options = { autoUpdate: { diff --git a/nw-testing/package-lock.json b/nw-testing/package-lock.json index 362d6bf..18581e3 100644 --- a/nw-testing/package-lock.json +++ b/nw-testing/package-lock.json @@ -5,6 +5,9 @@ "packages": { "": { "name": "nw-splasher-auto-update-manual-testing", + "dependencies": { + "semver": "^7.5.4" + }, "devDependencies": { "nw": "0.82.0-sdk" } @@ -292,7 +295,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, "dependencies": { "yallist": "^4.0.0" }, @@ -440,7 +442,6 @@ "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, "dependencies": { "lru-cache": "^6.0.0" }, @@ -627,8 +628,7 @@ "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/yargs": { "version": "3.32.0", diff --git a/nw-testing/package.json b/nw-testing/package.json index 9f4b545..55ff3e9 100644 --- a/nw-testing/package.json +++ b/nw-testing/package.json @@ -8,6 +8,9 @@ "scripts": { "start": "nw ." }, + "dependencies": { + "semver": "^7.5.4" + }, "devDependencies": { "nw": "0.82.0-sdk" }, diff --git a/package.json b/package.json index a27c8b3..dd19640 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "Tool to automate checking for updates and downloading newer versions for NW.js apps", "main": "index.js", "scripts": { - "lint": "eslint --config=.eslintrc.js index.js src tests manual-testing.js", - "fix": "eslint --fix --config=.eslintrc.js index.js src tests manual-testing.js", + "lint": "eslint --config=.eslintrc.js index.js src tests nw-testing", + "fix": "eslint --fix --config=.eslintrc.js index.js src tests nw-testing", "manual": "cd nw-testing && npm start", "test": "vitest --coverage" },