Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bump oclif deps #1231

Merged
merged 3 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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/**/*"]
}