Skip to content

Commit

Permalink
Merge pull request #211 from goldstack/issue-210-add-command-line-opt…
Browse files Browse the repository at this point in the history
…ion-to-exclude-packages

Add command line option to exclude packages for utils-typescript-references
  • Loading branch information
mxro committed Jun 9, 2022
2 parents f1f2c38 + f6199cf commit 20f1885
Show file tree
Hide file tree
Showing 49 changed files with 415 additions and 341 deletions.
121 changes: 45 additions & 76 deletions .pnp.cjs

Large diffs are not rendered by default.

113 changes: 57 additions & 56 deletions .pnp.loader.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -40,7 +40,7 @@
"devDependencies": {
"@goldstack/nodemonx": "0.3.33",
"@goldstack/utils-docs-cli": "0.3.11",
"@goldstack/utils-typescript-references": "0.1.14",
"@goldstack/utils-typescript-references": "0.2.0",
"@types/jest": "^27.5.1",
"@types/node": "^17.0.33",
"@typescript-eslint/eslint-plugin": "^4.14.0",
Expand Down
9 changes: 8 additions & 1 deletion scripts/fixProjectReferences.ts
@@ -1,3 +1,10 @@
import { run } from '@goldstack/utils-typescript-references';

run(process.argv);
run(process.argv)
.catch((e) => {
console.error(e);
process.exit(1);
})
.then(() => {
// all good
});
2 changes: 1 addition & 1 deletion workspaces/apps/package.json
Expand Up @@ -21,7 +21,7 @@
"test-ci": "yarn workspaces foreach -v run test-ci"
},
"devDependencies": {
"@goldstack/utils-typescript-references": "0.1.14",
"@goldstack/utils-typescript-references": "0.2.0",
"@types/jest": "^27.5.1",
"@types/node": "^17.0.33",
"@typescript-eslint/eslint-plugin": "^4.14.0",
Expand Down
4 changes: 2 additions & 2 deletions workspaces/apps/packages/template-management-cli/package.json
Expand Up @@ -46,7 +46,7 @@
"mock-aws-s3": "^4.0.2",
"source-map-support": "^0.5.21",
"tmp": "^0.2.1",
"yargs": "^15.4.1"
"yargs": "^17.5.1"
},
"devDependencies": {
"@goldstack/template-docker-image-aws": "0.3.82",
Expand All @@ -56,7 +56,7 @@
"@types/node": "^17.0.33",
"@types/source-map-support": "^0.5.4",
"@types/wtfnode": "^0.7.0",
"@types/yargs": "^15.0.5",
"@types/yargs": "^17.0.10",
"aws-sdk": "2.1055.0",
"concurrently": "^5.2.0",
"jest": "^28.1.0",
Expand Down
Expand Up @@ -21,7 +21,7 @@ import {
export const run = async (): Promise<void> => {
await wrapCli(
async (): Promise<any> => {
const argv = yargs
const argv = await yargs
.demandCommand(1)
.usage('Usage: $0 <command> [options]')
.command('deploy-set', 'Deploys a package set', {
Expand Down Expand Up @@ -84,7 +84,8 @@ export const run = async (): Promise<void> => {
required: false,
},
}
).argv;
)
.parse();

let repo: S3TemplateRepository | undefined = undefined;
if (argv.repo === 'goldstack-dev') {
Expand Down
2 changes: 1 addition & 1 deletion workspaces/docs/package.json
Expand Up @@ -24,7 +24,7 @@
},
"devDependencies": {
"@goldstack/nodemonx": "0.3.33",
"@goldstack/utils-typescript-references": "0.1.14",
"@goldstack/utils-typescript-references": "0.2.0",
"@types/jest": "^27.5.1",
"@types/node": "^17.0.33",
"@typescript-eslint/eslint-plugin": "^4.14.0",
Expand Down
4 changes: 2 additions & 2 deletions workspaces/docs/packages/markdown-docs/package.json
Expand Up @@ -25,9 +25,9 @@
"@goldstack/utils-cli": "0.2.14",
"@goldstack/utils-docs": "0.3.38",
"@goldstack/utils-sh": "0.4.32",
"@types/yargs": "^15.0.5",
"@types/yargs": "^17.0.10",
"source-map-support": "^0.5.21",
"yargs": "^15.4.1"
"yargs": "^17.5.1"
},
"devDependencies": {
"@types/jest": "^27.5.1",
Expand Down
@@ -1,16 +1,12 @@
import { wrapCli } from '@goldstack/utils-cli';
import yargs from 'yargs';

import { write, rmSafe } from '@goldstack/utils-sh';

import { transpile, getDocsDir } from './markdownDocsCli';

import { generateDocs } from './generateDocs';

export const run = async (): Promise<void> => {
await wrapCli(
async (): Promise<any> => {
const argv = yargs
const argv = await yargs
.demandCommand(1)
.usage('Usage: $0 <command> [options]')
.command(
Expand All @@ -31,7 +27,8 @@ export const run = async (): Promise<void> => {
demandOption: true,
});
}
).argv;
)
.parse();

if (argv._[0] === 'generate-docs') {
await generateDocs({
Expand Down
4 changes: 2 additions & 2 deletions workspaces/docs/packages/utils-docs-cli/package.json
Expand Up @@ -42,9 +42,9 @@
"@goldstack/utils-cli": "0.2.14",
"@goldstack/utils-docs": "0.3.38",
"@goldstack/utils-sh": "0.4.32",
"@types/yargs": "^15.0.5",
"@types/yargs": "^17.0.10",
"source-map-support": "^0.5.21",
"yargs": "^15.4.1"
"yargs": "^17.5.1"
},
"devDependencies": {
"@goldstack/utils-git": "0.1.35",
Expand Down

0 comments on commit 20f1885

Please sign in to comment.