diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 43c97e7..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -package-lock=false diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..2edeafb --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +20 \ No newline at end of file diff --git a/.yarnrc b/.yarnrc deleted file mode 100644 index acaaffd..0000000 --- a/.yarnrc +++ /dev/null @@ -1 +0,0 @@ ---install.no-lockfile true diff --git a/package.json b/package.json index e068d7f..214ec50 100644 --- a/package.json +++ b/package.json @@ -21,13 +21,8 @@ }, "devDependencies": { "ava": "^3.1.0", - "codecov": "^3.0.0", - "dockerode": "^3.0.0", - "nyc": "^15.0.0", - "semantic-release": "^17.0.0", "sinon": "^9.0.0", - "stream-buffers": "^3.0.2", - "xo": "^0.29.0" + "stream-buffers": "^3.0.2" }, "files": [ "lib", @@ -43,24 +38,8 @@ ], "license": "MIT", "main": "index.js", - "nyc": { - "include": [ - "lib/**/*.js", - "index.js" - ], - "reporter": [ - "json", - "text", - "html" - ], - "all": true - }, "peerDependencies": { - "semantic-release": ">=16.0.0 <18.0.0" - }, - "prettier": { - "printWidth": 120, - "trailingComma": "es5" + "semantic-release": ">=18.0.0" }, "publishConfig": { "access": "public" @@ -70,17 +49,6 @@ "url": "https://github.com/levibostian/semantic-release-cocoapods.git" }, "scripts": { - "codecov": "codecov -f coverage/coverage-final.json", - "lint": "xo", - "pretest": "npm run lint", - "semantic-release": "semantic-release", - "test": "nyc ava -v" - }, - "xo": { - "prettier": true, - "space": true, - "rules": { - "unicorn/string-content": "off" - } + "test": "npx ava -v" } } diff --git a/test/prepare.test.js b/test/prepare.test.js index 9ecbaee..6f29ee9 100644 --- a/test/prepare.test.js +++ b/test/prepare.test.js @@ -1,7 +1,6 @@ const path = require('path'); const test = require('ava'); const {outputFile, readFile} = require('fs-extra'); -const tempy = require('tempy'); const {stub} = require('sinon'); const {WritableStreamBuffer} = require('stream-buffers'); const prepare = require('../lib/prepare'); @@ -14,7 +13,9 @@ test.beforeEach((t) => { }); test('Update podspec', async (t) => { - const cwd = tempy.directory(); + const {temporaryDirectory} = await import('tempy'); + + const cwd = temporaryDirectory(); const packagePath = path.resolve(cwd, 'Test.podspec'); await outputFile(packagePath, "s.version = '0.0.1'"); @@ -38,7 +39,9 @@ test('Update podspec', async (t) => { }); test('Preserve indentation and newline', async (t) => { - const cwd = tempy.directory(); + const {temporaryDirectory} = await import('tempy'); + + const cwd = temporaryDirectory(); const packagePath = path.resolve(cwd, 'Test.podspec'); await outputFile( packagePath,