Skip to content

Commit

Permalink
publish patched @oclif/core
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy Razon committed Nov 27, 2023
1 parent 5455c2e commit b860992
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"private": true,
"workspaces": [
"packages/*"
],
"workspaces": {
"packages": [
"packages/*"
],
"nohoist": ["**/@oclif/core"]
},
"devDependencies": {
"husky": "^8.0.0",
"lerna": "^6.6.2",
Expand Down
5 changes: 3 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@
"lint": "eslint . --ext .ts --cache",
"postpack": "shx rm -f oclif.manifest.json",
"posttest": "yarn lint",
"prepack": "yarn build && oclif manifest && oclif readme --dir docs --multi && ./scripts/prepare_and_copy_docs.sh",
"prepack": "yarn build && ./scripts/validate-tsconfig && oclif manifest && oclif readme --dir docs --multi && ./scripts/prepare_and_copy_docs.sh",
"cli": "./bin/dev",
"version": "oclif readme && git add README.md"
"version": "oclif readme && git add README.md",
"postinstall": "npx patch-package"
},
"engines": {
"node": ">=18.0.0"
Expand Down
File renamed without changes.
14 changes: 14 additions & 0 deletions packages/cli/scripts/validate-tsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env node
const path = require('path')
const util = require('util')
const fs = require('fs')

const tsConfig = path.join(__dirname, '..', './tsconfig.json')

try {
JSON.parse(fs.readFileSync('./tsconfig.json'))
} catch (e) {
console.error('Error parsing %s: oclif expects valid JSON: %j', tsConfig, util.inspect(e))
process.exit(1)
}

4 changes: 2 additions & 2 deletions packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lib": ["es2022"],
"esModuleInterop": true,
"sourceMap": true,
"baseUrl": ".",
"baseUrl": "."
},
"include": [
"src/**/*"
Expand All @@ -25,6 +25,6 @@
{ "path": "../driver-gce" },
{ "path": "../driver-azure" },
{ "path": "../driver-kube-pod" },
{ "path": "../plugin-github" },
{ "path": "../plugin-github" }
]
}
Empty file.

0 comments on commit b860992

Please sign in to comment.