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 ab473f4
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish-canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
git commit -m "canary version $VERSION" lerna.json packages/*/package.json
# publish
yarn -s lerna publish from-package --pre-dist-tag $GIT_ID --yes
yarn -s lerna publish from-package --pre-dist-tag $GIT_ID --dist-tag $GIT_ID --yes
# undo the commit
git reset --hard HEAD^1
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", "**/patch-package", "**/patch-package/**"]
},
"devDependencies": {
"husky": "^8.0.0",
"lerna": "^6.6.2",
Expand Down
6 changes: 4 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"inquirer-autocomplete-prompt": "^2.0.0",
"iter-tools-es": "^7.5.3",
"lodash": "^4.17.21",
"patch-package": "^8.0.0",
"shell-escape": "^0.2.0",
"yaml": "^2.3.2"
},
Expand Down Expand Up @@ -102,9 +103,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": "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 ab473f4

Please sign in to comment.