Skip to content

Commit

Permalink
chore: remove fs-extra
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 5, 2023
1 parent d28a20f commit 15cf4bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 22 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"@types/chai": "^4.3.5",
"@types/debug": "^4.1.8",
"@types/execa": "^0.9.0",
"@types/fs-extra": "^11.0.2",
"@types/glob": "^7.1.3",
"@types/inquirer": "^9.0.3",
"@types/lodash.throttle": "^4.1.6",
Expand All @@ -38,7 +37,6 @@
"eslint-config-oclif-typescript": "^2.0.1",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-perfectionist": "^2.1.0",
"fs-extra": "^11.1.1",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"mocha": "^10.2.0",
Expand Down
9 changes: 5 additions & 4 deletions test/update.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import {Config, Interfaces, ux} from '@oclif/core'
import {expect} from 'chai'
import * as fse from 'fs-extra'
import {HTTP} from 'http-call'
import nock from 'nock'
import {existsSync} from 'node:fs'
import {mkdir, rm, writeFile} from 'node:fs/promises'
import {mkdir, rm, symlink, writeFile} from 'node:fs/promises'
import * as path from 'node:path'
import zlib from 'node:zlib'
import {createSandbox} from 'sinon'
Expand All @@ -27,8 +26,10 @@ const setupClientRoot = async (ctx: {config: Interfaces.Config}, createVersion?:
await mkdir(clientRoot, {recursive: true})
if (createVersion) {
await mkdir(path.join(clientRoot, 'bin'), {recursive: true})
fse.ensureFileSync(path.join(clientRoot, '2.0.0'))
fse.ensureSymlinkSync(path.join(clientRoot, '2.0.0'), path.join(clientRoot, 'current'))
if (!existsSync(path.join(clientRoot, '2.0.0'))) {
await symlink(path.join(clientRoot, '2.0.0'), path.join(clientRoot, 'current'))
}

await writeFile(path.join(clientRoot, 'bin', ctx.config.bin), '../2.0.0/bin', 'utf8')
}

Expand Down
17 changes: 1 addition & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -802,14 +802,6 @@
resolved "https://registry.npmjs.org/@types/expect/-/expect-1.20.4.tgz#8288e51737bf7e3ab5d7c77bfa695883745264e5"
integrity sha512-Q5Vn3yjTDyCMV50TB6VRIbQNxSE4OmZR86VSbGaNpfUolm0iePBB4KdEEHmxoY5sT2+2DIvXW0rvMDP2nHZ4Mg==

"@types/fs-extra@^11.0.2":
version "11.0.2"
resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-11.0.2.tgz#23dc1ed7b2eba8ccd75568ac34e7a4e48aa2d087"
integrity sha512-c0hrgAOVYr21EX8J0jBMXGLMgJqVf/v6yxi0dLaJboW9aQPh16Id+z6w2Tx1hm+piJOLv8xPfVKZCLfjPw/IMQ==
dependencies:
"@types/jsonfile" "*"
"@types/node" "*"

"@types/glob@^7.1.1", "@types/glob@^7.1.3":
version "7.1.3"
resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.1.3.tgz#e6ba80f36b7daad2c685acd9266382e68985c183"
Expand Down Expand Up @@ -841,13 +833,6 @@
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==

"@types/jsonfile@*":
version "6.1.2"
resolved "https://registry.yarnpkg.com/@types/jsonfile/-/jsonfile-6.1.2.tgz#d3b8a3536c5bb272ebee0f784180e456b7691c8f"
integrity sha512-8t92P+oeW4d/CRQfJaSqEwXujrhH4OEeHRjGU3v1Q8mUS8GPF3yiX26sw4svv6faL2HfBtGTe2xWIoVgN3dy9w==
dependencies:
"@types/node" "*"

"@types/keyv@^3.1.4":
version "3.1.4"
resolved "https://registry.yarnpkg.com/@types/keyv/-/keyv-3.1.4.tgz#3ccdb1c6751b0c7e52300bcdacd5bcbf8faa75b6"
Expand Down Expand Up @@ -2889,7 +2874,7 @@ fs-constants@^1.0.0:
resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad"
integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==

fs-extra@^11.0.0, fs-extra@^11.1.1:
fs-extra@^11.0.0:
version "11.1.1"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.1.1.tgz#da69f7c39f3b002378b0954bb6ae7efdc0876e2d"
integrity sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==
Expand Down

0 comments on commit 15cf4bf

Please sign in to comment.