Skip to content

Commit

Permalink
feat(swc): Move beta announcement to --help (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj authored Dec 26, 2022
1 parent 5ac7547 commit e0b02dc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@
See our website [swc-cli][] for more information or the issues associated with this package.

[swc-cli]: https://swc.rs/docs/usage-swc-cli

## @swc/cli@1 beta version is available

Beta version of @swc/cli is now available via `swcx command.
This'll be a default command for @swc/cli@1.
Please give it a try and report any issues at https://github.com/swc-project/swc/issues/4017
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"description": "CLI for the swc project",
"main": "lib/swc/index.js",
"scripts": {
"postinstall": "echo \"Beta version of @swc/cli is now available via 'swcx' command. This'll be a default command for @swc/cli@1. Please give it a try and let us know if there are problems!\"",
"prepublishOnly": "yarn build && yarn test && yarn types",
"types": "tsc",
"types:watch": "tsc --watch",
Expand Down Expand Up @@ -83,4 +82,4 @@
"bin",
"lib"
]
}
}
11 changes: 11 additions & 0 deletions src/swc/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,17 @@ export const initProgram = () => {
`);

program.usage("[options] <files ...>");
program.addHelpText(
"beforeAll",
`
============================================================================================
Beta version of @swc/cli is now available via 'swcx' command.
This'll be a default command for @swc/cli@1.
Please give it a try and report any issues at https://github.com/swc-project/swc/issues/4017
============================================================================================
`
);
};

function unstringify(val: string): any {
Expand Down

0 comments on commit e0b02dc

Please sign in to comment.