Skip to content

Commit

Permalink
fix: bump oclif deps (#1231)
Browse files Browse the repository at this point in the history
* fix: bump oclif deps

* chore: satisfy linter

* chore: update tsconfig
  • Loading branch information
mdonnalley authored Jan 3, 2024
1 parent c59f467 commit 6cec405
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 357 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
},
"bugs": "https://github.com/oclif/oclif/issues",
"dependencies": {
"@oclif/core": "^3.0.4",
"@oclif/plugin-help": "^5.2.14",
"@oclif/plugin-not-found": "^2.3.32",
"@oclif/plugin-warn-if-update-available": "^3.0.0",
"@oclif/core": "^3.16.0",
"@oclif/plugin-help": "^6.0.9",
"@oclif/plugin-not-found": "^3.0.7",
"@oclif/plugin-warn-if-update-available": "^3.0.8",
"async-retry": "^1.3.3",
"aws-sdk": "^2.1231.0",
"change-case": "^4",
Expand All @@ -29,7 +29,7 @@
},
"devDependencies": {
"@commitlint/config-conventional": "^17.7.0",
"@oclif/plugin-legacy": "^1.3.0",
"@oclif/plugin-legacy": "^2.0.4",
"@oclif/prettier-config": "^0.2.1",
"@oclif/test": "^3.1.2",
"@types/async-retry": "^1.4.5",
Expand Down
3 changes: 1 addition & 2 deletions src/commands/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ export default class Manifest extends Command {
if (!plugin) throw new Error('plugin not found')
await plugin.load()
if (!plugin.valid) {
const p = require.resolve('@oclif/plugin-legacy', {paths: [process.cwd()]})
const {PluginLegacy} = require(p)
const {PluginLegacy} = await import('@oclif/plugin-legacy')
plugin = new PluginLegacy(this.config, plugin)
await plugin.load()
}
Expand Down
1 change: 1 addition & 0 deletions src/commands/readme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ Customize the code URL prefix by setting oclif.repositoryPrefix in package.json.
const config = await Config.load({devPlugins: false, root: cwd, userPlugins: false})

try {
// eslint-disable-next-line node/no-missing-require
const p = require.resolve('@oclif/plugin-legacy', {paths: [cwd]})
const plugin = new Plugin({root: p, type: 'core'})
await plugin.load()
Expand Down
12 changes: 4 additions & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
"compilerOptions": {
"declaration": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"module": "commonjs",
"outDir": "./lib",
"rootDirs": [
"./src"
],
"rootDirs": ["./src"],
"strict": true,
"target": "es2022"
"target": "es2022",
"skipLibCheck": true
},
"include": [
"./src/**/*"
]
"include": ["./src/**/*"]
}
Loading

0 comments on commit 6cec405

Please sign in to comment.