diff --git a/package.json b/package.json index 597d08ce..010851fe 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "oclif": "^1.18.1", "shx": "^0.3.3", "ts-node": "^9.1.1", - "typescript": "3.8.3" + "typescript": "^4.3.5" }, "engines": { "node": ">=8.0.0" @@ -37,7 +37,7 @@ "license": "MIT", "main": "./lib/help.js", "oclif": { - "commands": "./lib/commands/", + "commands": "./lib/commands", "bin": "oclif", "devPlugins": [ "@oclif/plugin-plugins" @@ -47,7 +47,7 @@ "scripts": { "build": "shx rm -rf lib && tsc", "lint": "eslint . --ext .ts --config .eslintrc", - "pretest": "yarn build && tsc -p test --noEmit", + "pretest": "yarn build && tsc --noEmit", "test": "mocha --forbid-only \"test/**/*.test.ts\"", "posttest": "yarn lint", "prepack": "yarn run build && oclif-dev manifest", diff --git a/tsconfig.json b/tsconfig.json index 12491d28..ab180be0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,15 +6,11 @@ "module": "commonjs", "noUnusedLocals": true, "noUnusedParameters": true, - "outDir": "./lib", + "outDir": "lib", "pretty": true, - "rootDirs": [ - "./src" - ], + "rootDir": "src", "strict": true, "target": "es2017" }, - "include": [ - "./src/**/*" - ] + "include": ["./src/**/*.ts"] } diff --git a/yarn.lock b/yarn.lock index 9a7583c7..2b997e90 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4862,10 +4862,10 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@3.8.3: - version "3.8.3" - resolved "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061" - integrity sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w== +typescript@4.3.5: + version "4.3.5" + resolved "https://registry.npmjs.org/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4" + integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA== union-value@^1.0.0: version "1.0.1"